Open Access Paper
28 December 2022 Intelligent sprinkler irrigation system based on k-means algorithm
Chunlong Fu, LingXiao Zheng, Teng Sheng, Xuelian Zhang
Author Affiliations +
Proceedings Volume 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022); 1250606 (2022) https://doi.org/10.1117/12.2662055
Event: International Conference on Computer Science and Communication Technology (ICCSCT 2022), 2022, Beijing, China
Abstract
At present, the layout of sprinkler position in the irrigation system mainly depends on manual design. When the irrigation scale is large, the manual layout is difficult to realize, and the unreasonable layout is easy to cause problems such as sprinkler irrigation equipment and water resources waste. In this paper, the k-means algorithm in machine learning is applied to agricultural irrigation, and the concept of intelligent sprinkler irrigation layout design is proposed. Firstly, the sprinkler irrigation area is simulated and stored in the computer based on the inner and outer point discrimination algorithm of polygon, and then the irrigation area is clustered and divided based on the k-means algorithm to obtain each cluster. The central point of each cluster is the best location for sprinkler installation. In the comparative experiment of irrigation areas with different shapes, it is concluded that the irrigation coverage and irrigation uniformity coefficient have a good performance. Compared with manual design, the intelligent irrigation layout proposed in this paper is more intelligent and reasonable.

1.

INTRODUCTION

Water saving irrigation obtains the maximum yield or income with the minimum water consumption. It is also an irrigation measure to maximize the crop yield and output value per unit of irrigation water. Sprinkler irrigation, drip irrigation and micro sprinkler irrigation have become the mainstream development direction in the field of international water-saving irrigation because of their strong water-saving ability, controllable irrigation process and good irrigation effect1, 2. Based on the purpose of rational utilization of water resources and reducing waste, we select more appropriate sprinkler irrigation types from the agricultural sprinkler irrigation system3, 4 according to the applicable areas for research. Sprinkler irrigation system can be divided into unit sprinkler irrigation system and pipeline sprinkler irrigation system5. Unit sprinkler irrigation system is mainly used in areas with less irrigation times. Due to its mobility, it has less demand for equipment investment; Pipeline sprinkler irrigation system is more suitable for areas with scarce water sources and few water intake points. It not only has convenient operation and high efficiency, but also has advantages in automatic control. In engineering, there are two main fixed pipeline nozzle layout methods6, 7: square and triangular combined layout. If the terrain is complex and the number of nozzles is designed to be large, it is difficult to design the best nozzle position according to the current manual experience, resulting in uneven crop irrigation and waste of water resources. This paper presents an intelligent sprinkler irrigation system based on K-means algorithm8 on how to automatically select the best nozzle layout.

2.

MATERIALS AND METHODS

2.1

Land simulation and construction

In order to facilitate the digital analysis of sprinkler irrigation system, the experimental land is simulated in this paper. By surveying and mapping the experimental land, the two-dimensional plan of the top view angle of the land is obtained. The edge of the polygon in the two-dimensional plan will be used as the boundary of the simulated land. Then evenly distributed points are generated in the interior of the polygon to simulate the plants in the land. In this way, the simulated soil map is obtained by computer simulation.

2.1.1

Land Boundary Range Construction.

The land boundary range is constructed. In the two-dimensional plan of the experimental land, the vertices of the polygon are arranged clockwise, and the points obtained after arrangement are used as the land boundary data set. In this way, the boundary information of land is obtained. Through the mapping relationship, the contour information of land can be simulated.

2.1.2

Land Data Set Construction.

Assuming that the plants are evenly distributed, the points of the grid data generated by the simulation are used as plants. Because it is difficult to directly generate uniform and dense grid points in the simulated land, we first build a large rectangular area, distribute grid points in the rectangular area, then put the simulated land into the rectangular area, and classify the points by using the polygon inner and outer point discrimination algorithm9, 10. If the plants fall in the simulated land, then the plant is kept, otherwise it will be deleted, so that there are uniform plants only in the simulated land, and finally the data set of the simulated land is obtained.

2.1

K-means Algorithm

K-means algorithm is a very classic algorithm in machine learning8. The algorithm divides a data set into several groups or classes through continuous iterative clustering, and finally obtains the optimal division. The traditional K-means algorithm has a local optimal solution. It has certain requirements for the initial center point and needs to distribute the initial point as evenly as possible. However, in this experiment, because the data set to be divided is uniformly distributed scattered points, the traditional K-means algorithm can still get the global optimal solution when the initial points are randomly selected.

The specific process of K-means algorithm is as follows:

  • (1) First, K sample points are randomly selected from the simulated land data set X = X1, X2, …, Xn as the initial center points of clustering, and then the K empty sets C=C1, C2, …, Ck (i=1, 2, …, K) generated by initialization are used to store the simulated land data set X.

  • (2) According to the proximity principle, all points Xi in the data set X are allocated to the corresponding cluster Ci, and finally a new cluster C is obtained.

  • (3) According to the new clusters obtained above, the center point of each cluster is taken as the new k center points.

  • (4) Steps 2 and 3 above are repeated, when the clustering center is no longer changed, the algorithm ends.

2.3

Nozzle position layout

Through the application of K-means clustering algorithm to the simulated land data set, the land is divided into the optimal K areas after many times of land division, and finally the sprinkler is installed at the center of each area. The algorithm is described as follows:

  • Input: Vertex information of polygon P = P1, P2, …, P2.

  • Step 1: The polygon vertex P is put in and the rectangle with the minimum size of the polygon is calculated.

  • Step 2: All grid points are traversed within the rectangle to judge whether these points are points within the polygon, and the points within the polygon are taken as the simulated land data set.

  • Step 3: Different K is taken, k-means algorithm is used to cluster and the simulated land data set is divided.

  • Output: Division results are obtained corresponding to the number k of different center points.

3.

EXPERIMENT

3.1

Construction and division of land simulation map

Firstly, the regular square is selected as the simulated land in this experiment, and the simulation map of the land is constructed according to the method in Section 2.1. The evenly distributed points in the map are the simulated plants. The simulation map of the land is shown in Figure 1a below.

Figure 1.

Simulated land division.

00037_PSISDG12506_1250606_page_3_1.jpg

The land simulation zoning map is completed by K-means algorithm. When k = 4, 8 and 12, the division results of the simulation map are shown in Figures 1b-1d respectively. Black dot “.” refers to the central point of each area, which is the location where the nozzle is installed.

3.2

Sprinkler irrigation coverage

In order to study the reliability of the algorithm in this paper, the sprinkler irrigation area coverage (CVR) is introduced as the evaluation index. The coverage rate is the ratio of the spraying area CS of garden sprinkler irrigation to the total area S of garden (CVR =CS/S). In this paper, a buried rotary jet nozzle with a range of about 0 to 15 meters is used to discuss the change of coverage when the parameters of range radius R and number k of nozzles are taken as different values.

3.2.1

The Solution Method of Sprinkler Irrigation Coverage.

Input: Sprinkler radius R, number of nozzles K, land simulation data set X.

Step 1: The division results of K clusters are obtained by dividing the simulated land data set X by K-means algorithm.

Step 2: M is obtained by counting the number of points Xi in the sprinkler irrigation area of the land simulation data set X

Step 3: Coverage CVR = M / N, where the denominator is the number of sample points in the simulated land.

Output: Coverage CVR

3.2.2

Sprinkler Irrigation Coverage Experiment.

In order to study sprinkler irrigation coverage, the simulated land s is obtained by simulation technology. At the same time, different clustering results can be obtained when taking different K values based on K-means algorithm. In this paper, k = 12 is selected as an example to obtain the divided simulation diagram, as shown in Figure 2a.

Figure 2.

Sprinkler irrigation coverage.

00037_PSISDG12506_1250606_page_4_1.jpg

In order to show the experimental content more vividly, this paper selects the rotating jet nozzle for the experiment when k = 12 and R = 9. The results of simulated land division are shown in Figure 2a. In Figure 2b, the blue and yellow areas are covered by the spraying range of one and two nozzles respectively, and the red area (less) indicates that it is covered by the spraying range of three or more nozzles.

In order to show the relationship between CVR and R and K more generally, when taking different nozzle range radius R and the number of nozzles K, this paper calculates the coverage CRV and draws the R, K-CVR function diagram, as shown in Figure 2c. From the diagram, it can be found that the range and the number of nozzles are positively correlated with the coverage. When the range R is constant, the more the number k of nozzles, the higher the coverage CVR; When the number of nozzles K remains unchanged, the larger the range R is, the higher the coverage CVR is, and when the range R reaches a certain degree, the rising rate of CVR will be lower when the range R is increased.

By selecting the range R and the number k of nozzles, we can select the parameters that meet the conditions of nozzle parameters, uniform spraying coverage and convenient pipe network layout. The R-K-CVR graph can quickly provide an effective reference for the layout of the nozzle.

3.3

Uniformity of sprinkler irrigation

The uniformity of sprinkler irrigation has a great impact on plant growth. The more uniform sprinkler irrigation is, the better plant growth will be. At the same time, it can also save water resources. In this paper, the classical Christensen uniformity11 is used to calculate the sprinkler uniformity of nozzle combination. The calculation formula is:

00037_PSISDG12506_1250606_page_4_2.jpg

where, Cu represents the uniformity of sprinkler irrigation; n represents the number of plants in the simulated land; hi indicates the precipitation depth of the ith plant. If the plant is not covered by the water sprayed by any sprinkler, the precipitation depth is 0; If it is covered by only one nozzle, the precipitation depth is 1; If it is sprayed and irrigated by N nozzles, the precipitation depth is n; 00037_PSISDG12506_1250606_page_4_3.jpg indicates the average precipitation depth of each detection point.

It can be found from Figure 3a that the sprinkler uniformity first increases, then decreases, and finally increases with the increase of sprinkler radius R. It can also be found in Figure 3b that the uniformity of sprinkler irrigation has the same change law as the number of sprinkler heads. In Figure 3c, the relationship between sprinkler uniformity and sprinkler radius and the number of sprinklers is analyzed. It can be found that the larger the sprinkler radius R, the greater the sprinkler uniformity Cu, and the more the number of nozzles K, the greater the uniformity Cu, but there is also a local maximum in the figure. In order to meet uniform sprinkler irrigation and save resources, the sprinkler radius and the number of nozzles corresponding to the local maximum in the figure can be selected when designing the sprinkler irrigation layout.

Figure 3.

Uniformity of sprinkler irrigation.

00037_PSISDG12506_1250606_page_5_1.jpg

4.

CONCLUSION

This paper puts forward the layout design of automatic sprinkler irrigation, which combines computer technology with agricultural irrigation design. It can simplify the design of fixed and semi fixed sprinkler irrigation layout, so as to reduce the design difficulty. The practical application of this design method can be as follows:

  • (1) In the actual project, as an auxiliary design, the rapid numerical and visual comparison of different layout is carried out, and the design in line with different terrain, different nozzle parameters and different pipe network layout is obtained. And the design can be adjusted manually according to the specific construction conditions, which is in line with the actual situation.

  • (2) In the application of new sprinkler irrigation technology, for example, the shape of the spraying range of a single nozzle is a programmable polygon with user-defined shape. Using the characteristics of this design algorithm (and each partition is a polygon), we can achieve full coverage and 0 repetition rate of each partition.

  • (3) It can provide a large number of different designs for the measurement and research of spraying uniformity under different nozzles, and reduce the time cost of manual design.

ACKNOWLEDGMENTS

Authors sincerely thank Sichuan University Jinjiang College for the 2022 Young Teachers Research Fund Project “Research on Intelligent Sprinkler Irrigation System Based on Machine Learning Algorithms” (Project No: QNJJ-2022-A02).

REFERENCES

[1] 

Zhou, X., Zhang, Y., Sheng, Z., et al., “Did water-saving irrigation protect water resources over the past 40 years? A global analysis based on water accounting framework,” Agricultural Water Management, 71 (7), 106793 (2021). https://doi.org/10.1016/j.agwat.2021.106793 Google Scholar

[2] 

Li, H., Issaka, Z., Jiang, Y., et al., “Overview of emerging technologies in sprinkler irrigation to optimize crop production,” International Journal of Agricultural and Biological Engineering, 12 (3), 1 –9 (2019). https://doi.org/10.25165/j.ijabe.20191203.4310 Google Scholar

[3] 

Wang, Z. W., “Research progress of water saving irrigation technology in China,” Agricultural Science Technology and Information, 26 (9), 112 –113 (2018). Google Scholar

[4] 

Yuan, S. Q., Li, H. and Wang, X. K., “Development status, problems, trends and suggestions of water-saving irrigation equipment in China,” Journal of Drainage and Irrigation Mechanical Engineering, 33 (1), 78 –92 (2015). Google Scholar

[5] 

Liang, W. J., “Application of sprinkler irrigation technology in agricultural planting,” Agricultural Development and Equipment, 26 (9), 178 –179 (2021). Google Scholar

[6] 

Yan, H. J. and Zheng, Y. Q., “Simulation test on combined spraying performance of two garden buried nozzles,” Journal of Agricultural Engineering, 20 (1), 84 –86 (2004). Google Scholar

[7] 

Yuan, S. Q., Zhu, X. Y., Li, H. and Liu, J. P., “Calculation and Simulation of combined sprinkler irrigation with full jet nozzle based on MATLAB,” Drainage and Irrigation Machinery, 26 (1), 47 –52 (2008). Google Scholar

[8] 

Wang, Q., Wang, C., Feng, Z. Y. and Ye, J. F., “Overview of K-means clustering algorithm,” Electronic Design Engineering, 20 (7), 21 –24 (2012). Google Scholar

[9] 

Zhang, N., Zhang, S. Y. and Tan, J. R., “Polygon interior and exterior point discrimination algorithm mapping the concept of related edges,” Journal of Computer Aided Design and Graphics, 16 (7), 935 –938 (2004). Google Scholar

[10] 

Zhao, J. D., “Further discussion on polygon interior and exterior point discrimination algorithm for mapping related edge concept,” Journal of Computer Aided Design and Graphics, 19 (1), 69 –72 (2007). Google Scholar

[11] 

Christiansen, J. E., “Hydraulics of sprinkling systems for irrigation,” Transactions of the American Society of Civil Engineers, 107 (1), 221 –239 (1942). https://doi.org/10.1061/TACEAT.0005460 Google Scholar
© (2022) COPYRIGHT Society of Photo-Optical Instrumentation Engineers (SPIE). Downloading of the abstract is permitted for personal use only.
Chunlong Fu, LingXiao Zheng, Teng Sheng, and Xuelian Zhang "Intelligent sprinkler irrigation system based on k-means algorithm", Proc. SPIE 12506, Third International Conference on Computer Science and Communication Technology (ICCSCT 2022), 1250606 (28 December 2022); https://doi.org/10.1117/12.2662055
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Computer simulations

Intelligence systems

Agriculture

Machine learning

Computing systems

Process control

Reliability

Back to Top