Figure 4 shows the result of changing the 
sampling rate of undersampling. Both random 
sampling and NearMiss increase in accuracy as the 
sampling rate increases. To paraphrase, the accuracy 
is higher for the cases having data closer to the 
balanced data. In particular, 
ENIT_UnderNearMiss10 has a recall of 0.92 and 
can predict irrigation timing with high accuracy.  
5  CONCLUSIONS 
We proposed a novel method for resolving 
imbalances suitable for irrigation timing and its 
prediction. We addressed the imbalance of irrigation 
timing data by using undersampling for eliminating 
data based on near irrigation timing (ENIT), to 
eliminate the non-irrigation data near the time of 
irrigation. The performance of the proposed method 
was evaluated using actual agricultural data. In the 
evaluation, the prediction accuracy of irrigation 
timing was compared by using environmental data 
related to the irrigation of tomato. In the results, The 
accuracy was improved by the two methods that 
applied the proposed method. We showed that the 
prediction accuracy of small frequent irrigation can 
be improved by applying the method for eliminating 
imbalances that takes into account the characteristics 
of irrigation timing data. This result shows that it is 
necessary to eliminate the imbalance in the 
prediction of irrigation timing. Furthermore, the 
result shows that it is effective to consider irrigation 
characteristics to eliminate imbalance. The aim in 
future is to automatically cultivate various crops by 
controlling through IoT devices, which are able to 
control the irrigation timing in greenhouses based on 
the proposed method. IoT technology has already 
been introduced in the agricultural domain.  
In future, we will evaluate the general purpose of 
the proposed method under various conditions with 
different greenhouses, cultivation methods, and 
water supply. In addition, the prediction model will 
be examined. Specifically, the application of Long-
Short Term Memory (LSTM) (Sepp & Jurgen, 1997), 
which is one of the most powerful deep learning 
methods, will be considered. LSTM can be 
considered for irrigation timing because it can 
consider long-term time series. In addition, we will 
consider Dynamic Time Warping (DTW) (Bemdt & 
Clifford, 1994) to error indicator. Recall and F-
measure are evaluated for one point in time without 
considering time series. Thus, a model that is off by 
only one point in time and a model that cannot be 
predicted at all are both incorrect. Therefore, we 
evaluate the similarity between two time-series 
sequences using DTW. 
ACKNOWLEDGEMENTS 
We greatly appreciate Mr. Makoto Miyachi (Happy 
Quality Co., Ltd., Japan) and Mr. Daigo Tamai (Sun 
Farm Nakayama Co., Inc., Japan) for providing an 
environment for data collection. 
REFERENCES 
Bemdt, D. J., & Clifford, J. (1994). Using Dynamic Time 
Warping toFindPatterns in Time Series. AAAI, 359–
370. 
Capraro, F., Tosetti, S., Rossomando, F., Mut, V., & 
Serman, F. V. (2018). Web-based system for the 
remote monitoring and management of precision 
irrigation: A case study in an arid region of Argentina. 
Sensors (Switzerland),  18(11). https://doi.org/ 
10.3390/s18113847 
Chawla, N. V, Bowyer, K. W., Hall, L. O., & Kegelmeyer, 
W. P. (2002). SMOTE: Synthetic Minority Over-
sampling Technique. In Journal of Artificial 
Intelligence Research (Vol. 16). 
Chen, H., Chen, Change, H., & Xiaoou, T. (2016). 
Learning Deep Representation for Imbalanced 
Classification. CVPR. 
Haibo, H., Yang, B., Edwardo, A, G., & Shutao, L. 
(2008).  ADASYN: Adaptive Synthetic Sampling 
Approach for Imbalanced Learning. 1322–1328. 
https://doi.org/10.1109/IJCNN.2008.4633969 
Jianping, Z., & Inderjeet, M. (2003). kNN Approach to 
Unbalanced Data Distributions: A Case Study 
involving Information Extraction. Int’l. Conf. 
Machine Learning1(ICML). 
Joaquín,Gutiérrez, J., Jua, Francisco, V.-M., Aracely, L.-
G., & Miguel, Porta-Gándara, Á. (2015). 
Smartphone Irrigation Sensor. Sensors,  15(9), 
5122–5127. 
https://doi.org/10.1109/JSEN.2015.2435516 
Kazumasa, W., Ryosuke, M., Gota, N., & Hiroshi, M. 
(2019). Multimodal neural network with clustering-
based drop for estimating plant water stress. 
Computers and Electronics in Agriculture, 105118. 
https://doi.org/10.1016/J.COMPAG.2019.105118 
Kazumasa, W., Shun, S., Hiroshi, M., Takeshi, S., Daichi, 
S., Yoshikazu, K., & Katsumi, S. (2018). Time 
series Feature Injection Method for Estimating 
Plant Evapotranspiration using Neural Networks. 
Pattern Recognition and Media Understanding 
(PRMU). 
Liu, X., Xu, C., Zhong, X., Li, Y., Yuan, X., & Cao, J. 
(2017). Comparison of 16 models for reference crop 
evapotranspiration against weighing lysimeter 
measurement.  Agricultural Water Management,