A deep loosening mechanism depth detection method based on multi-source visual perception
By using a multi-source visual perception method, the problems of modifying the soil-inserting shovel and adaptability in existing deep tillage depth detection technologies have been solved. This enables accurate tillage depth detection without modifying the soil-inserting shovel, adapts to deep tillage shovels with different structures, reduces soil disturbance errors, and improves the stability and applicability of the detection.
Patent Information
- Application Number
- CN202611654011.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-27
AI Technical Summary
Existing deep tillage depth detection technologies require modification of the shovel body, making sensor protection difficult; indirect measurements cannot distinguish between shovel body deflection relative to the frame and frame overall lifting, making it difficult to obtain the true position of the shovel tip obscured by soil; post-operation surface disturbance cannot serve as a benchmark for accurate tillage depth; a single vision solution is difficult to adapt to deep tillage shovels of different shapes, resulting in insufficient detection stability in complex field environments.
A multi-source visual perception method is adopted, which uses a shovel body visual acquisition device and a ground surface depth visual device fixed to the subsoiler frame to establish a frame reference coordinate system, calculate the deflection angle of the subsoil shovel relative to the frame, reconstruct the virtual ground surface before operation, adapt to regular and irregular subsoil shovels, and construct a multi-dimensional effectiveness judgment mechanism.
It enables precise tillage depth detection without modifying the shovel body, adapts to different deep loosening shovel structures, reduces soil disturbance errors, and improves the stability and applicability of the detection.
Smart Images

Figure CN123175170A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of agricultural machinery operation inspection, and in particular to a method for detecting tillage depth in deep tillage mechanisms based on multi-source visual perception. Background Technology
[0002] Subtillage is a core agricultural process that breaks up the plow pan, optimizes the soil structure, and enhances the soil's water retention capacity. The actual depth of the subtillage shovel directly determines the soil breaking effect, operational resistance, and machine energy consumption. Achieving accurate detection of the depth of a single shovel during continuous operation is a key foundation for quality control and intelligent machine regulation in subtillage.
[0003] Existing tillage depth detection technologies are mainly divided into two categories: direct positioning and indirect estimation. Direct positioning acquires position information by integrating a positioning sensor unit at the end of the subsoil shovel. However, the subsoil shovel is subjected to long-term soil impact, friction, and alternating loads, making sensor protection, sealing, and cross-media signal transmission difficult. Furthermore, the cost of structural modifications to existing subsoil machinery is high, hindering large-scale application. Indirect estimation indirectly derives tillage depth by detecting the movement of the frame, suspension mechanism, or shovel mounting end. This eliminates the need to modify the subsoil-entering components, but only reflects the overall movement of the frame. When the subsoil shovel is connected to the frame via a rotating hinge structure and undergoes relative deflection under soil resistance, indirect measurement cannot capture the angular change of the shovel relative to the frame, making it difficult to accurately obtain the actual spatial position of a single shovel tip, resulting in significant detection errors.
[0004] On the other hand, during subtillage operations, the soil around the shovel tip is compressed and turned over, forming bulges, trenches, and loose deposits. The disturbed surface morphology after the operation has a significant height difference from the original surface. If the post-operation surface is directly used as the benchmark for calculating tillage depth, it will introduce obvious systematic errors and cannot accurately reflect the actual penetration depth. In addition, different models and structures of subtillage shovels vary greatly in their external contours and visible surface features. The visually identifiable features of regular-edged and curved-surface subtillage shovels are different, making it difficult to balance the detection accuracy and adaptability of various shovel types using a single visual inspection method.
[0005] Therefore, there is an urgent need to develop a non-contact tillage depth detection method that does not require modification of the shovel body, can distinguish between relative shovel body deflection and overall frame lifting, can avoid the impact of disturbing the ground surface, and is compatible with deep tillage shovels of different shapes, so as to improve the accuracy, adaptability and reliability of deep tillage depth detection. Summary of the Invention
[0006] To address the aforementioned issues, this application proposes a deep tillage depth detection method for deep tillage mechanisms based on multi-source visual perception, aiming to resolve the shortcomings of existing deep tillage depth detection technologies. This method addresses the problems of: direct positioning methods requiring modification of the shovel body and posing significant challenges to sensor protection; indirect measurement methods failing to distinguish between shovel body deflection relative to the frame and overall frame lifting, making it difficult to obtain the true position of the shovel tip obscured by soil; the inability of disturbed ground after operation to serve as a precise tillage depth benchmark; the difficulty of adapting a single visual approach to deep tillage shovels with different shapes; and insufficient detection stability in complex field environments. The method includes the following steps: S1. Fix the shovel body vision acquisition device and the left and right ground surface depth vision devices to the deep tillage machine frame, establish the frame reference coordinate system, camera coordinate system and deep tillage shovel local coordinate system and complete the calibration. The shovel body vision acquisition device is used to acquire the visible area of the deep loosening shovel; The left and right surface depth vision devices are used to collect data on the undisturbed surface on both sides of the center line of the deep loosening shovel operation. S2. Simultaneously collect visual data of the visible area above the soil of the deep loosening shovel and the undisturbed surface point cloud on the left and right sides, and determine the corresponding visual recognition route of the shovel body based on the outer contour of the deep loosening shovel and the visible surface features. S3. Calculate the motion state of the deep loosening shovel relative to the frame according to the visual recognition route of the shovel body and the single-axis rotation constraint around the preset rotation axis, and determine the spatial coordinates of the shovel tip in the frame reference coordinate system according to the fixed spatial relationship between the visible area and the shovel tip covered by soil. S4. Exclude the point cloud data of the central soil disturbance area, and reconstruct the virtual ground surface before operation across the central disturbance area based on the undisturbed ground point cloud data on the left and right sides. S5. Substitute the horizontal projection position of the shovel tip into the virtual ground surface before operation to obtain the corresponding ground height, and determine the deep tillage depth based on the difference between the ground height and the vertical coordinate of the shovel tip.
[0007] Preferably, the visual recognition route of the shovel body includes two types: For deep loosening shovels with regular straight edges, flat and visible surfaces, or those with regular edges that are easy to set up with artificial visual markers, the artificial visual markers and the CAD model are reprojected onto the route. For irregular edge deep loosening shovels that lack stable regular straight edges and whose outer surface is mainly composed of continuous curved surfaces, a point cloud registration route combining standard model point cloud, simulated observation point cloud, and point cloud joint registration network is adopted.
[0008] Preferably, the subsoil shovel is connected to the frame via a rotating connection structure, and has only one degree of freedom of motion relative to the frame, rotating about a preset axis of rotation, with its deflection angle relative to the initial installation posture. θ k As the first k The motion parameters to be solved at time t; The expression for the spatial coordinates of the shovel tip in the frame reference coordinate system is: ; in, The reference coordinates of the frame are the blade tip in its initial installation state. The initial coordinates of the rotation reference point of the preset rotation axis in the frame reference coordinate system are given. The deflection angle of the deep loosening shovel around the preset rotation axis The corresponding rotation matrix, where W represents the frame reference coordinate system, k represents the kth sampling time, t represents the shovel tip, r represents the rotation reference point, and a represents the preset rotation axis. This represents the spatial coordinates of the shovel tip in the frame reference coordinate system at the k-th sampling time.
[0009] Preferably, the reprojection route between the artificial visual markers and the CAD model includes: At least three artificial visual markers with unique arrangement are set in the visible area of the regular edge-shaped deep loosening shovel, and model reference points corresponding one-to-one with the artificial visual markers are established in the CAD model. Extract the first k Measured image coordinates of each artificial visual marker at each time step Based on the candidate deflection angle The model reference point is rotated around a preset rotation axis and projected onto the image plane to obtain the predicted projected coordinates. ; A weighted projection error is established between the measured image coordinates and the predicted projection coordinates. The deflection angle is solved with the objective of minimizing the weighted projection error. The expression for the weighted projection error is: ; in, For the first k The number of valid markers at any given time. For the first i The observation weights of each marker point Let θk represent the weighted projection error corresponding to the candidate deflection angle θk at time k.
[0010] In the initial installation state of the subsoil shovel, the rotation reference point of the preset rotation axis, the direction of the rotation axis, the initial spatial position of each model reference point of the subsoil shovel and the shovel tip in the frame reference coordinate system are determined; during the operation of the subsoil shovel, according to the calculated deflection angle, each model reference point and the shovel tip are made to rotate around the preset rotation axis with the rotation reference point as the reference, thereby determining the spatial coordinates of each model reference point and the shovel tip in the frame reference coordinate system at the current moment.
[0011] Preferably, the point cloud registration route includes: Generate a standard model point cloud based on the CAD model of an irregular edge-shaped deep loosening shovel; The standard model point cloud is rotated and transformed within a preset deflection angle range, and a simulated observation point cloud with deflection angle labels is generated according to the observation conditions of the shovel depth vision device. The point cloud joint registration network is trained using the standard model point cloud and the simulated observation point cloud; The standard model point cloud and the first k Measured local point cloud at time The initial value of the deflection angle is obtained by inputting the network, and geometric fine registration is performed under the single-axis rotation constraint. The objective function of the geometric fine registration is: ; in, The number of visible model points from the current perspective. The deflection angle is Time j The frame reference coordinates of each model point Let be the robust loss function for suppressing the influence of outliers in point cloud registration. For the measured local point cloud The coordinates of any point in the array. This represents the average robust point cloud registration error corresponding to the candidate deflection angle θ at time k; The final deflection angle of the deep loosening shovel relative to the frame is obtained by minimizing the objective function.
[0012] Preferably, the point cloud joint registration network includes a point cloud feature extraction module, a cross-point cloud feature matching module, a global feature fusion module, and a motion state regression module; The motion state regression module outputs a sine prediction value of the deflection angle. Sum and cosine prediction values The deflection angle of the deep loosening shovel is determined based on the sine and cosine predicted values. Deflection angle The expression is: ; ; The point cloud joint registration network is trained using deflection angle loss and point cloud registration loss, and the total loss expression is: ; in, , These are the weighting coefficients for the deflection angle loss and the point cloud registration loss, respectively. For deflection angle loss, Registration loss for point clouds.
[0013] Preferably, the reconstruction of the virtual surface before the operation includes: The areas are divided into a central disturbance zone, a left-side undisturbed zone, and a right-side undisturbed zone according to the deep tillage shovel operation centerline, the maximum soil disturbance width, and the safety interval. The effective number of points, coverage, fitting residuals, and height continuity of the undisturbed surface point clouds on the left and right sides are evaluated respectively, and the fusion weights are determined. A weighted robust planar model or quadratic surface model is used to fit the undisturbed surface point cloud on both sides to interpolate and complete the perturbed central region. The fitting objective function is: ; in, For the first k At any given moment, the set of undisturbed surface points on both sides. For the first point in the set i One point, The fitting weights for that point are... For the surface model, For surface model parameters, Let be the robust loss function for surface fitting. The optimal surface model parameters at time k are obtained by minimizing the weighted robust fitting error. This represents the elevation coordinates of the point on the ground in the frame's reference coordinate system. The virtual surface expression obtained before the reconstruction is: .
[0014] in, This represents the predicted ground height at horizontal position (x, y) of the virtual ground before reconstruction at time k.
[0015] Preferably, the spatial coordinates of the shovel tip and the virtual ground surface before operation are synchronized in time, and the validity index is calculated based on the motion state corresponding to the current visual recognition route of the shovel body, the consistency of the predicted ground height on the left and right sides, and the continuity of the tillage depth change to judge the validity of the tillage depth result. When using artificial visual markers to reproject the route from the CAD model, the effectiveness indicators for motion state calculation include the number of effective markers and the reprojection error. When using a point cloud registration route, the effectiveness indicators of motion state calculation include the number of effective points, point cloud overlap rate, and registration residual; The formula for calculating deep tillage depth is: ; in, q To identify route signs, For the first k The vertical coordinate of the shovel tip at all times. The corrected ground elevation before operation. To correspond to the tillage depth correction for the identified route, It means deep cultivation.
[0016] When the results at the current moment do not meet the preset validity conditions, short-term corrections are made using the deflection angle, surface height, or tillage depth results from adjacent valid moments, and time smoothing is performed using the following formula: ; in, For the first The deflection angle after constant correction For the first k The original calculated value of the deflection angle at time step. This is the deflection angle smoothing coefficient. This is the deflection angle corrected at time k-1.
[0017] In summary, the multi-source visual perception-based deep tillage depth detection method proposed in this invention has the following advantages compared to traditional technologies: 1. Only the vision acquisition equipment needs to be installed on the frame. There is no need to integrate the sensor and wiring into the tip of the shovel, which avoids the impact of soil impact and wear on the detection device. Existing deep tillage equipment can be directly retrofitted and used. 2. Based on single-axis rotation constraints, the deflection angle of the shovel relative to the frame is directly calculated using the visual information of the visible shovel, and the spatial position of the hidden shovel tip is derived; the overall lifting of the frame is reflected by the height change of the ground point cloud, avoiding the defect that indirect measurement cannot capture the relative deflection of the shovel. 3. Actively remove the central disturbed area around the shovel body that is affected by overturning and uplift, and use the original undisturbed surface point cloud on both sides to reconstruct the virtual surface before operation, which greatly reduces the measurement error of tillage depth caused by surface deformation after operation. 4. Two recognition routes, marker point reprojection and point cloud registration, are configured for regular edge-shaped and irregular curved surface-shaped deep loosening shovels respectively. The same detection frame can be adapted to deep loosening shovels with different structural features, and has a wide range of applications. 5. Construct a multi-dimensional validity judgment mechanism, and combine time smoothing and short-term correction to handle abnormal results. This can reduce the interference of machine vibration, dust obstruction and local surface anomalies on the test results, and achieve continuous and stable tillage depth output.
[0018] The technical method of the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. Attached Figure Description
[0019] Figure 1 This is the overall flowchart of the deep tillage depth detection method for deep tillage mechanisms based on multi-source visual perception of the present invention; Figure 2This is a flowchart of the shovel motion state calculation and bilateral undisturbed ground surface reconstruction process of the present invention; Figure 3 This is a schematic diagram of the overall layout of the multi-source vision acquisition device for the deep tillage machine of the present invention; Figure 4 This is a top view of the installation positions of the shovel-body visual acquisition device and the left and right ground surface depth visual devices of the present invention; Figure 5 This is a schematic diagram showing the arrangement and extraction results of artificial visual markers. Figure 5 (a) shows the arrangement of artificial visual markers. Figure 5 (b) in the figure shows the results of marker point segmentation and center extraction; Figure 6 A schematic diagram showing the layout and observation area of the visual acquisition equipment (color camera) for a regular-edged deep loosening shovel. Figure 7 A schematic diagram of the overall simulation point cloud and visible area of an irregularly shaped deep loosening shovel; Figure 8 A schematic diagram of a partial simulation observation point cloud of a depth vision device for a shovel. Figure 9 A schematic diagram showing the arrangement of depth vision equipment and the observation area for an irregularly shaped deep loosening shovel; Figure 10 This is a schematic diagram of a local point cloud obtained from a measured test of an irregularly shaped deep loosening shovel. Figure 11 This is a top view of the original surface from both sides. Figure 11 Part (a) in the diagram represents the observation area of the left surface depth vision device. Figure 11 Part (b) in the diagram represents the observation area of the right-hand surface depth vision device. Figure 11 Part (c) in the figure represents the central perturbation region (the measured point cloud is not included in the fitting). Figure 12 This is a schematic diagram of undisturbed surface point clouds on both sides, where, Figure 12 (a) shows the undisturbed surface area on the left. Figure 12 (b) shows the undisturbed surface area on the right. Figure 12 (c) represents the central disturbance region after removing the measured point cloud; Figure 13 This is a schematic diagram showing the virtual terrain completion result before the operation. Figure 13 (a) shows the undisturbed surface area on the left. Figure 13 (b) shows the undisturbed surface area on the right. Figure 13 (c) represents the central disturbance region after interpolation and completion using the surface model.
[0020] Figure Labels 1. Left surface depth vision device; 2. Shovel body vision acquisition device; 3. Right surface depth vision device; 4. Shovel body depth vision device; 5. Rotation reference point; 6. Visible area of shovel body. Detailed Implementation
[0021] The technical method of the present invention will be further described below with reference to the accompanying drawings and embodiments. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values of the components and steps described in these embodiments do not limit the scope of this application.
[0022] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit the scope of this application and its application or use.
[0023] Techniques, systems, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, they should be considered part of the instruction manual.
[0024] In all the examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.
[0025] Unless otherwise defined, the technical or scientific terms used in this invention shall have the ordinary meaning as understood by one of ordinary skill in the art to which this invention pertains.
[0026] This invention proposes a method for detecting tillage depth in deep tillage structures based on multi-source visual perception. The overall detection process of the invention is as follows: Figure 1 As shown, the data processing flow for calculating the shovel's motion state and reconstructing the undisturbed surface on both sides is as follows: Figure 2 As shown, the specific content is as follows: S1: System configuration and coordinate calibration.
[0027] Based on the structural characteristics of the subsoil shovel to be tested and the subsequent identification route, a shovel-body visual acquisition device and left and right surface depth visual devices are installed on the subsoiler frame. The shovel-body visual acquisition device is a color camera and / or a depth camera, whose effective field of view covers the visible area of the subsoil shovel above the soil. When the shovel-body visual acquisition device uses a depth camera to acquire the three-dimensional point cloud of the subsoil shovel, it is called a shovel-body depth visual device. The devices used to acquire undisturbed surface depth data on the left and right sides of the subsoil shovel are called the left surface depth visual device and the right surface depth visual device, respectively, and together they are called the left and right surface depth visual devices.
[0028] The effective fields of view of the left and right surface depth vision devices respectively cover the undisturbed surface areas on both sides of the subsoiler's operating centerline. The overall layout of each vision acquisition device on the subsoiler is as follows: Figure 3As shown, their relative installation positions along the transverse direction of the frame are as follows: Figure 4 As shown. Each vision device maintains a fixed relative position with the rack, and the sampling frequency, image resolution, exposure parameters, depth range, and data transmission parameters are initialized.
[0029] To uniformly describe the spatial relationship between the visual acquisition equipment, the subsoil shovel, and the subsoiler frame, a frame reference coordinate system fixed to the subsoiler frame is established. Camera coordinate system Local coordinate system of deep loosening shovel .
[0030] The fixed reference point on the frame of the deep tillage machine is used as the origin of the frame reference coordinate system. The forward direction of the subsoiler is defined as The positive axis direction defines the lateral direction of the machine as... The positive direction of the axis is defined as the vertically upward direction. Positive axis direction. The origin of the camera coordinate system is the optical center of the vision acquisition device's camera. Using the camera's optical axis as Axial direction. The fixed reference point at the connection area between the subsoiler and the frame is used as the origin of the local coordinate system. The directions of each coordinate axis in the local coordinate system are determined based on the installation direction of the deep loosening shovel and the main deflection plane.
[0031] The visual acquisition device is calibrated using a calibration target with known geometric dimensions to obtain the equivalent focal length of the camera. and Principal point coordinates and And lens distortion parameters. Camera internal parameter matrix. Represented as: .
[0032] For spatial points in the camera coordinate system The pixel coordinates after its projection onto the image plane are: After lens distortion correction is completed, the spatial point and image pixel satisfy the following: .
[0033] Where s is the scale factor. The above relationship is used to project spatial feature points onto the image plane. For depth vision devices, let the distortion-corrected pixel coordinates be... The corresponding depth value is Then, the spatial point of the pixel projected back onto the camera coordinate system can be represented as: .
[0034] This allows CAD model reference points to be reprojected onto a color image plane, or effective pixels in a depth image to be back-projected into a 3D point cloud.
[0035] The spatial transformation relationship between the gantry reference coordinate system and the camera coordinate system is determined through calibration. Spatial points in the gantry reference coordinate system. When transforming to the camera coordinate system, the following conditions must be met: .
[0036] in, and Let represent the rotation matrix and translation vector from the frame reference coordinate system to the camera coordinate system, respectively.
[0037] Spatial points in the camera coordinate system When transforming to the rack reference coordinate system, the following conditions must be met: .
[0038] in, and Let represent the rotation matrix and translation vector from the camera coordinate system to the gantry reference coordinate system, respectively. The forward and reverse transformation parameters satisfy the following relationship: .
[0039] When multiple vision acquisition devices are set up in the system, the spatial transformation relationship between each vision acquisition device and the rack reference coordinate system is calibrated, and the synchronization or near synchronization of multi-source vision data is achieved by using a unified clock, hardware trigger or timestamp correction.
[0040] Each visual acquisition device is fixed to the subsoiler frame via rigid mounting brackets. During normal operation, the relative pose between the visual acquisition devices and the frame remains unchanged. Therefore, the spatial transformation relationship between the camera coordinate system and the frame reference coordinate system uses external parameters obtained from installation calibration. If the equipment is reinstalled, the brackets are adjusted, or if an inspection reveals a change in the relative position between the visual acquisition devices and the frame, the camera external parameter calibration is re-performed.
[0041] When the subsoil shovel is in its initial static position, this position is set as the initial reference position, and the initial transformation relationship between the local coordinate system of the subsoil shovel and the reference coordinate system of the machine frame is determined: .
[0042] in, and Let represent the rotation matrix and translation vector from the local coordinate system of the subsoiler to the reference coordinate system of the machine frame in the initial state. and These represent the coordinates of a spatial point in the local coordinate system of the deep loosening shovel and the reference coordinate system of the machine frame, respectively.
[0043] During subsoil tillage operations, the transformation relationship between the local coordinate system and the frame reference coordinate system is expressed as follows: .
[0044] Therefore, when spatial points in the local coordinate system of the deep loosening shovel are transformed to the camera coordinate system, the following conditions are met: .
[0045] When the subsoil shovel deflects relative to the frame around a preset rotation axis Consequently, the overall lifting and lowering of the frame, camera, and subsoiler relative to the ground does not alter their mutual conversion relationship, but is reflected through the height change of the surface point cloud in the frame's reference coordinate system. Subsequently, the identification route is determined based on the shape of the subsoiler, and the deflection angle is used as the motion parameter to be calculated.
[0046] S2: Configuration of multi-source visual data synchronous acquisition and recognition route.
[0047] During deep tillage operations, the shovel's visual acquisition device and the left and right surface depth visual devices synchronously or nearly synchronously acquire data according to a preset sampling frequency, and add timestamps to each frame of color image, depth image, and point cloud. S2 outputs visual data of the visible area of the shovel, the left undisturbed surface point cloud, and the right undisturbed surface point cloud; the left undisturbed surface point cloud and the right undisturbed surface point cloud are collectively referred to as the bilateral undisturbed surface point cloud.
[0048] The visual recognition route for the subsoiler is determined based on its external contour and visible surface features. Subsoilers with stable, regular straight edges, flat visible surfaces, or those easy to place artificial visual markers are defined as regular-edge subsoilers, and the route used is the reprojection route between artificial visual markers and the CAD model, hereinafter referred to as the marker reprojection route. Subsoilers lacking stable, regular straight edges and whose outer surface is mainly composed of continuous curved surfaces are defined as irregular-edge subsoilers, and the route used is the point cloud registration route.
[0049] The subsoil shovel is connected to the frame via a rotating connection structure. It only rotates relative to the frame around a preset rotation axis and does not have an independent translational degree of freedom relative to the frame. Let the first... The deflection angle of the deep loosening shovel relative to its initial installation posture is: Its motion state is represented as: .
[0050] Both regular-edged and irregular-edged subsoilers employ the aforementioned single-axis rotation constraint. The two identification routes only change the method of obtaining the subsoiler's deflection angle; they do not alter the subsequent processes of determining the shovel tip coordinates, reconstructing the virtual surface before operation, or calculating the tillage depth.
[0051] S3: Calculation of the motion state of the deep loosening shovel and determination of the coordinates of the hidden shovel tip.
[0052] Based on the visual recognition path of the shovel body determined by S2 and the single-axis rotation constraint, the subsoil shovel is calculated in the first... Deflection angle relative to the initial installation attitude at any given time Its motion state is represented as: .
[0053] For the first on the deep loosening shovel The nth model point, its nth The coordinates of a given moment in the rack reference coordinate system are represented as follows: .
[0054] in, For the first The initial coordinates of the model points The initial coordinates of the rotation reference point in the frame reference coordinate system. The deflection angle of the deep loosening shovel around the preset rotation axis The corresponding rotation matrix.
[0055] Based on the external contour and visible surface features of the deep loosening shovel, its deflection angle is calculated using the marker point reprojection route and the point cloud registration route, respectively.
[0056] S31: Motion state calculation of regular edge-shaped deep loosening shovel based on CAD model reprojection constraints.
[0057] For deep loosening shovels with stable, regular straight edges, flat and visible surfaces, or those that are easy to set with artificial visual markers, a CAD geometric model is established, and artificial visual markers are set in the visible area of the shovel body.
[0058] By comparing the actual image position of the marker point with the predicted projection position of the CAD model reference point, the deflection angle of the deep loosening shovel relative to the initial installation posture is calculated, and then the coordinates of the shovel tip are determined based on the fixed spatial relationship between the visible marker point, the rotation reference point and the hidden shovel tip.
[0059] S311: CAD geometric model construction and setting of artificial visual markers.
[0060] An arrangement method of artificial visual markers and the corresponding image extraction results are as follows: Figure 5As shown. Based on the actual structural dimensions of the subsoil shovel, a CAD geometric model including the shovel handle, shovel tip, mounting and connecting parts, and main edge structures is established, and the rotation reference point is determined in the model. Rotation axis direction and shovel tip feature points .
[0061] At least three non-overlapping artificial visual markers are placed on the visible area of the side of the subsoil shovel. The markers are placed in the shovel handle area, which has high rigidity, a flat surface, and is not prone to local deformation, and have a clear color difference from the shovel body surface.
[0062] To improve the reliability of motion state calculation when some artificial visual markers are obscured by soil, stubble, or other components, the actual number of artificial visual markers set can be greater than the minimum number required for motion state calculation, so as to form redundant observations. During the operation, the effective markers at the current moment are determined based on the visibility and recognition results of the markers, and the effective markers participate in the subsequent reprojection calculation.
[0063] To ensure the uniqueness of the marker matching, the markers are arranged in a non-collinear or non-equal spacing manner; when the markers are arranged along the edge of the same straight line, they are distinguished by setting different spacing, area or shape.
[0064] In the CAD model, establish model reference points that correspond one-to-one with the entity marker points. The frame reference coordinates of each model reference point in the initial state are represented as follows: .
[0065] in, These are the coordinates of the model reference point in the CAD model coordinate system. and These are the rotation matrix and translation vector from the CAD model coordinate system to the local coordinate system of the submerged shovel, respectively. and These are the rotation matrix and translation vector from the local coordinate system of the deep loosening shovel to the reference coordinate system of the machine frame in the initial state.
[0066] Using the same coordinate transformation relationship, the initial coordinates of the rotation reference point and the shovel tip feature point are obtained: .
[0067] in, This represents the initial transformation relationship from the CAD model coordinate system to the frame reference coordinate system. This establishes a fixed spatial relationship between the manually marked visual points, the rotation reference points, and the shovel tip feature points.
[0068] S312: Side view image acquisition and extraction of artificial visual markers.
[0069] The color camera is fixed to the frame of the subsoiler, with its imaging direction facing the side of the subsoiler shovel, ensuring that the manually marked visual point remains within the camera's effective field of view throughout the shovel's rotation. The installation position of the color camera and its relationship to the visible area of the subsoiler shovel are as follows: Figure 6 As shown.
[0070] During the operation, side view images of the deep loosening shovel are continuously acquired according to the preset sampling frequency, and image distortion correction, region of interest cropping, and brightness normalization are performed to reduce the impact of lens distortion, complex background, and lighting changes.
[0071] The processed image is converted to the HSV color space, and a corresponding threshold is set according to the color of the marker points to obtain a binary image of the marker points. Then, morphological processing and connected component detection are performed, and valid marker regions are selected based on region area, roundness, aspect ratio, and color consistency.
[0072] Let the first Time of the first The number of valid marked regions is Then its center coordinates are expressed as: .
[0073] in, This represents the number of pixels contained in the marked area.
[0074] Based on the arrangement order, spacing ratio, area, or shape of the marker points, a correspondence is established between the detected marker points and the reference points in the CAD model. The set of valid markers obtained at time t is represented as: .
[0075] in, The number of valid markers. For the first The observation weights of each marker point.
[0076] S313: Reprojection solution of motion state under single-axis rotation constraint.
[0077] Based on candidate deflection angles The current position of each model reference point is calculated using the aforementioned spatial rotation relationship. Then, combined with the camera internal parameters and coordinate transformation relationship obtained from S1 calibration, the model reference points are projected onto the image plane.
[0078] No. The predicted image coordinates of each model reference point are represented as follows: .
[0079] in, For the camera's intrinsic parameter matrix, and These are the rotation matrix and translation vector from the gantry reference coordinate system to the camera coordinate system, respectively. This represents the projection operation that converts homogeneous image coordinates to pixel coordinates.
[0080] Based on the difference between the actual marked point coordinates and the predicted projected coordinates, a weighted projection error is established, and the deflection angle is calculated with the minimum of this error as the objective. .
[0081] .
[0082] The more complete the marked area, the higher the color consistency, and the more stable the center position, the higher its observation weight. The larger the value, the better. During the optimization process, the initial value of the deflection angle is determined based on the overall direction formed by multiple marker points, and one-dimensional optimization is performed within the preset deflection angle range, thereby improving the solution efficiency and stability.
[0083] S314: Correction of solution results and output of the spatial position of the shovel tip.
[0084] The validity of the current solution is determined based on the number of valid marker points and the reprojection error. When the number of valid marker points meets the requirements and the reprojection error is below a preset threshold, the current result is retained; when marker points are occluded, incorrect matching occurs, or the reprojection error exceeds the threshold, the current result is corrected by combining the deflection angle of adjacent valid time points.
[0085] To reduce the impact of machine vibration and fluctuations in marker point detection, the deflection angle at consecutive time points is smoothed over time. .
[0086] in, This is the deflection angle smoothing coefficient. For the first The deflection angle after constant correction.
[0087] Substituting the corrected deflection angle into the spatial rotation relationship of the shovel tip, we obtain the first... The coordinates of the shovel tip in the frame reference coordinate system at any given time: .
[0088] The final output is the deflection angle of the subsoil shovel and the spatial coordinates of the shovel tip, providing a data foundation for virtual surface reconstruction and subsoil depth calculation before subsequent operations.
[0089] S32: Motion state calculation of irregular edge-shaped deep loosening shovel based on simulation point cloud and deep learning registration.
[0090] For deep loosening shovels that lack stable, regular straight edges and whose outer surface is mainly composed of continuous curved surfaces, a shovel body depth vision device is used to obtain their local visible point cloud.
[0091] First, a standard model point cloud and a simulation observation point cloud with deflection angle labels are generated based on the CAD model. The point cloud joint registration network is then trained using the data. During online operation, the network first predicts the deflection angle of the subsoil shovel, and then performs geometric fine registration under single-axis rotation constraints to finally obtain the spatial coordinates of the deflection angle and the hidden shovel tip.
[0092] S321: Construction of standard model point cloud and simulation point cloud datasets.
[0093] The overall simulated point cloud of an irregularly shaped deep tillage shovel and the visible area determined by the visual equipment based on the shovel's depth, as shown below. Figure 7 As shown. A CAD geometric model was established based on the actual dimensions of the irregularly shaped deep loosening shovel, and the rotation reference point, rotation axis direction, and shovel tip feature points were determined in the model. The surface of the CAD model was uniformly sampled, and then duplicate points were removed, outliers were filtered out, and voxel downsampling was performed to obtain the standard model point cloud. .
[0094] in, For the first The frame reference coordinates of each model point in the initial state. This refers to the number of points in the standard model point cloud. The local simulation observation point cloud generated based on the installation location, observation direction, and effective field of view of the shovel-shaped depth vision device is as follows: Figure 8 As shown.
[0095] The deflection angle is sampled within a preset motion range. In the simulation state, the first The coordinates of each model point are represented as follows: .
[0096] in, The deflection angle is the angle of rotation around a preset axis of rotation. The corresponding rotation matrix, The initial coordinates of the rotation reference point in the frame reference coordinate system.
[0097] Based on the installation location, observation direction, and effective field of view of the shovel-mounted depth vision device, points outside the field of view and occluded points are removed to generate a locally visible point cloud. Subsequently, random depth errors, coordinate perturbations, local point missing points, outliers, and point cloud density variations are added to simulate field vibrations, dust, soil occlusion, and depth measurement noise.
[0098] The training dataset consists of the standard model point cloud, the simulated observation point cloud, and the corresponding deflection angles. All point clouds retain their actual positions in the rack reference coordinate system without undergoing independent centering, in order to maintain the spatial correspondence between the model point cloud, the rotation reference point, and the simulated observation point cloud.
[0099] S322: Construction and training of point cloud joint registration network.
[0100] A point cloud joint registration network is constructed, taking standard model point clouds and simulated observation point clouds as inputs. The network includes a point cloud feature extraction module, a cross-point cloud feature matching module, a global feature fusion module, and a motion state regression module.
[0101] The point cloud feature extraction module is used to extract the local geometric features and global contour features of two sets of point clouds; the cross-point cloud feature matching module is used to establish a soft correspondence between model points and observation points; and the global feature fusion module is used to form fused features that can reflect the rotational changes of the point cloud.
[0102] The motion state regression module outputs the sine and cosine predicted values of the deflection angle. After normalizing the sine and cosine predicted values, the deflection angle is obtained through the arctangent function. .
[0103] .
[0104] .
[0105] Using both sine and cosine values to represent the deflection angle can avoid numerical abrupt changes near the period boundary when directly regressing the angle.
[0106] The total network loss consists of deflection angle loss and point cloud registration loss: .
[0107] .
[0108] in, The number of training samples. and These are the weights for the deflection angle loss and the point cloud registration loss, respectively. Point cloud registration loss A bidirectional robust nearest neighbor distance calculation was employed between the rotated model point cloud and the simulated observation point cloud to reduce the impact of occlusion, outliers, and differences in point cloud density. During training, simulated point clouds with different deflection angles, different occlusion ratios, and different noise intensities were used to improve the network's adaptability to the field environment.
[0109] S323: Measured point cloud acquisition and preprocessing.
[0110] The shovel depth vision device is fixed to the subsoiler frame, with its imaging direction facing the side of the subsoiler shovel, ensuring that the main visible surface of the subsoiler shovel is within the effective measurement range of the device. The installation position and observation area of the shovel depth vision device are as follows: Figure 9 As shown.
[0111] Depth images are continuously acquired during the operation. For pixel locations... and their corresponding depth values The camera's internal parameters are used to back-project it onto the camera coordinate system: .
[0112] A 3D region of interest (ROI) is set based on the preset imaging position of the subsoil shovel. Then, considering spatial extent, depth range, and point cloud connectivity, background points such as the scaffold, soil, and others are removed. Subsequently, outlier filtering and voxel downsampling are performed on the segmented subsoil shovel point cloud. An example of the obtained measured local point cloud is shown below. Figure 10 As shown, the scattered points in the figure are outliers, which occur when a depth camera takes a picture.
[0113] Based on the calibration relationship between the camera and the rig, the processed local observation point cloud is transformed to the rig's reference coordinate system: .
[0114] in, and These are the rotation matrix and translation vector from the camera coordinate system to the frame reference coordinate system, respectively.
[0115] During point cloud preprocessing, the point cloud's overall spatial position relative to the rack is preserved, and it is not processed independently or centrally. When the network requires a fixed number of input points, the point cloud is adjusted to the preset number of points through random sampling, farthest point sampling, or repeated sampling.
[0116] S324: Online calculation of motion state and output of shovel tip spatial position.
[0117] The standard model point cloud and the first The point cloud joint registration network trained by real-time local point cloud input is used to obtain the initial value of the deep loosening shovel deflection angle.
[0118] Considering the potential differences between simulated point clouds and measured point clouds in the field, the deflection angle predicted by the network is used as the initial value, and geometric fine registration is performed within its neighborhood. The objective function for fine registration and its solution are as follows: .
[0119] .
[0120] in, The number of visible model points from the current perspective. For the actual measurement of local point cloud, This is a robust loss function used to suppress the influence of outliers.
[0121] By performing initial deflection angle estimation via a network and then conducting local geometric fine registration based on single-axis rotation constraints, the discrepancy between simulation and measured data can be reduced. The point cloud overlap rate characterizes the degree of spatial overlap between the measured local point cloud and the visible model point cloud under the current deflection state. It can be defined as the proportion of valid points in the measured local point cloud whose nearest neighbor distance to the visible model point cloud is less than a preset matching distance threshold to the total number of valid points in the measured local point cloud. The validity of the solution result is determined based on the number of valid points, the point cloud overlap rate, and the fine registration residual. The thresholds for the number of valid points, the point cloud overlap rate, and the fine registration residual are predetermined based on calibration experiments or verification data. Time smoothing is performed on valid results; when the point cloud is severely occluded, the number of valid points is insufficient, or the registration residual exceeds the threshold, short-term correction is performed using the deflection angle at adjacent valid moments.
[0122] Finally, substituting the corrected deflection angle into the spatial rotation relationship of the shovel tip, we obtain the coordinates of the shovel tip in the frame reference coordinate system: .
[0123] The final output is the deflection angle of the subsoil shovel and the spatial coordinates of the shovel tip, providing a data foundation for virtual surface reconstruction and subsoil depth calculation before subsequent operations.
[0124] S4: Virtual surface reconstruction before operation based on fusion of two-sided undisturbed surface point clouds.
[0125] After the subsoiler is inserted into the soil, the soil above the shovel tip and behind it will be compressed and turned over, forming local bulges, trenches, or loose mounds. If the disturbed surface is used directly as the benchmark for calculating the tillage depth, it is easy to cause errors in the estimation of the surface height.
[0126] Therefore, undisturbed surface point clouds were collected on both sides of the subsoiler and converted to a unified coordinate system. Through point cloud quality evaluation and surface fitting, the disturbed area in the middle was completed, reconstructing the virtual surface before the subsoiler operation.
[0127] S401: Layout of left and right surface depth vision equipment and division of surface areas.
[0128] A left and a right surface depth vision device are installed on the subsoiler frame and fixedly connected to the frame. The left surface depth vision device is used to capture the undisturbed surface to the left of the subsoiler shovel, and the right surface depth vision device is used to capture the undisturbed surface to the right of the subsoiler shovel.
[0129] The main observation areas of the left and right surface depth vision devices are located outside the maximum soil disturbance width of the deep loosening shovel, in order to avoid the impact of soil uplift, turning and accumulation on the surface point cloud.
[0130] The maximum soil disturbance width is determined based on pre-test results, historical operation data, or known disturbance range of the subsoiler within the target tillage depth and operating parameter range. The safety interval is set based on disturbance boundary fluctuations, lateral positioning errors of the surface point cloud, and the lateral swing range of the equipment to ensure that the selected left and right surface areas are outside the boundaries where soil disturbance may occur. Within the preset longitudinal observation range, the lateral coordinate of the subsoiler's operating centerline is set as follows: The maximum soil disturbance width is The safety interval outside the disturbance boundary is The central disturbed area and the undisturbed areas on the left and right sides are divided into: .
[0131] .
[0132] .
[0133] in, The central disturbance area is where the measured point cloud data does not directly participate in the surface fitting before the operation. and These represent the undisturbed surface areas on the left and right sides, respectively. The effective point cloud data within these areas is used to reconstruct the virtual surface of the disturbed central area before the operation. The original observation results of the two sides' surfaces and the spatial division of the central disturbed area, the left undisturbed area, and the right undisturbed area are shown below. Figure 11 As shown.
[0134] S402: Acquisition and preprocessing of bilateral surface point clouds.
[0135] During the deep tillage operation, the left and right surface depth vision devices acquire depth images in a synchronous manner as described in S2, and convert the effective depth pixels into spatial points according to the camera internal parameters determined in S1, thereby obtaining the original surface point clouds on the left and right sides respectively.
[0136] Using pre-calibrated camera extrinsic parameters, the point clouds on both sides are uniformly transformed to the gantry reference coordinate system. The coordinate transformation relationship between the left and right point clouds is uniformly represented as: .
[0137] in, This indicates the left or right surface depth vision device. This represents the coordinates of a point in space within the corresponding camera coordinate system. This represents the coordinates after transformation to the rack reference coordinate system. and These are the corresponding rotation matrix and translation vector, respectively.
[0138] After coordinate transformation, undisturbed candidate points on the left and right sides of the observation area divided by S401 are extracted. Then, a pass-through filter is used to remove points outside the surface height range, and statistical outlier filtering or radius outlier filtering is used to remove dust, measurement noise and isolated points. Finally, voxel downsampling is used to reduce point cloud density.
[0139] Further filtering of real surface points based on local normal vectors, neighborhood height variations, and point cloud continuity removes debris, soil clods, rocks, and other outliers, ultimately yielding the [number of points]. Undisturbed surface point clouds on the left side of the time And the undisturbed surface point cloud on the right The bilateral undisturbed surface point cloud obtained after regional screening and point cloud preprocessing is as follows: Figure 12 As shown.
[0140] S403: Dual-sided point cloud fusion and virtual surface reconstruction before operation.
[0141] The number of valid points, spatial coverage, surface fitting residual, and height continuity of the point clouds on both the left and right sides are evaluated separately. A higher quality evaluation value is achieved when the number of valid points, the more uniform the spatial distribution, and the smaller the fitting residual. The quality evaluation value is obtained by normalizing and weighting the above evaluation indicators, where the number of valid points and spatial coverage are positive evaluation indicators, and the surface fitting residual and the change in surface height at adjacent times are negative evaluation indicators. The weights of each evaluation indicator are determined based on pre-calibration results. The measurement confidence level can be determined by the confidence information output by the depth vision device; when the device does not directly output the confidence level, it is determined based on the local depth variance or the consistency of the neighboring point clouds.
[0142] The quality evaluation values on both sides are divided by the sum of the evaluation values on both sides to obtain the corresponding fusion weights. When the point cloud on one side is affected by debris, soil blocks, local pits, or missing depth data, the weight of the point cloud on that side in the surface fitting process is reduced.
[0143] The effective point clouds on both sides are merged into a set of undisturbed surface points on both sides. Considering the potential slope and local undulations of the field surface, a quadratic surface is used to describe the surface near the deep tillage shovel before operation: .
[0144] in, The parameters for the surface model are defined. Fitting weights are set based on the point cloud quality on both sides and the measurement confidence level of each point, and a robust loss function is used to reduce the influence of residual outliers. The surface model parameters and the virtual surface representation before operation are as follows: .
[0145] .
[0146] in, The first of the two undisturbed surface point sets One point, The fitting weights for that point are... This is a robust loss function used to suppress the influence of outliers.
[0147] The resulting virtual terrain before operation Spanning the central disturbance region, this model represents the surface morphology before deep tillage operations. When the surface is relatively flat in a localized area, the quadratic surface can be simplified to a planar model to reduce the computational cost of surface fitting. The virtual surface before the operation, after interpolation and completion using the undisturbed surface point clouds on the left and right sides across the central disturbance region, is shown below. Figure 13 As shown.
[0148] S404: Calculation of the ground height at the location corresponding to the shovel tip.
[0149] According to S3, the first The spatial position of the shovel tip in the frame's reference coordinate system at all times, where... and The coordinates of the shovel tip projected onto the horizontal plane are given.
[0150] Substituting the horizontal projection coordinates of the shovel tip into the reconstructed virtual ground model before operation, the ground height at the corresponding position of the shovel tip before operation is obtained: .
[0151] To reduce local fitting errors, a local neighborhood can be set around the horizontal projection position of the shovel tip, and the average value of the virtual ground height before operation within this neighborhood can be used to replace the single-point calculation result.
[0152] The predicted ground height is obtained by using the point clouds from both the left and right sides to calculate the corresponding position of the shovel tip. When the difference between the two prediction results is less than a preset threshold, the fusion result of the two-sided point clouds is used; when the difference between the two results is large, the weight of the abnormal side point cloud is reduced based on the number of valid points, the fitting residual, and the height continuity.
[0153] When one side of the point cloud is invalid, the other side of the valid point cloud is used to complete the ground height estimation; when both sides of the point cloud are invalid, the ground height at adjacent valid times is combined to make a short-term prediction.
[0154] To reduce the instantaneous fluctuations in ground height during continuous monitoring, a time continuity correction is applied to the calculation results: .
[0155] in, This is the surface height correction factor. This is the corrected ground elevation before the operation.
[0156] Final output Virtual surface model before operation at any time And the corrected ground height at the corresponding position of the shovel tip This provides a surface benchmark for calculating the deep tillage depth of S5 before the operation.
[0157] S5: Calculation of deep tillage depth based on the spatial position of the shovel tip and the virtual ground surface before operation.
[0158] Based on the external contour and visible surface features of the subsoil shovel, the deflection angle and spatial coordinates of the shovel tip relative to the initial installation posture are calculated using S31 or S32.
[0159] The spatial coordinates of the shovel tip output by S3 are synchronized with the virtual ground surface before operation output by S4. When the sampling frequencies are inconsistent, the data with the closest time is selected based on the timestamp, or interpolation between adjacent times is used to obtain the shovel tip position and ground height at the same time.
[0160] Adopt a unified route identification system. This represents two visual recognition routes for the shovel. Among them, Indicates the reprojection path of the marker points. This indicates the point cloud registration route.
[0161] No. The reference coordinates of the shovel tip frame obtained at any time from the corresponding identification route Represented as: .
[0162] in, and This indicates the projected position of the shovel tip in the horizontal plane. This indicates the vertical coordinate of the shovel tip in the frame's reference coordinate system.
[0163] The horizontal projection coordinates of the shovel tip Substitute the virtual surface model obtained from S4 reconstruction before the operation Obtain the ground surface height at the position corresponding to the shovel tip before operation. : .
[0164] S4 performs time continuity correction on the surface height at consecutive moments to obtain the corrected surface height before operation. The corrected surface height will be used subsequently for deep tillage depth calculations.
[0165] Since the vertical direction of the frame reference coordinate system is defined as upward, when the shovel tip is below the ground surface, the first... The original deep tillage depth corresponds to the identification route at all times. Represented as: .
[0166] Considering CAD model dimensional errors, physical shovel tip wear, visual acquisition equipment installation errors, and point cloud measurement errors, static calibration tests were conducted to determine the tillage depth correction for different recognition routes. The corrected deep tillage depth was obtained. : .
[0167] When the shovel tip is above the reclaimed surface, it indicates that the subsoiler has not yet entered the soil. At this time, the tillage depth should be set to zero. .
[0168] When the shovel tip is below the reconstructed ground surface, the actual tillage depth is calculated based on the difference between the corrected ground surface height and the vertical coordinate of the shovel tip: .
[0169] When both the motion state calculation result and the surface reconstruction result meet the validity requirements, and the calculated tillage depth is within the allowable operating range of the deep tillage shovel, the current result is retained. Specifically, the validity of the motion state calculation result is judged based on the number of valid marker points and the reprojection error for the marker point reprojection route; the validity of the motion state calculation result is judged based on the number of valid points, the point cloud overlap rate, and the registration residual for the point cloud registration route. When the motion state calculation indicators corresponding to the identified route do not meet the requirements, the surface height on both sides is inconsistent, or there is an abnormal change in tillage depth at adjacent times, a short-term correction is performed based on the result of the previous valid time. Finally, the actual tillage depth of a single deep tillage shovel is output, along with the identified route, deflection angle, shovel tip spatial coordinates, surface height before operation, and result validity indicator. The short-term correction refers to the process where, if the number of consecutive invalid frames or the duration of the current detection result does not exceed a preset correction window, the current result is obtained by retaining the result of the previous valid time, interpolating recent valid results, or trend prediction; if the consecutive invalid time exceeds the preset correction window, the current tillage depth result is marked as invalid.
[0170] Example 1 This embodiment describes the complete tillage depth detection process under the reprojection route of marked points, using a subsoiler with regular edges. The subsoiler is connected to the frame via a rotating connection structure, allowing it to rotate only around a preset axis of rotation (Y). W The deflection angle is used to characterize the rotation state of the subsoil shovel under the action of the working load.
[0171] 1. System layout and calibration.
[0172] As shown in Figures 3 and 4, a color camera is fixed on the subsoiler frame as a vision acquisition device for the shovel body, and a depth camera is fixed on each side of the working centerline as a surface depth vision device; all devices are rigidly connected to the frame. The color camera faces the side of the subsoiler shovel, and its effective field of view covers the visible area of the soil above the shovel handle, as shown in Figure 6.
[0173] Establish a reference coordinate system for the machine frame: with a fixed point on the machine frame as the origin, and the machine's forward direction as X. W The positive axis is Y, and the horizontal axis is Y. W The positive direction of the axis, vertically upward is Z. W Positive axis direction. Deep loosening shovel around Y. W The shaft rotates, and the initial installation posture is at zero deflection angle.
[0174] Camera intrinsic parameters in this embodiment: Pixels Pixels Pixel; After the camera extrinsic parameters are calibrated, the camera coordinate system and the frame coordinate system satisfy the following: , , .
[0175] No. The motion state at any given moment is determined by the deflection angle of the submersible shovel relative to its initial installation posture. express: .
[0176] According to the pinhole projection relationship, the model points in the frame reference coordinate system, after being projected onto the image plane, satisfy the following: u and v represent the pixel coordinates of the model points after they are projected onto the image plane; 2. Arrangement of manual markers.
[0177] As shown in Figure 5, the handle of the deep tillage shovel in this embodiment has a flat and regular structure with clearly defined straight edges. Figure 5 As shown in (a), three non-collinear high-contrast artificial markers are set on the side of the shovel handle, arranged in a triangle to ensure the uniqueness of the configuration.
[0178] In the CAD model, the rotation reference point is set as the origin of the frame reference coordinate system, and the rotation axis is along... Axial direction. The initial coordinates of the three model reference points are as follows: .
[0179] The initial coordinates of the hidden shovel tip in the CAD model are: .
[0180] Around Shaft rotation deflection angle The corresponding rotation matrix is: .
[0181] Since the rotation reference point is located at the origin of the frame reference coordinate system, the first The coordinates of the time-model reference point can be simplified as follows: .
[0182] 3. Image acquisition and deflection angle calculation.
[0183] A color camera continuously acquires side view images of the shovel handle at a frequency of 20 Hz. After distortion correction and region of interest cropping, the center coordinates of the marker points are extracted by color thresholding and connected component analysis, as shown in Figure 5 (b).
[0184] This embodiment selects 5 time points within 12.0~14.0s (k=0~4, interval 0.5s), which are denoted as follows: To explain.
[0185] by corresponding Taking time as an example, the center coordinates of the three marker points extracted from the image are as follows: .
[0186] With deflection angle To optimize the variables, a weighted projection error is constructed: .
[0187] in, The predicted projected coordinates are those of the model reference point after rotation. In this embodiment, the regions of the three marked points are all complete and unobstructed; therefore, the observation weights are all set to 1. As a candidate deflection angle, at this point: .
[0188] Substituting the candidate deflection angles into the motion relationship of the model points, we obtain the predicted spatial coordinates and predicted image coordinates of the three reference points: .
[0189] .
[0190] .
[0191] Substituting the measured coordinates of the marked points and the predicted projected coordinates into the reprojection error, we obtain: .
[0192] .
[0193] .
[0194] Therefore, candidate deflection angle The corresponding total weight projection error is: .
[0195] exist Perform a one-dimensional search in the vicinity, and select candidate angles. , , , and The corresponding reprojection errors are as follows: .
[0196] in, The corresponding reprojection error is the smallest, therefore the deflection angle solution at this moment is: .
[0197] The same method was used to calculate the remaining representative times, resulting in initial deflection angles for five consecutive times: .
[0198] The corresponding minimum reprojection errors are as follows: .
[0199] Let the effective threshold for reprojection error be... At each of the above time points, three valid marker points were detected, and the reprojection errors were all below the threshold. Therefore, all deflection angle calculation results were retained.
[0200] 4. Deflection angle smoothing and shovel tip coordinate calculation.
[0201] To reduce the impact of image detection fluctuations on the shovel tip coordinates, a deflection angle smoothing coefficient is used. Time smoothing is performed according to the following formula: .
[0202] Using the solution result at the first time step as the initial value, the corrected deflection angles at subsequent time steps are obtained: .
[0203] Based on the single-axis rotation relationship of the subsoil shovel, the shovel tip coordinates are determined by the corrected deflection angle: .
[0204] by Taking time as an example, Substituting the kinematic relationship of the shovel tip, we get: .
[0205] Therefore, the horizontal projection coordinates of the shovel tip at that moment are The vertical coordinate is .
[0206] 5. Virtual surface reconstruction before operation.
[0207] As shown in Figure 11, the central disturbance zone and the left and right undisturbed zones are divided according to the operation centerline, maximum disturbance width, and safety interval. Ground point clouds are collected by dual-sided depth cameras, and after coordinate unification, background removal, and outlier filtering, the resulting data is as follows: Figure 12 The image shows a bilaterally undisturbed surface point cloud.
[0208] Weighted robust fitting is performed using the undisturbed surface point clouds on both sides. The virtual surface models before the operation corresponding to the five representative times selected in this embodiment are uniformly represented as follows: .
[0209] The intercept parameters obtained from the fitting at each time point are: .
[0210] by Taking a specific moment as an example, the virtual surface model before the operation at this time is as follows: .
[0211] Project the horizontal coordinates of the shovel tip Substituting the virtual surface model before the operation, we obtain the initial surface height at that moment: .
[0212] Take the ground surface height correction factor The corrected surface height from the previous moment. This gives the corrected ground elevation at the current moment: .
[0213] 6. Calculation and analysis of tillage depth.
[0214] Three sets of static calibration data were used to determine the tillage depth correction corresponding to the reprojection route of the marker points. The three sets of reference tillage depths are as follows: , and The corresponding visually uncorrected tillage depths are respectively , and Therefore, the tillage depth correction for this identified route is: .
[0215] Since the current vertical coordinate of the shovel tip is less than the corrected ground height, it indicates that the shovel tip is below the ground surface before the operation. The original deep tillage depth at the current moment is: .
[0216] After adding the tillage depth correction amount corresponding to the identified route, the actual deep tillage depth is obtained: .
[0217] The actual deep tillage depths at five consecutive representative moments are as follows: .
[0218] As can be seen from the above continuous results, in Within the subsoil, as the operating load increases, the deflection angle of the subsoiler gradually increases, the vertical coordinate of the shovel tip gradually decreases, and the actual tillage depth increases from... Increase to ;exist Within this period, the operating load decreased, and the deflection angle and actual tillage depth subsequently declined.
[0219] The frame, camera, and subsoiler rise and fall together relative to the ground, reflected by the height changes of the undisturbed surface point cloud on both sides within the frame's reference coordinate system. This allows for the calculation of the deflection angle, hidden tip position, and actual tillage depth of the regularly shaped subsoiler during continuous operation.
[0220] Example 2 This embodiment describes the complete tillage depth detection process under point cloud registration route for an irregularly shaped subsoiler with a predominantly continuous curved surface. The subsoiler is connected to the frame via a rotating connection structure, allowing it to rotate only around a preset rotation axis (Y). W (Rotation)
[0221] 1. System layout and model point cloud construction.
[0222] As shown in Figure 7, the outer surface of the subsoil shovel in this embodiment is a continuous curved surface without stable regular edges. A depth camera is used as the visual acquisition device for the shovel body, and its installation position is shown in Figure 9. The field of view covers the visible curved surface above the soil on the shovel body.
[0223] No. The motion state at any given moment is determined by the deflection angle of the submersible shovel relative to its initial installation posture. express: .
[0224] A CAD model was built based on the actual dimensions of the subsoil shovel. The model surface underwent uniform sampling, duplicate point removal, and voxel downsampling to obtain a standard point cloud containing 4096 model points, as shown below. Figure 7 As shown: .
[0225] In the CAD model, the rotation reference point is set as the origin of the frame reference coordinate system, and the rotation axis is along... The rotation reference point and rotation axis direction are as follows: .
[0226] 2. Simulation dataset construction and network training.
[0227] The deflection angle is sampled within a preset motion range. In this embodiment, the deflection angle sampling range is... . No. In the simulation state, the first The spatial coordinates of the model points are: .
[0228] Based on the installation location, observation direction, and effective field of view of the shovel-shaped depth vision device, points outside the field of view and occluded points are removed. Depth measurement noise, coordinate perturbation, missing local points, outliers, and point cloud density variations are then added to the simulated point cloud to obtain a simulated observation point cloud with deflection angle labels. Figure 8 As shown. All point clouds retain their actual positions in the rack reference coordinate system, without undergoing independent centering, to maintain the spatial correspondence between the model point cloud, the rotation reference point, and the simulation observation point cloud. The number of network input points is uniformly adjusted to 2048 points.
[0229] The standard model point cloud and the simulated observation point cloud are input into a joint registration network. The network outputs the sine and cosine predicted values of the deflection angle: .
[0230] Normalize the sine and cosine predicted values, and obtain the deflection angle using the arctangent function: .
[0231] .
[0232] The network training loss consists of deflection angle loss and point cloud registration loss: .
[0233] In this embodiment, the weights of the two losses are respectively set as follows: and After training, the network is used for initial estimation of deflection angles during continuous operation.
[0234] 3. Preprocessing of measured point cloud and calculation of deflection angle.
[0235] The shovel-body depth vision device acquires depth images at a frequency of 20Hz, which are then converted into 3D point clouds through back projection. The frame and soil background are removed by culling the 3D region of interest, and the measured local point cloud is obtained after outlier filtering and voxel downsampling. As shown in Figure 10.
[0236] To illustrate the continuous solution process, from In the job data, every By selecting one frame, a total of 5 representative moments are obtained.
[0237] by ,Right now Taking a specific time point as an example, after preprocessing, 1536 valid measured points are obtained. Following the aforementioned point cloud sampling method, the measured local point cloud is adjusted to 2048 points, which serve as the input to the point cloud joint registration network. The adjusted measured local point cloud and the standard model point cloud are then input into the trained point cloud joint registration network, and the network output is: .
[0238] The normalization coefficients for the sine and cosine predicted values are: .
[0239] This yields the initial value for the network prediction of the deflection angle: .
[0240] Using the network predictions as initial values, perform single-axis constrained geometric fine registration within the neighborhood. The objective function is: .
[0241] Considering the potential differences between simulated point clouds and measured point clouds in the field, the network prediction results are used... As initial values, geometric fine registration is performed within their neighborhood. For a given candidate deflection angle, the visible model points under the current view are rotated to the corresponding state, and 1536 points are sampled from the visible model points to participate in geometric fine registration. The robust nearest neighbor error between these points and the original 1536 valid measured points is calculated. .
[0242] A one-dimensional search is performed within the neighborhood of the network prediction. When the candidate deflection angles are respectively taken... , , , and At that time, the corresponding registration residuals are as follows: .
[0243] Among them, candidate deflection angle The corresponding registration residual is the smallest, therefore the fine registration result at this moment is: .
[0244] At this moment, 1536 valid points were obtained, the point cloud overlap rate was 0.86, and the fine registration residual was... All of them meet the preset validity requirements, so the current solution results are retained.
[0245] The same method was used to solve for the remaining representative times. , , , and At that time, the deflection angles predicted by the network were as follows: , , , and .
[0246] After geometric registration under uniaxial rotation constraints, the deflection angles at each moment are sequentially corrected as follows: , , , and The corresponding fine registration residuals are respectively , , , and All of them meet the preset validity requirements.
[0247] 4. Deflection angle smoothing and shovel tip coordinate calculation.
[0248] To reduce the impact of depth measurement noise and equipment vibration, a deflection angle smoothing coefficient is adopted. Time smoothing is performed according to the following formula: .
[0249] Using the fine registration result at the first moment as the initial value, we obtain the corrected deflection angles at five representative moments: .
[0250] The initial coordinates of the shovel tip in the CAD model are: .
[0251] No. The coordinates of the shovel tip at any given moment are determined based on the corrected deflection angle: .
[0252] by Taking time as an example, Substituting into the above equation, we get: .
[0253] Therefore, the horizontal projection coordinates of the shovel tip at that moment are The vertical coordinate is .
[0254] 5. Surface reconstruction and tillage depth calculation.
[0255] The reconstruction method for the bilateral undisturbed surface point cloud is the same as in Example 1. In this example, the virtual surface model before the operation corresponding to the five representative times is uniformly represented as follows: .
[0256] The intercept parameters obtained from the fitting at each time point are as follows: .
[0257] by Taking a specific moment as an example, the virtual surface model before the operation at this time is as follows: .
[0258] Project the horizontal coordinates of the shovel tip Substituting the virtual surface model before the operation, we obtain the initial surface height at that moment: .
[0259] Take the ground surface height correction factor The corrected surface height from the previous moment. This gives the corrected ground elevation at the current moment: .
[0260] Three sets of static calibration data were used to determine the tillage depth correction amount corresponding to the point cloud registration route.
[0261] The three sets of reference tillage depths are as follows: , and The corresponding visually uncorrected tillage depths are respectively , and Therefore, the tillage depth correction amount corresponding to the point cloud registration route is: .
[0262] exist At a certain moment, the vertical coordinate of the shovel tip is less than the corrected ground level, indicating that the shovel tip is below the ground level before the operation. The original deep tillage depth at this moment is: .
[0263] After adding the tillage depth correction amount corresponding to the point cloud registration route, the actual deep tillage depth is obtained: .
[0264] Following the above method, At that moment, the corrected deflection angle is The coordinates of the shovel tip are Corrected surface height is The actual tillage depth is .
[0265] exist At that moment, the corrected deflection angle is The coordinates of the shovel tip are Corrected surface height is The actual tillage depth is .
[0266] exist At that moment, the corrected deflection angle is The coordinates of the shovel tip are Corrected surface height is The actual tillage depth is .
[0267] exist At that moment, the corrected deflection angle is The coordinates of the shovel tip are Corrected surface height is The actual tillage depth is .
[0268] exist At that moment, the corrected deflection angle is The coordinates of the shovel tip are Corrected surface height is The actual tillage depth is .
[0269] From the above continuous solution results, it can be seen that in Inside, as the operating load increases, the deflection angle of the subsoiler gradually increases, and the rotation process causes the vertical coordinate of the shovel tip to change from... Reduce to The actual tillage depth is determined by Increase to .
[0270] exist Within this range, the working load is reduced, and the deflection angle of the subsoiler shovel decreases accordingly, resulting in a corresponding reduction in actual tillage depth. .
[0271] The frame, camera, and subsoiler rise and fall together relative to the ground, reflected by the height changes of the undisturbed surface point cloud on both sides within the frame's reference coordinate system. This allows for the calculation of the deflection angle, hidden tip position, and actual tillage depth of the irregularly shaped subsoiler during continuous operation.
[0272] Finally, it should be noted that the above embodiments are only used to illustrate the technical methods of the present invention and not to limit them. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the technical methods of the present invention, and these modifications or equivalent substitutions cannot cause the modified technical methods to deviate from the spirit and scope of the technical methods of the present invention.
Claims
1. A method for detecting tillage depth in deep tillage structures based on multi-source visual perception, characterized in that, Includes the following steps: S1. Fix the shovel body vision acquisition device and the left and right ground surface depth vision devices to the deep tillage machine frame, establish the frame reference coordinate system, camera coordinate system and deep tillage shovel local coordinate system and complete the calibration. The shovel body vision acquisition device is used to acquire the visible area of the deep loosening shovel; The left and right surface depth vision devices are used to collect data on the undisturbed surface on both sides of the center line of the deep loosening shovel operation. S2. Simultaneously collect visual data of the visible area above the soil of the deep loosening shovel and the undisturbed surface point cloud on the left and right sides, and determine the corresponding visual recognition route of the shovel body based on the outer contour of the deep loosening shovel and the visible surface features. S3. Calculate the motion state of the deep loosening shovel relative to the frame according to the visual recognition route of the shovel body and the single-axis rotation constraint around the preset rotation axis, and determine the spatial coordinates of the shovel tip in the frame reference coordinate system according to the fixed spatial relationship between the visible area and the shovel tip covered by soil. S4. Exclude the point cloud data of the central soil disturbance area, and reconstruct the virtual ground surface before operation across the central disturbance area based on the undisturbed ground point cloud data on the left and right sides. S5. Substitute the horizontal projection position of the shovel tip into the virtual ground surface before operation to obtain the corresponding ground height, and determine the deep tillage depth based on the difference between the ground height and the vertical coordinate of the shovel tip.
2. The method for detecting tillage depth in deep tillage mechanisms based on multi-source visual perception according to claim 1, characterized in that, The visual recognition route for the shovel body includes two types: For deep loosening shovels with regular straight edges, flat and visible surfaces, or those with regular edges that are easy to set up with artificial visual markers, the artificial visual markers and the CAD model are reprojected onto the route. For irregular edge deep loosening shovels that lack stable regular straight edges and whose outer surface is mainly composed of continuous curved surfaces, a point cloud registration route combining standard model point cloud, simulated observation point cloud, and point cloud joint registration network is adopted.
3. The method for detecting tillage depth in deep tillage mechanisms based on multi-source visual perception according to claim 2, characterized in that, The subsoil shovel is connected to the frame via a rotating connection structure, and only has the degree of freedom of movement to rotate relative to the frame about a preset rotation axis, with its deflection angle relative to the initial installation posture. θ k As the first k The motion parameters to be solved at time t; The expression for the spatial coordinates of the shovel tip in the frame reference coordinate system is: ; in, The reference coordinates of the frame are the blade tip in its initial installation state. The initial coordinates of the rotation reference point of the preset rotation axis in the frame reference coordinate system are given. The deflection angle of the deep loosening shovel around the preset rotation axis The corresponding rotation matrix, where W represents the frame reference coordinate system, k represents the kth sampling time, t represents the shovel tip, r represents the rotation reference point, and a represents the preset rotation axis. This represents the spatial coordinates of the shovel tip in the frame reference coordinate system at the k-th sampling time.
4. The method for detecting tillage depth in deep tillage mechanisms based on multi-source visual perception according to claim 3, characterized in that, The reprojection route between the artificial visual markers and the CAD model includes: At least three artificial visual markers with a unique arrangement are set in the visible area of the regular edge-shaped deep loosening shovel, and model reference points corresponding one-to-one with the artificial visual markers are established in the CAD model; Extract the image coordinates of each artificial visual marker point, rotate the model reference point around the preset rotation axis according to the candidate deflection angle and project it onto the image plane, and establish the weighted projection error between the measured image coordinates and the predicted projection coordinates. Using the deflection angle as the optimization variable, the deflection angle of the deep loosening shovel relative to the frame is determined by minimizing the weighted projection error.
5. The method for detecting tillage depth in deep tillage mechanisms based on multi-source visual perception according to claim 3, characterized in that, The point cloud registration route includes: Generate a standard model point cloud based on the CAD model of an irregular edge-shaped deep loosening shovel; The standard model point cloud is rotated and transformed within a preset deflection angle range, and a simulated observation point cloud with deflection angle labels is generated according to the observation conditions of the shovel depth vision device. The point cloud joint registration network is trained using the standard model point cloud and the simulated observation point cloud; The standard model point cloud and the first k Measured local point cloud at time The initial value of the deflection angle is obtained by inputting the network, and geometric fine registration is performed under the single-axis rotation constraint. The objective function of the geometric fine registration is: ; in, The number of visible model points from the current perspective. The deflection angle is Time j The frame reference coordinates of each model point Let be the robust loss function for suppressing the influence of outliers in point cloud registration. For the measured local point cloud The coordinates of any point in the array. This represents the average robust point cloud registration error corresponding to the candidate deflection angle θ at time k; The final deflection angle of the deep loosening shovel relative to the frame is obtained by minimizing the objective function.
6. The method for detecting tillage depth in deep tillage mechanisms based on multi-source visual perception according to claim 5, characterized in that, The point cloud joint registration network includes a point cloud feature extraction module, a cross-point cloud feature matching module, a global feature fusion module, and a motion state regression module; The motion state regression module outputs the sine and cosine predicted values of the deflection angle, and determines the deflection angle of the deep loosening shovel based on the sine and cosine predicted values. The point cloud joint registration network is trained using a total loss calculated by weighting the deflection angle loss and the point cloud registration loss.
7. The method for detecting tillage depth in deep tillage structures based on multi-source visual perception according to claim 3, characterized in that, The reconstruction of the virtual terrain before the operation includes: The areas are divided into a central disturbance zone, a left-side undisturbed zone, and a right-side undisturbed zone according to the deep tillage shovel operation centerline, the maximum soil disturbance width, and the safety interval. The effective number of points, coverage, fitting residuals, and height continuity of the undisturbed surface point clouds on the left and right sides are evaluated respectively, and the fusion weights are determined. A weighted robust planar model or quadratic surface model is used to fit the undisturbed surface point cloud on both sides to interpolate and complete the perturbed central region. The fitting objective function is: ; in, For the first k At any given moment, the set of undisturbed surface points on both sides. For the first point in the set i One point, The fitting weights for that point are... For the surface model, For surface model parameters, For robust loss function, The optimal surface model parameters at time k are obtained by minimizing the weighted robust fitting error. This represents the elevation coordinates of the point on the ground in the frame's reference coordinate system. The virtual surface expression obtained before the reconstruction is: ; in, This represents the predicted ground height at horizontal position (x, y) of the virtual ground before reconstruction at time k.
8. The method for detecting tillage depth in deep tillage mechanisms based on multi-source visual perception according to claim 7, characterized in that, The spatial coordinates of the shovel tip and the virtual ground surface before operation are synchronized in time. The validity index is calculated based on the motion state corresponding to the current visual recognition route of the shovel body, the consistency of the predicted ground height on the left and right sides, and the continuity of the tillage depth change to judge the validity of the tillage depth result. When using manually visual markers to reproject the route onto the CAD model, the effectiveness indicators for motion state calculation include the number of valid markers and the reprojection error; when using point cloud registration routes, the effectiveness indicators for motion state calculation include the number of valid points, the point cloud overlap rate, and the registration residual. If the result at the current moment does not meet the preset validity conditions, the deflection angle, surface height, or tillage depth results from adjacent valid moments are used for short-term correction.
