Granular fertilizer deposition distribution pattern automatic detection system and method
Through deep learning technology and image acquisition devices, the deposition distribution pattern of granular fertilizers is automatically detected, which solves the complex and time-consuming problem of traditional detection methods, achieves rapid and accurate parameter calibration and structural optimization of fertilizer spreaders, and reduces costs.
Patent Information
- Application Number
- CN202410006883.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2024-08-13
- Estimated Expiration
- 2044-01-03
AI Technical Summary
Traditional granular fertilizer deposition distribution pattern detection methods are complex, time-consuming and labor-intensive, with high labor and material costs, making it difficult to achieve rapid and accurate parameter calibration and performance testing.
Design an automatic detection system for the deposition and distribution pattern of granular fertilizer in centrifugal fertilizer spreaders based on deep learning. It uses a fertilizer spreader calibration pad, an image acquisition device and a PC to collect images of fertilizer particles through an industrial camera, and uses an instance segmentation network model for identification and detection. , calculate the coefficient of variation of sediment distribution, the error of fertilizer application per unit area and the lateral sediment distribution curve to achieve automated detection.
It realizes intelligent and automated detection of granular fertilizer deposition and distribution patterns, reduces labor and material costs, improves detection efficiency and accuracy, and supports fertilizer spreader parameter calibration and structural optimization.
Smart Images

Figure 1.1
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of precision fertilization control, and in particular relates to a system and method for automatically detecting a deposition distribution pattern of granular fertilizer of a centrifugal fertilizer spreader based on deep learning. Background Art
[0002] In precision fertilization technology, the correct spreading of granular fertilizers is an important measure to ensure the effective use of agricultural fertilizers. After being released by the fertilizer spreading device, granular fertilizers will form a variety of fertilizer deposition distribution patterns (Deposition Distribution Pattern, DDP) on the ground. By analyzing the fertilizer deposition distribution pattern, we can reflect parameters such as the spreading range, fertilizer distribution uniformity, and deposition amount, so as to analyze whether the fertilizer spreading device has correctly spread the granular fertilizers, and help the staff to optimize the performance and calibrate the parameters of the fertilizer spreading device to form the best fertilizer deposition distribution pattern. The traditional method for detecting the deposition distribution pattern of granular fertilizers is the ground deposition distribution detection method. This method usually lays sampling collection boxes in the detection site according to international standards. After the fertilizer spreading device passes through the sampling area under different conditions, the fertilizer mass in each collection box is counted, and the fertilizer lateral deposition distribution curve is drawn, which can reflect the uniformity and effective width of the fertilizer distribution. This method is currently the most commonly used detection method, but it has high requirements for the layout of the detection site and the collection box. After the fertilizer is spread, each collection box needs to be weighed and counted. Therefore, the detection method is complex to implement, time-consuming and labor-intensive, and the labor and material costs are relatively high. In response to the above technical problems, the present invention designs an automatic detection system and method for the deposition distribution pattern of granular fertilizers in a centrifugal fertilizer spreader based on deep learning. Summary of the invention
[0003] In view of the deficiencies in the prior art, the present invention provides a system and method for automatically detecting the deposition distribution pattern of granular fertilizers, which can accurately and quickly realize parameter calibration, performance testing and structural optimization of fertilizer spreaders in an intelligent and automated manner.
[0004] The present invention achieves the above technical objectives through the following technical means.
[0005] An automatic detection system for a granular fertilizer deposition distribution pattern comprises a fertilizer spreading calibration pad, an image acquisition device, and a PC terminal. The fertilizer spreading calibration pad is laid in a detection area below the image acquisition device, and a plurality of sampling grid units are divided on the fertilizer spreading calibration pad. The PC terminal is arranged on one side of the image acquisition device. The image acquisition device is used to collect image data of fertilizer particles scattered on the fertilizer spreading calibration pad and transmit the image data to the PC terminal for data analysis and processing. The image acquisition device comprises a traveling frame with an electric guide rail on the top, an industrial camera is installed on the electric guide rail, and the electric guide rail is used to control the industrial camera to move horizontally and vertically.
[0006] Furthermore, LED lighting sources are installed around the walking frame, and walking wheels with brake devices are installed at the bottom of the walking frame.
[0007] Further, the following process is included:
[0008] Step 1: Lay a fertilizer spreader calibration mat in the test area and set a digital label for each grid on the fertilizer spreader calibration mat;
[0009] Step 2: The centrifugal fertilizer spreader is started and passes through the detection area along the center line of the fertilizer spreader calibration pad with corresponding working parameters, and the fertilizer particles are thrown onto the fertilizer spreader calibration pad;
[0010] Step 3: Use an industrial camera to take a picture of each grid in the fertilizer spreader calibration mat. The acquired image is named with a grid digital label and transmitted to the PC for analysis and processing.
[0011] Step 4: The PC uses the instance segmentation network model F-TPP to identify and detect the fertilizer particles in the image and output the pixel area of the fertilizer particles in each image;
[0012] Step 5: The PC inputs the pixel area of the fertilizer particles into the granular fertilizer mass fitting model to obtain the mass data of the fertilizer particles in each sampling grid unit, integrates the data results, and matches the naming number and mass data of each image one by one;
[0013] Step 6: Based on the fertilizer particle mass data, the PC calculates the distribution variation coefficient of the fertilizer particles within the effective spreading width, the fertilizer application error per unit area, and the lateral deposition distribution curve in the plane rectangular coordinate system, and displays them visually through the display device for real-time viewing by relevant personnel;
[0014] Step 7: Based on the three index results obtained in step 6, analyze the uniformity and accuracy of the fertilizer spreader, and appropriately perform parameter calibration, performance testing and structural optimization on the fertilizer spreader.
[0015] Furthermore, the specific process of step 4 includes:
[0016] Firstly, the Swin Transformer network is used as the feature extraction network to extract the feature information of fertilizer particles. The Swin Transformer network outputs four layers of feature maps. The four layers of feature maps are respectively input into the feature fusion network PANet for feature fusion operation. After obtaining the feature maps Feature Maps, they are input into the RPN module. Based on the K-Means++ clustering algorithm, multiple anchor frame scales are obtained as the benchmark to generate a detection frame suitable for fertilizer particles. The feature images feature maps generated in the Swin Transformer and PANet stages and the detection frame proposal generated by the RPN module are used as the input of the RoI Align module, and the detection frame generated by the RPN module is mapped to the feature images generated in the Swin Transformer and PANet stages. Finally, the prediction layer is input to obtain the segmentation result of the mask. After the mask is generated, the pixel area of the mask can be output. The pixel area of each mask corresponds to the pixel area of the fertilizer particle.
[0017] Furthermore, the specific process of obtaining multiple anchor frame scales using the K-Means++ clustering algorithm is as follows:
[0018] S4.1 First, prepare the fertilizer particle data set to be clustered. After obtaining the data set, mark the fertilizer particles in each image, and then obtain the width and height of the minimum bounding rectangle of all fertilizer particles as the input data set X of the clustering algorithm, X = [x 1 ,x 2 ,...,x n ], where x 1 ,x 2 ,...,x n =[(w 1 ,h 1 ),(w 2 ,h 2 ),…,(w n ,h n )], w represents the width of the minimum circumscribed rectangular frame, h represents the height of the minimum circumscribed rectangular frame, and the subscript n represents the nth fertilizer particle;
[0019] S4.2: Randomly select K values in the data set X as the initial clustering value C j , K represents the number of clusters;
[0020] S4.3: For each sample x in the dataset X i , i = 1, 2, ..., n, calculate its value with each initial cluster C j The iou value between:
[0021]
[0022] Among them, iou refers to the intersection between each sample and each initial cluster value, inter area is the overlapping area, which is calculated by taking sample x i With the initial clustering value C j The smaller width and height value is used as the width and height value of the overlapping area, and this value is used to calculate the overlapping area inter area ;box area For sample x i The area of cluster area is the initial clustering value C j area;
[0023] S4.4: Calculate the error value P(n,K) between each sample and each initial cluster value, P(n,K) = 1-iou, select the initial cluster value with the minimum error value for each sample, and classify the sample to the initial cluster value with the minimum error value;
[0024] S4.5: Reselect the cluster value, based on the samples in each initial cluster value determined in the previous step, and for the samples in each initial cluster value, calculate their average width and height, and use it as the new cluster value;
[0025] S4.6: Repeat S 4.3 to S4.5 until the cluster center position changes and meets the convergence condition.
[0026] Furthermore, in step 5, the granular fertilizer quality fitting model is as follows:
[0027] y=-4E-10x 2 +0.0002x-0.2952
[0028] Where y represents the mass of the fertilizer particles, E represents the exponent in scientific notation, and x represents the pixel area of the fertilizer particles.
[0029] Furthermore, in step 6, the distribution variation coefficient C of the fertilizer particles within the effective width of the fertilizer spreading is v Calculated by the following formula:
[0030]
[0031]
[0032]
[0033] Where M D represents the standard deviation of fertilizer particle quality, represents the mean mass of fertilizer particles, X irepresents the mass of fertilizer particles in the i-th grid sampling unit, and m represents the number of grid sampling units.
[0034] Furthermore, in step 6, the error γ of the fertilizer application amount per unit area is:
[0035]
[0036] Where M represents the total mass of fertilizer particles in the test area, S represents the area of the test area, and Q represents the theoretical target fertilizer amount.
[0037] The present invention has the following beneficial effects:
[0038] The present invention proposes an automatic detection method for the deposition distribution pattern of granular fertilizer of a centrifugal fertilizer spreader based on deep learning. Before using the detection method, a fertilizer calibration pad with multiple sampling grid units needs to be laid in the detection area. After the fertilizer spreader passes through the detection area, the granular fertilizer is thrown onto the calibration pad. Then, an image acquisition device is used to obtain a distribution image of the granular fertilizer, and the obtained image is transmitted to the image processing core. The granular fertilizer is identified and detected, and the quality data of the granular fertilizer in each sampling grid unit is output. The distribution coefficient of the granular fertilizer within the effective width of the fertilizer spreader, the error of the fertilizer application per unit area, and the lateral deposition distribution curve under the plane rectangular coordinate system are calculated using the quality data. The deposition distribution pattern of the granular fertilizer is analyzed by analyzing the results of the above three indicators, and then the fertilizer spreader is calibrated, the performance tested, and the structure optimized. The detection method provided by the present invention has the advantages of being more intelligent, lower cost, and higher detection efficiency under the premise of ensuring the detection accuracy. Compared with the traditional detection method, the present invention uses deep learning and image processing to directly obtain the quality of the granular fertilizer in the detection area. The quality data can directly obtain the parameters for evaluating the fertilizer spreading performance, and then the performance of the fertilizer spreader is evaluated. The method proposed in the present invention saves labor costs and material costs to a great extent, has accurate and rapid detection, and has strong promotion value. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The figure is a schematic flow chart of the automatic detection method of the granular fertilizer deposition distribution pattern of the present invention.
[0040] Figure 2 This is a schematic diagram of the fertilizer spreading calibration pad of the present invention;
[0041] Figure 3 This is a schematic diagram of the structure of the image acquisition device of the present invention;
[0042] Figure 4 This is a schematic diagram of the F-TPP network model of the present invention;
[0043] Figure 5 This is a schematic diagram of the fertilizer particle recognition and detection effect of the present invention;
[0044] Figure 6 This is a schematic diagram of the Swin Transformer network of the present invention;
[0045] Figure 7 This is a schematic diagram of the feature fusion network PANet described in the present invention;
[0046] Figure 8 This is a schematic diagram of the RPN module of the present invention.
[0047] Fig. 9 This is a schematic diagram of the RoI Align module of the present invention;
[0048] Fig.10 This is a schematic diagram for comparing recognition effects.
[0049] In the figure: 1-longitudinal guide rail; 2-transverse guide rail; 3-travel wheel; 4-PC terminal; 5-industrial camera; 6-LED lighting source. DETAILED DESCRIPTION
[0050] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments, but the protection scope of the present invention is not limited thereto.
[0051] The automatic detection system for the deposition distribution pattern of granular fertilizers of the present invention comprises an image acquisition device, a PC terminal 4, and a fertilizer calibration pad laid in the detection area; Figure 2 , 3 As shown, the fertilizer spreading calibration pad is divided into a number of sampling grid units, and the PC terminal 4 is set on a plate placed on one side of the image acquisition device. The image acquisition device is 1.3m high and 2m long, and is used to collect image data of fertilizer particles scattered on the fertilizer spreading calibration pad and transmit it to the PC terminal 4 for data analysis and processing.
[0052] like Figures 3 to 5 As shown, the image acquisition device includes a traveling frame, a traveling wheel 3, an LED lighting source 6, an electric guide rail, and an industrial camera 5. A traveling wheel 3 with a brake device is installed at the bottom of the traveling frame for free movement; LED lighting sources 6 are installed around the traveling frame to cope with the influence of insufficient lighting conditions on the accuracy of fertilizer image segmentation; in order to improve the image acquisition efficiency, an electric guide rail is installed on the top of the traveling frame, and the electric guide rail includes a transverse guide rail 2 and a longitudinal guide rail 1. The industrial camera 5 is installed on the transverse guide rail 2 of the electric guide rail through a camera bracket, and the industrial camera 5 can be controlled to move in the transverse and longitudinal directions through the electric guide rail; the electric guide rail 5 in this embodiment uses a linear module RXP45 and a 60 stepper motor. In order to improve the pixel quality of the image and be suitable for the shooting of small target images such as fertilizer particles, the industrial camera 5 uses a Sony IMX226 high-definition camera, which has a maximum resolution of 3280×2464 and is suitable for shooting images of tiny granular fertilizers.
[0053] The PC terminal 4 is a system control terminal and processing core, which is used to realize the comprehensive control function of the image acquisition device, the electric guide rail and the LED lighting source 6, and to perform segmentation detection, data processing and data storage on the granular fertilizer image. Therefore, the processor selected by the PC terminal 4 in this embodiment is Intel (R) Core (TM) i5-8400H, with a main frequency of 2.80GHz and a memory of 16GB.
[0054] Reference Figure 1 The automatic detection method of the granular fertilizer deposition distribution pattern of the present invention includes the following process:
[0055] Step 1: Lay a fertilizer calibration mat with several sampling grid units in the detection area. In order to simulate the roughness and complexity of the field ground and reduce the test error caused by excessive bouncing of fertilizer particles after spreading, artificial turf is used to make the fertilizer calibration mat. In addition, the green artificial turf can be clearly distinguished from the fertilizer particles, thereby improving the accuracy of subsequent image segmentation; Figure 2 As shown, 150 sampling grid units are delineated in a 15×10 matrix in the fertilizer spreading calibration mat, the inner side size of each grid is 50.8 cm×40.6 cm, the grid row spacing is 0.8 m, the column spacing is 1.5 m, and a digital label is set for each grid.
[0056] Step 2: The centrifugal fertilizer spreader is started and passes through the detection area along the center line of the fertilizer spreader calibration pad with certain working parameters. The fertilizer particles are thrown onto the fertilizer spreader calibration pad by the centrifugal fertilizer spreader, wherein the working parameters of the centrifugal fertilizer spreader include fertilizer discharge flow rate, disc speed, and forward speed.
[0057] Step 3: Use the industrial camera 5 in the image acquisition device to take a picture of each grid in the fertilizer spreading calibration pad. The acquired image is named with the grid number (i.e., grid digital label) and transmitted to the system control terminal and processing core for analysis and processing.
[0058] Step 4: The system control terminal and processing core use the instance segmentation network model (Fertilizer-SwinTransformer PANet Partition, F-TPP) to identify and detect the fertilizer particles in the image (the recognition and detection effect is shown in the figure below). Figure 5 As shown), output the pixel area of fertilizer particles in each image;
[0059] Among them, Figure 4As shown in the figure, the process of identification and detection using the F-TPP network model is as follows: first, SwinTransformer is used as a feature extraction network to extract richer feature information of fertilizer particles, and the feature fusion network PANet is used to fuse features of different scales, so as to improve the flow efficiency of shallow information in the deep network, improve the accuracy of fertilizer particle feature extraction, and reduce the interference of similar feature background noise; then the extracted feature map is input into the RPN module, and the improved Anchor generation scale is used to generate Anchors that are easier to match fertilizer particles; then RoI Align is used to correspond the detection frame generated by RPN to the extracted feature image; finally, the generated feature image is classified, regressed and a mask of granular fertilizer is generated; after the mask is generated, the pixel area of the mask can be output, and the pixel area of each mask corresponds to the pixel area of the fertilizer particle.
[0060] The Swin Transformer network outputs four layers of feature maps, with sizes as follows: The number of channels C is 96, H and W represent the height and width of the feature map respectively; the output four-layer feature map enters the feature fusion network PANet for feature fusion operation, and then enters the RPN module after obtaining the feature map Feature Maps. The five anchor frame scales obtained by the K-Means++ clustering algorithm are used as the benchmark to generate a detection frame suitable for fertilizer particles; the feature image featuremaps generated in the Swin Transformer and PANet stages and the detection frame proposal generated by the RPN module are used as the input of the RoI Align module, and the detection frame generated by the RPN module is mapped to the feature image generated in the Swin Transformer and PANet stages; finally, the prediction layer Head is entered to obtain the segmentation result of the mask.
[0061] Swin Transformer network Figure 6 As shown, the feature fusion network PANet is as follows Figure 7 As shown, the RPN module is Figure 8 As shown in Figure 2, the RoI Align module is Fig. 9 shown.
[0062] The K-Means++ clustering algorithm is as follows:
[0063] First, prepare the fertilizer particle data set to be clustered. After obtaining the data set, it is necessary to mark the fertilizer particles in each image, and then obtain the width and height of the minimum bounding rectangle of all fertilizer particles as the input data set X of the clustering algorithm, X = [x 1 ,x 2 ,...,x n ], where x1 ,x 2 ,...,x n =[(w 1 ,h 1 ),(w 2 ,h 2 ),…,(w n ,h n )], w represents the width of the minimum bounding rectangle, h represents the height of the minimum bounding rectangle, and the subscript n represents the nth fertilizer particle; the number of clusters K = 5, the specific steps of the K-Means++ clustering algorithm are as follows:
[0064] S4.1: Randomly select K values in the data set X as the initial clustering value C j ;
[0065] S4.2: For each sample x in the dataset X i (i=1,2,…,n), calculate its difference with each initial cluster value C j The iou value between:
[0066]
[0067] Among them, iou refers to the intersection between each sample and each initial cluster value, inter area is the overlapping area, which is calculated by taking sample x i With the initial clustering value C j The smaller width and height value is used as the width and height value of the overlapping area, and this value is used to calculate the overlapping area inter area ;box area For sample x i The area of cluster area is the initial clustering value C j area;
[0068] S4.3: After the previous calculation, the error value between each sample and each initial cluster value can be obtained. The error value is set to P(n,K), P(n,K) = [P(i,1), P(i,2), ..., P(i,K)], and the calculation formula of P(n,K) is: P(n,K) = 1-iou. For each sample, the initial cluster value with the minimum error value is selected, and the sample is classified into the initial cluster value with the minimum error value;
[0069] S4.4: Reselect the cluster value. According to the samples in each initial cluster value determined in the previous step, calculate the average width and height of the samples in each initial cluster value and use it as the new cluster value.
[0070] S4.5: Repeat S 4.2 to S4.4 until the cluster center position changes and meets the convergence condition;
[0071] After clustering the fertilizer particle dataset iteratively using the K-Means++ clustering algorithm, a total of 5 anchor box scales (322, 962, 1602, 2202, 3402) and 3 aspect ratios (0.4, 1.0, 2.2) were generated.
[0072] Step 5: The system control terminal and the processing core further input the pixel area data of the fertilizer particles obtained in step 4 into the granular fertilizer mass fitting model to obtain the mass data of the fertilizer particles in each sampling grid unit, integrate the data results, and correspond the naming number and mass data of each image one by one;
[0073] Among them, the correlation fitting mathematical model between the pixel area and mass of granular fertilizer (i.e., granular fertilizer mass fitting model) is:
[0074] y=-4E-10x 2 +0.0002x-0.2952
[0075] In the formula, y represents the mass of fertilizer particles, E represents the exponent in scientific notation, and x represents the pixel area of fertilizer particles;
[0076] Step 6: Based on the fertilizer particle quality data obtained in step 5, the system control terminal and the processing core further calculate the distribution variation coefficient of the fertilizer particles within the effective width of the fertilizer spreading, the fertilizer amount error per unit area, and the lateral deposition distribution curve in the plane rectangular coordinate system, and visualize them through the display device for real-time viewing by relevant personnel;
[0077] Among them, the distribution variation coefficient of fertilizer particles within the effective width of fertilizer spreading is C v Calculated by the following formula:
[0078]
[0079]
[0080]
[0081] Where M D represents the standard deviation of fertilizer particle quality, represents the mean mass of fertilizer particles, X i represents the mass of fertilizer particles in the i-th grid sampling unit, and m represents the number of grid sampling units;
[0082] The error γ of fertilizer application per unit area within the effective width of fertilizer spreading is:
[0083]
[0084] Where M represents the total mass of fertilizer particles in the test area, S represents the area of the test area, and Q represents the theoretical target fertilizer amount.
[0085] Step 7: Based on the three index results obtained in step 6, analyze the uniformity and accuracy of the fertilizer spreader, and appropriately perform parameter calibration, performance testing and structural optimization on the fertilizer spreader.
[0086] Fig.10 This is a schematic diagram comparing the recognition and detection effects of the F-TPP network model used in this embodiment with the recognition and detection effects of the traditional Mask R-CNN network model. It can be clearly seen that the recognition and detection effect of the F-TPP network model on granular fertilizer is significantly better than that of the Mask R-CNN network model; Fig.10 In the figure, (a), (b), and (c) represent three different environmental conditions: weak light, strong light, and light and shadow interference, respectively.
[0087] The RPN, RoI Align, and Anchor mentioned in the embodiment are all modules in the F-TPP network model, among which RPN (Region Proposal Network) is a network for extracting candidate boxes, RoI Align (Region of Interest Align) is an operation for processing regions of interest (RoI), and Anchor represents an anchor box, which is a predefined box or bounding box for defining the target position and size. The installation connection and movement control principles of the electric guide rails and other component structures in the image acquisition device in the embodiment all adopt the existing technology, and are not the focus of protection of the present invention, so they will not be described in detail. The embodiment is a preferred implementation mode of the present invention, but the present invention is not limited to the above implementation mode. Without departing from the essential content of the present invention, any obvious improvements, substitutions or modifications that can be made by those skilled in the art belong to the protection scope of the present invention.
Claims
1. A method for automatically detecting a granular fertilizer deposition distribution pattern using a granular fertilizer deposition distribution pattern automatic detection system, characterized in that: The automatic detection system for the deposition distribution pattern of granular fertilizers comprises a fertilizer spreading calibration pad, an image acquisition device, and a PC terminal (4). The fertilizer spreading calibration pad is laid in a detection area below the image acquisition device, and a plurality of sampling grid units are divided on the fertilizer spreading calibration pad. The PC terminal (4) is arranged on one side of the image acquisition device. The image acquisition device is used to collect image data of fertilizer particles scattered on the fertilizer spreading calibration pad and transmit it to the PC terminal (4) for data analysis and processing. The image acquisition device comprises a traveling frame with an electric guide rail on the top, and an industrial camera (5) is installed on the electric guide rail. The electric guide rail is used to control the industrial camera (5) to move horizontally and vertically. The automatic detection method of the granular fertilizer deposition distribution pattern includes the following processes: Step 1: Lay a fertilizer spreader calibration mat in the test area and set a digital label for each grid on the fertilizer spreader calibration mat; Step 2: The centrifugal fertilizer spreader is started and passes through the detection area along the center line of the fertilizer spreader calibration pad with corresponding working parameters, and the fertilizer particles are thrown onto the fertilizer spreader calibration pad; Step 3: Use an industrial camera (5) to take a picture of each grid in the fertilizer spreading calibration mat. The acquired image is named with a grid digital label and transmitted to the PC (4) for analysis and processing; Step 4: The PC (4) uses the instance segmentation network model F-TPP to identify and detect the fertilizer particles in the image and outputs the pixel area of the fertilizer particles in each image; Step 5: The PC (4) inputs the pixel area of the fertilizer particles into the granular fertilizer mass fitting model to obtain the mass data of the fertilizer particles in each sampling grid unit, integrates the data results, and matches the naming number and mass data of each image one by one; Step 6: The PC (4) calculates the distribution variation coefficient of the fertilizer particles within the effective spreading width, the fertilizer amount error per unit area, and the lateral deposition distribution curve in the plane rectangular coordinate system based on the fertilizer particle mass data, and displays them visually through a display device for real-time viewing by relevant personnel; Step 7: Based on the three index results obtained in step 6, analyze the uniformity and accuracy of the fertilizer spreader, and appropriately perform parameter calibration, performance testing and structural optimization on the fertilizer spreader.
2. The automatic detection method of granular fertilizer deposition distribution pattern according to claim 1, characterized in that: LED lighting sources (6) are installed around the walking frame, and walking wheels (3) with brake devices are installed at the bottom of the walking frame.
3. The automatic detection method of granular fertilizer deposition distribution pattern according to claim 1, characterized in that: The specific process of step 4 includes: Firstly, the Swin Transformer network is used as the feature extraction network to extract the feature information of fertilizer particles. The Swin Transformer network outputs four layers of feature maps. The four layers of feature maps are respectively input into the feature fusion network PANet for feature fusion operation. After obtaining the feature maps Feature Maps, they are input into the RPN module. Based on the K-Means++ clustering algorithm, multiple anchor frame scales are obtained as the benchmark to generate a detection frame suitable for fertilizer particles. The feature images feature maps generated in the Swin Transformer and PANet stages and the detection frame proposal generated by the RPN module are used as the input of the RoI Align module, and the detection frame generated by the RPN module is mapped to the feature images generated in the Swin Transformer and PANet stages. Finally, the prediction layer is input to obtain the segmentation result of the mask. After the mask is generated, the pixel area of the mask can be output. The pixel area of each mask corresponds to the pixel area of the fertilizer particle.
4. The automatic detection method of granular fertilizer deposition distribution pattern according to claim 3 is characterized in that: The specific process of obtaining multiple anchor frame scales using the K-Means++ clustering algorithm is as follows: S4.1 First, prepare the fertilizer particle data set to be clustered. After obtaining the data set, mark the fertilizer particles in each image, and then obtain the width and height of the minimum bounding rectangle of all fertilizer particles as the input data set X of the clustering algorithm, X = [x1, x2, ..., x n ], where x1,x2,...,x n =[(w1,h1),(w2,h2),…,(w n ,h n )], w and h represent the width and height of the smallest circumscribed rectangular frame, respectively, and the subscript n represents the nth fertilizer particle; S4.2: Randomly select K values in the data set X as the initial clustering value C j , K represents the number of clusters; S4.3: For each sample x in the dataset X i , i = 1, 2, ..., n, calculate its value with each initial cluster C j The iou value between: Among them, iou refers to the intersection between each sample and each initial cluster value, inter area is the overlapping area, which is calculated by taking sample x i With the initial clustering value C j The smaller width and height value is used as the width and height value of the overlapping area, and this value is used to calculate the overlapping area inter area ;box area For sample x i The area of cluster area is the initial clustering value C j area; S4.4: Calculate the error value P(n,K) between each sample and each initial cluster value, P(n,K) = 1-iou, select the initial cluster value with the minimum error value for each sample, and classify the sample to the initial cluster value with the minimum error value; S4.5: Reselect the cluster value, based on the samples in each initial cluster value determined in the previous step, and for the samples in each initial cluster value, calculate their average width and height, and use it as the new cluster value; S4.6: Repeat S 4.3 to S4.5 until the cluster center position changes and meets the convergence condition.
5. The automatic detection method of granular fertilizer deposition distribution pattern according to claim 1, characterized in that: In step 5, the granular fertilizer quality fitting model is as follows: y=-4E-10x 2 +0.0002x-0.2952 Where y represents the mass of the fertilizer particles, E represents the exponent in scientific notation, and x represents the pixel area of the fertilizer particles.
6. The automatic detection method of granular fertilizer deposition distribution pattern according to claim 1, characterized in that: In step 6, the distribution variation coefficient C of the fertilizer particles within the effective width of the fertilizer spreading is v Calculated by the following formula: Where M D represents the standard deviation of fertilizer particle quality, represents the mean mass of fertilizer particles, X i represents the mass of fertilizer particles in the i-th grid sampling unit, and m represents the number of grid sampling units.
7. The automatic detection method of granular fertilizer deposition distribution pattern according to claim 1, characterized in that: In step 6, the error γ of the amount of fertilizer applied per unit area is: Where M represents the total mass of fertilizer particles in the test area, S represents the area of the test area, and Q represents the theoretical target fertilizer amount.
Citation Information
Patent Citations
Centrifugal fertilizer distribution particle distribution detection method
CN114863106A
Centrifugal fertilizer spreading particle moving trajectory modeling and uniformity detection method based on digital elevation model
CN116738704A
Method for determining the distribution of material particles dispensed by means of a distribution machine
DE102018007303A1
