Increase the Accuracy of Your CNN by Following These 5 Tips I Learned From the Kaggle Community (2024)

Increase the Accuracy of Your CNN by Following These 5 Tips I Learned From the Kaggle Community (3)

A project manager once told me about the 80/20 rule. He complained that the last part of a project was taking too long. Implementing the last 20% of features was taking over 80% of the time.

Vilfredo Pareto called this the 80/20 rule or the Pareto principle. It states that 20 percent of your efforts produce 80 percent of the results.

The 80/20 rule also holds for improving the accuracy of my deep learning model. It was straightforward to create a model with 88% accuracy. I have the feeling that improving it an extra 3 percent to make it to the top of the leaderboard will take a lot more time.

If you do not know what I am talking about, I invite you to read my previous article. That article ends with five possible techniques to improve the model’s accuracy. I learned these five techniques from the Kaggle community.

  1. Use bigger pre-trained models
  2. Use K-Fold Cross Optimization
  3. Use CutMix to augment your images
  4. Use MixUp to augment your images
  5. Using Ensemble learning

I tried each of these techniques and combined them. This is what happened.

All of the source code is available in this GitHub repository.

Before, we used EfficientNet-B3. This model was a good trade-off between performance and accuracy. See below. But EfficientNet offers other models that provide even greater accuracy — for example, EfficientNet-B4.

Increase the Accuracy of Your CNN by Following These 5 Tips I Learned From the Kaggle Community (4)

These more complex models have more parameters. More parameter needs more computing power and memory during training. I started with EfficientNet-B4, which gave an excellent result. The validation accuracy went up to 90%, and the validation loss to 0.32.

Increase the Accuracy of Your CNN by Following These 5 Tips I Learned From the Kaggle Community (2024)
Top Articles
Latest Posts
Article information

Author: Kimberely Baumbach CPA

Last Updated:

Views: 6396

Rating: 4 / 5 (41 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Kimberely Baumbach CPA

Birthday: 1996-01-14

Address: 8381 Boyce Course, Imeldachester, ND 74681

Phone: +3571286597580

Job: Product Banking Analyst

Hobby: Cosplaying, Inline skating, Amateur radio, Baton twirling, Mountaineering, Flying, Archery

Introduction: My name is Kimberely Baumbach CPA, I am a gorgeous, bright, charming, encouraging, zealous, lively, good person who loves writing and wants to share my knowledge and understanding with you.