Maintaining Consistent CNN Accuracy with Shuffled Features

조회 수: 3 (최근 30일)
Hamza
Hamza 2023년 10월 23일
댓글: Hamza 2023년 11월 10일
I applied a Convolutional Neural Network (CNN) to a matrix with dimensions of 50,000 × 39 features, which yielded an accuracy of 90%. However, when I shuffled or disordered the 39 features, the accuracy dropped to 88%. It's worth noting that I used the same dataset for both scenarios. I'm looking for guidance on how to resolve this issue and maintain a consistent accuracy of 90%. PS: I have used the same data in both cases.

답변 (1개)

Rishi
Rishi 2023년 10월 31일
Hi Hamza,
I understand from your query that you want to achieve the same accuracy when you change the order of your features. The drop in accuracy when shuffling or disordering the features suggests that the order of the features affects the performance of your CNN model. This can happen when the model relies on spatial or sequential information present in the original feature order.
You can try the following methods to maintain accuracy regardless of the feature order.
  • Feature Normalization: This would ensure that the magnitude of the features is consistent and the impact of the difference in scales is reduced. You can use ‘zscore’ or ‘normalize’ in MATLAB to do this. You can learn more about them from the documentation linked below:
  • Data Augmentation: Augment your dataset by creating additional samples with different feature orders. This can be done through ‘randomAffine2d’ or ‘imwarp’ function. You can learn more about them from the documentation:
  • Ensemble Method: It is used to train multiple CNN models with different feature orders and combine their predictions. You can use ‘fitcensemble’ function for this. You can find more information about this in the below documentation:
Hope this helps.
  댓글 수: 1
Hamza
Hamza 2023년 11월 10일
Hi @Rishi thanks a lot for your answer, I have tried all of them, the issue not resolved yet!

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Data Workflows에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by