Next Article in Journal
Pathways to the Sustainable Development of Quality Education for International Students in China: An fsQCA Approach
Previous Article in Journal
The Evaluation of Village Fund Policy in Penukal Abab Lematang Ilir Regency (PALI), South Sumatera, Indonesia
Previous Article in Special Issue
Modeling the Level of Drinking Water Clarity in Surabaya City Drinking Water Regional Company Using Combined Estimation of Multivariable Fourier Series and Kernel
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Two-Phase Stratified Random Forest for Paddy Growth Phase Classification: A Case of Imbalanced Data

1
Department of Statistics, Institut Teknologi Sepuluh Nopember, Surabaya 60111, Indonesia
2
BPS—Statistics Indonesia, Jakarta 10710, Indonesia
*
Author to whom correspondence should be addressed.
Sustainability 2022, 14(22), 15252; https://doi.org/10.3390/su142215252
Submission received: 14 October 2022 / Revised: 10 November 2022 / Accepted: 14 November 2022 / Published: 17 November 2022

Abstract

:
The United Nations Sustainable Development Goals (SDGs) have had a considerable impact on Indonesia’s national development policies for the period 2015 to 2030. The agricultural industry is one of the world’s most important industries, and it is critical to the achievement of the SDGs. The second major aspect of the SDGs, i.e., zero hunger, addresses food security (SDG 2). To measure the status of food security, accurate statistics on paddy production must be accessible. Paddy phenological classification is a way to determine a food plant’s growth phase. Imbalanced data are a common occurrence in agricultural data, and machine learning is frequently utilized as a technique for classification issues. The current trend in agriculture is to use remote sensing data to classify crops. This paper proposes a new approach—one that uses two phases in the bootstrap stage of the random forest method—called a two-phase stratified random forest (TPSRF). The simulation scenario shows that the proposed TPSRF outperforms CART, SVM, and RF. Furthermore, in its application to paddy growth phase data for 2019 in Lamongan Regency, East Java, Indonesia, the proposed TPSRF showed higher overall accuracy (OA) than the compared methods.

1. Introduction

The agricultural sector plays a crucial role in reaching the UN’s Sustainable Development Goals (SDGs) on a worldwide scale. Food security is one of the main indicators of the SDGs listed in the second objective, namely zero hunger (SDGs 2). A country needs access to reliable paddy production data to assess the state of food security. Observing food crops, particularly paddies, has been used to achieve the goal of SDG two. Monitoring of the paddy growth phase was carried out by Statistics Indonesia (BPS) by the conducting of an area sample frame (ASF) survey, using samples taken at random for as much as 5% of the total paddy field area (LBS). BPS data on the growth phase of paddy are crucial in predicting a harvest, but they contain limited information about individual variations in non-sampled areas.
On the other hand, the paddy growth phase can be observed using remote sensing techniques. Landsat-8 satellite imagery data can be a solution to the weakness of the ASF survey method in terms of the limited sample size of rice fields in Indonesia. Many researchers have utilized remote sensing. In agriculture, remote sensing data are used for plant species classification [1,2], harvested area estimation [3], and rice mapping [4,5]. The utilization of remote sensing data in the form of pixels for a segmented method in ASF results in the creation of “Geo Big Data” [6,7], which requires new technologies and resources, such as cloud computing [8], that can handle massive amounts of satellite imagery. Dean [9] has used machine learning to solve big data problems. Many fields and disciplines take advantage of remote sensing. Remote sensing imagery has been utilized to model the paddy growth phase in agriculture because the paddy fields have many spatio-temporal features that may be used to find vegetation indexes [10], plant species classification [11], harvested area estimation [3], or rice mapping [4]. Chang et al. [12] have stated that there are four growth phases for rice, each based on the characteristics of the reflectance spectrum. The paddy growth phases are also a challenge; Kim et al. [13] have tried to classify the rice plant phases. Zhao et al. [4] have stated that spectral bands during the growing season can be used to identify rice growth phases. Dong et al. [14] have stated that many features/variables involved in mapping agricultural areas need to be discussed comprehensively. The solution offered by Singha et al. [15] was to use phenological features or growth phases, which greatly reduced errors due to spectral similarity.
One problem that may occur in machine learning is imbalanced data classes [16]. An imbalance of data classes occurs when one class has a much larger amount of data than other classes. Under conditions of imbalanced data, most of the classifiers in machine learning will be biased toward the problem of imbalanced data, because the classifier’s likelihood of predicting the major class will be greater than the minor class [17]. Suryono et al. [18] used the random forest (RF) method to solve the imbalance problem in ASF data. The issue of imbalanced data has been addressed through the conduct of numerous studies, one of which took an algorithm-level approach. The approach at the algorithm level is made by creating or modifying an algorithm that considers the significance of the positive class. Algorithm-level methods include cost-sensitive and recognition-based approaches, such as support vector machines (SVM) and radial basis functions [19], as well as random forest classification [20]. To overcome the problem of imbalances in paddy growth phase data, this paper proposes a random forest method that uses a two-phase stratified random forest (TPSRF) to improve the performance of the random forest.
Sheykhmousa et al. [21] compared the RF method’s performance with the SVM method and RF has consistently higher performance. This machine learning algorithm is widely used for classification since it is insensitive to multicollinearity and classification decisions are taken from the majority vote among all trees [22]. Because it is an ensemble method, RF can be used to answer the problem of temporal autocorrelation in rice growth phase data [23].
Suryono et al. [18] have conveyed that have been indications of imbalanced data in paddy growth phase data in Indonesia. RF has been widely developed for imbalanced cases such as the balanced random forest (BRF) method developed by Hema et al. [24] and the weighted random forest (WRF) method developed by Chen et al. [25]. More et al. [26] have stated that BRF has several weaknesses, namely that it allows important data to be wasted as part of undersampling process carried out at the bootstrap stage, which can alter the classification results. Wu et al. [27] introduced a stratified random forest (SRF) method as a solution to the classification of genome-wide SNP data with imbalanced data.

2. Materials and Methods

2.1. Dataset

The study used Landsat-8 satellite imagery for January–December 2019, which was processed through the Google Earth engine (GEE) to produce raw data containing the image capturing date, coordinates, and vegetation index. Landsat-8 collects data every 16 days. The variables used in this study were the spectral emission band 1 (coastal aerosol), band 2 (blue), band 3 (green), band 4 (red), band 5 (NIR), band 6 (short-wave infrared—SWIR) 1, and band 7 (short-wave infrared—SWIR) 2, as well as four selected indices, namely EVI, NDVI, NDBI, and NDWI. The vegetation index was derived from the spectral band and was chosen based on research to identify the paddy growth phase [10]. The Agency for the Assessment and Application of Technology Indonesia (BPPT) aided Statistics Indonesia (BPS) in developing the area sample framework (ASF) survey, which was used to collect response data in 2019. The label data contained the response variables from the observation coordinates, which were ASF samples, and produced five classes of paddy growth phases, which are labeled as early vegetative (Class 1), late vegetative (Class 2), generative (Class 3), harvest (Class 4), land preparation/bera (Class 5), and crop failure/puso (Class 6). This study examined the paddy growth phase in Lamongan Regency, East Java, which is one of the largest rice producers in Indonesia.

2.1.1. Vegetation Index (VI) Composite Extraction

Vegetation index (VI) is a spectral modification of two or more bands designed to calculate the contribution of vegetation characteristics, comparing photosynthetic activity and canopy structural variation spatially and temporally [28]. The rice growth phase has been the subject of numerous studies using satellite image data to calculate the vegetation index [2]. These studies made use of a variety of satellite images, including Landsat-7 and Modis, which were later developed into Landsat-8. The four vegetation indexes that were derived from satellite imagery for the purpose of determining the phenology of paddy fields were Enhanced Vegetation Index (EVI), Normalized Difference Vegetation Index (NDVI), Normalized Difference Built-Up Index (NDBI), and Normalized Difference Water Index (NDWI). The surface bidirectional reflectance factors (BRF) for each band were ρNIR and ρRED [13].

2.1.2. Area Sampling Framework (ASF)

BPS and BPPT developed the area sampling framework (ASF) to calculate the monthly harvested paddy areas. An area framework is used in this sampling method [29]. In the entire research area, samples from the ASF survey were taken on a square area of 300 m × 300 m. Segments are regions with an area of 300 m by 300 m. One segment is divided into 9 subsegments with a size of 100 m × 100 m. One segment is counted as 1 sample area. The number of segment samples is 5% of the segment population in one block. The ASF survey in Lamongan Regency was conducted every month for a full year and collected data for 208 segments or 1872 subsegments. The total subsegments for a year were 22,464 subsegments. Rice phenology data from all subsegments of the field survey are used to calculate monthly estimates of the harvested area [30].
There are six phenology categories for paddy that were recorded in the ASF’s paddy growth phases. Table 1 provides both the visual representation and definition of the paddy phenology category.

2.2. Study Area

Lamongan is a regency in East Java province. Geographically, Lamongan has a position at 6°51′5″ to 7°23′6″ south latitude and is between the east longitude lines 112°4′41″ and 112°33′12″. In Landsat-8 imagery, Lamongan can be found on path/row 119/065. Lamongan comprises 50.17% lowlands with an altitude of 0 to 25 m, 45.68% plains with an altitude of 25 to 100, and 4.15% lands with an altitude of more than 100 m above sea level. Lamongan is bounded on the north by the Java Sea, on the south by the regencies of Jombang and Mojokerto, on the west by the regencies of Tuban and Bojonegoro, and on the east by the regency of Gresik (Figure 1).

2.3. Methodology

2.3.1. Random Forest

Random forest [20] is a CART development, using bagging and random feature selection in the decision tree, which selects multiple features at random in each iteration. The resulting tree contains as many iterations as possible, so it resembles a forest. Classification decisions are taken from the majority vote among all trees [22]. The problem with the DT is to the need to minimize the residual in order to choose which feature to use as a separator. The resulting tree structure is highly similar as a result, leading to a high predictor correlation. If the predictions from the sub-models are not related to one another or have a very low correlation, then the ensemble of predictions will work well when combined. In simple terms, the random forest formation algorithm can be stated as follows. Suppose we have training data of size n and consisting of p explanatory variables (predictors). The algorithm steps of this study adapted from Breiman [20] are as follows (Figure 2):
  • In the bootstrap stage, we drew a random sample with size n returns from the training data;
  • Using the bootstrap example, the tree was constructed until it reached its maximum size (without returns). We arranged a tree based on these data, but randomly selected m < p explanatory variable in each separation process and performed the best separation (random sub-setting stage);
  • We repeated steps 1–2 b times to form a forest consisting of b trees. We then created a combined estimate based on the b trees using the most votes.
Ye et al. [31] proposed a stratified random forest (SRF), a stratified sampling technique for selecting feature subspaces for random forest. The principle was to divide the features into two categories. Strong informative features were found in one group, while weak informative features were found in the other. The features were then chosen proportionally at random from each group for the feature subset selection. The ability to ensure that each subspace contains sufficient informative features for classification in high-dimensional data is one of the advantages of stratified sampling. The number of groups is referred to as a parameter in the SRF. This method selects the same number of variables from each group randomly to form a subspace in the selection of subspaces.

2.3.2. Two-Phase Stratified Random Forest (TPSRF)

The stratified sampling method divides a set of variables into numerous groups, each with a uniform level of informativeness. The proposed algorithm (two-phase stratified random forest) developed a random forest model from data training using the stratified sampling algorithm on the random forest stage’s bootstrap section. The distinction between TPSRF and SRF is that the TPSRF method utilizes a stratified step to select samples on the bootstrap, whereas SRF uses stratified sampling for feature selection.
Some steps of the bootstrap algorithm from the two-phase stratified random forest proposed in this study are as follows:
  • We determined the bootstrap sample (Z), as far as K from the training data (Z).
  • We generated a tree on RF with data in the bootstrap sample, repeating the following steps recursively for each terminal node in the tree until a minimum node size of n s min was obtained, i.e.,
    2.1.
    We determined the number of strata samples k (nk) (1st phase);
    • We determined the major class and minor class
      • We sorted in descending order of strata based on the number of Nk
      • The minor class was the smallest cumulative number of classes where θ 1 20 %
      • We calculated the number of strata in the minor class θ 1 and the number of strata in the major class θ 2
    • We determined the minor class θ 1 and major class θ 2 members
    • We determined the strata weights in the minor class θ 1 and major class θ 2
    2.2.
    We sampled the kth strata as far as nk (2nd phase).
  • We chose the best variable or split point.
  • We split a node into two subnodes.

2.3.3. Assessment Matrices

The accuracy, precision, and recall were used to evaluate the prediction’s performance. The confusion matrix shows the predicted results and performance metrics for the classification issues (Table 2). The values (AP, AN) denote positive and negative test data, respectively, and the values (PP, PN) denote predicted results for positive and negative classes. For each class, the number of true and false predictions is summarized [32].
TP is the outcome when the model correctly predicts the positive class, TN is the outcome when the model correctly predicts the negative class, FP is the outcome where the model incorrectly predicts the positive class, and FN is the outcome where the model incorrectly predicts the negative class. The evaluation metrics that are formulated to evaluate the classification results from the collected data are outlined in Equations (1)–(3).
Accuracy = TP + TN TP + TN + FP + FN ,
Precision = TP TP + FP ,
Recall = TP TP + FN .
The calculation of the degree of consistency between the two measurement procedures or the degree of agreement between observers when using a nominal scale, was determined using Kappa statistics [33]. The Kappa coefficient can measure the degree of agreement that can group objects into mutually exclusive classes.
The Kappa statistic’s equation κ is:
κ = i = 1 v p i i i = 1 v p i + p + i 1 i = 1 v p i + p + i ,
where i = 1 v p i i is the proportion of agreements, i = 1 v p i + p + i is the expected proportion of chance agreements. The F1 score is the average of the harmonics of precision and sensitivity. The F1 score equation is as follows:
F 1   score = 2 × R e c a l l × P r e c i s i o n R e c a l l + P r e c i s i o n

2.3.4. Data Preprocessing

The two stages used in data preprocessing were data formation and data extraction. The data formation stage was carried out by combining the variables derived from the ASF data and the satellite image data. This study used seven variables from the Landsat-8 imagery with the names Aerosol, Blue, Green, Red, NIR, SWIR 1, and SWIR 2 (Table 3), as well as four selected indices, namely EVI, NDVI, NDBI, and NDWI, and the ASF survey data as response variables.
Figure 3 shows the 2019 distribution of the ASF sample subsegments in Lamongan Regency. The ASF survey collects data on the paddy growth phase of as many as 208 segments in a month. This indicates that there were 1872 subsegments in total per month, and 22,464 per year. The monthly enumeration was carried out in the same subsegment. Figure 3 shows the observation point in one sample segment (nine subsegments).
The Landsat-8 imagery in each period produced 11 layer bands (Figure 4). In applying the random forest classification model, seven layer bands were used, namely layer bands 1 to 7. After obtaining the data from the Landsat-8 images and the data labels from the ASF surveys, we extracted the Landsat-8 image data into numbers.
The data extraction process was carried out with a scale of 40 m × 40 m according to the location of the sample subsegment in the ASF survey. The initial data frame consisted of bands one to seven, ASF label data, and several identities from other ASF surveys. The vegetation index values were calculated from band one to band seven, namely: the EVI, NDVI, NDWI, and the NDBI. The basic features were seven bands and four vegetation indices. Then, from the 11 basic features, the temporal features were derived for four Landsat-8 periods, namely period t to period t−3, so that there were 44 total temporal features. Period t is the Landsat-8 period adjacent to the ASF survey enumeration period every month. The period t−1 is the previous period.

2.3.5. Imbalanced Data

A classification data set with unbalanced class proportions is called imbalanced data; the number of data in one data class may be lower or higher than the number of data in another data class. The group of data classes with fewer data is the minor class θ 1 . The other data class group is called the major class θ 2 .
The ASF data with 1872 subsegments showed different proportions for each class in the paddy growth phase. This indicates that the ASF data had an imbalanced class. The classification method had difficulty performing generalization functions during the machine learning process because of this condition. Almost all classification algorithms, including CART, SVM, random forest, and others perform poorly when applied to data with extreme degrees of imbalance. The classification methods mentioned above were not specifically designed to deal with class imbalance problems. Classification of data with imbalanced classes is an urgent issue in machine learning, for example, remote sensing [34]. If they are working on imbalanced data, almost all classification algorithms will produce much higher accuracy for the majority class than for the minority class [35]. This difference is an indicator of poor classification performance.

3. Results and Discussion

3.1. Models Simulation

This section evaluates the performance of the RF model and the two-phase stratified RF model. This simulation study used a remote sensing dataset from the UCI machine learning repository. The dataset used was Forest Covertype/Covtype data to predict forest cover type using cartographic variables. Observations used with a 30 × 30 m area were based on data from the Resource Information System (RIS), the United States Forest Service (USFS), and the US Geological Survey (USGS). The study area included four forest areas located in the Roosevelt National Forest in northern Colorado. The simulation data contained 581,012 records with six land cover classification classes based on the main tree species, namely: spruce/fir (Class 1), lodgepole pine (Class 2), ponderosa pine (Class 3), cottonwood/willow (Class 4), aspen (Class 5), and Douglas fir (Class 6).
To evaluate the classification of the paddy growth phase, this study simulated nine scenarios to show how the accuracy reacted under different proportions of major class θ 1 , minor class θ 2 , training data d 1 , and testing data d 2 . The complete scenario of this simulation study can be seen in Table 4.
The performance of the model was evaluated using four measurement criteria, namely accuracy, precision, recall, and F1 score in cases of extremely imbalanced, imbalanced, and nearly balanced data proportions. The scenarios for the extremely imbalanced cases were scenarios 1, 4, and 7, the imbalanced cases were scenarios 2, 5, and 8, and the nearly balanced cases were scenarios 3, 6, and 9.
Simulation data were used to compare the implementation of the proposed two-phase stratified random forest, random forest, SVM, and CART. Table 5 presents the measurement accuracy of the proposed CART, SVM, RF, and TPSRF methods with scenarios based on Table 4. When the major class was set to 60% of the total data, the minor class CART obtained a high F1-score. The SVM obtained the highest F1-score when the minor class had a proportion of testing data of 0.7. Table 5 shows that the performance of the RF and TPSRF was quite high in all the scenarios used. The RF had a lower F1-score in scenario 1, where the major class was 95 percent θ 2 = 0.95 , and the minor class was 5 percent θ 1 = 0.05 , with the proportion of testing data at 0.8. The F1-score in this scenario was 0.22 in class 4. Meanwhile, the TPSRF experienced a decrease in the F1-score in scenario 1, where the major class was 0.95 and the minor class was 0.05 with the proportion of testing data at 70 percent d 1 = 0.7 . The F1-score in this scenario was 0.32. From the simulation data above, it was concluded that the RF and TPSRF methods had higher accuracy measures than CART and SVM.

3.2. Application to Real Data

The measurement data included ASF survey data for January to December 2019, as many as 22,464 observations, and feature data from Landsat-8 from November 2018 to December 2019. Bands 1 through 7 and ASF data make up the first data frame. Bands from the initial data frame were used to calculate the vegetation index values.
Table 6 displays the results of the accuracy measures consisting of the recall, precision, accuracy, Kappa, and F1-scores. The CART and SVM had an overall accuracy of 66.82% and 70.17% (respectively). The accuracy of these models in predicting the overall class was still low. This shows that these models could not effectively predict classes in which there were imbalanced data. The RF method is used to handle imbalanced data to improve the minority classes’ prediction performance. The RF produced an overall accuracy of 77.64%. The Kappa statistic value of the RF was also higher than the CART and SVM methods, at 0.71. The proposed method, TSPRF, was used to improve the accuracy of the RF output. The TSPRF produced higher accuracy and Kappa values than the RF, namely, 80.49% and 0.74, respectively.
The overall accuracy (OA) of the TPSRF was 80.49 percent. With a Kappa statistic of 0.74, this model efficiently categorized paddy phenology, suggesting an outstanding condition in terms of agreement strength. Class 6 had the highest user accuracy (UA) of 93.24 percent as shown in Table 7. This demonstrated that the TSPRF method in class 6 was accurately classifying the data in the actual class. The highest producer’s accuracy (PA) was also in class 6, 88.50 percent. This shows that in class 6, the TSPRF method succeeded in correctly classifying the data in the predicted class. In addition, TPSRF achieved a higher plant classification performance than other classification methods by studying temporal features automatically from time series satellite imagery. In this research, the main objective of the proposed TPSRF was to achieve high classification efficiency. Therefore, TPSRF optimizes the bootstrap stage by performing two phases. The first phase determines the number of samples of k (nk) strata by sorting in order of strata based on the number of Nk, determining that the minor class is the cumulative number of the smallest class where θ 1 20 % , and calculating the number of strata in the minor class θ 1 and the number of strata in the major class θ 2 . The second phase takes nk samples of the kth strata. This optimization implies that there has been a significant improvement in the value of accuracy and Kappa statistics (Table 6). The results show that the model proposed by TPSRF has the best performance in classification accuracy and is suitable to be applied to paddy growth phase classification. The results of the TPSRF classification can be used to obtain data on harvested areas to develop sustainable agriculture in Indonesia. TPSRF can be used by stakeholders in the improvement of conventional data collection methods to become more objective, scientific, and modern so that the collection of agricultural data becomes more timely, accurate, and valuable for the growth of food security and sustainability.

4. Conclusions

In conclusion, the proposed method of using a two-phase stratified random forest (TPSRF) to overcome the imbalanced data problem in the case of paddy growth phase in Lamongan Regency has been shown to be the appropriate strategy. In terms of the accuracy of the paddy growth phase classification in all classes, the TPSRF classification algorithm outperformed the CART, SVM, and RF classification algorithms based on experimental and simulation data. The TPSRF had the highest overall accuracy and Kappa statistics based on the experimental and actual data (80.49 percent and 0.74). TPSRF can be used by stakeholders to improve conventional data collection methods so that they become more objective, scientific, and modern and that collected agricultural data becomes more timely, accurate, and valuable for the growth of food security and sustainability. In order to classify imbalanced big geo data, more research employing various models is required. Other methods, such as a neural network, could help the model perform better.

Author Contributions

Conceptualization, H.S., H.K. and N.I.; methodology, H.S.; software, H.S.; writing—original draft preparation, H.S.; writing—review, H.K. and N.I.; writing—editing, H.S., H.K. and N.I.; visualization, H.S.; supervision, H.K. and N.I. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The data used in this study can be obtained from UCI Machine Learning repository’s website: https://archive.ics.uci.edu/ml/datasets.php (accessed on 8 March 2022).

Acknowledgments

The authors would like to express their gratitude to Statistics Indonesia (BPS) and Institut Teknologi Sepuluh Nopember (ITS) for providing the author with the opportunity to participate in the Department of Statistics’s doctoral program and for their assistance. In addition, the authors extend their gratitude to the other parties involved in the completion of this paper.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Azar, R.; Villa, P.; Stroppiana, D.; Crema, A.; Boschetti, M.; Brivio, P.A. Assessing In-Season Crop Classification Performance Using Satellite Data: A Test Case in Northern Italy. Eur. J. Remote Sens. 2016, 49, 361–380. [Google Scholar] [CrossRef] [Green Version]
  2. Asgarian, A.; Soffianian, A.; Pourmanafi, S. Crop Type Mapping in a Highly Fragmented and Heterogeneous Agricultural landscape: A Case of Central Iran Using Multi-temporal Landsat 8 Imagery. Comput. Electron. Agric. 2016, 127, 531–540. [Google Scholar] [CrossRef]
  3. You, J.; Li, X.; Low, M.; Lobell, D.; Ermon, S. Deep Gaussian Process for Crop Yield Prediction Based on Remote Sensing Data. In Proceedings of the 31th AAAI Conf. Artificial Intelligence, San Francisco, CA, USA, 4–9 February 2017; pp. 4559–4565. [Google Scholar]
  4. Zhao, R.; Li, Y.; Ma, M. Mapping Paddy Rice with Satellite Remote Sensing: A Review. Sustainability 2021, 13, 503. [Google Scholar] [CrossRef]
  5. Qiu, B.; Lu, D.; Tang, Z.; Chen, C.; Zou, F. Automatic and adaptive paddy rice mapping using Landsat images: Case study in Songnen Plain in Northeast China. Sci. Total Environ. 2017, 598, 581–592. [Google Scholar] [CrossRef] [PubMed]
  6. Shelestov, A.; Lavreniuk, M.; Kussul, N.; Novikov, A.; Skakun, S. Exploring google earth engine platform for big data processing: Classification of multi-temporal satellite imagery for crop mapping. Front. Earth Sci. 2017, 5, 17. [Google Scholar] [CrossRef] [Green Version]
  7. Mutanga, O.; Kumar, L. Google Earth Engine Applications. Remote Sens. 2019, 11, 591. [Google Scholar] [CrossRef] [Green Version]
  8. Mahdianpari, M.; Salehi, B.; Mohammadimanesh, F.; Homayouni, S.; Gill, E. The first wetland inventory map of newfoundland at a spatial resolution of 10 m using sentinel-1 and sentinel-2 data on the google earth engine cloud computing platform. Remote Sens. 2019, 11, 43. [Google Scholar] [CrossRef] [Green Version]
  9. Dean, J. Big Data, Data Mining and Machine Learning: Value Creation for Business Leaders and Practitioners; John Wiley & Sons: Hoboken, NJ, USA, 2014. [Google Scholar]
  10. Triscowati, D.W.; Sartono, B.; Kurnia, A.; Dirgahayu, D.; Wijayanto, A.W. Classification of Rice-Plant Growth Phase Using Supervised Random Forest Method Based on Landsat-8 Multitemporal Data. Int. J. Remote Sens. Earth Sci. (IJReSES) 2020, 16, 187. [Google Scholar] [CrossRef]
  11. Rahman, A.; Khan, N.; Ali, K.; Ullah, R.; Khan, M.E.H.; Jones, D.A.; Rahman, I.U. Plant Species Classification and Diversity of the Understory Vegetation in Oak Forests of Swat, Pakistan. Appl. Sci. 2021, 11, 11372. [Google Scholar] [CrossRef]
  12. Chang, K.W.; Shen, Y.; Lo, J.C. Predicting rice yield using canopy reactance measured at booting stage. Agron. J. 2005, 97, 872–878. [Google Scholar] [CrossRef]
  13. Kim, H.O.; Yeom, J.M. Effect of red-edge and texture features for object-based paddy rice crop classification using RapidEye multi-spectral satellite image data. Int. J. Remote Sens. 2014, 35, 7046–7068. [Google Scholar] [CrossRef]
  14. Dong, J.; Xiao, X. Evolution of regional to global paddy rice mapping methods: A review. ISPRS J. Photogramm. Remote Sens. 2016, 119, 214–227. [Google Scholar] [CrossRef] [Green Version]
  15. Singha, M.; Wu, B.; Zhang, M. An Object-Based Paddy Rice Classification Using Multi-Spectral Data and Crop Phenology in Assam, Northeast India. Remote Sens. 2016, 8, 479. [Google Scholar] [CrossRef] [Green Version]
  16. Yang, Q.; Wu, X. 10 Challenging problems in data mining research. Int. J. Inform. Technol. Decis. 2006, 5, 597–604. [Google Scholar] [CrossRef] [Green Version]
  17. Japkowicz, N.; Stephen, S. The Class Imbalance Problem: A Systematic Study. IDA J. 2002, 6, 429–449. [Google Scholar] [CrossRef]
  18. Suryono, H.; Kuswanto, H.; Iriawan, N. Rice phenology classification based on random forest algorithm for data imbalance using Google Earth engine. Procedia Comput. Sci. 2022, 197, 668–676. [Google Scholar] [CrossRef]
  19. Nitesh, V.C.; Japkowicz, N.; Kolcz, A. Special Issue on Learning from Imbalance Data Sets. SIGKDD Explor. 2004, 6, 1–6. [Google Scholar]
  20. Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Green Version]
  21. Sheykhmousa, M.; Mahdianpari, M.; Ghanbari, H.; Mohammadimanesh, F.; Ghamisi, P.; Homayouni, S. Support vector machine versus random forest for remote sensing image classification: A meta-analysis and systematic review. IEEE J. Sel. Top. Appl. Earth Observ. Remote Sens. 2020, 13, 6308–6325. [Google Scholar] [CrossRef]
  22. Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning (Data Mining, Inference, And Prediction); Springer: New York, NY, USA, 2009. [Google Scholar]
  23. Han, J.; Kamber, M.; Pei, J. Data Mining Concepts and Techniques, 3rd ed.; Kaufman Publisher: Burlington, MA, USA, 2012. [Google Scholar]
  24. Hema, A.; Kavitha, B. A Study on Classification of Imbalanced Data Set. Int. J. Innov. Sci. Eng. Technol. 2014, 1, 247–250. [Google Scholar]
  25. Chen, C.; Liaw, A.; Breiman, L. Using Random Forest to Learn Imbalanced Data; Technical Report 666; University of California: Berkeley, CA, USA, 2004. [Google Scholar]
  26. More, A.S.; Rana, D.P. Review of random forest classification techniques to resolve data imbalance. In Proceedings of the 1st International Conference on Intelligent Systems and Information Management (ICISIM 2017), Aurangabad, India, 5–6 October 2017; pp. 72–78. [Google Scholar]
  27. Wu, Q.; Ye, Y.; Liu, Y.; Ng, M.K. SNP selection and classification of genome-wide SNP data using stratified sampling random forests. IEEE Trans. Nanobiosci. 2012, 11, 216–227. [Google Scholar] [CrossRef] [PubMed]
  28. Huete, A.; Didan, K.; Miura, T.; Rodriguez, E.P.; Gao, X.; Ferreira, L.G. Overview of the radiometric and biophysical performance of the MODIS vegetation indices. Remote Sens. Environ. 2002, 83, 195–213. [Google Scholar] [CrossRef]
  29. Jinguji, I. Dot Sampling Method for Area Estimation. Crop Monitoring for Improved Food Security; FAO & ADB: Bangkok, Thailand, 2015. [Google Scholar]
  30. Badan Pusat Statistik. Pedoman Pelaksanaan Uji Coba Sistem Kerangka Sampel Area (KSA); BPS: Jakarta, Indonesia, 2015.
  31. Ye, Y.; Wu, Q.; Zhexue Huang, J.; Ng, M.; Li, X. Stratified sampling for feature subspace selection in random forests for high dimensional data. Pattern Recognit. 2013, 46, 769–787. [Google Scholar] [CrossRef]
  32. Visa, S.; Ramsay, B.; Ralescu, A.L.; Van Der Knaap, E. Confusion matrix-based feature selection. MAICS 2011, 710, 120–127. [Google Scholar]
  33. Viera, A.J.; Garrett, J.M. Understanding interobserver agreement: The Kappa Statistic. Fam. Med. 2005, 37, 360–363. [Google Scholar] [PubMed]
  34. Chen, H.; Li, W.; Shi, Z. Adversarial instance augmentation for building change detection in remote sensing images. IEEE Trans. Geosci. Remote Sens. 2021, 60, 5603216. [Google Scholar] [CrossRef]
  35. Gu, Q.; Wang, X.; Wu, M.Z.; Ning, B.; Xin, C.S. An improved SMOTE algorithm based on genetic algorithm for imbalanced data classification. J. Dig. Inf. Manag. 2016, 14, 92–103. [Google Scholar]
Figure 1. Geographical location of Lamongan Regency, East Java, Indonesia.
Figure 1. Geographical location of Lamongan Regency, East Java, Indonesia.
Sustainability 14 15252 g001
Figure 2. Visualization of random forest method.
Figure 2. Visualization of random forest method.
Sustainability 14 15252 g002
Figure 3. Distribution of the ASF sample points in Lamongan Regency, East Java, Indonesia in 2019.
Figure 3. Distribution of the ASF sample points in Lamongan Regency, East Java, Indonesia in 2019.
Sustainability 14 15252 g003
Figure 4. Extract results from the Landsat-8 imagery (11 layer bands).
Figure 4. Extract results from the Landsat-8 imagery (11 layer bands).
Sustainability 14 15252 g004
Table 1. Paddy phenology definitions and visual displays in the ASF survey.
Table 1. Paddy phenology definitions and visual displays in the ASF survey.
NoPaddy PhenologyDefinitionVisual Display
1Early vegetativeThe early vegetative phase starts from the first growth phase until the tiller reaches its maximumSustainability 14 15252 i001
2Late vegetativeThis phase starts from the appearance of the first tiller until the maximum number of tillers appearsSustainability 14 15252 i002
3GenerativeThis phase starts when the panicles come out until they ripen and then harvestSustainability 14 15252 i003
4HarvestingThis phase is from the beginning to the end of the harvestSustainability 14 15252 i004
5Bera (land preparation)The phase when the paddy fields are cultivated to get ready for the growth of the paddySustainability 14 15252 i005
6Puso (crop failure)This label causes rice production to fall below 11 percent of normal due to natural disasters or pests.Sustainability 14 15252 i006
Table 2. Confusion matrix.
Table 2. Confusion matrix.
Actual Positive (AP)Actual Negative (AN)
Predicted Positive (PP)
Predicted Negative (PN)
True Positives (TP)
False Negatives (FN)
False Positives (FP)
True Negatives (TN)
Table 3. Types and uses of the Landsat-8 Band (used in the study).
Table 3. Types and uses of the Landsat-8 Band (used in the study).
Band NameLandsat-8
Spectral Range (µm)
Vegetation Index (VI)Equation
Coastal Aerosol0.43–0.45EVI E V I = 2.5 ( ρ N I R ρ R E D ) ( 1 + ρ N I R + 6 ρ R E D 7.5 ρ R E D )
Blue0.45–0.51
Green0.53–0.59NDVI N D V I = ( ρ N I R ρ R E D ) ( ρ N I R + ρ R E D )
Red0.63–0.67
NIR0.85–0.88NDBI N D B I = ( ρ S W I R 1 ρ N I R ) ( ρ S W I R 1 + ρ N I R )
SWIR11.57–1.65
SWIR22.11–2.29NDWI N D W I = ( ρ N I R ρ S W I R 1 ) ( ρ N I R + ρ S W I R 1 )
Table 4. Machine learning algorithm scenarios using the simulation data.
Table 4. Machine learning algorithm scenarios using the simulation data.
Scenario θ 1 θ 2 d 1 d 2
10.050.950.700.30
20.200.800.700.30
30.400.600.700.30
40.050.950.800.20
50.200.800.800.20
60.400.600.800.20
70.050.950.900.10
80.200.800.900.10
90.400.600.900.10
Table 5. CART, SVM, random forest, and two-phase stratified random forest statistics for the simulation data set.
Table 5. CART, SVM, random forest, and two-phase stratified random forest statistics for the simulation data set.
ScenarioMethodClass 1Class 2Class 3
PrecissionRecallF1-ScorePrecissionRecallF1-ScorePrecissionRecallF1-Score
1RF0.920.940.931.000.960.980.890.970.93
TPSRF0.950.980.970.981.000.990.820.980.90
SVM0.940.960.950.940.850.900.890.880.89
CART0.920.830.870.870.840.860.910.870.89
2RF0.930.980.951.000.960.980.980.930.95
TPSRF0.970.890.930.950.950.950.900.970.94
SVM0.980.980.981.000.930.960.930.930.93
CART0.950.870.910.910.980.940.800.970.88
3RF0.870.930.901.001.001.000.951.000.98
TPSRF1.001.001.000.940.890.920.900.950.92
SVM1.000.930.960.950.950.950.911.000.95
CART0.930.810.870.951.000.970.900.950.92
4RF0.830.980.901.001.001.000.830.840.83
TPSRF0.771.000.871.000.940.970.770.920.84
SVM0.880.980.930.910.900.910.810.670.73
CART0.890.630.740.940.960.950.730.790.76
5RF0.970.970.970.970.970.970.740.930.82
TPSRF0.000.000.001.001.001.000.730.760.74
SVM1.000.910.950.880.910.900.670.800.73
CART0.850.850.850.940.860.900.900.600.72
6RF0.931.000.961.001.001.000.950.900.93
TPSRF1.000.880.931.001.001.000.820.880.85
SVM0.811.000.900.880.880.880.940.810.87
CART1.000.760.870.940.830.880.670.930.78
7RF0.950.970.961.000.930.960.610.680.64
TPSRF0.940.920.930.970.920.940.860.670.75
SVM0.950.950.950.900.930.910.700.760.73
CART0.870.870.870.790.880.830.700.630.67
8RF1.000.960.981.000.900.950.820.780.80
TPSRF0.920.960.941.000.920.960.940.630.75
SVM0.931.000.960.900.950.930.800.700.74
CART0.920.960.940.900.820.860.610.610.61
9RF0.821.000.901.000.920.960.560.820.67
TPSRF0.920.920.921.001.001.000.770.830.80
SVM0.821.000.901.000.920.960.590.910.71
CART0.780.700.740.830.770.800.820.500.62
ScenarioMethodClass 4Class 5Class 6
PrecissionRecallF1-scorePrecissionRecallF1-scorePrecissionRecallF1-score
1RF0.400.150.220.860.810.830.750.850.80
TPSRF0.750.200.320.940.860.900.850.880.86
SVM0.140.080.100.800.830.810.720.850.78
CART0.230.230.230.670.640.650.540.760.63
2RF0.500.750.600.940.920.930.930.950.94
TPSRF0.670.600.630.920.890.910.850.890.87
SVM0.250.500.330.850.920.880.890.830.86
CART0.750.190.300.840.860.850.830.890.86
3RF1.000.500.671.000.850.920.851.000.92
TPSRF1.000.200.330.901.000.950.901.000.95
SVM0.000.000.000.920.880.900.820.820.82
CART0.500.330.400.850.960.901.000.890.94
4RF0.710.780.740.930.790.850.920.810.86
TPSRF0.830.750.790.920.910.910.910.810.86
SVM0.590.760.670.820.770.790.860.750.80
CART0.720.630.670.660.720.690.610.880.72
5RF0.920.730.810.860.810.830.750.830.79
TPSRF0.650.670.660.940.790.860.760.740.75
SVM0.700.620.660.700.740.720.680.660.67
CART0.530.730.620.610.830.700.830.770.80
6RF0.760.760.760.790.850.810.760.720.74
TPSRF0.750.750.750.880.880.880.820.880.85
SVM0.600.530.560.820.690.750.640.780.70
CART0.530.470.500.541.000.700.780.640.70
7RF0.800.840.820.970.870.920.870.720.79
TPSRF0.810.940.870.910.860.890.830.670.74
SVM0.780.840.810.960.710.820.720.640.68
CART0.820.770.790.820.790.810.580.780.67
8RF0.860.890.871.000.860.930.630.790.70
TPSRF0.800.940.860.880.880.880.740.580.65
SVM0.850.890.870.940.550.700.520.740.61
CART0.830.810.820.660.830.730.680.570.62
9RF0.710.800.750.900.690.780.670.290.40
TPSRF0.860.930.891.000.920.960.890.670.76
SVM0.710.750.731.000.690.820.560.360.43
CART0.750.730.740.621.000.760.500.780.61
Table 6. Accuracy measure of the CART, SVM, RF, and TPSRF methods.
Table 6. Accuracy measure of the CART, SVM, RF, and TPSRF methods.
MethodLandsat-8 and ASF Dataset
Recall (%)Precision (%)Accuracy (%)Kappa
CART60.4060.9266.820.58
SVM64.3360.9170.170.62
RF74.4070.7077.640.71
TPSRF71.5069.4980.490.74
Table 7. Confusion matrix of the prediction of the TPSRF algorithm.
Table 7. Confusion matrix of the prediction of the TPSRF algorithm.
Actual ClassPA (%)
123456
Predicted Class117794714581.94
210321000061.54
369139311373.54
4221912901676.79
5700414546.67
61000291340088.50
UA (%)83.4961.5480.8164.5033.3393.24
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Suryono, H.; Kuswanto, H.; Iriawan, N. Two-Phase Stratified Random Forest for Paddy Growth Phase Classification: A Case of Imbalanced Data. Sustainability 2022, 14, 15252. https://doi.org/10.3390/su142215252

AMA Style

Suryono H, Kuswanto H, Iriawan N. Two-Phase Stratified Random Forest for Paddy Growth Phase Classification: A Case of Imbalanced Data. Sustainability. 2022; 14(22):15252. https://doi.org/10.3390/su142215252

Chicago/Turabian Style

Suryono, Hady, Heri Kuswanto, and Nur Iriawan. 2022. "Two-Phase Stratified Random Forest for Paddy Growth Phase Classification: A Case of Imbalanced Data" Sustainability 14, no. 22: 15252. https://doi.org/10.3390/su142215252

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop