Agriculture plays a vital role in the Indian economy and the survival of Humans. In our
country nearly 55% [1] of our population is directly engaged in agricultural activities. Which
directly translates to this statement “Loss in the agricultural sector is devastating”. In recent
years we have seen the unpredictability of the weather, including the untimely rain which is the
most crucial factor in the crop growing phase. The losses due to the crop diseases amount to
10% to 35% [2]. We have developed a hybrid model which can identify the diseases early on,
currently our model works on few crops, further it will work on more crops. Our project aims
to bridge the gap between the identification of crop disease as most of the farmers rely on
inaccurate methods or are not able to identify the early signs of diseases. Our solution makes
use of Machine Learning good accuracy model to improve the detection of disease in crops,
and our solution is mobile, further work is required to make it also work in areas where there
is no network coverage as in India in some rural areas there is till no mobile network coverage.
We have made use of custom method, which includes layering techniques and for faster
processing, we have used 2 image classification models. The first one is “MobileNetV2” which
highlights important details and sends them to the next model (which is our hybrid approach
and will be termed as “Hybrid Approach” in further report). The solution uses Python for ML
and AI purposes, the backend is connected to Spring boot language used here is Java for back
end. The real-world use of this solution is directly applicable to the frontline farmers who will
benefit directly from this and get the most out of their harvest. Our solution is ready for crop
disease detection and will be expanded to other crops, the dataset upon which the model is
trained is taken from “PlantVillage” and “AIKosh” (A government repository). The solution is
available in the form of a Mobile Application which will be user friendly in order to make the
experience simple and fluid.
The objective of our project is to develop a solution which helps in prediction oof crop
diseases, to solve the huge issue of crops going to waste because the problem was not identified
beforehand and as the traditional methods require time and very good knowledge, skills which
might me feasible sometimes. We have developed a working solution which can currently
identify the crop disease “Early Blight” & “Late Blight”. Our hybrid approach is highly
accurate in our testing. Doing the market survey, we have seen that only one major player is
present in this space and that is “Plantix”[3]. It can identify diseases in around 65 crops as of
now and is in partnership with the Agriculture Department Of India. Further work upon our
solution can be done and is planned for other crops, can be also brought into the market with
more advance features.
The MobileNetV2 model was used as a frozen base model for feature extraction. A custom head consisting of GlobalAveragePooling2D, Dense layer with ReLU activation, Dropout, and final softmax output was added.
Model Architecture:

Algorithm: Hybrid MobileNetV2-based Image Classification
Input: Dataset of labeled images (e.g., Potato leaf images)
Output: Trained model capable of classifying input images into one of the predefined categories

The proposed MobileNetV2-based model achieved 98.6% accuracy on the test set. Its average precision and recall were both ≈98.4%, yielding an F1-score of about 97.3% (macro-averaged over the three classes). In contrast, a baseline CNN (a simple custom network trained from scratch on the same data) reached only ~82.6% accuracy. Table 1 summarizes the comparison of metrics between the models. As shown, our transfer-learning model far outperforms the basic CNN in all metrics, validating the effectiveness of using a pretrained backbone and careful augmentation. These results are consistent with the literature: e.g. one study reported accuracies of 82.6% for a DenseNet-based baseline vs. 98.56% for a VGG19 transfer model [4].


In this study, we presented a transfer-learning based system for potato leaf disease classification. By using a pretrained MobileNetV2 backbone with a new classification head (global pooling, dense layers, dropout, softmax), and by applying extensive data augmentation, our model achieved 98.6% test accuracy on three-class potato disease detection. This substantially exceeds the ~82% accuracy of a comparable CNN trained from scratch. The results underscore the value of combining a lightweight pretrained network with careful preprocessing and augmentation. The final model has high precision and recall, indicating reliable performance.