HAFNet: A Hierarchical Attention-Based Deep Learning Model for Mango Leaf Disease Detection

Authors

DOI:

https://doi.org/10.21015/vtse.v13i3.2169

Abstract

This study introduces the Mango Branch - Multi Attention Fusion Network (MAFN) framework for the identification of mango leaf diseases, employing feature engineering techniques such as color histograms, texture analysis, and shape descriptors. The research implemented data preprocessing strategies and utilized a multi-branch architecture with an attention mechanism to extract hierarchical features from images. The model demonstrated robust performance, achieving 92% accuracy, 94% precision, 93% recall, and  94% F1 score. Additionally, a second model, the Hierarchical Attention Based Fusion Network (HAFNet), was developed to integrate multiple branches for multi-scale feature extraction while mitigating noise through attention-based features. The study advanced preprocessing methods for both MAFN and HAFNet, introducing novel attention-based features in the field of agricultural science. The findings indicate enhanced crop disease detection through feature engineering, thereby promoting sustainable farming management via early detection. The paper concludes by discussing the limitations of the models and potential avenues for future research.

References

M. Ullah, S. Hamayun, A. Wahab, S. U. Khan, M. U. Rehman, Z. U. Haq, and M. Naeem, “Smart technologies used as smart tools in the management of cardiovascular disease and their future perspective,” Curr. Probl. Cardiol., vol. 48, no. 11, p. 101922, 2023.

N. L. Fitriyani, M. Syafrudin, G. Alfian, and J. Rhee, “HDPM: An effective heart disease prediction model for a clinical decision support system,” IEEE Access, vol. 8, pp. 133034–133050, 2020.

S. Solorio‑Fernández, J. A. Carrasco‑Ochoa, and J. F. Martínez‑Trinidad, “A review of unsupervised feature selection methods,” Artif. Intell. Rev., vol. 53, no. 2, pp. 907–948, 2020.

S. Solorio‑Fernández, J. A. Carrasco‑Ochoa, and J. F. Martínez‑Trinidad, “A review of unsupervised feature selection methods,” Artif. Intell. Rev., vol. 53, no. 2, pp. 907–948, 2020.

G. Saranya and A. Pravin, “A novel feature selection approach with integrated feature sensitivity and feature correlation for improved prediction of heart disease,” J. Ambient Intell. Humanized Comput., vol. 14, no. 9, pp. 12005–12019, 2023.

K. Y. Ngiam and W. Khor, “Big data and machine learning algorithms for health‑care delivery,” Lancet Oncol., vol. 20, no. 5, pp. e262–e273, 2019.

J. A. Sidey‑Gibbons and C. J. Sidey‑Gibbons, “Machine learning in medicine: a practical introduction,” BMC Med. Res. Methodol., vol. 19, pp. 1–18, 2019.

T. Keerthika and K. Premalatha, “An effective feature selection for heart disease prediction with aid of hybrid kernel SVM,” Int. J. Bus. Intell. Data Min., vol. 15, no. 3, pp. 306–326, 2019.

J. Vijayashree and H. P. Sultana, “A machine learning framework for feature selection in heart disease classification using improved particle swarm optimization with support vector machine classifier,” Program. Comput. Softw., vol. 44, pp. 388–397, 2018.

F. Babič, J. Olejár, Z. Vantová, and J. Paralič, “Predictive and descriptive analysis for heart disease diagnosis,” in Proc. FedCSIS, 2017, pp. 155–163.

S. Mohan, C. Thirumalai, and G. Srivastava, “Effective heart disease prediction using hybrid machine learning techniques,” IEEE Access, vol. 7, pp. 81542–81554, 2019.

G. T. Reddy, M. P. K. Reddy, K. Lakshmanna, D. S. Rajput, R. Kaluri, and G. Srivastava, “Hybrid genetic algorithm and a fuzzy logic classifier for heart disease diagnosis,” Evol. Intell., vol. 13, pp. 185–196, 2020.

S. B. Babu, A. Suneetha, G. C. Babu, Y. J. N. Kumar, and G. Karuna, “Medical disease prediction using grey wolf optimization and auto encoder based recurrent neural network,” Period. Eng. Nat. Sci. (PEN), vol. 6, no. 1, pp. 229–240, 2018.

A. B. M. Salem, V. Shendryk, and S. Shendryk, “Exploiting the knowledge computing and engineering in medical informatics and healthcare,” Int. J. Comput., vol. 3, 2018.

C. B. Gokulnath and S. P. Shantharajah, “An optimized feature selection based on genetic approach and support vector machine for heart disease,” Cluster Comput., vol. 22, pp. 14777–14787, 2019.

E. Choi, A. Schuetz, W. F. Stewart, and J. Sun, “Using recurrent neural network models for early detection of heart failure onset,” J. Am. Med. Inform. Assoc., vol. 24, no. 2, pp. 361–370, 2017.

U. Vivekananda, P. Novak, O. D. Bello, Y. E. Korchev, S. S. Krishnakumar, K. E. Volynski, and D. M. Kullmann, “Kv1.1 channelopathy abolishes presynaptic spike width modulation by subthreshold somatic depolarization,” Proc. Natl. Acad. Sci., vol. 114, no. 9, pp. 2395–2400, 2017.

A. K. Dwivedi, “Performance evaluation of different machine learning techniques for prediction of heart disease,” Neural Comput. Appl., vol. 29, pp. 685–693, 2018.

S. Nayak, M. K. Gourisaria, M. Pandey, and S. S. Rautaray, “Heart disease prediction using frequent item set mining and classification technique,” Int. J. Inf. Eng. Electron. Bus., vol. 11, no. 6, pp. 9–15, 2019.

T. Karadeniz, G. Tokdemir, and H. H. Maraş, “Ensemble methods for heart disease prediction,” New Gener. Comput., vol. 39, no. 3, pp. 569–581, 2021.

S. Uddin, A. Khan, M. E. Hossain, and M. A. Moni, “Comparing different supervised machine learning algorithms for disease prediction,” BMC Med. Inform. Decis. Mak., vol. 19, no. 1, pp. 1–16, 2019.

M. Ganesan and N. Sivakumar, “IoT based heart disease prediction and diagnosis model for healthcare using machine learning models,” in Proc. IEEE ICSCAN, 2019, pp. 1–5.

M. Azeem, M. Usman, and A. C. M. Fong, “A churn prediction model for prepaid customers in telecom using fuzzy classifiers,” Telecommun. Syst., vol. 66, no. 4, pp. 603–614, 2017.

C. Fan, M. Chen, X. Wang, B. Huang, and J. Wang, “A critical review on data preprocessing techniques for building operational data analysis,” in Proc. 25th Int. Symp. Adv. Constr. Manage. Real Estate, Singapore: Springer, 2021, pp. 205–217.

Priyanka and D. Kumar, “Decision tree classifier: a detailed survey,” Int. J. Inf. Decis. Sci., vol. 12, no. 3, pp. 246–269, 2020.

E. I. Elsedimy, S. M. AboHashish, and F. Algarni, “New cardiovascular disease prediction approach using support vector machine and quantum‑behaved particle swarm optimization,” Multimedia Tools Appl., vol. 83, no. 8, pp. 23901–23928, 2024.

S. R. Reddy and G. V. Murthy, “Cardiovascular disease prediction using particle swarm optimization and neural network based an integrated framework,” SN Comput. Sci., vol. 6, no. 2, p. 186, 2025.

M. Rabia, Z. Rashid, F. Babar, and M. Abbas, “Forecasting of pesticide usage in Pakistan: an application of the Univariate ARIMA Model and Artificial Neural Network,” Nativa, vol. 13, no. 1, 2025.

M. Arif, M. A. Aslam, H. U. Rehman, M. Abbas, and S. Bukhari, “Laboratory diagnostic pathways using machine learning,” VFAST Transactions on Software Engineering, vol. 10, no. 1, pp. 78–85, 2022.

M. Arif, M. Abbas, M. A. Shehzad, Z. Batool, M. Rabia, and A. M. Soomro, “An ensembling approach to predict hepatitis in patients with liver disease using machine learning,” VFAST Transactions on Software Engineering, vol. 11, no. 3, pp. 42–52, 2023.

Z. Batool, W. Munir, M. Abbas, U. W. Khan, and M. Rabia, “Bayesian approach: an alternative to the additive main effect and multiplicative interaction models for genotypes through environmental interactions,” Nativa, vol. 12, no. 4, 2024.

Downloads

Published

2025-08-26

How to Cite

Majid, M. D., Khan, M. A. A., Ullah, K., Awan, M. U. A., Afzal, W., & Bibi, K. (2025). HAFNet: A Hierarchical Attention-Based Deep Learning Model for Mango Leaf Disease Detection. VFAST Transactions on Software Engineering, 13(3), 92–103. https://doi.org/10.21015/vtse.v13i3.2169