Wrong test results in Semantic Segmentation of Multispectral Images with U-NET

4 vues (au cours des 30 derniers jours)
enes atik
enes atik le 6 Mar 2021
Hi everyone,
I use the tutorial that Matlab has prepared with Unet to apply semantic segmentation of multispectral images.
There is no problem with images with 5 or more bands in my data. However, when I use the same images as 3 (RGB) or 4 (RGBIR) bands, although the validation value is high, the entire test image is estimated by one or two classes (the number of classes is 8). There is no problem in training and validation. Why does such a result appear in the test image despite the high validation result? Thank you.

Réponses (1)

Sanjana
Sanjana le 8 Oct 2024
Hi,
I understand that you are experiencing low performance on test data, but the performance on validation data is high.
Possible reasons for such behaviour would be the following:
  1. Overfitting: Your model might be overfitting to the training and validation datasets. Consider the following approaches to resolve this:
  2. Data Augmentation: Increase data diveristy by applying transformation such as rotations or flip. Refer to the following example for more information on data augmentation for deep learning workflows:https://in.mathworks.com/help/deeplearning/ug/image-augmentation-using-image-processing-toolbox.html
  3. Regularization: Implement regularization techniques such as for deep learning, you can increase the L2 regularization factor in the specified training options or use dropout layers in your network to avoid overfitting. Refer to the following example for more information on regularization:https://in.mathworks.com/help/stats/regularization-1.html
  4. Dataset Imbalance: If your classes are imbalanced, the model might be biased towards the majority classes.To avoid this you can consider the following:
  5. Class Weighting: Assign higher weights to minority classes during trainin
  6. Resampling: Use techniques like oversampling or undersampling to balance the dataset.
  7. Refer to the following MATLAB Answer to learn more about resampling an unbalanced dataset:
  8. https://in.mathworks.com/matlabcentral/answers/168846-resampling-an-unbalanced-dataset
  9. Validation and test set differences:
  10. cross-validation: use k-fold cross-validation to get a more robust validation score. Refer to the following link for more information: https://in.mathworks.com/discovery/cross-validation.html
Hope this helps!

Catégories

En savoir plus sur Image Data Workflows dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by