- SMOTE (Synthetic Minority Over-sampling Technique) is a popular data augmentation technique for imbalanced datasets. It generates synthetic samples for the minority class (second and third classes in this case) by interpolating between existing samples. You can refer to Synthetic Minority Over-sampling Technique (SMOTE) file exchange to download the GitHub repository containing the implementation for the algorithm.
- Using a Weighted Loss function: The loss function can be weighted to give more importance to the minority class by multiplying the loss of the positive examples by a weight factor. To achieve this, you can try modifying the parameters for “crossentropy” defined in “objectnessLoss” and “classConfidenceLoss” functions as given in Object Detection Using YOLO v3 Deep Learning. The “perfweights” parameter as explained in Cross-Entropy, lets you modify the weights for each class, thereby giving more priority to the second and third classes.
Unable to train multilabel object detection usingYOLOv3
1 次查看(过去 30 天)
显示 更早的评论
Akshatha Doddabyaladakere Nagaraju
2023-3-15
评论: Akshatha Doddabyaladakere Nagaraju
2023-5-2
I have been trying to train a YOLOv3 model for multiclass, but the accuracy for the second and third class are way too low. i am unable to find the cause for it. I am using a unbalanced dataset and using data augmentation techniques to balance it. Apart from that, i do not see any other cause.
I have trained the YOLOv3 model with pretrained models with just one class and got the average precision of 0.713 but with multiclass even the fist class has accuracy around 0.56, second class 0.09 and third class 0.07. Do i need to configure any parameters to improvise the performance of the model?
0 个评论
采纳的回答
Neha
2023-4-6
I understand that you want to boost the accuracy for the second and third class where dataset being used is imbalanced. There are a few ways to improve the performance of the model:
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!