Wishesha, Daviq Ardli (2026) Comparative Analysis Of Cross-Entropy Loss And Focal Loss Functions In Handling Data Imbalance For Corn Leaf Disease Classification Using Densenet121. Undergraduate thesis, UPN Veteran Jawa Tmur.
|
Text (Cover)
19081010164-Cover.pdf Download (524kB) | Preview |
|
|
Text (Bab 1)
19081010164-BAB 1.pdf Download (253kB) | Preview |
|
|
Text (Bab 2)
19081010164-BAB 2.pdf Restricted to Repository staff only until 7 July 2029. Download (624kB) |
||
|
Text (Bab 3)
19081010164-BAB 3.pdf Restricted to Repository staff only until 7 July 2029. Download (1MB) |
||
|
Text (Bab 4)
19081010164-BAB 4.pdf Restricted to Repository staff only until 7 July 2029. Download (498kB) |
||
|
Text (Bab 5)
19081010164-BAB 5.pdf Download (244kB) | Preview |
|
|
Text (Daftar Pustaka)
19081010164-DAFTAR PUSTAKA.pdf Download (241kB) | Preview |
Abstract
Class distribution imbalance is a structural challenge commonly encountered in agricultural image datasets, including the PlantVillage corn leaf disease dataset. This study compares the effectiveness of two loss functions standard Cross-Entropy Loss and adaptive Focal Loss in addressing this imbalance within the DenseNet121 architecture. The dataset comprises 4,188 images across four classes, with the minority class Gray Leaf Spot containing only 574 images compared to 1,306 images of the majority class Common Rust. Experiments were conducted in two scenarios: Scenario S-1 using Cross Entropy Loss as the baseline, and Scenario S-2 using Focal Loss with gamma=2.0 and dynamically computed per-class alpha values. Evaluation results show that the Cross Entropy Loss model achieved an overall accuracy of 95.81% with a Gray Leaf Spot Recall of 0.8421. The Focal Loss model successfully improved the minority class Recall to 0.8684 an absolute reduction of 3 False Negative cases but at the cost of a Precision drop from 0.8889 to 0.7674 and an overall accuracy of 93.78%. These findings confirm that Focal Loss effectively enhances model sensitivity toward the minority class as hypothesized, yet introduces a precision-recall trade-off that must be considered in practical deployment contexts. This research provides an empirical contribution to the discourse on loss function selection in agricultural image classification under moderate data imbalance conditions.
| Item Type: | Thesis (Undergraduate) | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Contributors: |
|
||||||||||||
| Subjects: | Q Science > QA Mathematics > QA75 Electronic computers. Computer science T Technology > T Technology (General) |
||||||||||||
| Divisions: | Faculty of Computer Science > Departemen of Informatics | ||||||||||||
| Depositing User: | Mr Daviq Wishesha | ||||||||||||
| Date Deposited: | 07 Jul 2026 07:28 | ||||||||||||
| Last Modified: | 07 Jul 2026 07:28 | ||||||||||||
| URI: | https://repository.upnjatim.ac.id/id/eprint/54782 |
Actions (login required)
![]() |
View Item |
