An Explainable Hybrid Deep Learning Model for Soil Fertility Classification and Sustainable Agricultural Recommendations
Abstract
In agriculture, soil fertility has a significant impact on farmer welfare. Soil fertility is the primary factor that determines crop production. Climate change, water resources, soil nutrients, and other environmental elements affect the soil fertility. In real time, the process of evaluating soil fertility is challenging and time-consuming. Many studies utilized Machine Learning-based classification and regression processes to determine soil fertility levels. Existing research has shown poor performance, time-consuming processes, and a lack of sustainable crop recommendations, leading to inefficient soil fertility classification and crop recommendations. To overcome these limitations, a novel Explainable Dual Attention-based Dense Capsule Dilated Depthwise Convolutional (EDA_DCDDC) method is introduced in this research. In addition, a sustainable agriculture recommendation system, based on fuzzy logic, is employed to regain soil fertility. Pre-processing methods such as Min-Max Normalization and the Improved Synthetic Minority Oversampling Technique (ISMOTE) are used to maintain data standards and balance minority classes, respectively. This model utilizes Dense Capsules to extract complex features. Then, spatial and channel feature modules are selected and incorporated to reduce dimensionality issues. Dilated Depthwise Convolution (DDC) is used to classify features into “Less Fertile”, “Fertile”, and “Highly Fertile” soils. After the classification process, fuzzy rules are employed to recommend season-based crops according to the soil fertility classes. Finally, SHapley Additive exPlanations (SHAP) are employed to reveal the results. In the experimental analysis, a well-defined soil fertility dataset is processed, producing a classification accuracy of 98.45% and an F1-score of 97.73%, resulting in more reliable performance.