Introduction

The Balangu (Lallemantia Iberica) species are cultivated in the different regions of Iran with historical roots in the gastronomic culture13. This plant also has been used for medical applications4. In a new development, Lallemantia species are being used to synthesize gold and silver nanoparticles without hazardous materials5. Recently, effective symbiosis under drought stress has been reported for Lallemantia iberica6. Clearly, it could be used in soils with high salt concentration and improve the characteristics of the soil after harvest. Similarly, it has been found that one of the Lallemantia species could be used in wastewater treatment effectively and environmentally, especially in the semi-arid regions7. Accordingly, this plant family has great adaptability to various environmental conditions and could be used as ecosystem services to improve the soil health and quality of the water resources of the cultivated region.

The Lallemantia iberica contains protein and oil in its structure which is the reason for the gastronomical uses of this plant. Unfortunately, insufficient data are available about the agronomic characteristics of these species and the effect of ecotype on extracted compounds such as protein and oil. Therefore, studies about the agronomic parameters of the Lallemantia iberica are required.

In the state of the art, machine learning (ML) has been used in the data analysis to predict yield responsiveness to nitrogen fertilization in maize8 and predicting grain arsenic concentration in rice under deficit irrigation system and use of organic amendments9, and crop yield forecasting10,11. However, to our best knowledge, there is no such investigation to study the relationship of the agronomic characteristics with the grain yield. The ML procedures could be used to solve classification, clustering, and regression problems.10 The regression is one of the supervised applications of the ML methods that could provide a reliable result in the prediction of a complex dataset11. The regression application can use various algorithms such as linear regression with a diversity of modifications, such as random forest regression (RFR), support vector regression (SVR), and gradient boosting decision tree regression (GBDTR)1214.

The present work provides a four-year dataset for the agronomic properties of Lallamentia iberica and the metrics such as morph-physiological traits of 49 different ecotypes from various regions of Iran with the diversity of extracted materials percent’s such as protein and oil. Machine Learning is used for data analysis. The prediction for the grain yield performance was the main subject of this analysis. In this respect, linear, support vector machine regression, random forest regression, and gradient boosting decision tree have been utilized.

Results and discussion

The measured traits of the Lallamentia iberica ecotypes and their descriptive data, including the mean, standard deviation, minimum, maximum, and quartiles, averaged over four years, are shown in Tables 1 and 2. Based on the descriptive data, the mean of 49 ecotypes for oil and protein content was 38.59% and 21.20%, respectively, indicating that Lallamentia iberica is rich in oil and protein. Likewise, the grain yield per unit area could reach the maximum value of 169 g/m2 (1690 kg/ha) in this experiment.

Table 1 The measured traits of the Lallemantia iberica ecotypes with corresponding abbreviations, and units of measurement.
Table 2 The descriptive data of the Lallemantia iberica ecotypes, evaluated during the 2014–2017 growing seasons.

In this study, four labels, grain yield per unit area (GYUA), grain yield per plant (GYP), oil percent (OP), and protein percent (PP) of the Lallamentia iberica ecotypes were separately used for the sake of prediction purpose via other agronomic traits based on regression. The results and discussion for each label are briefly stated here.

GYUA

The prediction results of the GYUA through the ML-based regression methods are depicted in Table 3 and Fig. 1. According to Table 3, the LR, SVR Linear Kernel, RFR, and GBDTR methods had much lower mean absolute error (MAE), mean square error (MSE), and root means square error (RMSE) than SVR Gaussian Kernel, SVR Polynomial Kernel, and SVR Sigmoid Kernel. Figure 1 demonstrates the predicted values versus the experimentally evaluated values of the GYUA label for the LR, SVR Linear Kernel, RFR, and GBDTR methods had good prediction results. The main goal of this sequence of the ML methods was to eliminate possible overfitting and the potential bias in the learning process linear regression and increase the accuracy of the analytical information. Although the LR and SVR Linear Kernel methods showed a slightly better prediction ability than the other two methods, their higher biases may affect the objectivity of the results in this case. The Random forest and gradient boosting decision tree regression are used to import the random states to avoid the created bias of the linear ML regression algorithms. While the RFR may better handle the bias, under-fitting might be a problem15. On the other hand, the GBDTR as a hybrid method avoids the issues of the previous methods. The RFR and GBDTR methods are used to import the random states to avoid the created bias of the linear ML regression algorithms16.

Table 3 The mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE), and area under curve (AUC) of receiver operating characteristics (ROC) of the applied machine learning (ML) regression methods in predicting the grain yield per unit area of the Lallemantia iberica ecotypes with the training of other traits, using the K-fold cross-validation as the data splitting method.
Figure 1
figure 1

(a) Linear (b) Support vector, (c) Random forest, and (d) gradient boosting regressions of the grain yield per unit area of the Lallemantia iberica ecotypes based on machine learning regression.

There was a linear relationship between the indicator features and the label. In this respect, the effect of different features was evaluated in the ML process. For example, BYUA, OYUA, and HIUA were the most important features for predicting GYUA in RFR, respectively (Fig. 2). Hence, BYUA, OYUA, and HIUA can be regarded as good predictor indicators of GYUA. Similar results were reported for sesame (Sesamum indicum L.) in another study17.

Figure 2
figure 2

The importance of the traits in the random forest machine learning regression process for the prediction of the grain yield per unit area of the Lallemantia iberica ecotypes.

GYSP

The grain yield of a single plant is an important trait in crop yield evaluation and genetic assessments18,19. The results of the assessment of different ML methods in the prediction of GYSP by MAE, MSE, and RMSE are shown in Table 4. Although LR had slightly better performance than RFR and GBDTR in the prediction of GYSP (Table 4; Fig. 3), the bias in this method makes it partially unreliable20, as previously mentioned. Despite the fact that the RFR and GBDTR methods demonstrated higher error rather than LR and SVR Linear Kernel21 and the generated random states in the learning process could disturb the prediction, the results are more reliable due to the reduced bias.

Table 4 The mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE), and area under curve (AUC) of receiver operating characteristics (ROC) of the applied machine learning (ML) regression methods in predicting the grain yield per plant of the Lallemantia iberica ecotypes with the training of other traits, using the K-fold cross-validation as the data splitting method.
Figure 3
figure 3

(a) Linear (b) Support vector, (c) Random forest, and (d) gradient boosting regressions of the grain yield per plant of the Lallemantia iberica ecotypes.

As an example of the importance of the indicator in the prediction of GYSP, the results for the RFR method were depicted in Fig. 4. The features BYSP, NSPP, and NSMS were the most effective features on GYSP in the RFR method, respectively. Besides, NSPSC had a small impact on this label.

Figure 4
figure 4

The importance of the traits in the random forest machine learning regression process for the prediction of the grain yield per plant of the Lallemantia iberica ecotypes.

OP

Oil percentage is an essential trait with respect to the gastronomic point of view22. Lallamentia iberica’s oil is healthy in food production and other uses in the cultivated region. The efficiency of different ML methods in the prediction of the OP was compared in Table 5. The GBDTR method showed the best performance in predicting OP followed by RFR and SVR Linear Kernel. Figure 5 shows the predicted values versus the tested values of the OP label for the LR, SVR Linear Kernel, RFR, and GBDTR methods. All four methods were acceptable in predicting OP. However, the different conditions should be considered to achieve an appropriate approach with the corresponding practical state. For example, if OP needs to be predicted for a specific ecotype, the gradient boosting decision tree would be a good choice. At the same time, in the particular condition with the features, the SVR could be used efficiently.

Table 5 The mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE), and area under curve (AUC) of receiver operating characteristics (ROC) of the applied machine learning (ML) regression methods in predicting the oil percentage of the Lallemantia iberica ecotypes with the training of other traits, using the K-fold cross-validation as the data splitting method.
Figure 5
figure 5

(a) Linear (b) Support vector, (c) Random forest, and (d) gradient boosting regressions of the oil percentage of the Lallemantia iberica ecotypes.

PP

Lallamentia iberica is a protein reach plant that contains 21% protein on average with a maximum of 34%23,24. In this respect, the protein content of this plant was another subject of this work. The results of the prediction of PP by other agronomic characteristics for the LR, SVR Linear Kernel, RFR, and GBDTR methods are demonstrated in Fig. 6. A very high efficient prediction has been achieved with ML regression methods. The results were similar to previous labels. A linear relationship was observed between PP and the measured characteristics of this species. The estimated MAE, MSE, and RMSE in the prediction of PP are given in Table 6. The GBDTR method was the most effective procedure in predicting PP followed by RFR and SVR Linear Kernel methods. GBDTR trains the data with random decision trees and also performs a linear regression based on these data. So, the predicted PP by this method would be more reliable than the other methods.

Figure 6
figure 6

(a) Linear (b) Support vector, (c) Random forest, and (d) gradient boosting regressions of the protein percentage of the Lallemantia iberica ecotypes.

Table 6 The mean absolute error (MAE), mean square error (MSE), root mean square error (RMSE), and area under curve (AUC) of receiver operating characteristics (ROC) of the applied machine learning (ML) regression methods in predicting the protein percentage of the Lallemantia iberica ecotypes with the training of other traits, using the K-fold cross-validation as the data splitting method.

Conclusions

The descriptive data showed that Lallamentia iberica is rich in oil and protein with the four-year average of 38.59% and 21.20%, respectively. Furthermore, it was shown that the grain yield per unit area could reach up to 1690 kg/ha in this experiment. The ML regression methods showed that there was a linear relationship between the indicator variables and GYUA, GYP, OP, and PP. ML Linear Regression, SVR Linear Kernel, RFR, and GBDTR had generally lower MAE, MSE, and RMSE than other SVR method and showed good fitting to the data set. Although both RFR and GBDTR have inherently lower bias than other utilized methods, the GBDTR method is a better choice since over-fitting is regarded as a disadvantage for the ML RFR.

Materials and methods

During years 2014–2017 an agronomic study has been implemented to evaluate the Balngu’s different agronomic properties. A machine learning approach is used to assess the evaluated agronomic properties. The whole process has been illustrated in Fig. 7. The detail of the measurement, data collection and data processing have been given in the next sections.

Figure 7
figure 7

The schematic of the methodology has been implemented to study Balangu’s agronomic properties.

Characteristics of the experimental site

This research was carried out in the research station of the Faculty of Agriculture, University of Tabriz, Tabriz, Iran. The experimental site was located at the longitude of 46° 17′, latitude of 38° 05′, and altitude of 1360 m. The annual rainfall was about 285 mm, averaged over four years. The average temperature was recorded about at 10 °C, with Tmax = 16.6 °C and Tmin = 4.2 °C. The physical properties of soil are given in Table 7. The soil type was silty loam with the pH of 7.75.

Table 7 The properties of soil in the experimental site.

Plant material and experimental design

In the present investigation, 49 ecotypes were evaluated in four years (2014–2017), using the 7 × 7 triple design. The codes and locality of the ecotypes are listed in Table 8. Permission to collect the seeds of ecotypes was obtained from the farmers of each region before sampling. This study complies with relevant institutional, national, and international guidelines and legislation.

Table 8 Code and locality of Lallemantia iberica ecotypes were evaluated in this study.

Each plot consisted of five rows of 1.5 m in length, with the between-row distance of 20 cm and within-row spacing of 1 cm. The planting density was 500 seeds per m2. The planting date each year was the 4th of May. Standard cultural practices, such as soil fertilization, irrigation, and weed control were performed during the growing season. The harvesting date in each year was the 26th of July. The harvested area was 0.5 m2 of the plot center. During the growing season and at the harvest, 37 traits were measured in each plot.

To estimate leaf area index (LAI) the green leaf area per unit area of ground surface was determined25. Also, leaf chlorophyll index at the full-flowering stage using three random plants in each plot. In each plant, the chlorophyll index was measured from three parts (bottom, middle, top), using CCM-200 Plus (Opti-Sciences Inc., NH, USA).

Data analysis

In this study, different ML regression methods were considered to predict the four labels, namely GYUA, GYP, OP, and PP by other measured traits. The ML regression methods included ML Regression, SVR Linear Kernel, SVR Gaussian Kernel, SVR Polynomial Kernel, SVR Sigmoid Kernel, RFR, and GBDTR were used to analyze the four-years data set2631,32,33. The K-fold cross-validation was used to split the training and the test data sets. Furthermore, MAE, MSE, and RMSE were utilized to compare the efficiency of the ML regression methods.

Machine learning regression

Linear regression

Supervised learning is the base of the linear regression in the machine learning method with a target prediction of the independent variable34.

$$y = \theta_{1} + \theta_{2} x$$
(1)

In this equation, x is input training data (univariate—one input variable (parameter)), and y is labeled to data (supervised learning). In the training process, model the best line to predict the value of y for a given value of x is fitted. The process would provide the best deals for the θ1 (intercept) and θ2 (coefficient of x) after fitting. Afterward, the coefficient would predict the y value with a given x data in the test process. A cost function of linear regression is used to minimize the Root Mean Squared Error (RMSE) between predicted y value and experimental y value (y).

Ridge regression

Linear regression with a tuning model is the Ridge regression method. It is used where multi-collinearity is observed. Unbiased least-square and significant variance are the results of multi-collinearity. The second-order linear regularization was used in the Ridge regression35. The cost function is shown by:

$$\min \left[ {\left( {y - \theta x} \right)^{2} + \lambda \theta^{2} )} \right]$$
(2)

LASSO regression

The Ridge regressions are replaced with the LASSO regression with first-order linear regularization where some of the variables do not contribute effectively to the prediction task. Then the coefficients of the corresponding variables would be zero. It led to reforming the model function to a selective model and enhanced the prediction task36.

Elastic Net regression

Where, the ridge and lasso regression are both limited to L1 and L2 norms, the elastic net could be used without these limited conditions ignoring the penalties of ridge and LASSO regressions. Ultimately, the elastic net regression could be used efficiently for linear regression. The elastic net could be applied in complex regression problems with simplicity37.

Support vector machine (SVM)

The reduction of the elastic net to linear regression with support shows efficient results in the optimization problems. A training dataset with linear SVM learns and separates the data in a classification setting and parameterizes it by a weight vector for a unique solution38.

Decision tree

IT is a powerful ML method for regression and classification of complex datasets to perform multi-output tasks. Also, the foundation of random forest regression is a more complex method for regression that would be explained. The most critical parameter in this method is the depth or layer of the decision tree. It could be used to perform regression and as a predictor to evaluate the optimized value of the label with the corresponding selected features with more bias and lower variance concerning the other methods39.

Gradient boosting decision tree regression

This method is considered in this research. It is an ensemble learning method that is coupled with a decision tree. It uses the shrinkage regularization technique. This method also supports a subsample hyper-parameter that specifies the fraction of training increases to train the trees. As could be deducted, this technique is a higher bias for lower variance. The main advantage of this method is the speeded-up training process40.