Agricultural robot ground classification and state recognition method based on multi-source vibration data fusion
By installing vibration sensors on agricultural robot crawlers, using the Mallat algorithm and Gram's angle summation field method to process vibration signals, and combining with the residual convolutional neural network classifier, the fusion and classification of multi-source vibration data are achieved and the problem is solved The problem of ground recognition in agricultural environments improves the driving performance and control accuracy of agricultural robots.
Patent Information
- Application Number
- CN202411222917.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-03
- Publication Date
- 2024-10-01
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing ground classification and status identification methods have problems such as lighting changes, high equipment costs, slow processing speed, and difficulty in distinguishing soft ground from hard ground in agricultural environments, which makes it more difficult to accurately identify the walking surface and status of agricultural robots.
Using a multi-source vibration data fusion method, a vibration sensor is installed near the guide wheel of the crawler vehicle to capture the vibration signals during straight line, turning, and climbing driving. The Mallat algorithm is used to perform fast wavelet transform and Gram angle summation field method to convert the data. , combined with the residual convolutional neural network classifier for feature fusion and classification.
It achieves efficient and stable ground classification and status recognition, improves the driving performance and control accuracy of agricultural robots in complex environments, and solves the problem of difficulty in directly distinguishing road environment and driving status information in vibration signals.
Smart Images

Figure CN118734175A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a ground classification and state recognition method for an agricultural robot, and in particular to a ground classification and state recognition method for an agricultural robot based on multi-source vibration data fusion. Background Art
[0002] At present, tracked mobile robots are the core supporting equipment for modern agricultural intelligence. Their unique track structure enables them to operate in the field. In the process of intelligence, ground classification and state recognition technology are related to the positioning, perception, planning, decision-making and control of autonomous vehicles and mobile robots. When the ground or vehicle state changes, the robot's braking and acceleration performance will be affected, further increasing the walking risk and control difficulty. Therefore, accurate recognition of the robot's walking surface and state in the agricultural environment is crucial.
[0003] The existing ground classification and state recognition methods mainly include vision-based, lidar-based, and vibration signal-based. The vision-based method captures ground images through a camera or image sensor, and then processes and analyzes them using a computer vision algorithm. This method has problems such as lighting changes, shadows, and image noise, and requires supplementary pre-processing and post-processing methods to improve the accuracy and stability of classification. The lidar-based method uses a laser beam to scan the ground and then processes and analyzes the reflected signal. Compared with the visual method, radar technology provides higher accuracy and stability, and is not affected by lighting conditions and shadows. However, this method has problems such as high equipment cost, slow processing speed, and difficulty in distinguishing between soft and hard ground. The ground classification and state recognition method based on vibration signals is not affected by weather, lighting, and obstacles, and has the characteristics of high accuracy and real-time performance. Compared with other methods, the vibration-based method has higher robustness and applicability in the field of agricultural robots, and can achieve high-precision ground classification and state recognition in complex environments. Summary of the invention
[0004] The purpose of the present invention is to solve many problems existing in the use of the existing ground classification and state recognition methods based on vision, laser radar and vibration signals, and to provide an agricultural robot ground classification and state recognition method with multi-source vibration data fusion.
[0005] The method for ground classification and state recognition of an agricultural robot based on multi-source vibration data fusion provided by the present invention comprises the following steps:
[0006] The first step is to install vibration sensors near the guide wheels on both sides of the agricultural crawler. For the agricultural crawler driving in a straight line, turning, and climbing on different ground surfaces, the vibration signals representing the robot state information are obtained through experiments. The two sets of vibration signals obtained are expressed as Z1={z 11 ,z 12 …z 1n} and Z2={z 21 ,z 22 …z 2n}, Z1 and Z2 are the vibration signal datasets near the guide wheels on both sides, 1n and z 2n are the signal values in the two groups of vibration signals respectively, and n is the number of signal values;
[0007] The second step is to take the average of the two captured signals to enhance the data features, which is expressed as Z 3 = { z 31 , z 32 … z 3n}, z 3n is the mean of the two groups of signals, and the Mallat algorithm is used to implement fast wavelet transform for data denoising;
[0008] The third step is to convert the sequence data into an image using the Gram Angle Sum Field (GASF) method while maintaining its time dependency and expanding the feature dimension.
[0009] Step 4: embed the three sets of vibration signals generated by the robot during walking into the three channels of the RGB image to achieve organic feature fusion;
[0010] Step 5: Build a residual convolutional neural network classifier that combines a multi-layer residual block structure and introduces channel attention and spatial attention mechanisms;
[0011] Step 6: Use the optimized classifier to classify the processed signal.
[0012] The second step uses the Mallat algorithm to implement fast wavelet transform, which includes three different stages: signal decomposition, threshold processing, and data reconstruction, as follows:
[0013] Set the decomposition layer number M, and use a high-pass filter h(p) and a low-pass filter g(p) to decompose the original signal M times;
[0014] According to the formula, we get the approximate signal d(p) and the detail signal a(p), where the approximate signal contains the low-frequency components of the signal, and the detail signal contains the high-frequency components of the signal. The specific formula is as follows:
[0015]
[0016] Where j is the detail signal number, p is the pth data in the detail signal;
[0017] For the coefficients obtained by decomposition, the Sqtwolog threshold method is used to retain the coefficients greater than the threshold and set the coefficients less than the threshold to 0. The specific formula is as follows:
[0018]
[0019] In the formula, λ is the threshold, N is the length of the data;
[0020] All coefficients are reconstructed and the signal is reconstructed from the wavelet domain back to the time domain to obtain the denoised signal. The specific formula is as follows:
[0021]
[0022] In the third step, the sequence data is converted into an image using the Gram angle sum field method as follows:
[0023] For any given sequence data set Z1={z 11 ,z 12 …z 1n}, each Z i Scale it so that it is within the interval [a, b] and satisfies -1≤a≤b≤1. The specific formula is as follows:
[0024]
[0025] In the formula is the scaled (standardized) data, min(z) is the minimum value in z, and max(z) is the maximum value in z;
[0026] calculate The arc cosine value of the sequence data is obtained by polar coordinate representation. The specific formula is as follows:
[0027]
[0028] in, φ i is the arccosine value, is the scaled data set, r i is the polar coordinate radius, t i represents the timestamp, and N represents a constant used to standardize the span of polar coordinates;
[0029] Calculate the cosine value of the sum of polar coordinate angles to obtain the GASF matrix, so that the one-dimensional sequence data is converted into two-dimensional image data. The specific formula is as follows:
[0030]
[0031]
[0032] is the transpose of the data set matrix;
[0033] The factors in the GASF matrix are scaled so that they are in the range of 0-255, corresponding to the pixel value range of the image.
[0034] In the fourth step, the three sets of vibration signals generated by the robot during walking are embedded into the three channels of the RGB image, as follows:
[0035] Assuming the width of the image is W and the height is H, the single-channel image is represented by the following formula:
[0036] I single ∈R^(H×W)
[0037] Among them, R represents the set of real numbers, ^ represents the dimension of the tensor;
[0038] The single-channel images converted from the three sets of data Z1, Z2, and Z3 are named I R single , I G single , I B single ;
[0039] The three images are stacked on the channel dimension of the RGB image to obtain a new RGB image, denoted as I, which is expressed by the following formula:
[0040] I=[I R single , I G single , I B single ]∈R^(H×W×3).
[0041] In the fifth step, a residual convolutional neural network classifier is constructed that combines a multi-layer residual block structure and introduces channel attention and spatial attention mechanisms. The structure specifically includes a sequentially connected convolutional layer conv, a channel attention module CAM, a spatial attention module SAM, a maximum pooling layer maxpool, a residual module, a channel attention module, a spatial attention module, an average pooling layer avgpool, and a fully connected layer FC;
[0042] The channel attention module aggregates the spatial information of the feature map by performing global maximum pooling and global average pooling based on width and height respectively, generating two different spatial context descriptors. These two descriptors are then passed through a multi-layer perceptron and their results are combined into an output feature vector by element summation. Finally, a sigmoid activation operation is performed to generate the final channel attention feature map.
[0043] The spatial attention module performs maximum pooling and average pooling on the input feature map in the channel dimension, and concatenates them to generate a valid feature descriptor. It then performs a convolution operation using a 7×7 convolution kernel to generate a spatial attention feature map.
[0044] The residual module consists of a normal residual block, denoted as typeⅠ, and a residual block with downsampling, denoted as typeⅡ, and they are arranged in the order of typeⅠ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ.
[0045] In the sixth step, the processed signal is classified using the optimized classifier, as follows:
[0046] During the training process, the entire training set is defined as a matrix x, which is expressed by the following formula:
[0047] x=[x (1) ,x (2) …x (m) ]
[0048] The superscript m is the number of samples, and the feature vector of each sample has dimensions H×W×C, where H, W, and C represent the height, width, and number of channels of the image, respectively;
[0049] The data label matrix y is expressed by the following formula:
[0050] y=[y (1) ,y (2) …y (m) ]
[0051] Among them, the i-th data label y (i) The type of is the probability distribution of the true label category;
[0052] Through the classifier, a mapping relationship between x and y is established, which is expressed by the following formula:
[0053]
[0054] is the predicted value, f is the function expression symbol, σ is the activation function, ω is the slope matrix, T is the transpose symbol, X is the data variable, and b is the bias symbol;
[0055] Use classifiers to learn data features and make predictions The error between the true label y is minimized, so as to obtain the optimal parameter set θ={w i ,b i}; θ is the set symbol of the optimization parameter, w i is the slope, b i is bias;
[0056] The preprocessed data is input into the optimized classifier for classification.
[0057] Beneficial effects of the present invention:
[0058] The agricultural robot ground classification and state recognition method based on multi-source vibration data fusion provided by the present invention solves the problem that the road environment and driving state information contained in the vibration signal are difficult to directly distinguish through a new data feature enhancement method and classifier, and efficiently and stably realizes the classification of different ground surfaces and the recognition of the operating state of the agricultural robot through vibration signals. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 The present invention is a flowchart of the method for ground classification and state recognition of an agricultural robot based on multi-source vibration data fusion.
[0060] Figure 2 This is a schematic diagram of the principle of the Mallat algorithm fast wavelet transform described in the present invention.
[0061] Figure 3 This is a schematic diagram of the classifier structure described in the present invention. DETAILED DESCRIPTION
[0062] See also Figures 1 to 3 As shown:
[0063] The method for ground classification and state recognition of an agricultural robot based on multi-source vibration data fusion provided by the present invention comprises the following steps:
[0064] The first step is to install vibration sensors near the guide wheels on both sides of the agricultural crawler. For the agricultural crawler driving in a straight line, turning, climbing and other situations on different ground surfaces, a series of vibration signals representing the robot state information are obtained through experiments. The two sets of vibration signals obtained are expressed as Z1={z 11 ,z 12 …z 1n} and Z2={z 21 ,z22 …z 2n}, Z1 and Z2 are the vibration signal datasets near the guide wheels on both sides, 1n and z 2n are the signal values in the two groups of vibration signals respectively, and n is the number of signal values;
[0065] The second step is to take the average of the two captured signals to enhance the data features, which is expressed as Z 3 = { z 31 , z 32 ,……, z 3n}, z 3n is the mean of the two groups of signals, and the Mallat algorithm is used to implement fast wavelet transform for data denoising;
[0066] The third step is to convert the sequence data into images using the Gram Angle Sum Field (GASF) method while maintaining its time dependency and expanding the feature dimension;
[0067] Step 4: embed the three sets of vibration signals generated by the robot during walking into the three channels of the RGB image to achieve organic feature fusion;
[0068] Step 5: Build a residual convolutional neural network classifier that combines a multi-layer residual block structure and introduces channel attention and spatial attention mechanisms;
[0069] Step 6: Use the optimized classifier to classify the processed signal.
[0070] like Figure 2 As shown, the second step of applying the Mallat algorithm to implement fast wavelet transform includes three different stages: signal decomposition, threshold processing and data reconstruction;
[0071] Set the decomposition layer number M, and use a high-pass filter h(p) and a low-pass filter g(p) to decompose the original signal M times;
[0072] According to the formula, we get the approximate signal d(p) and the detail signal a(p), where the approximate signal contains the low-frequency components of the signal, and the detail signal contains the high-frequency components of the signal. The specific formula is as follows:
[0073]
[0074] Where j is the detail signal number, p is the pth data in the detail signal;
[0075] For the coefficients obtained by decomposition, the Sqtwolog threshold method is used to retain the coefficients greater than the threshold and set the coefficients less than the threshold to 0. The specific formula is as follows:
[0076]
[0077] In the formula, λ is the threshold, N is the length of the data;
[0078] All coefficients are reconstructed and the signal is reconstructed from the wavelet domain back to the time domain to obtain the denoised signal. The specific formula is as follows:
[0079]
[0080] The third step is to convert the sequence data into an image using the Gram angle sum field method, including:
[0081] For any given sequence data set Z1={z 11 ,z 12 …z 1n}, each Z i Scale it so that it is within the interval [a, b] and satisfies -1≤a≤b≤1. The specific formula is as follows:
[0082]
[0083] In the formula is the scaled data, min(z) is the minimum value in z, and max(z) is the maximum value in z;
[0084] calculate The arc cosine value of the sequence data is obtained by polar coordinate representation. The specific formula is as follows:
[0085]
[0086] in, φ i is the arccosine value, is the scaled data set, r i is the polar coordinate radius, t i Represents the timestamp, and N represents a constant used to normalize the span of polar coordinates.
[0087] Calculate the cosine value of the sum of polar coordinate angles to obtain the GASF matrix, so that the one-dimensional sequence data is converted into two-dimensional image data. The specific formula is as follows:
[0088]
[0089]
[0090] is the transpose of the data set matrix;
[0091] The factors in the GASF matrix are scaled so that they are in the range of 0-255, corresponding to the pixel value range of the image.
[0092] In the fourth step, three sets of vibration signals generated by the robot during walking are embedded into the three channels of the RGB image, including:
[0093] Assuming the width of the image is W and the height is H, a single-channel image can be represented by the following formula:
[0094] I single ∈R^(H×W)
[0095] Here, R represents the set of real numbers and ^ represents the dimension of the tensor.
[0096] The single-channel images converted from the three sets of data Z1, Z2, and Z3 are named I R single , I G single , I B single ;
[0097] The three images are stacked on the channel dimension of the RGB image to obtain a new RGB image, denoted as I, which is expressed by the following formula:
[0098] I=[I R single , I G single , I B single ]∈R^(H×W×3).
[0099] like Figure 3 As shown, in the fifth step, a residual convolutional neural network classifier is constructed that combines a multi-layer residual block structure and introduces channel attention and spatial attention mechanisms. The structure specifically includes a convolutional layer (conv), a channel attention module (CAM), a spatial attention module (SAM), a maximum pooling layer (maxpool), a residual module, a channel attention module, a spatial attention module, an average pooling layer (avgpool), and a fully connected layer (FC) connected in sequence;
[0100] The channel attention module aggregates the spatial information of the feature map through global maximum pooling and global average pooling based on width and height, and generates two different spatial context descriptors. Then the two descriptors are passed through the multi-layer perceptron, and the results are combined into the output feature vector by element summation, and finally the final channel attention feature map is generated through the sigmoid activation operation;
[0101] The spatial attention module performs maximum pooling and average pooling on the input feature maps in the channel dimension, concatenates them to generate a valid feature descriptor, and then performs a convolution operation using a convolution kernel of size 7×7 to generate a spatial attention feature map.
[0102] The residual module consists of a normal residual block denoted as typeⅠ and a residual block with downsampling denoted as typeⅡ, and they are arranged in the order of typeⅠ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ.
[0103] In the sixth step, the processed signal is classified using the optimized classifier, including:
[0104] During the training process, the entire training set is defined as a matrix x, which is expressed by the following formula:
[0105] x=[x (1) ,x (2) …x (m) ]
[0106] The superscript m is the number of samples, and the feature vector of each sample has dimensions H×W×C, where H, W, and C represent the height, width, and number of channels of the image, respectively;
[0107] The data label matrix y is expressed by the following formula:
[0108] y=[y (1) ,y (2) …y (m) ]
[0109] Among them, the i-th data label y (i) The type of is the probability distribution of the true label categories.
[0110] Through the classifier, a mapping relationship between x and y is established, which is expressed by the following formula:
[0111]
[0112] is the predicted value, f is the function expression symbol, σ is the activation function, ω is the slope matrix, T is the transpose symbol, X is the data variable, and b is the bias symbol;
[0113] Use classifiers to learn data features and make predictions The error between the true label y is minimized, so as to obtain the optimal parameter set θ={w i ,b i}; θ is the set symbol of the optimization parameter, wi is the slope, b i is bias;
[0114] The preprocessed data is input into the optimized classifier for classification.
[0115] Performance test of this embodiment:
[0116] Two accelerometers are fixed on the track frame of the dual-track walking device close to the guide wheel, and the vibration data of six categories, namely hard soil straight, hard soil steering, normal soil straight, normal soil steering, soft soil straight and soft soil steering, are collected respectively; under each straight condition, the walking speed of the test platform is 0.1m / s, 0.2m / s and 0.3m / s respectively; under each steering condition, there are two types of left turn and right turn respectively. Since the steering of the crawler mobile robot is realized by the differential speed of the crawlers on both sides, the speed of the crawlers on both sides is selected from any two of 0.1m / s, 0.2m / s and 0.3m / s respectively; through the experiment, the total number of images collected for hard soil straight, hard soil steering, normal soil straight, normal soil steering, soft soil straight and soft soil steering are 632, 791, 603, 679, 622 and 730 respectively. The dataset contains a total of 4057 samples, of which the training set and the test set are divided according to the ratio of 9:1. Through training, the recognition accuracy of the samples is 92.35%, the precision is 92.82%, the recall is 92.36%, and the recognition time is 2.6 seconds. In summary, the present invention has fast calculation speed, simple implementation, and can accurately identify different ground types and the driving status of the agricultural robot.
Claims
1. Agricultural robot ground classification and state recognition method based on multi-source vibration data fusion, Features: The method comprises the following steps: The first step is to install vibration sensors near the guide wheels on both sides of the agricultural crawler. For the agricultural crawler driving in a straight line, turning, and climbing on different ground surfaces, the vibration signals representing the robot state information are obtained through experiments. The two sets of vibration signals obtained are represented as Z 1 ={z 11 ,z 12 …z 1n } and Z 2 ={z 21 ,z 22 …z 2n }, Z 1 and Z 2 are the vibration signal datasets near the guide wheels on both sides, z 1n and z 2n are the signal values in the two groups of vibration signals respectively, and n is the number of signal values; The second step is to take the average of the two captured signals to enhance the data features, which is expressed as Z 3 = { z 31 , z 32 … z 3n }, z 3n is the mean of the two groups of signals, and the Mallat algorithm is used to implement fast wavelet transform for data denoising; The application of Mallat algorithm to realize fast wavelet transform includes three different stages: signal decomposition, threshold processing and data reconstruction, as follows: Set the decomposition layer number M, and use a high-pass filter h(p) and a low-pass filter g(p) to decompose the original signal M times; According to the formula, we get the approximate signal d(p) and the detail signal a(p), where the approximate signal contains the low-frequency components of the signal, and the detail signal contains the high-frequency components of the signal. The specific formula is as follows: ; Where j is the detail signal number, p is the pth data in the detail signal; For the coefficients obtained by decomposition, the Sqtwolog threshold method is used to retain the coefficients greater than the threshold and set the coefficients less than the threshold to 0. The specific formula is as follows: ; In the formula, λ is the threshold, N is the length of the data; All coefficients are reconstructed and the signal is reconstructed from the wavelet domain back to the time domain to obtain the denoised signal. The specific formula is as follows: ; The third step is to convert the sequence data into an image using the Gram Angle Sum Field (GASF) method while maintaining its time dependency and expanding the feature dimension. The specific steps are as follows: For any given sequence data set Z 1 ={z 11 ,z 12 …z 1n }, each Z i Scale it so that it is within the interval [a,b] and satisfies -1≤a≤b≤1. The formula is as follows: ; In the formula is the scaled data, min(z) is the minimum value in z, and max(z) is the maximum value in z; calculate The arc cosine value of the sequence data is expressed in polar coordinates. The formula is as follows: ; in, φ i is the arccosine value, is the scaled data set, r i is the polar coordinate radius, t i represents the timestamp, and N represents a constant used to standardize the span of polar coordinates; Calculate the cosine value of the sum of polar coordinate angles to obtain the GASF matrix, which converts the one-dimensional sequence data into two-dimensional image data. The formula is as follows: ; ; is the transpose of the data set matrix; Scale the factors in the GASF matrix so that they are in the range of 0-255, corresponding to the pixel value range of the image; Step 4: embed the three sets of vibration signals generated by the robot during walking into the three channels of the RGB image to achieve organic feature fusion; the specific steps are as follows: Assuming the width of the image is W and the height is H, the single-channel image is represented by the following formula: I single ∈R^(H×W) Among them, R represents the set of real numbers, ^ represents the dimension of the tensor; Z 1 , Z 2 , Z 3 The single-channel images converted from the three sets of data are named I R single , I G single , I B single ; The three images are stacked on the channel dimension of the RGB image to obtain a new RGB image, denoted as I, which is expressed by the following formula: I=[I R single ,I G single ,I B single ]∈R^(H×W×3) Step 5: Build a residual convolutional neural network classifier that combines a multi-layer residual block structure and introduces channel attention and spatial attention mechanisms; The construction combines a multi-layer residual block structure and introduces a residual convolutional neural network classifier that introduces a channel attention and spatial attention mechanism. The structure specifically includes a convolutional layer conv, a channel attention module CAM, a spatial attention module SAM, a maximum pooling layer maxpool, a residual module, a channel attention module, a spatial attention module, an average pooling layer avgpool and a fully connected layer FC connected in sequence; The channel attention module aggregates the spatial information of the feature map by performing global maximum pooling and global average pooling based on width and height respectively, generating two different spatial context descriptors. These two descriptors are then passed through a multi-layer perceptron and their results are combined into an output feature vector by element summation. Finally, a sigmoid activation operation is performed to generate the final channel attention feature map. The spatial attention module performs maximum pooling and average pooling on the input feature map in the channel dimension, and concatenates them to generate a valid feature descriptor. It then performs a convolution operation using a 7×7 convolution kernel to generate a spatial attention feature map. The residual module consists of a normal residual block, denoted as typeⅠ, and a residual block with downsampling, denoted as typeⅡ. They are arranged in the order of typeⅠ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ- typeⅡ- typeⅠ. Step 6: Use the optimized classifier to classify the processed signal; the specific steps are as follows: During the training process, the entire training set is defined as a matrix x, which is expressed by the following formula: x=[x (1) ,x (2) …x (m) ] The superscript m is the number of samples, and the feature vector of each sample has dimensions H×W×C, where H, W, and C represent the height, width, and number of channels of the image, respectively; The data label matrix y is expressed by the following formula; y=[y (1) ,and (2) …and (m) ] Among them, the i-th data label y (i) The type of is the probability distribution of the true label category; Through the classifier, a mapping relationship between x and y is established, which is expressed by the following formula: ; is the predicted value, f is the function expression symbol, σ is the activation function, ω is the slope matrix, T is the transpose symbol, X is the data variable, and b is the bias symbol; Use classifiers to learn data features and make predictions The error between the true label y is minimized, so as to obtain the optimal parameter set θ={w i ,b i }; θ is the set symbol of the optimization parameter, w i is the slope, b i is bias; The preprocessed data is input into the optimized classifier for classification.
Citation Information
Patent Citations
Agricultural machine maintenance method and system for digital country
CN118196580A
Expression recognition method based on attention-modulated contextual spatial information
WO2023185243A1
Cited By
Tractor field operation ground type real-time identification method and system
CN120708177A
