Classification Of NPK Deficiency In Rice Leaves Using a Pre-Trained Convolutional Neural Network

##plugins.themes.academic_pro.article.main##

Ariestini Komang
Gede Angga Pradipta
Dandy Pramana Hostiadi

Abstract

Nutrient deficiencies of Nitrogen (N), Phosphorus (P), and Potassium (K) in rice plants can significantly reduce crop productivity and quality. Early detection is therefore essential to support effective fertilization management and precision agriculture. However, manual identification of nutrient deficiencies based on leaf symptoms is often subjective and requires expert knowledge. This study proposes an automated classification approach for detecting NPK nutrient deficiencies in rice leaves by combining deep learning–based feature extraction and machine learning classification. Four pre-trained Convolutional Neural Network (CNN) architectures, namely VGG16, ResNet50, DenseNet121, and InceptionV3, are utilized as feature extractors. The extracted features are then classified using Random Forest and Decision Tree classifiers. To improve model performance and address class imbalance, oversampling techniques, including Random Oversampling (ROS) and Synthetic Minority Oversampling Technique (SMOTE), are applied, while feature selection methods such as Mutual Information and Chi-Square are used to select the most relevant features. Experimental results demonstrate that different combinations of feature extractors, oversampling techniques, and feature selection methods produce varying classification performance. The best performance is achieved using DenseNet121 as the feature extractor combined with ROS and Mutual Information with the Random Forest classifier, achieving an accuracy of 95.3% under the 85:15 data split scenario. These results indicate that the proposed approach is effective for identifying NPK nutrient deficiencies in rice leaves and has strong potential for supporting intelligent agricultural monitoring systems.


Keywords: Rice Leaf Classification; Nutrient Deficiency Detection; Transfer Learning; DenseNet121; Random Forest.


 

##plugins.themes.academic_pro.article.details##

Author Biographies

Gede Angga Pradipta, Department of Magister Information Systems, Institut Teknologi dan Bisnis STIKOM Bali, Indonesia

Dr. Gede Angga Pradipta, S.T., M.Eng  received the bachelor’s degree in computer informatics from Universitas Atma Jaya (UAJY), Yogyakarta, Indonesia, in 2012, the master’s degree in information technology from Universitas Gadjah Mada (UGM), Yogyakarta, in 2014, and the Doctor degree in computer science from the Department of Computer Science and Electronics, Faculty of Natural Sciences, UGM, in 2021. He is currently an Associate Professor with the Department of Magister Information Systems, Institut Teknologi Dan Bisnis STIKOM Bali, Indonesia. His research interests include machine learning, pattern recognition, and image processing. He can be contacted at : angga_pradipta@stikom-bali.ac.id.

Dandy Pramana Hostiadi, Department of Magister Information Systems, Institut Teknologi dan Bisnis STIKOM Bali, Indonesia

Dr. Dandy Pramana Hostiadi, S.Kom., M.T  (Member, IEEE) was born in Surabaya, Indonesia. He received a bachelor’s degree in computer systems from STMIK STIKOM Bali, a master’s degree in electrical engineering, focusing on information systems and computer management form Udayana University, and a Ph.D degree from the Institut Teknologi Sepuluh Nopember (ITS), where he worked on finding ways to detect botnet activities in computer networks. In addition to his research, he was an Associate Professor at the Institut Teknologi dan Bisnis STIKOM Bali, where he shared his knowledge of network security and forensics with students. He is dedicated to improving awareness of cyber threats and contributes to the field through his publications. He can contacted at : dandy@stikom-bali.ac.id.

How to Cite
1.
Komang A, Gede Angga Pradipta, Dandy Pramana Hostiadi. Classification Of NPK Deficiency In Rice Leaves Using a Pre-Trained Convolutional Neural Network. J. appl. agricultural sci. technol. [Internet]. 2026Nov.30 [cited 2026Dec.2];10(4). Available from: https://jaast.org/index.php/jaast/article/view/590

References

  1. Putri D, Dkk A. AUGMENTASI DATA PADA IMPLEMENTASI CONVOLUTIONAL NEURAL NETWORK ARSITEKTUR EFFICIENTNET-B3 UNTUK KLASIFIKASI PENYAKIT DAUN PADI. vol. 5. n.d.
  2. Klasifikasi Gejala Defisiensi Nutrisi Pada Tanaman Padi Menggunakan CNN Dengan Arsitektur Googlenet. n.d.
  3. Yu Y, Si X, Hu C, Zhang J. A review of recurrent neural networks: Lstm cells and network architectures. Neural Comput 2019;31:1235–70. https://doi.org/10.1162/neco_a_01199.
  4. Nancy Longnecker. Mechanisms of Plant Growth and Improved Productivity Modern Approaches. 1st Edition. CRC Press; 1994.
  5. Elaraby NM, Elmogy M, Barakat S. Deep Learning: Effective Tool for Big Data Analytics. n.d.
  6. Mekha P, Teeyasuksaet N. Image Classification of Rice Leaf Diseases Using Random Forest Algorithm. 2021 Joint 6th International Conference on Digital Arts, Media and Technology with 4th ECTI Northern Section Conference on Electrical, Electronics, Computer and Telecommunication Engineering, ECTI DAMT and NCON 2021, Institute of Electrical and Electronics Engineers Inc.; 2021, p. 165–9. https://doi.org/10.1109/ECTIDAMTNCON51128.2021.9425696.
  7. Sharma M, Kumar CJ, Talukdar J, Singh TP, Dhiman G, Sharma A. Identification of rice leaf diseases and deficiency disorders using a novel DeepBatch technique. Open Life Sci 2023;18. https://doi.org/10.1515/biol-2022-0689.
  8. Shrivastava VK, Pradhan MK, Minz S, Thakur MP. Rice plant disease classification using transfer learning of deep convolution neural network. International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences - ISPRS Archives, vol. 42, International Society for Photogrammetry and Remote Sensing; 2019, p. 631–5. https://doi.org/10.5194/isprs-archives-XLII-3-W6-631-2019.
  9. Kolhar S, Jagtap J, Shastri R. Deep Neural Networks for Classifying Nutrient Deficiencies in Rice Plants Using Leaf Images. International Journal of Computing and Digital Systems 2024;15:305–14. https://doi.org/10.12785/ijcds/160124.
  10. Dey B, Masum M, Haque U, Khatun R, Ahmed R. Comparative performance of four CNN-based deep learning variants in detecting Hispa pest, two fungal diseases, and NPK deficiency symptoms of rice ( Oryza sativa ). 2022.
  11. shayan. Rice Leafs - Kaggle. Https://WwwKaggleCom/Datasets/Shayanriyaz/Riceleafs 2020.
  12. Raksarikon W. Nutrient Deficiency Symptoms in Rice – Kaggle Dataset. Https://WwwKaggleCom/Datasets/Guy007/Nutrientdeficiencysymptomsinrice 2021.
  13. Sivakumar M, Parthasarathy S, Padmapriya T. Trade-off between training and testing ratio in machine learning for medical image processing. PeerJ Comput Sci 2024;10. https://doi.org/10.7717/PEERJ-CS.2245.
  14. Saber A, Sakr M, Abo-Seida OM, Keshk A, Chen H. A Novel Deep-Learning Model for Automatic Detection and Classification of Breast Cancer Using the Transfer-Learning Technique. IEEE Access 2021;9:71194–209. https://doi.org/10.1109/ACCESS.2021.3079204.
  15. Abdallah SE, Elmessery WM, Shams MY, Al-Sattary NSA, Abohany AA, Thabet M. Deep Learning Model Based on ResNet-50 for Beef Quality Classification. Information Sciences Letters 2023;12:289–97. https://doi.org/10.18576/isl/120124.
  16. Sujatha R, Chatterjee JM, Angelopoulou A, Kapetanios E, Srinivasu PN, Hemanth DJ. A transfer learning-based system for grading breast invasive ductal carcinoma. IET Image Process 2022. https://doi.org/10.1049/ipr2.12660.
  17. Widyaya JE, Budi S. Pengaruh Preprocessing Terhadap Klasifikasi Diabetic Retinopathy dengan Pendekatan Transfer Learning Convolutional Neural Network. Jurnal Teknik Informatika Dan Sistem Informasi 2021;7. https://doi.org/10.28932/jutisi.v7i1.3327.
  18. Widians JA, Wardoyo R, Hartati S. Feature selection based on chi-square and ant colony optimization for multi-label classification. International Journal of Electrical and Computer Engineering 2024;14:3303–12. https://doi.org/10.11591/ijece.v14i3.pp3303-3312.
  19. Annisa TN, Jasmir J, Nurhadi N. Comparison of ANOVA and Chi-Square Feature Selection Methods to Improve Machine Learning Performance in Anemia Classification. Jurnal Teknik Informatika (Jutif) 2025;6:1925–40. https://doi.org/10.52436/1.jutif.2025.6.4.5017.
  20. Sun T, He L, Fang X, Xie L. Enhanced Multilinear PCA for Efficient Image Analysis and Dimensionality Reduction: Unlocking the Potential of Complex Image Data. Mathematics 2025;13. https://doi.org/10.3390/math13030531.
  21. Huang L, Zhou X, Shi L, Gong L. Time Series Feature Selection Method Based on Mutual Information. Applied Sciences (Switzerland) 2024;14. https://doi.org/10.3390/app14051960.
  22. Alduailij M, Khan QW, Tahir M, Sardaraz M, Alduailij M, Malik F. Machine-Learning-Based DDoS Attack Detection Using Mutual Information and Random Forest Feature Importance Method. Symmetry (Basel) 2022;14. https://doi.org/10.3390/sym14061095.
  23. Ramyachitra D, Manikandan P. IMBALANCED DATASET CLASSIFICATION AND SOLUTIONS: A REVIEW. International Journal of Computing and Business Research n.d.
  24. Joloudari JH, Marefat A, Nematollahi MA, Oyelere SS, Hussain S. Effective Class-Imbalance Learning Based on SMOTE and Convolutional Neural Networks. Applied Sciences (Switzerland) 2023;13. https://doi.org/10.3390/app13064006.
  25. Bagui S, Mink D, Bagui S, Subramaniam S, Wallace D. Resampling Imbalanced Network Intrusion Datasets to Identify Rare Attacks. Future Internet 2023;15. https://doi.org/10.3390/fi15040130.