Open Access
ARTICLE
Leveraging Gradient-Based Optimizer and Deep Learning for Automated Soil Classification Model
1 Department of Information Systems, College of Computer and Information Sciences, Princess Nourah bint Abdulrahman University, P. O. Box 84428, Riyadh, 11671, Saudi Arabia
2 Department of Computer and Self Development, Preparatory Year Deanship, Prince Sattam bin Abdulaziz University, AlKharj, Saudi Arabia
3 Department of Software Engineering, College of Computer and Information Sciences, King Saud University, P.O. box 103786, Riyadh, 11543, Saudi Arabia
4 Department of Computer Science, Faculty of Computers and Information Technology, Future University in Egypt, New Cairo, 11835, Egypt
* Corresponding Author: Mohammed Rizwanullah. Email:
Computers, Materials & Continua 2023, 76(1), 975-992. https://doi.org/10.32604/cmc.2023.037936
Received 22 November 2022; Accepted 11 April 2023; Issue published 08 June 2023
Abstract
Soil classification is one of the emanating topics and major concerns in many countries. As the population has been increasing at a rapid pace, the demand for food also increases dynamically. Common approaches used by agriculturalists are inadequate to satisfy the rising demand, and thus they have hindered soil cultivation. There comes a demand for computer-related soil classification methods to support agriculturalists. This study introduces a Gradient-Based Optimizer and Deep Learning (DL) for Automated Soil Classification (GBODL-ASC) technique. The presented GBODL-ASC technique identifies various kinds of soil using DL and computer vision approaches. In the presented GBODL-ASC technique, three major processes are involved. At the initial stage, the presented GBODL-ASC technique applies the GBO algorithm with the EfficientNet prototype to generate feature vectors. For soil categorization, the GBODL-ASC procedure uses an arithmetic optimization algorithm (AOA) with a Back Propagation Neural Network (BPNN) model. The design of GBO and AOA algorithms assist in the proper selection of parameter values for the EfficientNet and BPNN models, respectively. To demonstrate the significant soil classification outcomes of the GBODL-ASC methodology, a wide-ranging simulation analysis is performed on a soil dataset comprising 156 images and five classes. The simulation values show the betterment of the GBODL-ASC model through other models with maximum precision of 95.64%.Keywords
Soil classification is the most emanating topic and a major affair in several countries, and its features play a crucial role in estimating different agriculture-relevant jobs and, thus, have an influence on the engineering sector of farming [1]. Perceiving soil features might lay out valuable data to develop well-circumspect management and better logical system and utilize them in farming sectors. Climate, Biota, and ecological antiquity were the major aspect that affected the physical and chemical characteristics of the soil excessively (regional and continental scale), whereas crucial factors would be topography and human activity controls soil characteristics at a minimal level [2]. The important component of soil is the distinct fragments (quartz grains, plant fragments, and clay minerals) that could be observed in disintegration using an optical microscope. Soil structure can be intrinsically linked to the shape, sharpness, voids, spatial arrangement, contrast frequency, and size of crucial particles [3]. Furthermore, a lot of traits are based on the magnification and constituent alignment used. Traditionally, there exist different techniques for determining the colour and texture of the soil. Several approaches for field and laboratory use are the Munsell colour chart method, pipette technique, elutriation technique, and decantation technique [4]. Also, for soil categorization, the triangle technique exists. The disadvantage of this method is such; these are time-consuming and labour-intensive. Thus, soil classification has received considerable interest in the utilization of image processing and computer vision-oriented techniques for soil categorization [5].
Deep learning (DL) is modelled by simulating the anatomical structure of the human brain and has made breakthroughs in applications, including speech recognition and image recognition [6]. The widely applied classification technique, Support Vector Machines (SVMs), is a Machine Learnings (MLs) procedure related to statistical learning concepts. The concept behindhand SVM is that the input sample was projected from lower to higher dimension space through non-linear mapping that allows information in the lower dimensional space that isn’t linearly separable to convert into a linearly separable dataset in the higher dimensional space [7]. In contrast, the DL algorithm is to convert the original signals layer-wise and converts the feature representations in the original to novel feature space. Also, it learns to obtain the hierarchical feature representations automatically, and the classification outcome is accomplished [8]. Convolution Neural Network (CNN) is a network architecture in the DL method that has better effects in the classification of images and makes the CNN technique extensively applied in several domains [9]. CNN is a non-destructive and emerging technique for the applications of quality monitoring of agriculture products, involves the grading and detection of vegetables, fruits, and so on, and has accomplished better outcomes [10]. Usually, CNN is utilized for classification modelling with a larger sample size.
This study introduces a Gradient-Based Optimizer and Deep Learning for Automated Soil Classification (GBODL-ASC) technique. The presented GBODL-ASC technique identifies various kinds of soil using DL and computer vision approaches. In the presented GBODL-ASC technique, three significant processes are involved. At the initial stage, the presented GBODL-ASC technique applies the GBO algorithm with the EfficientNet prototype to generate aspect vectors. For soil categorization, the GBODL-ASC method uses Arithmetic Optimization Algorithms (AOAs) with Back Propagation Neural Networks (BPNNs) model. The design of GBO and AOA algorithms assist in the proper selection of parameter values for the EfficientNet and BPNN models, respectively. To demonstrate the significant soil classification outcomes of the GBODL-ASC methodology, a wide-ranging simulation analysis is performed.
The balance research is arranged in the following. Section 2 defines the literature reviewing, and Section 3 offers the suggested models. Next, Section 4 provides experimental validation, and Section 5 completes the study.
In [11], an innovative optimized multi-output Generalized Feed-Forward Neural Networks (GFNNs) structure utilizing fifty-eight Piezocone Penetration Test Points (CPTs) to produce a digitalized soil categories map in the South-West region of Sweden was formulated. The presented GFNN structure was assisted by the Generalized Shunting Neurons (GSNs) method calculating units for raising the ability of non-linear restrictions of categorized paradigms. In [12], the author modelled a technique that forecasts soil sequence with land category, and as per the assessment, this can recommend suitable crops. Numerous ML techniques like Gaussian Kernel-based SVM, Weighted K-Nearest Neighbor (k-NN), and Bagged Trees were employed for categorizing soil. In [13], the soil test report values will be employed for classifying numerous soil features like village-wise soil fertility indices of Available Boron (B), Phosphorus (P), Organic Carbon (OC), and Available Potassium (K), along with the parameter Soil Reaction (pH). These five classifier issues were solved with the use of fast learning classifier approach called Extreme Learning Machine (ELM) with various activation functions, namely triangular basis, Gaussian radial basis, hyperbolic tangent, hard limit, and sine-squared.
Escorcia-Gutierrez et al. [14] intend to devise an intellectual soil nutrition and pH categorization utilizing the Weighted Voting Ensemble DL (ISNpHC-WVE) method. The target of devised ISNpHC-WVE approach is to categorize the presence of nutrients and pH levels existing in the soil. Furthermore, 3 DL techniques named Bidirectional Long Short-Term Memory’s (BiLSTMs), Gated Recurrent Units (GRUs), and Deep Belief Networks (DBNs) are employed for predictive analysis. Moreover, the hyper-parameter optimization of 3 DL techniques has been carried out through the manta ray foraging optimization (MRFO) method. Dinh et al. [15] formulated an ML method related to SVM for soil erosion contemplation. The SVM acts as the chief predictive equipment accomplishing a non-linear function that maps take influencing elements for precise forecasts. Additionally, history-related adaptive discrepancy evolution, including Linear Population Size Reduction and Population-Wide Inertia Term (L-SHADE-PWI), was leveraged for identifying the finest set of constraints for SVM for enhancing the prototype’s accuracy.
Vu et al. [16] devise an advanced data-driven approach that depends on the Social Spider Algorithms (SSAs), Metaheuristic and Multivariate Adaptive Regression Splines (MARS), which are used to estimate soil erosion susceptibility. Temporarily, the SSA meta-heuristic was intended to enhance the MARS efficiency by spontaneously tuning its hyperparameter. In [17], a new technique was formulated in this work for zonation and soil classification in 2D vertical cross-section utilizing Cone Penetration Test (CPT). The modelled technique has three main components: soil layer or zone delineation utilizing an edge recognition algorithm, 2D interpolation of CPT Datasets utilizing 2D Bayesian compressive sampling, determining Soil Behavior Type (SBT) utilizing an SBT chart at all locations in the 2D section, which includes areas with unsampled locations and measurements.
In this research, an automatic soil categorization technique, named GBODL-ASC technique, using DL and computer vision approaches, is presented. In the presented GBODL-ASC technique, three major processes are involved, namely EfficientNet feature extraction, BPNN classification, and parameter optimization. Fig. 1 illustrates the working technique of the GBODL-ASC method.
3.1 Module I: Feature Extraction Process
The introduced GBODL-ASC method applies the EfficientNet model to generate feature vectors. EffcientNet is developed to optimize the efficiency and accuracy of CNN through a uniform scaling mechanism to each dimension, viz., network resolution, depth, and width, yet scaling down the model [18]. Generally, convNet scales up or down by altering the resolution, depth, or width of the network, but scaling individual dimensions of the network augments accuracy. Hence, to accomplish the best efficiency and accuracy, it is significant to uniformly scale each dimension of network depth, width, and resolution.
The compound scale model uses grid searching to discover the associations amongst the distinct scale dimension of the baseline networking in static resource constraints. In the presented technique, an adequate scaling feature for depth, width, and resolution dimension is defined. This coefficient was employed for scaling the baseline networking to the anticipated goal. This kind of structure is named the EfficientNet model, and it has eight dissimilar variations between EfficientNet B0 to EfficientNet B7. The precision of EfficientNet rises explicitly as the procedure count rises. They were termed EfficientNet since they accomplished the best efficiency and accuracy than the preceding CNN.
The essential component of the EfficientNet families can be the inverted bottleneck MBConv that is resulting from MobileNetV2 developed. The block of MBconv was an inverted residual blocking encompassing levels that initially widened and expanded the channel. Hence the straight connection is utilized between bottlenecks that interconnect a less amount of channels when compared to the expansion layer. Additionally, this framework employs in-depth separable convolution that brings down computation by nearly a
whereas
• Utilizing determined
• Define the better value for
Then, the classifier outcomes attained by distinct TL methods are examined. From the outcomes, it is evident that EfficientNet generates best outcomes than others.
To regulate the hyper-parameters associated with the EfficientNet procedure, the GBO technique was exploited. Generally, the GBO stimulates gradient-related Newton’s technique [19]. The GBO is based on two operators for updating the solutions, namely the Gradient Search Rules (GSRs) and the Local Escaping Operators (LEOs). Initially, it is utilized for improving the exploration and then improving the exploitation capability. The primary process in GBO is to create a population
In Eq. (4),
From the expression,
whereas:
Now,
where
By using
In Eq. (13),
Now,
whereas
In Eq. (16),
3.2 Module II: Soil Classification Process
For soil classification, the feature vectors are passed into the BPNN prototype. The BPNN is a NN form that is extensively applied in different scenarios due to its self-adaptive capabilities and stronger non-linear mapping [20]. It comprises implicit, output, and input layers. Where
In Eq. (17),
In Eq. (18),
In Eq. (19), function
Finally, the BPNN parameters can be chosen optimally by the AOA. AOA uses mathematical operators in arithmetic [21]. AOA provides an uncomplicated application that is regulated to overcome novel optimization problems. Also, AOA does not require altering several parameters. Similarly, the AOA’s parameters of random and adaptive hastened the convergence and divergence of searching resolutions. The fundamental AOA operations are exploitation, initialization, and exploration.
(a) Initialization. As demonstrated in Eq. (21), candidate solutions
The search phrase was selected as an exploitation or exploration stage with the use of the math optimizer accelerated
whereas Miter indicates the maximal amount of iterations. The existing iteration can be represented as iter. The minimal and maximal
(b) Exploration. When
whereas
whereas
(c) Exploitation. When
Lastly, the optimum solution for the existing iteration is the best. The current optimal fitness is related to the preceding better fitness, and the lowest values are applied to compute the final optimum solution.
The AOA algorithm makes Fitness Function (FF) derivation to get an enhanced categorizer result. It defines positive values as indicating the superior result of the candidate’s resolutions. In this study, the mitigated categorizer error rate will be regarded as the FF, as demonstrated in Eq. (26) [21].
In this segment, the experimental validation of the GBODL-ASC method on the soil classification process is well studied on a dataset [22] comprising 156 images and five classes, as defined in Table 1. Fig. 3 illustrates the trial pictures. The dataset includes images with 300 dpi resolution, 250 m spatial resolution, three band spectral resolution, RGB colour system, and three channels.
The soil categorization results of the GBODL-ASC model under distinct epochs are represented in Fig. 4. The figure accentuated that the GBODL-ASC procedure has recognized five different kinds of soil. On epoch 50, the GBODL-ASC model has categorized 25 samples into Black, 18 samples into Cinder, 21 samples into Laterite, 12 samples into Peat, and 13 samples into Yellow. Moreover, on epoch 200, the GBODL-ASC approach has categorized 31 samples into Black, 23 samples into Cinder, 23 samples into Laterite, 26 samples into Peat, and 25 samples into Yellow. Furthermore, on epoch 250, the GBODL-ASC system has categorized 30 samples into Black, 24 samples into Cinder, 26 samples into Laterite, 26 samples into Peat, and 24 samples into Yellow. At last, on epoch 300, the GBODL-ASC technique has categorized 31 samples into Black, 25 samples into Cinder, 28 samples into Laterite, 27 samples into Peat, and 28 samples into Yellow.
Table 2 reports a brief set of soil classification outcomes of the GBODL-ASC model under distinct epochs. The experimental values signified the GBODL-ASC model had obtained improved outcomes under every epoch. For instance, on 50 epochs, the GBODL-ASC model has attained an average
The Training Accuracy (TACC) and Validation Accuracy (VACC) of the GBODL-ASC procedure under distinct epochs are evaluated on soil categorization achievement in Fig. 5. The image pointed out that the GBODL-ASC algorithm has demonstrated precipitated accomplishment with precipitated values of TACC and VACC. It is noticeable that the GBODL-ASC system has attained higher TACC results.
The Training Loss (TLS) and Validation Loss (VLS) of the GBODL-ASC system under varying epochs on soil classification accomplishment in Fig. 6. The image referred that the GBODL-ASC procedure has exhibited optimum accomplishment with lessened TLS and VLS values. The GBODL-ASC methodology has given an outcome in reduced VLS results.
An apparent precision-recall analysis of the GBODL-ASC system in distinct epochs is described in Fig. 7. specified that the GBODL-ASC procedure had given an outcome in greater precision-recall values in several categories.
An overall ROC research of the GBODL-ASC approach in distinct epochs is illustrated in Fig. 8. The result emphasized by the GBODL-ASC method has exposed its capability in cataloguing in several classes.
Comparative soil classification results of the GBODL-ASC method with recent methods are portrayed in Table 3. The obtained values inferred the betterment of the GBODL-ASC model compared to recent methods. For example, based on
Also, concerning
In this study, an automated soil classification technique is introduced, named the GBODL-ASC technique using DL and computer vision approaches. In the presented GBODL-ASC technique, three major processes are involved. At the initial stage, the presented GBODL-ASC technique applies the GBO algorithm with the EfficientNet procedure to generate feature vectors. For soil categorization, the GBODL-ASC procedure uses an AOA with the BPNN model. The design of GBO and AOA algorithms assist in the proper selection of parameter values for the EfficientNet and BPNN models, respectively. To demonstrate the significant soil classification outcomes of the GBODL-ASC method, a wide-ranging simulation analysis is performed. The experimental outcomes show an enhanced GBODL-ASC model than other techniques.
Funding Statement: Princess Nourah bint Abdulrahman University Researchers Supporting Project number (PNURSP2023R303), Princess Nourah bint Abdulrahman University, Riyadh, Saudi Arabia. Research Supporting Project number (RSPD2023R787), King Saud University, Riyadh, Saudi Arabia. This study is supported via funding from Prince Sattam bin Abdulaziz University project number (PSAU/2023/R/1444).
Conflicts of Interest: The authors declare that they have no conflicts of interest to report regarding the present study.
References
1. S. W. Moon, R. E. Kim, A. C. Cheng, Y. E. Li and T. Ku, “Post-processing of background noise from SCPT auto source signal: A feasibility study for soil type classification,” Measurement, vol. 156, pp. 107610, 2020. [Google Scholar]
2. A. Pandey, D. Kumar and D. B. Chakraborty, “Soil type classification from high resolution satellite images with deep CNN,” in IEEE Int. Geoscience and Remote Sensing Symp. IGARSS, Brussels, Belgium, pp. 4087–4090, 2021. [Google Scholar]
3. P. Han, D. Dong, X. Zhao, L. Jiao and Y. Lang, “A smartphone-based soil color sensor: For soil type classification,” Computers and Electronics in Agriculture, vol. 123, pp. 232–241, 2016. [Google Scholar]
4. B. T. Pham, T. A. Hoang, D. M. Nguyen and D. T. Bui, “Prediction of shear strength of soft soil using machine learning methods,” Catena, vol. 166, pp. 181–191, 2018. [Google Scholar]
5. V. Khullar, S. Ahuja, R. G. Tiwar and A. K. Agarwa, “Investigating efficacy of deep trained soil classification system with augmented data,” in 9th Int. Conf. on Reliability, Infocom Technologies and Optimization (Trends and Future Directions) (ICRITO), Noida, India, pp. 1–5, 2021. [Google Scholar]
6. J. I. Colombo, J. Wilches and R. Leon, “Seismic fragility of legged liquid storage tanks based on soil type classifications,” Journal of Constructional Steel Research, vol. 192, pp. 1–15, 2022. [Google Scholar]
7. S. Inazumi, S. Intui, A. Jotisankasa, S. Chaiprakaikeow and K. Kojima, “Artificial intelligence system for supporting soil classification,” Results in Engineering, vol. 8, pp. 100188, 2020. [Google Scholar]
8. Y. Wang, Y. Hu and T. Zhao, “CPT-based subsurface soil classification and zonation in a 2D vertical cross-section using Bayesian compressive sampling,” Canadian Geotechnical Journal, vol. 57, no. 7, pp. 947–958, 2020. [Google Scholar]
9. A. Dornik, L. DRĂGUŢ and P. Urdea, “Classification of soil types using geographic object-based image analysis and random forests,” Pedosphere, vol. 28, no. 6, pp. 913–925, 2018. [Google Scholar]
10. B. B. Bezabeh and A. D. Mengistu, “The effects of multiple layers feed-forward neural network transfer function in digital based ethiopian soil classification and moisture prediction,” International Journal of Electrical and Computer Engineering, vol. 10, no. 4, pp. 4073, 2020. [Google Scholar]
11. A. Ghaderi, A. A. Shahri and S. Larsson, “An artificial neural network based model to predict spatial soil type distribution using piezocone penetration test data (CPTu),” Bulletin of Engineering Geology and the Environment, vol. 78, no. 6, pp. 4579–4588, 2019. [Google Scholar]
12. S. A. Z. Rahman, K. C. Mitra and S. M. Islam, “Soil classification using machine learning methods and crop suggestion based on soil series,” in 21st Int. Conf. of Computer and Information Technology (ICCIT), Dhaka, Bangladesh, pp. 1–4, 2018. [Google Scholar]
13. M. S. Suchithra and M. L. Pai, “Improving the prediction accuracy of soil nutrient classification by optimizing extreme learning machine parameters,” Information Processing in Agriculture, vol. 7, no. 1, pp. 72–82, 2020. [Google Scholar]
14. J. Escorcia-Gutierrez, M. Gamarra, R. Soto-Diaz, M. Pérez, N. Madera et al., “Intelligent agricultural modelling of soil nutrients and pH classification using ensemble deep learning techniques,” Agriculture, vol. 12, no. 7, pp. 977, 2022. [Google Scholar]
15. T. V. Dinh, H. Nguyen, X. L. Tran and N. D. Hoang, “Predicting rainfall-induced soil erosion based on a hybridization of adaptive differential evolution and support vector machine classification,” Mathematical Problems in Engineering, vol. 2021, pp. 1–20, 2021. [Google Scholar]
16. D. T. Vu, X. L. Tran, M. T. Cao, T. C. Tran and N. D. Hoang, “Machine learning based soil erosion susceptibility prediction using social spider algorithm optimized multivariate adaptive regression spline,” Measurement, vol. 164, pp. 108066, 2020. [Google Scholar]
17. Y. Wang, Y. Hu and T. Zhao, “Cone penetration test (CPT)-based subsurface soil classification and zonation in two-dimensional vertical cross section using Bayesian compressive sampling,” Canadian Geotechnical Journal, vol. 57, no. 7, pp. 947–958, 2020. [Google Scholar]
18. S. M. Jaisakthi, C. Aravindan and R. Appavu, “Classification of skin cancer from dermoscopic images using deep neural network architectures,” Multimedia Tools and Applications, vol. 82, no. 10, pp. 1–16, 2022. https://doi.org/10.1007/s11042-022-13847-3 [Google Scholar] [PubMed] [CrossRef]
19. I. Ahmadianfar, O. B. Haddad and X. Chu, “Gradient-based optimizer: A new metaheuristic optimization algorithm,” Information Sciences, vol. 540, pp. 131–159, 2020. [Google Scholar]
20. J. Yu, D. Li, A. Wang, P. Liu, J. Song et al., “An improved evaluation model for supplier selection based on particle swarm optimisation-back propagation neural network,” IET Collaborative Intelligent Manufacturing, vol. 4, no. 4, pp. 316–325, 2022. https://doi.org/10.1049/cim2.12067 [Google Scholar] [CrossRef]
21. M. Obayya, M. S. Alamgeer, J. Alzahrani, R. N. Alabdan, F. Al-Wesabi et al., “Artificial intelligence driven biomedical image classification for robust rheumatoid arthritis classification,” Biomedicines, vol. 10, no. 11, pp. 2714, 2022. [Google Scholar] [PubMed]
22. https://www.kaggle.com/code/prasanshasatpathy/soil-type-image-classification/data [Google Scholar]
Cite This Article
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.