A sensor arrangement method and system for determining soil moisture condition
By dynamically adjusting the sensor layout and data feedback frequency in soil moisture detection and selecting monitoring points based on the soil profile, the problem of low cost utilization of sensor layout in soil moisture detection is solved, and the sensor's endurance and data feedback efficiency are improved.
Patent Information
- Application Number
- CN202411132185.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-19
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-08-19
AI Technical Summary
The existing soil moisture detection technology has a low cost utilization rate for evenly setting sensor solutions when costs are limited. How to provide a more efficient sensor layout solution to improve cost utilization.
By obtaining the area map of the soil moisture monitoring area, creating a point distribution matrix based on the set soil moisture monitoring points, randomly selecting monitoring points according to the soil profile, dynamically adjusting the data feedback frequency of the sensor, updating the layout process according to the actual application frequency, and adopting non-uniform layout scheme and dynamic frequency adjustment.
It improves the battery life and cost utilization of the sensor, and enhances the matching degree of data feedback and the actual situation.
Smart Images

Figure CN118655192B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of soil moisture detection, and in particular to a sensor arrangement method and system for determining soil moisture. Background Art
[0002] Soil moisture refers to the state of water in the soil, especially the amount of water in the soil and its distribution. It is an important parameter in agricultural production and ecological environment monitoring, directly affecting crop growth, irrigation management and ecological environment maintenance.
[0003] With the development of science and technology and the popularization of smart devices, the existing soil moisture acquisition process mostly uses sensors with data transmission functions. The sensors regularly upload the collected soil moisture. These sensors are evenly set in the monitoring area. In actual applications, there are actually some relatively stable areas that do not require too many monitoring resources. Under the condition of limited costs, although the uniform setting scheme is comprehensive, the cost utilization rate is not high. How to provide a sensor layout scheme with higher cost utilization rate is the technical problem that the technical solution of the present invention wants to solve. Summary of the invention
[0004] The object of the present invention is to provide a sensor arrangement method and system for determining soil moisture conditions, so as to solve the problems raised in the above-mentioned background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] A sensor arrangement method for determining soil moisture conditions, the method comprising:
[0007] Obtain a regional map of the soil moisture monitoring area, arrange soil moisture monitoring points of the type in the regional map, and create a point distribution matrix according to the set soil moisture monitoring points;
[0008] The soil moisture fed back by all soil moisture monitoring points is obtained, and inserted into the point distribution matrix to obtain a point distribution matrix containing time tags as a humidity matrix at each moment;
[0009] Identify the humidity matrix at the latest moment and adjust the data feedback frequency of each soil moisture monitoring point;
[0010] Arrange the humidity matrix in chronological order, calculate the actual application frequency of each moisture monitoring point, update the layout process of the moisture monitoring points according to the actual application frequency, and simultaneously update the point distribution matrix;
[0011] Among them, humidity sensors are installed at soil moisture monitoring points, and the types of humidity sensors installed include resistive soil moisture sensors and capacitive soil moisture sensors.
[0012] As a further solution of the present invention: the steps of obtaining a regional map of the soil moisture monitoring area, arranging soil moisture monitoring points of the type in the regional map, and creating a point distribution matrix according to the set soil moisture monitoring points include:
[0013] Obtain remote sensing maps of the soil moisture monitoring area, perform color value recognition on the remote sensing maps, and locate soil contours;
[0014] Obtaining the contour area of each soil contour, and determining the number of monitoring points in each soil contour according to the contour area;
[0015] Randomly select the number of soil moisture monitoring points in each soil contour as the layout plan;
[0016] The layout schemes are screened according to the preset evaluation conditions, and the optimal layout scheme is selected from the screened layout schemes, and the optimal layout scheme is converted into a point distribution matrix according to the preset arrangement order.
[0017] As a further solution of the present invention: the steps of screening the layout schemes according to the preset evaluation conditions, selecting the optimal layout scheme from the screened layout schemes, and converting the optimal layout scheme into a point distribution matrix according to the preset arrangement order include:
[0018] For any arrangement scheme, calculate the distance between each soil moisture monitoring point and all other soil moisture monitoring points and record the minimum distance;
[0019] The minimum distance is compared with a preset evaluation condition, and when the minimum distances of all soil moisture monitoring points meet the preset evaluation condition, the arrangement plan is marked;
[0020] Select the marked arrangement scheme as the screened arrangement scheme;
[0021] Calculate the mean of the minimum distances of all soil moisture monitoring points in each layout scheme, and select the layout scheme with the smallest mean as the optimal layout scheme;
[0022] The soil moisture monitoring points in the optimal arrangement scheme are read in sequence according to the preset arrangement order to create a point distribution matrix; when all soil moisture monitoring points are read, the matrix is filled with points.
[0023] As a further solution of the present invention: the step of identifying the humidity matrix at the latest moment and adjusting the data feedback frequency of each soil moisture monitoring point includes:
[0024] Get the humidity matrix at the latest moment, traverse the values at each row and column position in the humidity matrix, calculate the first-order difference and second-order difference, and obtain the first-order difference matrix and the second-order difference matrix;
[0025] Determine the outliers at each row and column position according to the first-order difference matrix and the second-order difference matrix;
[0026] Query the type of humidity sensor corresponding to each row and column position and determine the abnormal value coefficient;
[0027] Correcting the abnormal value according to the abnormal value coefficient, and adjusting the data feedback frequency of each soil moisture monitoring point according to the corrected abnormal value;
[0028] The scheme for determining the frequency of data feedback is:
[0029] ; In the formula, is the point applied to the next moment after adjustment The data feedback frequency at For the current time point The data feedback frequency at is the outlier coefficient, which is related to the type of humidity sensor. and is the preset correction factor, For point The first-order difference at For point The second-order difference at .
[0030] As a further solution of the present invention: the steps of arranging the humidity matrix in chronological order, calculating the actual application frequency of each moisture monitoring point, updating the arrangement process of the moisture monitoring points according to the actual application frequency, and synchronously updating the point distribution matrix include:
[0031] Obtain a humidity matrix within a preset time span, and sort the obtained humidity matrix in chronological order to obtain a three-dimensional matrix; the third dimension of the three-dimensional matrix represents time;
[0032] Using row and column positions as indexes, read data from the three-dimensional matrix to obtain a data set labeled with row and column positions;
[0033] Get the proportion of elements in the data group as the actual application frequency;
[0034] When the actual application frequency is greater than a preset frequency threshold, querying the soil moisture monitoring points corresponding to the row and column positions, and adding soil moisture monitoring points within a preset distance range;
[0035] Update the point distribution matrix synchronously.
[0036] As a further solution of the present invention: the method further comprises:
[0037] Regularly measure the absorption and reflection characteristics of soil to infrared light of specific wavelengths to calculate soil moisture;
[0038] The accuracy of the soil moisture monitoring point is verified according to the calculated soil moisture. When the accuracy is less than the preset accuracy threshold, the corresponding soil moisture monitoring point is queried and additional soil moisture monitoring points are added within the preset distance range.
[0039] The technical solution of the present invention also provides a sensor arrangement system for determining soil moisture conditions, the system comprising:
[0040] A distribution matrix determination module is used to obtain a regional map of the soil moisture monitoring area, arrange soil moisture monitoring points of the type in the regional map, and create a point distribution matrix according to the set soil moisture monitoring points;
[0041] A humidity matrix generation module is used to obtain the soil moisture fed back by all soil moisture monitoring points, insert the point distribution matrix, and obtain a point distribution matrix containing time tags as the humidity matrix at each moment;
[0042] Feedback frequency adjustment module, used to identify the humidity matrix at the latest moment and adjust the data feedback frequency of each soil moisture monitoring point;
[0043] The distribution matrix update module is used to arrange the humidity matrix in chronological order, calculate the actual application frequency of each moisture monitoring point, update the layout process of the moisture monitoring points according to the actual application frequency, and synchronously update the point distribution matrix;
[0044] Among them, humidity sensors are installed at soil moisture monitoring points, and the types of humidity sensors installed include resistive soil moisture sensors and capacitive soil moisture sensors.
[0045] As a further solution of the present invention: the distribution matrix determination module includes:
[0046] A contour recognition unit is used to obtain a remote sensing map of the soil moisture monitoring area, perform color value recognition on the remote sensing map, and locate the soil contour;
[0047] a quantity determination unit, used for obtaining the contour area of each soil contour, and determining the number of monitoring points in each soil contour according to the contour area;
[0048] A scheme generating unit is used to randomly select a number of monitoring points, i.e., soil moisture monitoring points, in each soil contour as a layout scheme;
[0049] The scheme screening unit is used to screen the layout schemes according to the preset evaluation conditions, select the optimal layout scheme from the screened layout schemes, and convert the optimal layout scheme into a point distribution matrix according to the preset arrangement order.
[0050] As a further solution of the present invention: the feedback frequency adjustment module includes:
[0051] A differential calculation unit is used to obtain the humidity matrix at the latest moment, traverse the values at each row and column position in the humidity matrix, calculate the first-order difference and the second-order difference, and obtain the first-order difference matrix and the second-order difference matrix;
[0052] An outlier calculation unit, used to determine the outlier values of each row and column position according to the first-order difference matrix and the second-order difference matrix;
[0053] A coefficient generating unit, used to query the type of humidity sensor corresponding to each row and column position, and determine the abnormal value coefficient;
[0054] An adjustment execution unit, used for correcting the abnormal value according to the abnormal value coefficient, and adjusting the data feedback frequency of each soil moisture monitoring point according to the corrected abnormal value;
[0055] The scheme for determining the frequency of data feedback is:
[0056] ; In the formula, is the point applied to the next moment after adjustment The data feedback frequency at For the current time point The data feedback frequency at is the outlier coefficient, which is related to the type of humidity sensor. and is the preset correction factor, For point The first-order difference at For point The second-order difference at .
[0057] As a further solution of the present invention: the distribution matrix update module includes:
[0058] A sorting unit is used to obtain a humidity matrix within a preset time span, and sort the obtained humidity matrix in time order to obtain a three-dimensional matrix; the third dimension of the three-dimensional matrix represents time;
[0059] A data extraction unit is used to read data in the three-dimensional matrix using row and column positions as indexes to obtain a data group using row and column positions as labels;
[0060] A proportion calculation unit is used to obtain the proportion of elements in the data group as the actual application frequency;
[0061] A point adding unit, used for querying the soil moisture monitoring point corresponding to the row and column position when the actual application frequency is greater than a preset frequency threshold, and adding the soil moisture monitoring point within a preset distance range;
[0062] The update execution unit is used to synchronously update the point distribution matrix.
[0063] Compared with the prior art, the beneficial effects of the present invention are: the present invention randomly selects soil moisture monitoring points according to soil contours, creates a point distribution matrix based on the selected soil moisture monitoring points, obtains feedback data from each sensor according to the point distribution matrix, obtains a humidity matrix at each moment, identifies the humidity matrix, determines abnormal values at each soil moisture monitoring point, adjusts the data feedback frequency of each soil moisture monitoring point based on the abnormal values, provides a non-uniform layout scheme and a dynamic data feedback frequency, which are more consistent with actual conditions. In actual applications, the data feedback frequency in most areas will be very low, which increases the battery life and thus improves cost utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention.
[0065] Figure 1 The present invention is a flowchart of a sensor arrangement method for determining soil moisture conditions.
[0066] Figure 2 This is a block diagram of the first sub-process of the sensor arrangement method for determining soil moisture conditions.
[0067] Figure 3 This is a block diagram of the second sub-process of the sensor arrangement method for determining soil moisture conditions.
[0068] Figure 4 This is a block diagram of the third sub-process of the sensor arrangement method for determining soil moisture conditions.
[0069] Figure 5 This is a structural block diagram of the sensor arrangement system for determining soil moisture conditions. DETAILED DESCRIPTION
[0070] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0071] Figure 1 The flowchart of the sensor arrangement method for determining soil moisture content is as follows. In an embodiment of the present invention, a sensor arrangement method for determining soil moisture content includes:
[0072] Step S100: obtaining a regional map of the soil moisture monitoring area, arranging soil moisture monitoring points of the type in the regional map, and creating a point distribution matrix according to the set soil moisture monitoring points;
[0073] Soil moisture refers to the state of water in the soil, especially the amount of water in the soil and its distribution. It is an important parameter in agricultural production and ecological environment monitoring, directly affecting crop growth, irrigation management and ecological environment maintenance. The soil moisture monitoring area is the area where data collection is required. A regional map of the soil moisture monitoring area is obtained, soil moisture monitoring points containing types are arranged in the regional map, and a point distribution matrix is created according to the set soil moisture monitoring points. In the technical solution of the present invention, the soil moisture monitoring points are points where humidity sensors are installed, that is, humidity sensors are installed at the soil moisture monitoring points. The types of installed humidity sensors include resistive soil moisture sensors and capacitive soil moisture sensors. The principle of the resistive soil moisture sensor is to measure the change in resistance as the soil moisture changes. It is low in cost and easy to use, but has low accuracy and is easily affected by soil salinity and temperature. The principle of the capacitive soil moisture sensor is to detect the moisture content of the soil by measuring the change in capacitance. It has high accuracy and is not easily affected by soil salinity, but is relatively expensive and has certain requirements for the installation and use environment. In the technical solution of the present invention, the number of installed capacitive soil moisture sensors is less than the number of resistive soil moisture sensors.
[0074] The soil moisture monitoring points that are set are counted and their positional relationships are expressed in the form of a matrix to obtain a point distribution matrix.
[0075] Step S200: obtaining soil moisture fed back by all soil moisture monitoring points, inserting into the point distribution matrix, and obtaining a point distribution matrix containing time tags as a humidity matrix at each moment;
[0076] The humidity sensor at each soil moisture monitoring point can obtain soil moisture. The obtained soil moisture contains a time tag. Based on the generated point distribution matrix, the soil moisture feedback from all soil moisture monitoring points at the same time is counted to obtain the humidity matrix at each time.
[0077] Step S300: Identify the humidity matrix at the latest moment and adjust the data feedback frequency of each soil moisture monitoring point;
[0078] By obtaining the humidity matrix at the latest moment and identifying the values at each row and column position, the importance of each row and column position can be determined. The data feedback frequency of the soil moisture monitoring point can be adjusted according to the determined importance, thereby simplifying the amount of data in the humidity matrix at each moment. This is actually a solution to alleviate the energy consumption of the humidity sensor at the soil moisture monitoring point and improve battery life.
[0079] It is worth mentioning that when the data feedback frequencies of various soil moisture monitoring points are different, there may be data in only some of the row and column positions in the humidity matrix at a certain moment. For the row and column positions corresponding to the soil moisture monitoring points that have not uploaded data, the preset default values are inserted into the corresponding positions or the values in the humidity matrix at the previous moment are read and inserted into the corresponding positions.
[0080] Step S400: Arrange the humidity matrix in chronological order, calculate the actual application frequency of each soil moisture monitoring point, update the arrangement process of the soil moisture monitoring points according to the actual application frequency, and synchronously update the point distribution matrix.
[0081] Arrange the humidity matrix in chronological order, extract data within a period of time for each row and column position, and calculate the proportion of non-default data to obtain the actual application frequency. The importance of the soil moisture monitoring point can be further judged by the actual application frequency. Additional soil moisture monitoring points can be added near more important soil moisture monitoring points to alleviate the data collection pressure of the corresponding soil moisture monitoring points. When the layout process of the soil moisture monitoring points changes, the point distribution matrix must also change accordingly, and accordingly, the humidity matrix will also change.
[0082] In the above content, step S300 is a horizontal comparison scheme at the same time, and step S400 is a vertical comparison scheme at different times.
[0083] Figure 2 The first sub-flow chart of the sensor arrangement method for determining soil moisture conditions is as follows: the steps of obtaining a regional map of a soil moisture monitoring area, arranging soil moisture monitoring points containing types in the regional map, and creating a point distribution matrix according to the set soil moisture monitoring points include:
[0084] Step S101: obtaining a remote sensing map of the soil moisture monitoring area, performing color value recognition on the remote sensing map, and locating the soil contour;
[0085] Step S102: obtaining the contour area of each soil contour, and determining the number of monitoring points in each soil contour according to the contour area;
[0086] Step S103: randomly selecting a number of soil moisture monitoring points in each soil contour as a layout plan;
[0087] Step S104: screening the layout schemes according to the preset evaluation conditions, selecting the optimal layout scheme from the screened layout schemes, and converting the optimal layout scheme into a point distribution matrix according to the preset arrangement order.
[0088] The above content describes the initial setting process of soil moisture monitoring points. The remote sensing map of the soil moisture monitoring area is obtained, and the color value of the remote sensing map is recognized. The soil area can be located and the contour of the soil area can be obtained. The contour area of each soil contour is obtained, and the number of monitoring points in each soil contour is determined according to the contour area. The larger the contour area, the more monitoring points there are. The number of soil moisture monitoring points is randomly selected in each soil contour, and a variety of layout schemes can be obtained. The optimal layout scheme is selected from the multiple layout schemes, and then the optimal layout scheme is converted into a point distribution matrix according to the position relationship.
[0089] Specifically, the steps of screening the layout schemes according to the preset evaluation conditions, selecting the optimal layout scheme from the screened layout schemes, and converting the optimal layout scheme into a point distribution matrix according to the preset arrangement order include:
[0090] For any arrangement scheme, calculate the distance between each soil moisture monitoring point and all other soil moisture monitoring points and record the minimum distance;
[0091] The minimum distance is compared with a preset evaluation condition, and when the minimum distances of all soil moisture monitoring points meet the preset evaluation condition, the arrangement plan is marked;
[0092] Select the marked arrangement scheme as the screened arrangement scheme;
[0093] Calculate the mean of the minimum distances of all soil moisture monitoring points in each layout scheme, and select the layout scheme with the smallest mean as the optimal layout scheme;
[0094] The soil moisture monitoring points in the optimal arrangement scheme are read in sequence according to the preset arrangement order to create a point distribution matrix; when all soil moisture monitoring points are read, the matrix is filled with points.
[0095] The above content limits the screening and selection process of the layout plan. For any layout plan, the distance between each soil moisture monitoring point and all other soil moisture monitoring points is calculated, and the minimum distance is recorded, that is, the distance between any soil moisture monitoring point and its nearest soil moisture monitoring point is obtained, and the minimum distance is compared with the preset evaluation condition. When the minimum distance of all soil moisture monitoring points reaches the preset evaluation condition, the layout plan is marked. The evaluation condition adopts a distance threshold, and the minimum distance of all soil moisture monitoring points reaches the preset evaluation condition. The popular meaning of this statement is: the distance between any two soil moisture monitoring points among all soil moisture monitoring points is greater than the distance threshold. If this condition is met, the corresponding randomly generated layout plan is a feasible layout plan.
[0096] For multiple feasible layout plans, calculate the mean of the minimum distances of all soil moisture monitoring points in each layout plan, and select the layout plan with the smallest mean as the optimal layout plan; after the optimal layout plan is generated, read the soil moisture monitoring points in a preset order, such as from north to south, from west to east (from top to bottom, from left to right in the map), and create row and column positions. For example, select the first soil moisture monitoring point from north to south and from west to east, and then use it as the first row and first column in the point distribution matrix, then read the first soil moisture monitoring point in the east as the first row and second column, and so on, to obtain the point distribution matrix. In this process, the points obtained may not be square matrices, that is, some rows have more columns, which requires the matrix to be filled in to make it a real matrix. There is naturally no data at the filled points, so the default data can be used.
[0097] Figure 3 The second sub-flow chart of the sensor arrangement method for determining soil moisture conditions is as follows. The steps of identifying the humidity matrix at the latest moment and adjusting the data feedback frequency of each moisture monitoring point include:
[0098] Step S301: Obtain the humidity matrix at the latest moment, traverse the values at each row and column position in the humidity matrix, calculate the first-order difference and the second-order difference, and obtain the first-order difference matrix and the second-order difference matrix;
[0099] Step S302: determining the outliers at each row and column position according to the first-order difference matrix and the second-order difference matrix;
[0100] Step S303: query the type of humidity sensor corresponding to each row and column position, and determine the abnormal value coefficient;
[0101] Step S304: correcting the abnormal value according to the abnormal value coefficient, and adjusting the data feedback frequency of each soil moisture monitoring point according to the corrected abnormal value.
[0102] The above content describes step S300 in detail, and the focus is on performing a horizontal comparison on the values in the humidity matrix. The horizontal comparison method is to calculate the first-order difference and the second-order difference at each row and column position. The obtained first-order difference matrix and second-order difference matrix can represent the difference between the data at each row and column position and the data at other row and column positions, which are represented by outliers. The calculation process of the outlier is very simple. The first-order difference and the second-order difference are multiplied by different constants and then added to obtain the outlier. It is worth mentioning that the constant can be zero, which means that only one of the first-order difference and the second-order difference is involved in the calculation of the outlier.
[0103] The type of humidity sensor corresponding to each row and column position is queried to determine the outlier coefficient. In the technical solution of the present invention, the outlier coefficient of the capacitive soil moisture sensor is set to be greater than the outlier coefficient of the resistive soil moisture sensor. This means that the row and column positions corresponding to the soil moisture monitoring points where the capacitive soil moisture sensors are installed are more sensitive to abnormal conditions. In actual situations, the accuracy of the capacitive soil moisture sensors is also relatively high, and they should indeed be more sensitive. The higher the outlier value, the higher the data feedback frequency, that is, the data feedback frequency is proportional to the outlier value.
[0104] The scheme for determining the frequency of data feedback is:
[0105] ; In the formula, is the point applied to the next moment after adjustment The data feedback frequency at For the current time point The data feedback frequency at is the outlier coefficient, which is related to the type of humidity sensor. and is the preset correction factor, For point The first-order difference at For point The second-order difference at .
[0106] The process of determining the above scheme is to adjust the current data feedback frequency, where: Indicates an outlier, is data in the range of 0 to 1 and is proportional to the outliers.
[0107] Figure 4 The third sub-flow chart of the sensor arrangement method for determining soil moisture content, wherein the steps of arranging the moisture matrix in chronological order, calculating the actual application frequency of each moisture content monitoring point, updating the arrangement process of the moisture content monitoring point according to the actual application frequency, and synchronously updating the point distribution matrix include:
[0108] Step S401: obtaining a humidity matrix within a preset time span, and sorting the obtained humidity matrix in chronological order to obtain a three-dimensional matrix; the third dimension of the three-dimensional matrix represents time;
[0109] Step S402: using the row and column positions as indexes, reading data in the three-dimensional matrix to obtain a data group with the row and column positions as labels;
[0110] Step S403: Obtain the proportion of elements in the data group as the actual application frequency;
[0111] Step S404: when the actual application frequency is greater than a preset frequency threshold, querying soil moisture monitoring points corresponding to row and column positions, and adding soil moisture monitoring points within a preset distance range;
[0112] Step S405: synchronously update the point distribution matrix.
[0113] In an example of the technical solution of the present invention, the longitudinal comparison process is described in detail. First, the management party pre-sets a time span, such as one day, obtains the humidity matrix within the preset time span, and sorts the obtained humidity matrix in chronological order to obtain a three-dimensional matrix.
[0114] Using the row and column positions as indexes, data is read from the three-dimensional matrix to obtain data groups labeled with the row and column positions. Each row and column position corresponds to a data group. The actual feedback data in the data group is obtained (as long as it is not the default data, it is considered to be the actual feedback data), and the ratio is divided by the total number of elements in the data group (the total number of humidity matrices within the preset time span). The ratio can be used as the actual application frequency.
[0115] When the actual application frequency is greater than a preset frequency threshold, the soil moisture monitoring point corresponding to the row and column position is queried, and additional soil moisture monitoring points are added nearby.
[0116] It should be noted that the actual application frequency and the data feedback frequency obtained in step S304 are different concepts. The actual application frequency can be understood as the average feedback frequency within a time span, and the data feedback frequency is the data feedback frequency at each moment.
[0117] As a preferred embodiment of the technical solution of the present invention, the method further includes:
[0118] Regularly measure the absorption and reflection characteristics of soil to infrared light of specific wavelengths to calculate soil moisture;
[0119] The accuracy of the soil moisture monitoring point is verified according to the calculated soil moisture. When the accuracy is less than the preset accuracy threshold, the corresponding soil moisture monitoring point is queried and additional soil moisture monitoring points are added within the preset distance range.
[0120] In an example of the technical solution of the present invention, an additional auxiliary soil moisture measurement scheme is introduced. The soil moisture is estimated by obtaining the absorption and reflection characteristics of the soil to infrared light of a specific wavelength using an infrared spectroscopy soil moisture sensor. This method is a non-contact measurement and is suitable for large-area monitoring. By introducing this method, the accuracy of each soil moisture monitoring point can be verified. When the accuracy is low, additional soil moisture monitoring points are added near the corresponding soil moisture monitoring points.
[0121] Figure 5The structure block diagram of the sensor arrangement system for determining soil moisture content is shown in FIG. 1 . In an embodiment of the present invention, a sensor arrangement method and system for determining soil moisture content are provided. The system 10 includes:
[0122] The distribution matrix determination module 11 is used to obtain a regional map of the soil moisture monitoring area, arrange soil moisture monitoring points of the type in the regional map, and create a point distribution matrix according to the set soil moisture monitoring points;
[0123] A humidity matrix generation module 12 is used to obtain the soil moisture fed back by all soil moisture monitoring points, insert it into the point distribution matrix, and obtain a point distribution matrix containing time tags as a humidity matrix at each moment;
[0124] The feedback frequency adjustment module 13 is used to identify the humidity matrix at the latest moment and adjust the data feedback frequency of each soil moisture monitoring point;
[0125] The distribution matrix update module 14 is used to arrange the humidity matrix in chronological order, calculate the actual application frequency of each moisture monitoring point, update the arrangement process of the moisture monitoring point according to the actual application frequency, and synchronously update the point distribution matrix;
[0126] Among them, humidity sensors are installed at soil moisture monitoring points, and the types of humidity sensors installed include resistive soil moisture sensors and capacitive soil moisture sensors.
[0127] Furthermore, the distribution matrix determination module 11 includes:
[0128] A contour recognition unit is used to obtain a remote sensing map of the soil moisture monitoring area, perform color value recognition on the remote sensing map, and locate the soil contour;
[0129] a quantity determination unit, used for obtaining the contour area of each soil contour, and determining the number of monitoring points in each soil contour according to the contour area;
[0130] A scheme generating unit is used to randomly select a number of monitoring points, i.e., soil moisture monitoring points, in each soil contour as a layout scheme;
[0131] The scheme screening unit is used to screen the layout schemes according to the preset evaluation conditions, select the optimal layout scheme from the screened layout schemes, and convert the optimal layout scheme into a point distribution matrix according to the preset arrangement order.
[0132] Specifically, the feedback frequency adjustment module 13 includes:
[0133] A differential calculation unit is used to obtain the humidity matrix at the latest moment, traverse the values at each row and column position in the humidity matrix, calculate the first-order difference and the second-order difference, and obtain the first-order difference matrix and the second-order difference matrix;
[0134] An outlier calculation unit, used to determine the outlier values of each row and column position according to the first-order difference matrix and the second-order difference matrix;
[0135] A coefficient generating unit, used to query the type of humidity sensor corresponding to each row and column position, and determine the abnormal value coefficient;
[0136] An adjustment execution unit, used for correcting the abnormal value according to the abnormal value coefficient, and adjusting the data feedback frequency of each soil moisture monitoring point according to the corrected abnormal value;
[0137] The scheme for determining the frequency of data feedback is:
[0138] ; In the formula, is the point applied to the next moment after adjustment The data feedback frequency at For the current time point The data feedback frequency at is the outlier coefficient, which is related to the type of humidity sensor. and is the preset correction factor, For point The first-order difference at For point The second-order difference at .
[0139] Furthermore, the distribution matrix updating module 14 includes:
[0140] A sorting unit is used to obtain a humidity matrix within a preset time span, and sort the obtained humidity matrix in time order to obtain a three-dimensional matrix; the third dimension of the three-dimensional matrix represents time;
[0141] A data extraction unit is used to read data in the three-dimensional matrix using row and column positions as indexes to obtain a data group using row and column positions as labels;
[0142] A proportion calculation unit is used to obtain the proportion of elements in the data group as the actual application frequency;
[0143] A point adding unit, used for querying the soil moisture monitoring point corresponding to the row and column position when the actual application frequency is greater than a preset frequency threshold, and adding the soil moisture monitoring point within a preset distance range;
[0144] The update execution unit is used to synchronously update the point distribution matrix.
[0145] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A sensor arrangement method for determining soil moisture conditions, characterized in that: The method comprises: Obtain a regional map of the soil moisture monitoring area, arrange soil moisture monitoring points of the type in the regional map, and create a point distribution matrix according to the set soil moisture monitoring points; The soil moisture fed back by all soil moisture monitoring points is obtained, and inserted into the point distribution matrix to obtain a point distribution matrix containing time tags as a humidity matrix at each moment; Identify the humidity matrix at the latest moment and adjust the data feedback frequency of each soil moisture monitoring point; Arrange the humidity matrix in chronological order, calculate the actual application frequency of each moisture monitoring point, update the layout process of the moisture monitoring points according to the actual application frequency, and simultaneously update the point distribution matrix; Wherein, humidity sensors are installed at soil moisture monitoring points, and the types of humidity sensors installed include resistive soil moisture sensors and capacitive soil moisture sensors; The step of identifying the humidity matrix at the latest moment and adjusting the data feedback frequency of each moisture monitoring point includes: Get the humidity matrix at the latest moment, traverse the values at each row and column position in the humidity matrix, calculate the first-order difference and second-order difference, and obtain the first-order difference matrix and the second-order difference matrix; Determine the outliers at each row and column position according to the first-order difference matrix and the second-order difference matrix; Query the type of humidity sensor corresponding to each row and column position and determine the abnormal value coefficient; Correcting the abnormal value according to the abnormal value coefficient, and adjusting the data feedback frequency of each soil moisture monitoring point according to the corrected abnormal value; The scheme for determining the frequency of data feedback is: ; In the formula, is the point applied to the next moment after adjustment The data feedback frequency at For the current time point The data feedback frequency at is the outlier coefficient, which is related to the type of humidity sensor. and is the preset correction factor, For point The first-order difference at For point The second-order difference at ; The steps of arranging the humidity matrix in chronological order, calculating the actual application frequency of each moisture monitoring point, updating the arrangement process of the moisture monitoring points according to the actual application frequency, and synchronously updating the point distribution matrix include: Obtain a humidity matrix within a preset time span, and sort the obtained humidity matrix in chronological order to obtain a three-dimensional matrix; the third dimension of the three-dimensional matrix represents time; Using row and column positions as indexes, read data from the three-dimensional matrix to obtain a data set labeled with row and column positions; Get the proportion of elements in the data group as the actual application frequency; When the actual application frequency is greater than a preset frequency threshold, querying the soil moisture monitoring points corresponding to the row and column positions, and adding soil moisture monitoring points within a preset distance range; Update the point distribution matrix synchronously.
2. The sensor arrangement method for determining soil moisture conditions according to claim 1, characterized in that: The steps of obtaining a regional map of the soil moisture monitoring area, arranging soil moisture monitoring points of the type in the regional map, and creating a point distribution matrix according to the set soil moisture monitoring points include: Obtain remote sensing maps of the soil moisture monitoring area, perform color value recognition on the remote sensing maps, and locate soil contours; Obtaining the contour area of each soil contour, and determining the number of monitoring points in each soil contour according to the contour area; Randomly select the number of soil moisture monitoring points in each soil contour as the layout plan; The layout schemes are screened according to the preset evaluation conditions, and the optimal layout scheme is selected from the screened layout schemes, and the optimal layout scheme is converted into a point distribution matrix according to the preset arrangement order.
3. The sensor arrangement method for determining soil moisture conditions according to claim 2, characterized in that: The steps of screening the layout schemes according to the preset evaluation conditions, selecting the optimal layout scheme from the screened layout schemes, and converting the optimal layout scheme into a point distribution matrix according to the preset arrangement order include: For any arrangement scheme, calculate the distance between each soil moisture monitoring point and all other soil moisture monitoring points and record the minimum distance; The minimum distance is compared with a preset evaluation condition, and when the minimum distances of all soil moisture monitoring points meet the preset evaluation condition, the arrangement plan is marked; Select the marked arrangement scheme as the screened arrangement scheme; Calculate the mean of the minimum distances of all soil moisture monitoring points in each layout scheme, and select the layout scheme with the smallest mean as the optimal layout scheme; The soil moisture monitoring points in the optimal arrangement scheme are read in sequence according to the preset arrangement order to create a point distribution matrix; when all soil moisture monitoring points are read, the matrix is filled with points.
4. The sensor arrangement method for determining soil moisture condition according to claim 1, characterized in that: The method further comprises: Regularly measure the absorption and reflection characteristics of soil to infrared light of specific wavelengths to calculate soil moisture; The accuracy of the soil moisture monitoring point is verified according to the calculated soil moisture. When the accuracy is less than the preset accuracy threshold, the corresponding soil moisture monitoring point is queried and additional soil moisture monitoring points are added within the preset distance range.
5. A sensor arrangement system for determining soil moisture conditions, characterized in that: The system comprises: A distribution matrix determination module is used to obtain a regional map of the soil moisture monitoring area, arrange soil moisture monitoring points of the type in the regional map, and create a point distribution matrix according to the set soil moisture monitoring points; A humidity matrix generation module is used to obtain the soil moisture fed back by all soil moisture monitoring points, insert the point distribution matrix, and obtain a point distribution matrix containing time tags as the humidity matrix at each moment; Feedback frequency adjustment module, used to identify the humidity matrix at the latest moment and adjust the data feedback frequency of each soil moisture monitoring point; The distribution matrix update module is used to arrange the humidity matrix in chronological order, calculate the actual application frequency of each moisture monitoring point, update the layout process of the moisture monitoring points according to the actual application frequency, and synchronously update the point distribution matrix; Wherein, humidity sensors are installed at soil moisture monitoring points, and the types of humidity sensors installed include resistive soil moisture sensors and capacitive soil moisture sensors; The feedback frequency adjustment module comprises: A differential calculation unit is used to obtain the humidity matrix at the latest moment, traverse the values at each row and column position in the humidity matrix, calculate the first-order difference and the second-order difference, and obtain the first-order difference matrix and the second-order difference matrix; An outlier calculation unit, used to determine the outlier values of each row and column position according to the first-order difference matrix and the second-order difference matrix; A coefficient generating unit, used to query the type of humidity sensor corresponding to each row and column position, and determine the abnormal value coefficient; An adjustment execution unit, used for correcting the abnormal value according to the abnormal value coefficient, and adjusting the data feedback frequency of each soil moisture monitoring point according to the corrected abnormal value; The scheme for determining the frequency of data feedback is: ; In the formula, is the point applied to the next moment after adjustment The data feedback frequency at For the current time point The data feedback frequency at is the outlier coefficient, which is related to the type of humidity sensor. and is the preset correction factor, For point The first-order difference at For point The second-order difference at ; The distribution matrix update module comprises: A sorting unit is used to obtain a humidity matrix within a preset time span, and sort the obtained humidity matrix in time order to obtain a three-dimensional matrix; the third dimension of the three-dimensional matrix represents time; A data extraction unit is used to read data in the three-dimensional matrix using row and column positions as indexes to obtain a data group using row and column positions as labels; A proportion calculation unit is used to obtain the proportion of elements in the data group as the actual application frequency; A point adding unit, used for querying the soil moisture monitoring point corresponding to the row and column position when the actual application frequency is greater than a preset frequency threshold, and adding the soil moisture monitoring point within a preset distance range; The update execution unit is used to synchronously update the point distribution matrix.
6. The sensor arrangement system for determining soil moisture conditions according to claim 5, characterized in that: The distribution matrix determination module comprises: A contour recognition unit is used to obtain a remote sensing map of the soil moisture monitoring area, perform color value recognition on the remote sensing map, and locate the soil contour; A quantity determination unit, used for obtaining the contour area of each soil contour, and determining the number of monitoring points in each soil contour according to the contour area; A scheme generating unit is used to randomly select a number of monitoring points, i.e., soil moisture monitoring points, in each soil contour as a layout scheme; The scheme screening unit is used to screen the layout schemes according to the preset evaluation conditions, select the optimal layout scheme from the screened layout schemes, and convert the optimal layout scheme into a point distribution matrix according to the preset arrangement order.
