š 5 Mistakes I Made in My First CNN Project (That Ruined My Results)
š I Thought My Model Was Working⦠Until It Wasnāt When I built my first CNN model for brain tumor classification using MRI images, I felt confident. The code was running Accuracy looked good Predi...

Source: DEV Community
š
I Thought My Model Was Working⦠Until It Wasnāt When I built my first CNN model for brain tumor classification using MRI images, I felt confident. The code was running Accuracy looked good Predictions were coming The model classified images into: Glioma Meningioma Pituitary No Tumor Everything seemed fine⦠until I looked closer. š The model wasnāt learning what I thought it was. Here are the 5 mistakes that taught me more than any tutorial. ā Mistake 1: Ignoring Class Distribution I didnāt properly check: How many images per class? Whether all 4 classes were balanced? š Result: The model became biased toward dominant classes. It looked accurateābut struggled on minority classes. š¼ļø Class Imbalance Problem š Lesson: In multi-class problems, imbalance is even more dangerous than binary cases. ā Mistake 2: Increasing Model Complexity Without Reason I assumed: āMore layers = better classification across all 4 classesā So I kept adding layers. š Result: Training accuracy increased V