← Latest papers
💻 computer science

Leakage-audited cross-dataset evaluation reveals large generalization gaps in deep learning models for apple and maize disease recognition

This study demonstrates that deep learning models for apple and maize disease recognition, despite achieving near-perfect accuracy on curated benchmarks after rigorous leakage auditing, suffer from severe generalization gaps when tested on independently collected external datasets, highlighting the critical need for independent evaluation to assess true field readiness.

Original authors: Yogesh ., P Sudir, Princy Randhawa, Muzameel Ahmed, B M Chandrakala

Published 2026-11-06
📖 4 min read☕ Coffee break read

Original authors: Yogesh ., P Sudir, Princy Randhawa, Muzameel Ahmed, B M Chandrakala

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Farmers and agricultural scientists have long relied on early detection to save crops from devastating diseases. When a leaf turns a strange color or develops a spotted pattern, it can signal the arrival of a pathogen that threatens the entire harvest. In recent years, computer systems powered by artificial intelligence have been trained to spot these signs automatically, offering a potential tool for rapid diagnosis. These systems learn by studying thousands of images, eventually reaching a point where they can identify a sick leaf with near-perfect accuracy in a controlled setting. However, a critical question has lingered in the background: do these digital experts truly understand the disease, or have they simply memorized the specific conditions under which the training photos were taken? If the computer learned to recognize a disease because of the uniform white background of a laboratory photo, it might fail completely when faced with a leaf photographed in a messy, sun-dappled orchard.

A new study from researchers at Dayananda Sagar University in India tackles this uncertainty by putting five different artificial intelligence models to a rigorous test. The team focused on two vital crops, apples and maize, and asked a simple but profound question: can a model trained on pristine, curated images perform well when shown pictures taken in the real world? To answer this, they did not just compare scores; they conducted a meticulous audit to ensure the test was fair and free of hidden tricks. They gathered images of apple and maize leaves from a popular public dataset known for its clean, studio-quality photos. They then trained five distinct types of neural networks—complex computer programs designed to mimic the way the brain processes visual information—on these images. Before the training began, the researchers performed a strict check to ensure that no image used for testing was secretly hiding in the training set, a common problem known as data leakage that can falsely inflate performance numbers. They removed seven exact duplicate files found within the training data and confirmed that none of the test images were even visually similar enough to be considered copies of the training images.

Once the models were trained, the researchers faced them with a challenge they had never seen before. They tested the systems on 1,730 images of apple leaves and 371 images of maize leaves that had been collected independently from different sources, including a major agricultural competition and images gathered from the internet. These new images were taken in real orchards and fields, featuring variable lighting, natural backgrounds, and different camera angles. The results were stark and revealing. On the original, clean images, the models performed flawlessly, correctly identifying the health of the leaves nearly every single time. But when the same models looked at the real-world images, their performance plummeted. For the apple leaves, the accuracy dropped significantly, with the best model correctly identifying the disease status in only about 72 percent of cases, while others fell much lower. For the maize leaves, the situation was even more dire; the models struggled so badly that their success rate was barely better than random guessing, with some performing worse than simply picking the most common disease every time.

The study carefully ruled out the possibility that this failure was due to the test images being duplicates of the training ones. The audit confirmed that the images were genuinely different, meaning the drop in performance was not a mistake in the testing process but a genuine reflection of how the models handle change. The researchers concluded that the high scores often celebrated in scientific papers are misleading when applied to field conditions. The models had learned to rely on subtle cues present in the clean, studio photos—such as the specific shade of the background or the lighting angle—rather than the actual biological signs of the disease. When those cues disappeared in the messy reality of a farm, the models lost their way. This finding suggests that the current generation of disease-detection tools is not yet ready for widespread use in the field. The gap between a perfect score in a lab and a useful tool in a farmer's hand remains wide, and bridging it will require testing systems on independent, real-world data before declaring them ready for deployment.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →