journal article·2025-09-28Open access

MemGanomaly: Memory-Augmented Ganomaly for Frost- and Heat-Damaged Crop Detection

Jun Park, Sung-Wook Park, Yong-Seok Kim, Se-Hoon Jung, Chun-Bo Sim

Applied Sciences· Volume 15· Issue 19

Abstract

Climate change poses significant challenges to agriculture, leading to increased crop damage owing to extreme weather conditions. Detecting and analyzing such damage is crucial for mitigating its effects on crop yield. This study proposes a novel autoencoder (AE)-based model, termed “Memory Ganomaly,” designed to detect and analyze weather-induced crop damage under conditions of significant class imbalance. The model integrates memory modules into the Ganomaly architecture, thereby enhancing its ability to identify anomalies by focusing on normal (undamaged) states. The proposed model was evaluated using apple and peach datasets, which included both damaged and undamaged images, and was compared with existing robust Convolutional neural network (CNN) models (ResNet-50, EfficientNet-B3, and ResNeXt-50) and AE models (Ganomaly and MemAE). Although these CNN models are not the latest technologies, they are still highly effective for image classification tasks and are deemed suitable for comparative analyses. The results showed that CNN and Transformer baselines achieved very high overall accuracy (94–98%) but completely failed to identify damaged samples, with precision and recall equal to zero under severe class imbalance. Few-shot learning partially alleviated this issue (up to 75.1% recall in the 20-shot setting for the apple dataset) but still lagged behind AE-based approaches in terms of accuracy and precision. In contrast, the proposed Memory Ganomaly delivered a more balanced performance across accuracy, precision, and recall (Apple: 80.32% accuracy, 79.4% precision, 79.1% recall; Peach: 81.06% accuracy, 83.23% precision, 80.3% recall), outperforming AE baselines in precision and recall while maintaining comparable accuracy. This study concludes that the Memory Ganomaly model offers a robust solution for detecting anomalies in agricultural datasets, where data imbalance is prevalent, and suggests its potential for broader applications in agricultural monitoring and beyond. While both Ganomaly and MemAE have shown promise in anomaly detection, they suffer from limitations—Ganomaly often lacks long-term pattern recall, and MemAE may miss contextual cues. Our proposed Memory Ganomaly integrates the strengths of both, leveraging contextual reconstruction with pattern recall to enhance detection of subtle weather-related anomalies under class imbalance.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Smart Agriculture and AI

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Interdisciplinary Program in IT-Bio Convergence System, Sunchon National University, Suncheon 57922, Republic of Korea

Climate Change Assessment Division, Wanju National Institute of Agricultural Sciences, 166, Nongsaengmyeong-ro, Iseo-myeon, Wanju-gun 55365, Republic of Korea

Department of Computer Engineering, Sunchon National University, Suncheon 57922, Republic of Korea

Funding

Rural Development Administration

References (39)

Show source-provided references
1. Deep Gaussian Process for Crop Yield Prediction Based on Remote Sensing Data
2. Impact of Climate Change on Agriculture: A Review10.9734/ijecc/2024/v14i34069 ↗
3. Impact of Climate Change on Agriculture Production and Its Sustainable Solutions10.1007/s42398-019-00078-w ↗
4. Afsar, M.M., Bakhshi, A.D., Iqbal, M.S., Hussain, E., and Iqbal, J. (2024). High-Precision Mango Orchard Mapping Using a Deep Learning Pipeline Leveraging Object Detection and Segmentation. Remote Sens., 16.10.3390/rs16173207 ↗
5. Liakos, K.G., Busato, P., Moshou, D., Pearson, S., and Bochtis, D. (2018). Machine Learning in Agriculture: A Review. Sensors, 18.10.3390/s18082674 ↗
6. Machine Learning Applications for Precision Agriculture: A Comprehensive Review10.1109/ACCESS.2020.3048415 ↗
7. Crop yield prediction with deep convolutional neural networks10.1016/j.compag.2019.104859 ↗
8. A Survey on Deep Learning and Its Applications10.1016/j.cosrev.2021.100379 ↗
9. Mujkic, E., Philipsen, M.P., Moeslund, T.B., Christiansen, M.P., and Ravn, O. (2022). Anomaly Detection for Agricultural Vehicles Using Autoencoders. Sensors, 22.10.3390/s22103608 ↗
10. Deep Learning in Agriculture: A Survey10.1016/j.compag.2018.02.016 ↗
11. Jeyabose, A., Eunice, J., Popescu, D.E., Chowdary, M.K., and Hemanth, J. (2022). Deep Learning-Based Leaf Disease Detection in Crops Using Images for Agricultural Applications. Agronomy, 12.10.3390/agronomy12102395 ↗
12. Early Detection and Classification of Plant Diseases with Support Vector Machines Based on Hyperspectral Reflectance10.1016/j.compag.2010.06.009 ↗
13. Plant disease detection and classification techniques: A comparative study of the performances10.1186/s40537-023-00863-9 ↗
14. A survey on applications of machine learning algorithms in water quality assessment and water supply and management10.2166/ws.2023.033 ↗
15. Machine learning in agriculture domain: A state-of-art survey
16. Garofalo, S.P., Ardito, F., Sanitate, N., De Carolis, G., Ruggieri, S., Giannico, V., Rana, G., and Ferrara, R.M. (2025). Robustness of Actual Evapotranspiration Predicted by Random Forest Model Integrating Remote Sensing and Meteorological Information: Case of Watermelon (Citrullus lanatus, (Thunb.) Matsum. & Nakai, 1916). Water, 17.10.3390/w17030323 ↗
17. Araújo, S.O., Peres, R.S., Ramalho, J.C., Lidon, F., and Barata, J. (2023). Machine Learning Applications in Agriculture: Current Trends, Challenges, and Future Perspectives. Agronomy, 13.10.3390/agronomy13122976 ↗
18. Sutaji, D., and Rosyid, H. (2022). Convolutional Neural Network (CNN) Models for Crop Diseases Classification. Kinetik, 7.10.22219/kinetik.v7i2.1443 ↗
19. Deep Learning Models for Plant Disease Detection and Diagnosis10.1016/j.compag.2018.01.009 ↗
20. A Comparative Study of Fine-Tuning Deep Learning Models for Plant Disease Identification10.1016/j.compag.2018.03.032 ↗
21. Ramcharan, A., Baranowski, A., McCloskey, P., Ahmed, B., Legg, J., and Hughes, D.P. (2017). Deep Learning for Image-Based Cassava Disease Detection. Front. Plant Sci., 8.10.3389/fpls.2017.01852 ↗
22. Tokunaga, T., and Katafuchi, R. (2021, January 28–30). Image-based Plant Disease Diagnosis with Unsupervised Anomaly Detection Based on Reconstructability of Colors. Proceedings of the International Conference on Image Processing and Vision Engineering (IMPROVE 2021), Online.10.5220/0010463201120120 ↗
23. Garcia-Huerta, R.A., González-Jiménez, L.E., and Villalon-Turrubiates, L.E. (2020). Sensor Fusion Algorithm Using a Model-Based Kalman Filter for the Position and Attitude Estimation of Precision Aerial Delivery Systems. Sensors, 20.10.3390/s20185227 ↗
24. Unsupervised deep learning techniques for automatic detection of plant diseases: Reducing the need of manual labelling of plant images10.1186/s13362-023-00133-6 ↗
25. Ciniglio, A., Guiotto, A., Spolaor, F., and Sawacha, Z. (2021). The Design and Simulation of a 16-Sensors Plantar Pressure Insole Layout for Different Applications: From Sports to Clinics, a Pilot Study. Sensors, 21.10.3390/s21041450 ↗
26. f-AnoGAN: Fast Unsupervised Anomaly Detection with Generative Adversarial Networks10.1016/j.media.2019.01.010 ↗
27. Radford, A., Metz, L., and Chintala, S. (2016). Unsupervised Representation Learning with Deep Convolutional Generative Adversarial Networks. arXiv.
28. Goodfellow, I.J., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. (2014, January 8–13). Generative Adversarial Nets. Proceedings of the 28th International Conference on Neural Information Processing Systems—Volume 2 (NIPS’14), Montreal, QC, Canada. Available online: https://dl.acm.org/doi/10.5555/2969033.2969125.
29. An Improved Algorithm for Selecting IMF Components in Ensemble Empirical Mode Decomposition for Domain of Rub-Impact Fault Diagnosis10.1109/ACCESS.2019.2938367 ↗
30. Gong, D., Liu, L., Le, V., Saha, B., Mansour, M.R., and Venkatesh, S. (November, January 27). Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection. Proceedings of the 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, Republic of Korea.10.1109/ICCV.2019.00179 ↗
31. Ganomaly: Semi-Supervised Anomaly Detection via Adversarial Training
32. He, K., Zhang, X., Ren, S., and Sun, J. (July, January 26). Deep Residual Learning for Image Recognition. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
33. Tan, M., and Le, Q.V. (2019). EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks. arXiv.
34. Xie, S., Girshick, R., Dollár, P., Tu, Z., and He, K. (2017, January 21–26). Aggregated Residual Transformations for Deep Neural Networks. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA.10.1109/CVPR.2017.634 ↗
35. Liu, Z., Mao, H., Wu, C.-Y., Feichtenhofer, C., Darrell, T., and Xie, S. (2022, January 18–24). A ConvNet for the 2020s. Proceedings of the 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), New Orleans, LA, USA.10.1109/CVPR52688.2022.01167 ↗
36. Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. (2021, January 10–17). Swin Transformer: Hierarchical Vision Transformer Using Shifted Windows. Proceedings of the 2021 IEEE/CVF International Conference on Computer Vision (ICCV), Montreal, QC, Canada.10.1109/ICCV48922.2021.00986 ↗
37. Koch, G., Zemel, R., and Salakhutdinov, R. (2025, September 25). Siamese Neural Networks for One-Shot Image Recognition. Available online: https://www.cs.cmu.edu/~rsalakhu/papers/oneshot1.pdf.
38. Prototypical Networks for Few-Shot Learning
39. Matching Networks for One-Shot Learning