Optimizing Agricultural Management Practices for Maize Crops: Integrating Clusterwise Linear Regression with an Adaptation of the Grey Wolf Optimizer
Abstract
1. Introduction
2. Materials and Methods
2.1. Dataset
2.2. Machine Learning Algorithms
- Preprocessing: This process involves several tasks. First, we dummy-code the variables that require it to create a mineable view, which is a matrix composed solely of numerical data. Next, we perform a normalization process using Min-Max normalization to ensure that differences in the variable ranges do not impact the subsequent clustering analysis. After normalization, we create three datasets: a Training dataset, which contains 81% of the total instances from the input dataset; a Validation dataset, which includes 9% of the instances; and a Test dataset, which accounts for the remaining 10%. These datasets were created as random samples without replacement, ensuring that the original dataset is fully partitioned into the three sets.
- CLR models construction: To perform this process, different numbers of groups and seeds per group must be evaluated, since the clustering process is probabilistic and produces varying result quality depending on the random seed defined for the execution of the algorithms and that the number of groups is not known a priori to the execution of the clustering algorithm. In this case, a specific number of groups (k) is evaluated from two (2) to a maximum number of groups (kmax), which can be defined as a function of the number of observations (n) in the dataset as √(n⁄2), or a specified number established by the user. For the number of seeds, a maximum (Smax) is set, which can be defined a priori, and in the tests was set to 31. Based on these two values (number of groups -k- and random seeds -rs-), two nested cycles are performed that include four essential steps, namely:
- Clustering: With the training dataset, the data are clustered (using only the predictor or independent variables -X- and not the target or dependent variable -y-) using the Gaussian Mixture Models (GMMs) algorithm, considering the k and s values. In the design process of probabilistic algorithms, both K-Means clustering and Spectral Clustering algorithms were evaluated; however, the Gaussian Mixture Model (GMM) demonstrated superior performance, and it was selected.
- Regression (Part 1 of the model): A linear regression model was developed for each group using Elastic Net. Given the high dimensionality of the dataset, Elastic Net was employed to apply both Lasso (L1) and Ridge (L2) penalties. This approach helps eliminate potential collinearity among the independent variables and selects the most relevant features for each group. As a result, the model is less likely to overfit the data and demonstrates better generalization.
- Classification (Part 2 of the model): This stage receives as input a training dataset that includes the predictor or independent variables (X), and the dependent variable (y), which refers to the groups or clusters assigned to each observation from the previous clustering step. After evaluating several classifiers, we selected the Decision Tree due to its excellent performance and ease of interpretation. The output of this step is a classification model, specifically a decision tree, which enables new observations to be classified into one of the predefined groups or clusters.
- Model evaluation: The quality evaluation process is conducted based on the developed model, which includes a decision tree and regression models for each group or cluster. To perform this evaluation, a validation dataset is used, which contains the variables X and their corresponding variable y, representing the crop yield. Each record in this dataset first defines the group or cluster to which it belongs using the decision tree algorithm. Then, the regression model for that group is applied, and the yield is predicted, yielding the y_predicted value. With all the values of y and y_predicted, the coefficient of determination (R2) is calculated. The development model and its R2 value are stored in a list to select the best one.
- Selection of the best CLR model: From the list of generated models with their R2, the one with the best R2 value (highest) is selected. This selected model is then used in the validation or prediction phase when it is moved to a production environment.
- CLR model validation: Based on the model selected as the best (formed by the decision tree and the regression models of each group or cluster), the quality evaluation process is conducted. This stage is similar to “Model evaluation” stage; the only change is the dataset used, which in this case is the validation dataset and not the test dataset. High and similar R2 values in the test and validation datasets confirm an appropriate fit of the obtained model. Other metrics used in the algorithm selection were the mean squared error (MSE) and mean absolute error (MAE). It should be noted that when the model is used for prediction, the input data must first undergo the same preprocessing (dummification and MinMax normalization using the same variable ranges defined during the preprocessing stage).
2.3. Adaptation of Metaheuristics
2.3.1. Fitness Function
- G refers to the net profit in pesos associated with a crop event.
- P is the maize crop yield expressed in Kg-Ha. This value is predicted using one of the machine learning algorithms, specifically the CLR algorithm, which obtained the most accurate results.
- SP refers to the selling price of one Kg of white maize, expressed in COP$/Kg.
- CP refers to the production costs associated with each event (crop); a value that corresponds to the sum of the costs associated with the values used in each of the variables to be optimized. That is:. Where are the values of the variables of each of the 22 variables (m = 22) being optimized and is the market cost of the unit of each variable per hectare (COP$/Ha).
- B corresponds to the farmer’s maximum budget allocated for cultivating the crop.
- The possible value for each continuous variable (Float) is assigned between the minimum and maximum values allowed for each of the variables. That is: . If a variable exceeds the permitted range, its value is set to the limit value it overflowed.
- For the case of integer variables (binary, ordinal, or nominal), the value is set as an integer value in the range of possible values, including limits. That is: . In the logic of optimization algorithms, it is ensured that a valid value is always assigned.
- Solutions that exceed the farmer’s maximum budget (B) will be discarded, and new solutions will be sought. In other words, the optimization process does not attempt to repair solutions that violate the budget constraint.
- In the optimization process for the three algorithms, the soil and climate variables remain unchanged; only the variables related to agricultural practices are modified.
2.3.2. Solution Vector Representation
2.3.3. Grey Wolf Optimizer (GWO) for Mixed Constrained Optimization
| Algorithm 1. GWO adaptation to optimize the maize crop management practices | |
| Inputs: | s: Record to be optimized previously dummified and normalized. lvo: List of variables to be optimized with their associated type (continuous or categorical), their possible values, and their associated costs. b: Farmer’s maximum budget. pv: Maize selling price. mlm: Machine learning model that calculates the maize crop yield. plocal: Exploitation probability for categorical variables. popsize: Size of the wolf population. max_iter: Maximum number of iterations, where max_efos = max_iter × popsize. |
| Output: | : Best solution in the population : Quality of best solution |
| |
| Algorithm 2. Wolf movement adaptation in GWO for mixed variables | |
| Inputs: | w: Current wolf. : Alpha wolf. : Beta wolf. : Delta wolf. A1, A2, A3: Alpha, beta, and delta wolf exploitation factors. C1, C2, C3: Alpha, beta, and delta wolf exploration factors. plocal: Local exploitation probability for categorical variables. lvo: List of variables to be optimized with their associated type (continuous or categorical), their possible values, and their associated costs. |
| Output: | r: Possible new position of the current wolf w. |
| |
2.3.4. Hill Climbing (HC) for Mixed Constrained Optimization
| Algorithm 3. Adaptation of the HC algorithm to the optimization problem of maize crop management practices | |
| Inputs: | s: Record to be optimized previously dummified and normalized. lvo: List of variables to be optimized with their associated type (continuous or categorical), their possible values, and their associated costs. bw: Bandwidth vector for each variable. pv: Maize selling price. b: Farmer’s maximum budget. mlm: Machine learning model that calculates crop yield. max_efos: Maximum number of evaluations of the objective function. |
| Output: | S: Best solution found. : Quality of the best solution found. |
| |
2.3.5. Simulated Annealing (SA) for Mixed Constrained Optimization
| Algorithm 4. Adaptation of the Simulated Annealing algorithm to the optimization problem of maize crop management practices | |
| Input: | s: Record to be optimized previously dummified and normalized. lvo: List of variables to be optimized with their associated type (continuous or categorical), their possible values and their associated costs. bw: Bandwidth vector for each variable. pv Maize selling price. b: Farmer’s maximum budget. mlm: Machine learning model that calculates crop yield. max_efos: Maximum number of evaluations of the objective function. |
| Output: | S: Best solution found. : Quality of the best solution found. |
| |
2.3.6. Configuration Parameters for ML Algorithms and Metaheuristics
3. Results and Discussion
3.1. Performance of Maize Crop Yield Prediction Models
3.2. Metaheuristics Performance Evaluation
3.3. Effect of Optimizing Maize Crop Management Practices
3.4. Deployment in a Web Application
3.5. Limitations
- In CLR, the execution time or complexity of the training process is determined by the number of random number seeds (s) and the number of groups to be evaluated (k). A larger number of seeds and groups will take longer time for the algorithm to find the optimal data distribution.
- The CLR approach proposed is based on linear regression models which are sensitive to outliers, so it is crucial to handle them properly during the data preprocessing stage to ensure the CLR model’s performance is not compromised.
- CLR, like any machine learning model, requires a thorough data cleaning and transformation process, aimed at creating a solid mineable view that can effectively inform algorithms.
- The dataset employed to train the machine learning models was collected in the Department of Cordoba, Colombia, and comprises 114 variables related to climate, soil, characteristics and agricultural management practices. The resulting model is specific to this region and cannot be directly generalized to other areas due to the spatial and temporal variability to which maize crops are exposed. Consequently, the findings may not be transferable to regions with different climatic or socioeconomic conditions, underscoring the need for validation using locally collected datasets.
- The current implementation of Hill Climbing, Simulated Annealing, and Grey Wolf Optimizer algorithms involves exploring only the feasible solution space. This means that any solution generated which does not comply with constraints is automatically discarded.
4. Conclusions and Future Work
4.1. Conclusions
4.2. Future Works
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Sánchez, R.A.H. The Crucial Role of Agriculture in the Colombian Economy: Challenges and Opportunities. Rev. Fac. Nac. Agron. Medellín 2024, 77, 10795–10796. [Google Scholar] [CrossRef]
- Betancourt, J.A.; Florez-Yepes, G.Y.; Garcés-Gómez, Y.A. Agricultural Productivity and Multidimensional Poverty Reduction in Colombia: An Analysis of Coffee, Plantain, and Corn Crops. Earth 2024, 5, 623–639. [Google Scholar] [CrossRef]
- Olarte, J.; Arbeláez, M.A.; Prada-Ladino, C.; Córdoba, J.D.; Pérez, J.F.; Rojas, M.P.; Mueses, J.; Erazo, J.J.; Barragan, J.D.; Molina, S.; et al. Análisis de Producto: Maíz. Bogota. 2023. Available online: https://www.bolsamercantil.com.co/sites/default/files/2023-12/Analisis_de_producto_Maiz_2023.pdf (accessed on 28 March 2025).
- Fenalce. Estadísticas—Federación Nacional de Cultivadores de Cereales y Leguminosas. Histórico de Área Producción y Rendimiento Cereales, Leguminosas y Soya. Available online: https://fenalce.co/estadisticas/ (accessed on 6 June 2024).
- Boyd, E. Bridging Scales and Knowledge Systems: Concepts and Applications in Ecosystem Assessment; Island Press: Washington, DC, USA, 2006; Available online: https://islandpress.org/books/bridging-scales-and-knowledge-systems (accessed on 1 June 2025).
- Young, M.D.; Ros, G.H.; de Vries, W. Impacts of agronomic measures on crop, soil, and environmental indicators: A review and synthesis of meta-analysis. Agric. Ecosyst. Environ. 2021, 319, 107551. [Google Scholar] [CrossRef]
- de Janvry, A.; Sadoulet, E.; Suri, T. Field Experiments in Developing Country Agriculture. In Handbook of Economic Field Experiments; Elsevier: Amsterdam, The Netherlands, 2017; Volume 2, pp. 427–466. [Google Scholar] [CrossRef]
- Bolan, N.; Srivastava, P.; Rao, C.S.; Satyanaraya, P.V.; Anderson, G.C.; Bolan, S.; Nortjé, G.P.; Kronenberg, R.; Bardhan, S.; Abbott, L.K.; et al. Distribution, characteristics and management of calcareous soils. Adv. Agron. 2023, 182, 81–130. [Google Scholar] [CrossRef]
- Sharma, A.; Jain, A.; Gupta, P.; Chowdary, V. Machine Learning Applications for Precision Agriculture: A Comprehensive Review. IEEE Access 2021, 9, 4843–4873. [Google Scholar] [CrossRef]
- Kiran, P.S.; Abhinaya, G.; Sruti, S.; Padhy, N. A Machine Learning-Enabled System for Crop Recommendation. Eng. Proc. 2024, 67, 51. [Google Scholar] [CrossRef]
- Megersa, Z.M.; Adege, A.B.; Rashid, F. Real-Time Common Rust Maize Leaf Disease Severity Identification and Pesticide Dose Recommendation Using Deep Neural Network. Knowledge 2024, 4, 615–634. [Google Scholar] [CrossRef]
- Barvin, P.A.; Sampradeepraj, T. Crop Recommendation Systems Based on Soil and Environmental Factors Using Graph Convolution Neural Network: A Systematic Literature Review. Eng. Proc. 2023, 58, 97. [Google Scholar] [CrossRef]
- Jiménez, D.; Cock, J.; Satizábal, H.F.; Pérez-Uribe, A.; Jarvis, A.; Van Damme, P. Analysis of Andean blackberry (Rubus glaucus) production models obtained by means of artificial neural networks exploiting information collected by small-scale growers in Colombia and publicly available meteorological data. Comput. Electron. Agric. 2009, 69, 198–208. [Google Scholar] [CrossRef]
- Jiménez, D.; Dorado, H.; Cock, J.; Prager, S.D.; Delerce, S.; Grillon, A.; Andrade Bejarano, M.; Benavides, H.; Jarvis, A. From Observation to Information: Data-Driven Understanding of on Farm Yield Variation. PLoS ONE 2016, 11, e0150015. [Google Scholar] [CrossRef]
- van Klompenburg, T.; Kassahun, A.; Catal, C. Crop yield prediction using machine learning: A systematic literature review. Comput. Electron. Agric. 2020, 177, 105709. [Google Scholar] [CrossRef]
- Bantchina, B.B.; Qaswar, M.; Arslan, S.; Ulusoy, Y.; Gündoğdu, K.S.; Tekin, Y.; Mouazen, A.M. Corn yield prediction in site-specific management zones using proximal soil sensing, remote sensing, and machine learning approach. Comput. Electron. Agric. 2024, 225, 109329. [Google Scholar] [CrossRef]
- Zuhanda, M.K.; Hartono; Hasibuan, S.A.R.S.; Napitupulu, Y.Y. An exact and metaheuristic optimization framework for solving Vehicle Routing Problems with Shipment Consolidation using population-based and Swarm Intelligence. Decis. Anal. J. 2024, 13, 100517. [Google Scholar] [CrossRef]
- Elhoseny, M.; Metawa, N.; El-hasnony, I.M. A new metaheuristic optimization model for financial crisis prediction: Towards sustainable development. Sustain. Comput. Inform. Syst. 2022, 35, 100778. [Google Scholar] [CrossRef]
- Akter, A.; Zafir, E.I.; Dana, N.H.; Joysoyal, R.; Sarker, S.K.; Li, L.; Muyeen, S.M.; Das, S.K.; Kamwa, I. A review on microgrid optimization with meta-heuristic techniques: Scopes, trends and recommendation. Energy Strategy Rev. 2024, 51, 101298. [Google Scholar] [CrossRef]
- Filip, M.; Zoubek, T.; Bumbalek, R.; Cerny, P.; Batista, C.E.; Olsan, P.; Bartos, P.; Kriz, P.; Xiao, M.; Dolan, A.; et al. Advanced Computational Methods for Agriculture Machinery Movement Optimization with Applications in Sugarcane Production. Agriculture 2020, 10, 434. [Google Scholar] [CrossRef]
- Gao, J.; Zeng, W.; Ren, Z.; Ao, C.; Lei, G.; Gaiser, T.; Srivastava, A.K. A Fertilization Decision Model for Maize, Rice, and Soybean Based on Machine Learning and Swarm Intelligent Search Algorithms. Agronomy 2023, 13, 1400. [Google Scholar] [CrossRef]
- Bhar, A.; Kumar, R.; Qi, Z.; Malone, R. Coordinate descent based agricultural model calibration and optimized input management. Comput. Electron. Agric. 2020, 172, 105353. [Google Scholar] [CrossRef]
- Ahmed, U.; Lin, J.C.W.; Srivastava, G.; Djenouri, Y. A nutrient recommendation system for soil fertilization based on evolutionary computation. Comput. Electron. Agric. 2021, 189, 106407. [Google Scholar] [CrossRef]
- Mirjalili, S.; Mirjalili, S.M.; Lewis, A. Grey Wolf Optimizer. Adv. Eng. Softw. 2014, 69, 46–61. [Google Scholar] [CrossRef]
- Jiang, J.; Zhao, Z.; Li, W.; Li, K. An Enhanced Grey Wolf Optimizer with Elite Inheritance and Balance Search Mechanisms. arXiv 2024, arXiv:2404.06524. [Google Scholar] [CrossRef]
- Multi-Objective, P. Multi-Objective Planting Structure Optimisation in an Irrigation Area Using a Grey Wolf Optimisation Algorithm. Water 2024, 16, 2297. [Google Scholar] [CrossRef]
- Zheng, Q.; Yue, C.; Zhang, S.; Yao, C.; Zhang, Q. Optimal Allocation of Water Resources in Canal Systems Based on the Improved Grey Wolf Algorithm. Sustainability 2024, 16, 3635. [Google Scholar] [CrossRef]
- Chen, C.; Wang, X.; Chen, H.; Wu, C.; Mafarja, M.; Turabieh, H. Towards Precision Fertilization: Multi-Strategy Grey Wolf Optimizer Based Model Evaluation and Yield Estimation. Electronics 2021, 10, 2183. [Google Scholar] [CrossRef]
- Schröer, C.; Kruse, F.; Gómez, J.M. A Systematic Literature Review on Applying CRISP-DM Process Model. Procedia Comput. Sci. 2021, 181, 526–534. [Google Scholar] [CrossRef]
- Pratt, K.S.; Bright, H.R. Design Patterns for Research Methods: Iterative Field Research. In AAAI Spring Symposium on Experimental Design for Real-World Systems; Texas A&M University: College Station, TX, USA, 2009; pp. 1–7. Available online: www.aaai.org (accessed on 18 February 2023).
- Jimenez, D.; Delerce, S.J.; Dorado, H.A.; Cock, J.; Muñoz, L.A.; Agamez, A.; Jarvis, A. Cropping Events of Maize in Cordoba Colombia; CIAT—International Center for Tropical Agriculture Dataverse: Cali, Colombia, 2019. [Google Scholar] [CrossRef]
- Morán-Figueroa, G.H.; Muñoz-Pérez, D.F.; Rivera-Ibarra, J.L.; Cobos-Lozada, C.A. Model for Predicting Maize Crop Yield on Small Farms Using Clusterwise Linear Regression and GRASP. Mathematics 2024, 12, 3356. [Google Scholar] [CrossRef]
- Khan, S.N.; Li, D.; Maimaitijiang, M. A Geographically Weighted Random Forest Approach to Predict Corn Yield in the US Corn Belt. Remote Sens. 2022, 14, 2843. [Google Scholar] [CrossRef]
- Sarkar, S.; Leyton, J.M.O.; Noa-Yarasca, E.; Adhikari, K.; Hajda, C.B.; Smith, D.R. Integrating Remote Sensing and Soil Features for Enhanced Machine Learning-Based Corn Yield Prediction in the Southern US. Sensors 2025, 25, 543. [Google Scholar] [CrossRef]
- Mia, M.S.; Tanabe, R.; Habibi, L.N.; Hashimoto, N.; Homma, K.; Maki, M.; Matsui, T.; Tanaka, T.S. Multimodal Deep Learning for Rice Yield Prediction Using UAV-Based Multispectral Imagery and Weather Data. Remote Sens. 2023, 15, 2511. [Google Scholar] [CrossRef]
- Kuang, Y.C.; Ooi, M. Performance Characterization of Clusterwise Linear Regression Algorithms. Wiley Interdiscip. Rev. Comput. Stat. 2024, 16, e70004. [Google Scholar] [CrossRef]
- Chander, S.; Vijaya, P. Unsupervised learning methods for data clustering. Artif. Intell. Data Min. Theor. Appl. 2021, 3, 41–64. [Google Scholar] [CrossRef]
- Kala, R. An introduction to evolutionary computation. In Autonomous Mobile Robots; Academic Press: Cambridge, MA, USA, 2024; pp. 715–759. [Google Scholar] [CrossRef]
- Luke, S. Essentials of Metaheuristics A Set of Undergraduate Lecture Notes by Second Edition. 2016. Available online: http://rogeralsing.com/2008/12/07/genetic-programming-evolution-of-mona-lisa/ (accessed on 14 February 2025).
- Das, D.; Sadiq, A.S.; Mirjalili, S. Grey Wolf Optimizer: Foundations and Mathematical Models. In Optimization Algorithms in Machine Learning. Engineering Optimization: Methods and Applications; Springer: Singapore, 2025; pp. 59–66. [Google Scholar] [CrossRef]
- Wang, J.S.; Li, S.X. An Improved Grey Wolf Optimizer Based on Differential Evolution and Elimination Mechanism. Sci. Rep. 2019, 9, 7181. [Google Scholar] [CrossRef] [PubMed]
- Benítez, R.A.; Delgado, J.R. Implementación del algoritmo meta-heurístico Gray Wolf Optimization para la optimización de funciones objetivo estándar. Ser. Científica De La Univ. De Las Cienc. Informáticas 2020, 13, 174–194. Available online: https://dialnet.unirioja.es/servlet/articulo?codigo=8590385&info=resumen&idioma=ENG (accessed on 25 February 2025).
- Pereira, D.G.; Afonso, A.; Medeiros, F.M. Overview of Friedmans Test and Post-hoc Analysis. Commun. Stat.-Simul. Comput. 2015, 44, 2636–2653. [Google Scholar] [CrossRef]










| N° | Variable | Range | Type | Meaning | Unit |
|---|---|---|---|---|---|
| 1 | ContDisChe_Emer_Flow | {0, 1, 2, …, 4} | Integer | The number of times disease control is performed using chemicals between the emergence and flowering stages. | -- |
| 2 | ContDisChe_Flow_Harv | {0, 1} | Integer | The number of times disease control is performed using chemicals between the flowering and harvest stages. | -- |
| 3 | ContWeedMec_Sow_Emer | {0,1} | Integer | The number of times weed control is performed using mechanized tools between the sowing and emergence stages. | -- |
| 4 | ContWeedMec_Emer_Flow | {0,1} | Integer | The number of times weed control is performed using mechanized tools between the emergence and flowering stages. | -- |
| 5 | ContWeedMec_Flow_Harv | {0,1} | Integer | The number of times weed control is performed using mechanized tools between the flowering and harvest stages. | -- |
| 6 | ContWeedChe_before_Sow | {0, 1, 2, 3} | Integer | The number of times weed control is performed using chemicals before sowing. | -- |
| 7 | ContWeedChe_Sow_Emer | {0, 1, 2, 3} | Integer | The number of times weed control is performed using chemicals between the sowing and emergence stages. | -- |
| 8 | ContWeedChe_Emer_Flow | {0, 1, 2, …, 5} | Integer | The number of times weed control is performed using chemicals between the emergence and flowering stages. | -- |
| 9 | ContWeedChe_Flow_Harv | {0, 1, 2} | Integer | The number of times weed control is performed using chemicals between the flowering and harvest stages. | -- |
| 10 | ContPestChe_before_Sow | {0, 1} | Integer | The number of times pest control is performed using chemicals before sowing. | -- |
| 11 | ContPestChe_Sow_Emer | {0, 1, 2, 3} | Integer | The number of times pest control is performed using chemicals between the sowing and emergence stages. | -- |
| 12 | ContPestChe_Emer_Flow | {0, 1, 2, …, 10} | Integer | The number of times pest control is performed using chemicals between the emergence and flowering stages. | -- |
| 13 | ContPestChe_Flow_Harv | {0, 1, 2, 3} | Integer | The number of times pest control is performed using chemicals between the flowering and harvest stages. | -- |
| 14 | TotN_Before_Sow | [0, 105] | Float | Total nitrogen applied before sowing. | Kg-Ha |
| 15 | TotN_Sow_Emer | [0, 82] | Float | Total nitrogen applied between the Sowing and Emergence stages. | Kg-Ha |
| 16 | TotN_Emer_Flow | [0, 276] | Float | Total nitrogen applied between the Emergence and the Flowering stages | Kg-Ha |
| 17 | TotP_Before_Sow | [0, 24] | Float | Total phosphorus applied before sowing. | Kg-Ha |
| 18 | TotP_Sow_Emer | [0, 40] | Float | Total phosphorus applied between the Sowing and Emergence stages. | Kg-Ha |
| 19 | TotP_Emer_Flow | [0, 47] | Float | Total phosphorus applied between the Emergence and Flowering stages. | Kg-Ha |
| 20 | TotK_before_Sow | [0, 30] | Float | Total potassium applied before sowing | Kg-Ha |
| 21 | TotK_Sow_Emer | [0, 75] | Float | Total potassium applied between the Sowing and Emergence stages. | Kg-Ha |
| 22 | TotK_Emer_Flow | [0, 180] | Float | Total potassium applied between the Emergence and Flowering stages. | Kg-Ha |
| Algorithm | Parameter |
|---|---|
| Elastic Net | alpha: 0.1, l1_ratio: 0.9 |
| Bagging Regressor | bootstrap: False, max_features: 0.5, max_samples: 0.7, n_estimators: 100 |
| Random Forest (RF) | max_depth: 20, max_feature: aut, min_samples_leaf: 1, min_samples_split: 2, n_estimators: 200 |
| MLP | max_depth: 20, max_features: aut’, min_samples_leaf: 1, min_samples_spli: 2, n_estimator: 200 |
| CLR2 | n_components=2; covariance_type = full |
| Metaheuristic | Search Space | Best Parameters |
|---|---|---|
| GWO | max_efos = 1000, popsize = [5, 10, 20, 30] | popsize = 30 |
| SA | max_efos = 1000, bw = [0.5, 1, 1.5, 2] | bw = 2 |
| HC | max_efos = 1000, bw = [0.5, 1, 1.5, 2] | bw = 2 |
| Algorithm | Ranking |
|---|---|
| GWO | 1 (1) |
| HC | 2.0354 (2) |
| SA | 2.9646 (3) |
| GWO (1) | HC (2) | SA (3) | |
|---|---|---|---|
| GWO (1) | -- | ● | ● |
| HC (2) | ○ | -- | ● |
| SA (3) | ○ | ○ | -- |
| Management Practices/Crops | 1 | 1 * | 2 | 2 * | 3 | 3 * |
|---|---|---|---|---|---|---|
| ContDisChe_Emer_Flow | 0 | 3 | 0 | 3 | 0 | 3 |
| ContDisChe_Flow_Harv | 0 | 1 | 0 | 1 | 1 | 1 |
| ContWeedMec_Sow_Emer | 0 | 1 | 0 | 0 | 0 | 0 |
| ContWeedMec_Emer_Flow | 0 | 0 | 0 | 0 | 0 | 0 |
| ContWeedMec_Flow_Harv | 0 | 0 | 0 | 0 | 0 | 0 |
| ContWeedChe_before_Sow | 0 | 0 | 0 | 0 | 2 | 0 |
| ContWeedChe_Sow_Emer | 1 | 1 | 0 | 1 | 0 | 1 |
| ContWeedChe_Emer_Flow | 1 | 0 | 1 | 3 | 2 | 3 |
| ContWeedChe_Flow_Harv | 0 | 2 | 0 | 0 | 0 | 0 |
| ContPestChe_before_Sow | 0 | 0 | 0 | 0 | 1 | 0 |
| ContPestChe_Sow_Emer | 0 | 2 | 0 | 0 | 0 | 0 |
| ContPestChe_Emer_Flow | 2 | 1 | 1 | 0 | 1 | 0 |
| ContPestChe_Flow_Harv | 0 | 0 | 0 | 2 | 2 | 2 |
| TotN_Before_Sow | 0.0 | 105.3 | 0 | 105 | 0 | 105 |
| TotN_Sow_Emer | 0.0 | 82.5 | 0 | 80.1 | 15.0 | 80.1 |
| TotN_Emer_Flow | 92.0 | 276.0 | 92.0 | 276.0 | 92.0 | 276.0 |
| TotP_Before_Sow | 0.0 | 23.3 | 0 | 24 | 0 | 24 |
| TotP_Sow_Emer | 0.0 | 40 | 0 | 31.19 | 15.0 | 31.12 |
| TotP_Emer_Flow | 0.0 | 47.5 | 0 | 47.5 | 0 | 47 |
| TotK_before_Sow | 0.0 | 30 | 0 | 30 | 0 | 30 |
| TotK_Sow_Emer | 0.0 | 75.0 | 0 | 75 | 15.0 | 75 |
| TotK_Emer_Flow | 0.0 | 85.66 | 30.0 | 61.23 | 30.0 | 60.12 |
| Yield (Kg-Ha) | 4064 | 8888 (118%) | 6822 | 11,032 (61%) | 7405 | 10,572 (42%) |
| Profit ($) | 9.5 Mill | 18.6 Mill (96%) | 16.5 Mil | 24.6 Mill (49%) | 17.2 Mill | 23.4 Mill (36%) |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Morán-Figueroa, G.-H.; Cobos-Lozada, C.-A.; Bedoya-Leyva, O.-F. Optimizing Agricultural Management Practices for Maize Crops: Integrating Clusterwise Linear Regression with an Adaptation of the Grey Wolf Optimizer. Agriculture 2025, 15, 2068. https://doi.org/10.3390/agriculture15192068
Morán-Figueroa G-H, Cobos-Lozada C-A, Bedoya-Leyva O-F. Optimizing Agricultural Management Practices for Maize Crops: Integrating Clusterwise Linear Regression with an Adaptation of the Grey Wolf Optimizer. Agriculture. 2025; 15(19):2068. https://doi.org/10.3390/agriculture15192068
Chicago/Turabian StyleMorán-Figueroa, Germán-Homero, Carlos-Alberto Cobos-Lozada, and Oscar-Fernando Bedoya-Leyva. 2025. "Optimizing Agricultural Management Practices for Maize Crops: Integrating Clusterwise Linear Regression with an Adaptation of the Grey Wolf Optimizer" Agriculture 15, no. 19: 2068. https://doi.org/10.3390/agriculture15192068
APA StyleMorán-Figueroa, G.-H., Cobos-Lozada, C.-A., & Bedoya-Leyva, O.-F. (2025). Optimizing Agricultural Management Practices for Maize Crops: Integrating Clusterwise Linear Regression with an Adaptation of the Grey Wolf Optimizer. Agriculture, 15(19), 2068. https://doi.org/10.3390/agriculture15192068

