I.INTRODUCTION
Plant diseases represent one of the most significant threats to global agriculture, affecting crop yield, food quality, and economic stability across both developed and developing regions. These diseases, caused by a variety of pathogens including fungi, bacteria, viruses, and nematodes, can spread rapidly under favorable environmental conditions, leading to substantial losses if not identified and treated promptly. Globally, plant diseases are responsible for up to 40% of annual crop losses, posing a serious threat to food security and farmer livelihoods. For farmers, especially those in resource-limited settings, early detection and appropriate management of plant diseases remain a persistent challenge due to limited access to expert knowledge, diagnostic tools, and real-time advisory services [1–3].
Traditional methods for disease identification often rely on visual inspection, expert consultation, and manual referencing of agronomic literature, which may be time-consuming, inconsistent, and inaccessible at scale. Moreover, even when accurate classification is achieved, determining the correct remedy—such as the selection of appropriate pesticides, cultural practices, or biological treatments—requires additional domain expertise and contextual awareness, such as crop type, disease severity, and environmental constraints. In this context, the integration of computational tools into plant disease management has opened new possibilities for precision agriculture. By combining automated disease classification with intelligent recommendation systems, it becomes feasible to deliver timely, localized, and actionable suggestions to farmers and agricultural advisors. Such systems can enhance decision-making by linking observed disease symptoms with curated remedy options, thereby improving crop health outcomes while minimizing the misuse of agrochemicals [4–7]. In modern agriculture, the early detection and accurate treatment of plant diseases are critical to ensuring crop health, yield stability, and sustainable farming practices. While advancements in machine learning have enabled high-accuracy classification of plant diseases from images and field data, the translation of these classifications into actionable remedy recommendations remains an unresolved challenge. Existing systems often stop at disease detection and fail to provide context-aware, trustworthy, and explainable treatment options, especially when environmental, crop-specific, and regional agronomic variables are involved. Moreover, most farmers—particularly in developing regions—lack access to expert consultation or timely guidance, leading to over-reliance on general-purpose chemical treatments. This not only increases production costs but also contributes to pesticide resistance, soil degradation, and environmental harm [8,9]. While most existing systems rely predominantly on image-based disease detection, they often ignore crucial contextual information such as crop growth stage, disease severity, and environmental conditions. Integrating such tabular data can significantly enhance recommendation quality and make predictions more interpretable. There is a pressing need for an integrated system that not only classifies plant diseases accurately but also recommends targeted remedies by incorporating domain knowledge, field-level data, and explainable AI models. Such a system should support transparent, adaptive, and data-driven decision-making, thereby bridging this critical gap. To address these challenges, this paper proposes an Explainable and Confidence-Aware Remedy Recommendation Framework that bridges the gap between disease detection and actionable treatment. The framework combines contextual feature encoding, sparse feature fusion, remedy ranking, and interpretability mechanisms to deliver accurate, transparent, and context-driven recommendations. Unlike conventional approaches, it provides not only diagnostic outputs but also interpretable, ranked remedy suggestions that align with real-world agronomic practices.
The agricultural sector is increasingly challenged by rising incidences of plant diseases, driven by climate variability, monoculture practices, and evolving pathogen resistance [10–13]. Early disease detection has benefited significantly from advances in artificial intelligence, particularly image-based classification models. However, the journey from disease diagnosis to actionable field treatment remains incomplete. Farmers, especially in resource-constrained or remote regions, often struggle to translate technical disease names into practical actions—such as choosing the right pesticide, applying organic alternatives, or adjusting agronomic practices. This disconnect between disease identification and remedy selection is a critical bottleneck in realizing the full potential of AI in precision agriculture. Existing advisory systems often lack context awareness, are difficult to interpret, or provide generic recommendations that overlook crop-specific, environmental, or regulatory constraints. Furthermore, the absence of explainability in many AI-driven systems erodes user trust, limiting adoption at scale. To address these gaps, this work proposes a modular, end-to-end remedy recommendation framework designed to integrate contextual information and deliver accurate, crop-specific treatment suggestions. The key contributions of this work are summarized as follows:
End-to-End Contextual Remedy Recommendation Framework: We propose a complete pipeline that combines contextual feature encoding, sparse feature fusion, and remedy ranking to bridge the gap between disease detection and actionable recommendations. Contextual Feature Interaction Encoder (CFIE): CFIE captures complex relationships between crop, disease, and environmental variables, providing rich feature representations for downstream processing. Sparse Contextual Fusion Module (SCFM): SCFM integrates heterogeneous contextual features in a computationally efficient manner, enhancing the representation quality for remedy ranking. Context-Aware Remedy Ranking Network (CARRN): A TabNet-based ranking network is employed to generate remedy recommendations based on contextual inputs, enabling accurate and scalable decision support. Lightweight and Modular Design: The proposed architecture is lightweight, making it suitable for future integration with image-based models or IoT systems for real-world deployment.
II.RELATED WORK
The integration of machine learning and artificial intelligence in agricultural diagnostics has led to substantial progress in automated plant disease detection and remedy recommendation systems. This section reviews state-of-the-art contributions that directly align with our objective of developing an intelligent system for disease classification and remedy guidance. Reference [14] presented an overview of how AI and ML algorithms are reshaping traditional agricultural practices by providing automated systems for disease classification, analysis, and prevention. Their work emphasizes increased productivity and reduced crop losses by leveraging data-driven diagnostics. Reference [15] introduced a comprehensive AI system that integrates CNNs and traditional machine learning models to address the limitations of manual disease identification. The study highlights how advanced architectures can provide early-stage detection and support downstream remedy recommendations, making the system scalable across environments. Reference [16] provided a broad review of AI-based plant disease tracking, exploring tools that integrate computer vision, satellite imagery, and IoT. Their emphasis on mobile apps and real-time prediction aligns with modern systems that provide remedy advice based on sensor and image data. Reference [17] conducted a comparative study on machine learning and deep learning models for disease diagnosis. Their analysis showed that deep learning models provide superior performance, especially in complex plant environments, enabling more accurate treatment guidance. Reference [18] reviewed decision support systems based on machine learning and remote sensing, showing how they help farmers choose appropriate treatments and localize disease intervention areas, enabling sustainable and cost-effective agriculture. Reference [19] highlighted the speed and scalability advantages of AI in real-time plant disease detection. Their work demonstrates that AI models can boost agricultural productivity by triggering early remedy actions, reducing the window for disease progression. Reference [20] introduced Agri Shield, a CNN-powered platform capable of diagnosing 20 + plant diseases with 93% accuracy and delivering sustainable, customized remedy recommendations. The paper stands out for combining performance with eco-conscious decision-making. Reference [21] proposed a three-stage AI system involving preprocessing, classification, and supplementary modules for disease detection and fertilizer recommendation. The system targets six plant families and 39 disease classes, demonstrating strong generalization capabilities. Reference [22] explored an end-to-end plant care system integrating diagnosis, remedy recommendation, and local service suggestions. Their solution includes image analysis, chatbot support, and Google Maps integration for accessible decision-making tools. Reference [23] provided a detailed survey of plant disease datasets, ML models, and application challenges. The work identifies limitations like data imbalance and scalability of remedy recommendation systems, guiding future model improvements. Reference [24] conducted an evaluation of various image processing and ML frameworks for disease classification. The comparative results inform model selection for reliable remedy generation, highlighting areas for improvement in interpretability. Reference [25] proposed a mobile application that combines CNN-based segmentation and disease classification with a recommendation engine for treatment and prevention. It showcases the potential of real-time, accessible AI tools for precision agricultural interventions. In [26], PlantCareNet, an automated end-to-end plant disease diagnostic system, was developed that combines deep learning with expert knowledge for precise detection and treatment guidance. It employs a CNN with Dense-100 and Dense-35 layers for accurate disease classification from leaf images. The system then provides both automated and expert-guided recommendations for timely and personalized intervention. In [27–30], AIDoctor Plant a lightweight, few-shot learning framework implemented as an Android application for plant disease diagnosis and remedy recommendation. It supports both English and Hindi interfaces and incorporates disease severity to provide tailored disease management advisories.
III.PROPOSED METHODOLOGY
Agriculture is leaving behind traditional ways of doing things and moving toward decisions based on data and intelligence. AI is being utilized to improve the precision agriculture for disease detection and recommendation of remedy toward it. Figure 1 shows the proposed model and AI-based remedy recommendation for multicrop disease.
Problem Formulation. The remedy recommendation task in Context-Aware Remedy Recommendation Network (ConReNet) is formulated as a top-k ranking problem. Given an input context vector:
the objective is to produce a ranked list of remedy options ordered by predicted relevance:The system employs a confidence-based abstention mechanism: if the maximum predicted probability falls below a threshold τ, the system abstains from making a recommendation, prioritizing reliability over coverage. This formulation is distinct from multi-label classification and traditional learning-to-rank approaches. The modular pipeline processes input as:
Each module is independently trainable and replaceable, enabling seamless future integration with image-based classifiers or IoT sensor data.
Architecture Specification. The detailed architecture of ConReNet is as follows:
| CFIE | 2-layer transformer encoder, 4 attention heads, embedding dim d = 64, ReLU-activated FFN with hidden dim 128 |
| SCFM | Sparse masked attention with learnable Q, K, V projection matrices; binary adaptive sparsity mask for computational efficiency |
| CARRN | TabNet-based architecture, N_steps = 3, relaxation factor γ = 1.5, sequential attention for remedy ranking |
| Pipeline | Tabular context → CFIE → SCFM → CARRN → Ranked remedies with confidence scores |
The complete pipeline accepts tabular contextual features as input and outputs ranked remedy recommendations with associated confidence scores.
Figure 1 illustrates a high-level AI-driven agricultural decision support pipeline, consisting of data acquisition, data preparation, data processing, decision-making, and service delivery stages. The proposed framework is situated primarily within the Data Processing and Decision Making phases, highlighted in red. At this stage, contextual tabular data—derived from historical records, farmer experience, and environmental factors—are processed through the CFIE and the SCFM to capture complex feature interactions. These representations are then passed to the CARRN, which leverages CARRN to generate ranked remedy recommendations. Finally, the Interpretability Layer (IL) integrates intrinsic feature masks and post hoc explanation techniques (e.g., SHAP, LIME) to provide transparent, human-understandable explanations for each recommendation. This structured integration ensures that remedy suggestions are not only accurate but also auditable and aligned with domain knowledge, facilitating practical decision-making by farmers, agronomists, and other agricultural service stakeholders.
Figure 2 presents the model training and evaluation workflow adopted in this study. The process begins with data preprocessing, including feature selection, handling missing values, and encoding categorical variables to prepare the contextual agricultural dataset. After splitting the data into training and testing sets, the CFIE extracts complex cross-feature dependencies, while the SCFM integrates heterogeneous contextual signals. These representations are passed to the CARRN to learn remedy ranking patterns based on disease, crop, and environmental features. Model training is followed by cross-validation to assess generalization and parameter tuning to optimize performance. This loop continues until the training goal is achieved. Once training converges, the model undergoes testing and performance assessment, using relevant evaluation metrics to ensure robustness and accuracy of remedy recommendations. This structured workflow enables the development of a well-validated, interpretable, and domain-aligned recommendation model.
Fig. 2. Proposed model workflow considering the data.
A.DATA PREPROCESSING
Data preprocessing includes Normalization, dealing with missing values, and encoding approaches are all parts of data pretreatment that make sure the data work with DL models. This multi-modal dataset offers a solid basis for recording many connections that exist within the agricultural ecosystem. The steps listed below are part of data preprocessing: The first step is to clean the data, which means finding and fixing any missing or incomplete numbers. In real-world agricultural data, it is usual for entries to be missing because sensors do not work right or records are not always accurate. Mean or median imputation, for example, is used to fill in these gaps, depending on what kind of feature it is. Normalization is also used to bring numerical data like temperature, moisture, and nutrient levels into a regular range, which is usually between 0 and 1. This makes sure that no one characteristic stands out in model learning because of its size. Removing outliers is another important step. Standard deviation thresholds or visual analysis approaches are used to find extreme or uncommon values in the dataset that are produced by bad sensor readings or rare environmental conditions. If possible, these outliers are fixed; if not, they are taken out so they do not affect the model’s predictions. The dataset has categorical information as well, including crop labels (rice, wheat, maize, etc.). To turn these categories into numbers, encoding techniques are applied. This is done by employing label encoding or one-hot encoding, which makes the data work with machine learning algorithms that need numbers as input.
B.SPARSE CONTEXTUAL FUSION MODULE (SCFM)
SCFM is a neural network architecture designed to efficiently integrate information from multiple data sources. It was chosen for its effectiveness in managing complex agricultural datasets, which involve overlapping variables, dynamic conditions, and deeply connected factors influencing crop performance and resource utilization. Unlike traditional machine learning models such as Random Forests, Support Vector Machines (SVMs), and Multilayer Perceptron (MLPs), SCFM leverages transformer-based attention mechanisms that can capture long-range dependencies among features. Interdependence of Features and long-range Attention Weather, soil qualities, and records of farmer activity are all examples of different inputs that make up agricultural data. SCFM’s attention mechanism does a better job of grasping long-range dependencies than standard models because it properly captures the links between these properties. This leads to predictions that are more accurate and reliable. Fusion of efficient features SCFM has a special feature fusion layer after the self-attention module that cleans up and combines complicated information from several sources. This approach makes it easier for the model to find important patterns, which makes its predictions more accurate and reliable.
Algorithm 1. Sparse Weighted Fusion Transformer
| Step 1 | |
| Step 2 | |
| Step 3 | |
| Step 4 | |
| Step 5 | |
| Step 6 | |
| Return |
C.CONTEXTUAL FEATURE INTERACTION ENCODER (CFIE)
It is processing because they are good at seeing local patterns in fixed spatial positions. This method does not work well with agricultural data, which is usually in Table I form and does not have a regular structure or geographic order. CFIE gets around this problem by adopting a self-attention process that looks at how features like soil moisture, temperature, and humidity are related to each other. First, each feature is changed into a rich, high-dimensional representation. Then, it goes via several transformer encoder layers. These layers help the model learn patterns in the data that are useful and take into account the context. CFIE is better than CNNs or regular fully connected networks for representing the complicated, nonlinear interactions that are often seen in agricultural datasets. It shows that it can generalize well, adapt to new situations, and handle real-world, noisy sensor data well. Because of this, CFIE is great for things like analyzing soil, planning irrigation, and making decisions about crops.
Table I. Contextual Feature Interaction Encoder (CFIE)
| Input | , , , , |
|---|---|
| Step 1 | Feature embedding: transform the input features into a higher dimension representation through linear transformation |
| Step 2 | Transformation of encoder processes the embedded features through the within two transformer encoder layers. each layer consists of multi-head self-attention feed-forward network |
| Step 3 | Classification Layer: After going through the transformer encoder, the last feature is linked to the output classes: |
| Step 4 | Training Process: a. Loss Function (Cross Entropy): For multiclass classification the loss function computed as: |
| Step 5 | Training loop: For each epoch, update the model parameters: |
where is the input tabular data of shape and is the learning weight matrix for embedding. is a transformer encoder with self-attention layers. is a fully connected layer for classification, and is a variable that supervised learning target labels
Feature embedding: Here, is a learnable weight matrix for the embedding, denotes the bias term, and denotes the embedded representation of input in Equation (1). Multi-head self-attention: Equation (2) is learnable weights for query, key, and value. denotes a key dimension in Equation (2). Multi-head attention output: denotes the output projection matrix in Equation (3). FFN represents the feed-forward network. However, and represent the weight matrices, and denote the biases, and denotes the ReLU activation function in Equation (4). Classification layer: Here, B denotes the output from the transformer encoder, and and denote learnable classification parameter in Equation (5). Loss function denotes the number of classes and denotes the true label with Adam optimization . Where denotes the learning rate; furthermore, training loop is given as in Equation (6). Where denotes the output and denotes the target labels in Equation (7):
D.CONTEXT-REMEDY RANKING NETWORK + INTERPRETABILITY LAYER AWARE
The following algorithm outlines the prediction and local explanation procedure applied within the CARRN + IL block. Given a new contextual input sample, the trained model predicts the most suitable remedy and then generates a local feature importance explanation using the LIME method. This ensures that each recommendation is accompanied by interpretable evidence, enabling transparent decision-making. The CARRN + IL algorithm integrates predictive intelligence with interpretability by coupling the TabNet-based ranking model with LIME-based local explanation. This allows the system to not only predict optimal remedies based on contextual agricultural data but also explain why a particular remedy was recommended, increasing transparency and trust for agronomists and farmers. Table II shows that Context-Remedy Ranking Network + Interpretability Layer Aware algorithm.
Table II. Context-Remedy Ranking Network + Interpretability Layer Aware Algorithm
| Input | |
|---|---|
| Step 1 | Preprocessing: Normalize and preprocess according on how the training data is spread out. |
| Step 2 | Prediction using Tn Pass with the trained Tn model |
| Step 3 | Generate LIME exp: |
| Step 4 | Extraction |
| Step 5 | Return and : output a with feature importance |
IV.PERFORMANCE EVALUATION
The proposed ConReNet framework effectively bridges the gap between plant disease detection and actionable remedy recommendation by leveraging contextual agricultural data. CFIE enhances representation by capturing complex crop–disease–environment interactions, while SCFM efficiently fuses heterogeneous features with minimal overhead. CARRN enables accurate ranking of treatment options, reflecting real-world decision-making scenarios. The modular and lightweight design facilitates integration with image-based models and IoT systems for scalable deployment. However, real-world performance may depend on the availability and quality of contextual data.
A.DATASET DETAILS
In this study, we utilized a synthetically generated multicrop dataset to simulate realistic agricultural conditions for disease detection and remedy recommendation. The dataset encompassed four major crops—Corn (4188 samples), Tomato (3000 samples), Rice (2658 samples), and Sugarcane (1000 samples)—with disease class distributions aligned to observed field prevalence. For Corn, the classes included Healthy (25%), Common Rust (30%), Gray Leaf Spot (25%), and Blight (20%). Tomato comprised five categories: Healthy (20%), Early Blight (25%), Late Blight (25%), Leaf Mold (15%), and Septoria Leaf Spot (15%). Rice included Healthy (25%), Brown Spot (25%), Leaf Blast (30%), and Hispa (20%). Sugarcane data were balanced across Healthy, Red Rot, Mosaic, and Rust classes. Each sample contained not only disease labels but also contextual metadata, including model confidence scores (ranging from 0.55–0.99 based on a Beta distribution), leaf area affected percentage (severity, capped at 45%), growth stage (early, mid, and late with probabilities 0.35, 0.45, and 0.20), and region identifiers. These multimodal attributes enabled disease-aware as well as context-sensitive remedy recommendations. The combined dataset was stored in a unified Parquet format and stratified into training, validation, and test splits, with validation sets used for calibration and test sets reserved for final evaluation of classification performance, coverage, abstention, and explainability.
Justification for Synthetic Data. The use of synthetic data in this study is a deliberate methodological choice for initial architecture validation. Currently, no publicly available benchmark dataset exists that simultaneously provides crop type, disease labels, severity levels, growth stage, environmental context, and remedy ground-truth labels—all of which are required to evaluate a context-aware remedy recommendation system. Existing public datasets such as PlantVillage and PlantDoc provide image data with disease labels but lack the contextual metadata and remedy annotations needed for this task. The synthetic dataset was carefully constructed to emulate realistic agricultural conditions: disease class distributions were aligned with observed field prevalence ratios from published agronomic literature, confidence scores followed Beta distributions (0.55–0.99), severity values were capped at agronomically plausible levels (45%), and growth stage probabilities (early: 0.35, mid: 0.45, and late: 0.20) reflect typical crop phenology patterns. Remedy ground-truth labels were constructed based on established crop–disease–remedy mappings derived from standard agricultural extension guidelines and crop protection handbooks. For example, Common Rust in Corn maps to fungicide-based chemical treatment as the primary remedy, with organic and integrated alternatives. The modular design of ConReNet enables seamless retraining on real-world datasets without architectural modification.
B.RESULTS
This section presents the performance evaluation of proposed model considering the various metrics. Recommendation vs Abstained: The stacked bar chart visualizes the distribution of outputs generated by the remedy recommendation system across four crop-specific datasets—Sugarcane, Maize, Tomato, and Rice. A significant proportion of cases resulted in successful remedy recommendations, with relatively few instances marked as abstentions due to low model confidence. Tomato and Maize datasets exhibited the highest number of valid recommendations, reflecting the strong classification performance and high-quality disease labeling in these datasets. Sugarcane and Rice, while showing slightly lower totals, still delivered over 90% coverage, indicating the model’s ability to generalize and recommend confidently across varying crop domains.
The presence of abstentions is intentional and valuable—it ensures that recommendations are only made when the model exceeds a defined confidence threshold (τ), thereby prioritizing reliability and reducing the risk of incorrect treatments. This balance between actionable output and cautious abstention is essential in agricultural decision support systems, where false recommendations can lead to crop loss or environmental harm. Overall, the results underscore the system’s capability to provide robust, high-confidence, and responsible remedy recommendations, fulfilling the core objective of supporting disease-specific agricultural interventions through explainable AI. Figure 3 shows the Stacked Bar Chart: recommendation vs Abstained.
C.COVERAGE VS ABSTENTION
This line chart compares the coverage (percentage of cases where the system issued a remedy recommendation) against the abstention rate (cases where the system withheld recommendation due to low confidence) across four crops: Sugarcane, Maize, Tomato, and Rice. The results show consistently high coverage across all datasets, with Tomato achieving the peak at 96%, followed by Maize (94%), Sugarcane (91%), and Rice (90%). These values indicate that the system successfully generates recommendations for the majority of disease classification outputs, reinforcing its utility as a decision support tool in agricultural practice. On the other hand, abstention rates remain acceptably low, ranging from just 4% (Tomato) to 10% (Rice). This abstention mechanism is a critical safety feature: it ensures that the system only provides remedy suggestions when classification confidence exceeds a predefined threshold (τ), thereby avoiding potentially harmful or incorrect recommendations. Together, these metrics demonstrate that the proposed system achieves an effective trade-off between coverage and caution, offering high recommendation availability while maintaining decision integrity and reliability. This directly supports the objective of developing a trustworthy and context-aware remedy recommendation system for managing classified plant diseases. Figure 4 shows that Coverage vs Abstention Rate by Crop.
D.REMEDY RECOMMENDATIONS DISTRIBUTIONS
This chart presents the breakdown of remedy recommendations into three categories—Chemical, Organic, and Integrated—across four major crops: Sugarcane, Maize, Tomato, and Rice. The distribution reflects the system’s adaptive recommendation engine, which adjusts its output based on the disease type, environmental conditions, and user preferences. The Tomato and Maize datasets received the most diverse set of recommendations, with a relatively balanced mix of all three types. This showcases the system’s capacity to analyze complex, crop-specific patterns and offer personalized treatment strategies. For instance, integrated options (combining biological and chemical control) were more prevalent in Tomato and Maize, where disease complexity often warrants multifaceted interventions. Sugarcane and Rice displayed slightly fewer integrated suggestions, with a heavier reliance on either chemical or organic remedies. This trend is consistent with the nature of disease progression and available agronomic practices for those crops, suggesting that the model is context-sensitive rather than uniform in its outputs. This variation in recommendation type is critical to real-world usability, as it allows the system to support not only disease control but also sustainability goals, regulatory compliance, and farmer preferences. It aligns directly with your objective of developing a remedy recommendation system that is not only accurate but also flexible and actionable in varied agricultural contexts. Figure 5 shows that distribution of Recommendation Types by Crop.
E.PERFORMANCE ON SUGARCANE
The classification model trained on the Sugarcane Disease Dataset achieved a precision of 0.92, recall of 0.88, and an F1-score of 0.90, indicating a high level of reliability in distinguishing among key disease classes such as Red Rot, Mosaic, and Rust. These strong metrics directly contribute to the effectiveness of the remedy recommendation system. A high precision ensures that remedies are suggested only when the disease is correctly identified, minimizing the risk of inappropriate treatments. Meanwhile, the high recall indicates the model’s ability to detect most diseased cases, reducing the chances of untreated symptoms. This balance ensures that the system confidently recommends precise, disease-specific interventions for sugarcane growers, promoting timely and informed management decisions. Figure 6 shows that sugarcane dataset: Classification Metrics.
F.PERFORMANCE ON MAIZE
The Maize model displays robust classification capability, with precision of 0.95, recall of 0.91, and an F1-score of 0.93. These results demonstrate the model’s strong ability to distinguish between diseases like Common Rust, Gray Leaf Spot, and Blight. For the downstream recommendation task, this performance translates into high-confidence remedy suggestions with minimal misclassification. The slightly higher precision further ensures that treatment plans—such as fungicide applications—are not wasted on healthy plants or misidentified diseases. Such reliability in early diagnosis supports the system’s core goal: to facilitate smart, trustworthy remedy recommendations for disease-affected maize crops under real-world conditions. Figure 7 shows that maize Dataset: Classification Metrics.
G.PERFORMANCE ON TOMATO DATASET
With precision reaching 0.97, recall at 0.93, and an F1-score of 0.95, the Tomato disease classification model demonstrates outstanding performance. This is particularly important given the visual similarity between diseases like Early Blight and Late Blight, which require distinct treatment strategies. The high F1-score confirms the model’s balanced ability to both detect and correctly label disease instances, minimizing both false negatives and false positives. This high diagnostic fidelity enables the recommendation system to suggest highly tailored and effective remedies, improving both disease management and yield outcomes in tomato cultivation. It directly fulfills the objective of delivering fine-grained, context-aware recommendations based on accurate classification. Figure 8 shows that tomato Dataset: Classification Metrics.
H.PERFORMANCE ON RICE DATASET
Despite being based on a slightly smaller dataset, the Rice model performs reliably with precision of 0.90, recall of 0.87, and an F1-score of 0.88. While slightly lower than other crops, these metrics are sufficient to support accurate remedy generation for diseases like Brown Spot, Leaf Blast, and Hispa. The model captures most disease instances while maintaining a low rate of false alarms, which is crucial for avoiding unnecessary or harmful treatments. Thus, even with moderate complexity, the model allows the recommendation engine to deliver relevant treatment advice, supporting farmers with practical and confidence-backed decisions for rice disease management. Figure 9 shows that Rice Dataset: Classification Metrics.
I.ABLATION STUDY
To validate the contribution of each module, we conducted an ablation study by systematically removing individual components. Table III presents the results. Removing CFIE (replaced by simple linear embedding) reduces F1-score by 4–6% across crops, confirming the importance of contextual feature interaction modeling. Removing SCFM (using direct concatenation instead) degrades performance by 3–5%, demonstrating the value of sparse fusion for heterogeneous feature aggregation. Disabling the abstention mechanism increases coverage to 100% but reduces precision by 5–8%, validating the safety-oriented design of the confidence threshold. The full ConReNet pipeline consistently achieves the best balanced performance across all metrics and crop datasets.
Table III. Ablation study results (F1-score across crops)
| Configuration | Sugarcane | Maize | Tomato | Rice |
|---|---|---|---|---|
| Full ConReNet | 0.90 | 0.93 | 0.95 | 0.88 |
| Without CFIE | 0.84 | 0.89 | 0.90 | 0.83 |
| Without SCFM | 0.86 | 0.90 | 0.91 | 0.85 |
| Without Abstention* | 0.85 | 0.88 | 0.90 | 0.82 |
* Precision reported; coverage = 100% but precision drops 5–8%
J.RECOMMENDATION-SPECIFIC EVALUATION
Since ConReNet’s primary contribution is ranked remedy recommendation, we evaluate using standard recommendation metrics. Table IV reports Top-1 Accuracy, Top-3 Accuracy, Mean Reciprocal Rank (MRR), and Normalized Discounted Cumulative Gain (NDCG@3) for each crop dataset. ConReNet achieves Top-1 accuracy exceeding 88% across all crops, with Top-3 accuracy reaching 96–99%. MRR values above 0.91 and NDCG@3 above 0.93 confirm that the system ranks the correct remedy highly across diverse crop–disease conditions.
Table IV. Recommendation-specific metrics
| Crop | Top-1 Acc | Top-3 Acc | MRR | NDCG@3 |
|---|---|---|---|---|
| Sugarcane | 0.88 | 0.96 | 0.91 | 0.93 |
| Maize | 0.93 | 0.98 | 0.95 | 0.96 |
| Tomato | 0.95 | 0.99 | 0.96 | 0.97 |
| Rice | 0.89 | 0.97 | 0.92 | 0.94 |
K.COMPARATIVE PERFORMANCE AGAINST BASELINES
Table V compares ConReNet against four baseline approaches: Random Forest (RF), Gradient Boosted Trees (XGBoost), Standard Multi-Layer Perceptron (MLP), and TabNet without contextual fusion modules. All models were trained on the same synthetic datasets with identical train–test splits. ConReNet consistently outperforms all baselines across all crop datasets, particularly in Top-3 accuracy and NDCG@3, demonstrating the value of the CFIE and SCFM modules for contextual feature processing. The performance gap is most pronounced in Sugarcane and Rice datasets, where contextual dependencies are more complex.
Table V. Comparative performance against baselines
| Method | Avg F1-Score | Avg NDCG@3 | Avg Top-3 Acc |
|---|---|---|---|
| Random Forest | 0.82 | 0.84 | 0.89 |
| XGBoost | 0.85 | 0.87 | 0.91 |
| MLP | 0.83 | 0.85 | 0.88 |
| TabNet (no fusion) | 0.87 | 0.90 | 0.93 |
| ConReNet (Proposed) | 0.92 | 0.95 | 0.98 |
L.DISCUSSION
The performance of the proposed ConReNet framework was evaluated using synthetic datasets designed to emulate realistic crop–disease–remedy interactions across multiple crop types and environmental settings. The evaluation focused on remedy recommendation accuracy, coverage, and abstention behavior, reflecting both the effectiveness of the architectural modules and their suitability for practical agricultural decision support. The results demonstrate that ConReNet achieves high overall accuracy in remedy recommendation, with stable performance across multiple synthetic data configurations. This indicates that the architecture successfully learns meaningful contextual dependencies, even in scenarios where data distributions vary between crop–disease pairs. Notably, the CFIE plays a significant role in capturing these dependencies. By explicitly modeling interactions between crop characteristics, disease severity, and environmental factors, CFIE enables the framework to differentiate between similar symptom profiles that arise under different contextual conditions, leading to more accurate remedy selection. The SCFM further enhances performance by efficiently aggregating heterogeneous contextual signals while maintaining computational efficiency. This is particularly evident in experiments involving varied feature sets, where SCFM contributed to improved consistency without incurring significant complexity overhead. The ability to fuse multiple sources of contextual information makes SCFM an effective intermediate representation layer, especially for future real-world integrations with additional data streams such as sensor or weather data. The CARRN enables the system to rank multiple treatment options rather than relying on a single-class prediction. This ranking-based formulation reflects real-world agricultural practices, where several remedies may be viable depending on resource availability or crop stage. Experimental results show that this approach improves decision coverage, ensuring that the system provides meaningful recommendations even under uncertain or partially overlapping disease conditions. The abstention mechanism employed during evaluation allows the model to withhold low-confidence predictions, resulting in a controlled trade-off between accuracy and coverage. By abstaining on uncertain cases, the system maintains high reliability on the accepted predictions, which is crucial for building trust in agricultural recommendation systems. Across experiments, ConReNet exhibited balanced behavior, achieving high coverage while limiting abstentions to challenging edge cases. Overall, the results validate the effectiveness and adaptability of ConReNet’s architecture. The CFIE and SCFM modules contribute to strong representational learning, while CARRN ensures contextually grounded remedy ranking. Although the experiments are based on synthetic data, the observed performance trends indicate that the proposed framework is structurally well suited for real-world agricultural datasets, particularly when combined with image-based classifiers or IoT sensor inputs. Future work will focus on validating these findings using large-scale, field-collected datasets to further assess generalization and robustness under operational conditions.
V.CONCLUSION
This paper presented ConReNet, a modular and lightweight ConReNet designed to address the gap between plant disease detection and actionable treatment recommendation. Unlike existing approaches that focus primarily on image-based classification, ConReNet leverages contextual agricultural data—including crop characteristics, disease severity, and environmental variables—to generate accurate, ranked remedy recommendations. The framework integrates three core components: the CFIE for extracting complex feature dependencies, the SCFM for efficient aggregation of heterogeneous inputs, and the CARRN for remedy prioritization. Synthetic datasets simulating realistic crop–disease–remedy interactions were used to evaluate the model’s performance, demonstrating its capability to effectively learn contextual relationships and support precise decision-making. The lightweight and modular design of ConReNet makes it well suited for future integration with image-based disease classifiers, sensor data, or IoT-driven agricultural platforms. As future work, the framework can be extended to incorporate real-world datasets across multiple crop types, optimize recommendation strategies under uncertainty, and support large-scale deployment in precision agriculture systems.







