Adaptive spraying robot control method based on multi-modal perception
The spraying robot system, which utilizes multimodal perception and adaptive control, solves the problems of precision and real-time adjustment in spraying complex surface defects, achieving high-quality spraying results.
Patent Information
- Application Number
- CN202611269011.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-27
AI Technical Summary
Existing spraying robot systems suffer from problems such as insufficient accuracy of perception schemes, inaccurate data processing, and inability to make real-time adjustments during the spraying process when faced with automated spraying and repair tasks for complex surface defects, resulting in difficulty in guaranteeing spraying quality.
An adaptive spraying robot control method based on multimodal perception is adopted. Multi-source perception data is acquired through a dual vision system and a laser scanning device. Data fusion is performed using a cross-modal attention mechanism to generate a unified representation. Spatial registration and geometric model reconstruction are then performed. Real-time detection of paint film thickness deviation is used for dynamic compensation, thereby achieving adaptive control of the spraying process.
It improves the precision and quality of spraying, enables real-time adjustment and closed-loop control of the spraying process, and enhances the consistency and efficiency of spraying quality.
Smart Images

Figure CN123169043A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of system integration and adaptive control technology, specifically to an adaptive spraying robot arm control method based on multimodal perception. Background Technology
[0002] In high-end equipment manufacturing fields such as automobile manufacturing, aerospace, engineering machinery and shipbuilding, the quality of surface coating is directly related to the corrosion resistance, appearance quality and service life of products.
[0003] With the continuous improvement of industrial automation, painting robots have gradually replaced manual painting as the mainstream operation method, showing significant advantages in painting efficiency, material utilization, operation consistency and operator safety protection.
[0004] However, in actual industrial production, existing spraying robot control systems still face many technical bottlenecks when dealing with automated spraying and repair tasks for complex surface defects.
[0005] The perception schemes of existing painting robot systems are mainly divided into two categories.
[0006] The first type of solution relies on a single two-dimensional vision system, which uses an industrial camera to acquire visible light images of the area to be sprayed, and uses image segmentation or target detection algorithms to identify the location of defects and the spraying boundary.
[0007] Such solutions inherently lack depth information and cannot accurately reflect the three-dimensional undulations of the area to be repaired. Under complex lighting conditions such as high gloss reflection of metallic paint, dark matte paint, masking tape with a similar color to the paint or low contrast at the edges, the imaging quality of visible light cameras degrades sharply, leading to a significant increase in the rate of missed and false detections of defects. Especially in key areas such as workpiece edges and curved transition zones, the segmentation boundary often has a positioning deviation of several millimeters, which directly affects the accuracy of subsequent repair trajectory generation.
[0008] The second approach uses laser scanning or structured light sensors to acquire three-dimensional point cloud data of the workpiece to be coated, and then reconstructs the geometric model of the workpiece surface through point cloud processing algorithms.
[0009] While such solutions can provide high-precision three-dimensional spatial information, pure point cloud data lacks apparent semantic information such as color and texture, making it difficult to accurately distinguish between defect types and normal areas, and even more difficult to identify the true boundaries of masking tape. At the same time, laser scanning equipment usually collects data line by line and point by point, which takes a long time to obtain complete surface information and is difficult to meet the needs of online real-time perception.
[0010] After acquiring multi-source sensing data, existing systems typically need to spatially register two-dimensional image information with three-dimensional point cloud data in order to construct a geometric model that can be used for path planning.
[0011] However, traditional registration algorithms take spatial distance as the sole optimization objective and do not consider the differences in the reliability of image information in different regions.
[0012] In actual working conditions, visible light images may produce false edges in reflective areas, and short-wave infrared images may have insufficient signal-to-noise ratio in dark areas, leading to an increase in the alignment error of key repair boundaries. As a result, the constructed geometric model has a significant deviation between the defect boundary and the original workpiece surface.
[0013] For point clouds with tiny holes, occlusions, or sparse sampling areas, existing modeling methods typically employ simple interpolation or smoothing, resulting in severe distortion of the constructed mesh model in detailed areas.
[0014] At the execution control level, the existing system cannot detect thickness deviations in a timely manner and perform dynamic compensation during the spraying process; it can only wait until the spraying is completed before conducting quality inspection.
[0015] Quality assessment after spraying relies heavily on offline testing methods. This method has a long feedback cycle and limited testing coverage, making it impossible to achieve full inspection and testing, and it is also impossible to promptly feed the assessment results back to the control system for parameter adjustments in the current batch or subsequent tasks. Summary of the Invention
[0016] The purpose of this invention is to overcome at least one of the problems in the prior art.
[0017] To achieve the above objectives, the present invention provides an adaptive spraying robot arm control method based on multimodal perception, comprising the following steps: S110. Acquire multi-source sensing data; S120. The multi-source sensing data is fused to generate a unified representation containing defect location and surface morphology information. S130. Spatial registration is performed between the fused two-dimensional image data and the three-dimensional point cloud data, and a geometric model is constructed based on the registration results. S140. Based on the local geometric features of each path point in the geometric model, retrieve matching process parameter combinations from the preset knowledge graph to generate a digital spraying instruction set; S150. Before spraying, the digital spraying instruction set is input into the digital twin simulation environment for full-process simulation. S160. During the real-time execution of the robotic arm, its motion state parameters are continuously collected and updated synchronously with the digital twin to detect paint film thickness deviation and trigger dynamic compensation adjustment. S170. After the spraying is completed, the actual coating quality is detected, and the detection results are fed back to the knowledge graph to update the parameter mapping relationship.
[0018] Furthermore, in step S110, the multi-source sensing data is acquired through a dual vision system and a laser scanning device. The dual vision system includes a visible light camera and a short-wave infrared camera, and the laser scanning device is used to acquire three-dimensional point cloud data. The visible light camera was used to acquire color boundary information of the area to be repaired and images of the location of the masking tape. The short-wave infrared camera is used to penetrate the surface paint layer to obtain the true edge of the masking tape and the contour image of the area to be repaired.
[0019] Furthermore, in step S120, a deep learning network with a cross-modal attention mechanism is used to fuse the multi-source sensory data: A dual-stream encoder structure is used to process visible light images and short-wave infrared images respectively. A convolutional backbone network is used to extract image features and generate multi-level visible light feature map sequences and short-wave infrared feature map sequences. Connect to the cross-modal attention gating unit (CMAG) to input short-wave infrared feature maps. Generate the query matrix using linear projection. Visible light feature map Generate key matrix AND-value matrix : in, , , They represent the first Learnable projection weight matrices of the query matrix, key matrix, and value matrix in the layer; Calculate the cross-modal attention weight matrix: in, Represents the dimension of the key vector, used as a scaling factor; Represents the pixel-level correlation matrix; This represents the activation function that is normalized along the row direction. Fusion features are obtained through residual connections: Multi-level fusion features Input the decoder path sequentially, combine the skip connections of the corresponding level on the encoder side to restore spatial details, and generate a two-dimensional patched region segmentation map; Construct a bilinear spatial attention map, calculate cross-modal correlations, and generate a spatial weight mask to weight the fused features element by element.
[0020] Furthermore, after generating the two-dimensional patching region segmentation map, modal confidence mapping is performed on the segmentation results for each spatial location. Extracting the gradient variance of the visible light feature map Transmission intensity compared to shortwave infrared characteristic map Input the multilayer perceptron network to predict the modality propensity factor: in, This represents a fully connected network containing two hidden layers; The modality tendency factors at all locations constitute a modality confidence map, which forms a bundled data pair with the two-dimensional patched partition map.
[0021] Furthermore, in step S130, spatial registration is performed between the fused two-dimensional image data and the three-dimensional point cloud data, including: Using camera intrinsic matrix and the calibrated extrinsic rotation matrix With translation vector The set of positive pixels in the two-dimensional patch segmentation map Back-projected onto the camera's view frustum, generating an initial set of 3D candidate points. ,in Indicates the total number of positive pixels; For the initial three-dimensional candidate point set With the three-dimensional point cloud Perform weighted iterative nearest-point registration and construct the weighted objective function: in, This represents the rotation matrix to be optimized. This represents the translation vector to be optimized. Indicates the first The weighting coefficients of each point cloud point; Represents point cloud points After transformation, in the candidate point set The nearest neighbor matching point in ; Represents the regularization coefficient; This represents a subset of point indices corresponding to low-confidence regions in a point cloud, where ; Point Surface normal vector; Minimize the weighted objective function and output the optimal transformation.
[0022] Furthermore, in step S130, the step of constructing a geometric model based on the registration results also includes: The optimal transformation is applied to all positive pixels in the two-dimensional patched region segmentation map, and the region type label and modal confidence are mapped to the corresponding points in the three-dimensional point cloud. The semantically enhanced point cloud is input into the semantic segmentation network. The coordinates, normals, curvatures and modal confidence of each point are concatenated to form the input feature vector. The geometric semantic label of each point is inferred through a confidence-weighted aggregation method. Reconstruct a triangular mesh model based on point clouds with geometric semantic labels; Adjust the octree partitioning depth based on the geometric semantic labels of each point.
[0023] Furthermore, in step S140, retrieving matching process parameter combinations from a preset knowledge graph based on the local geometric features of each path point in the geometric model includes the following steps: The triangular mesh model is discretized with equal arc lengths, and the arc length interval between adjacent path points is dynamically adjusted according to the surface curvature to generate an ordered spatial path point sequence. For each path point, extract the geometric feature vector within its local neighborhood; Constructing a knowledge graph of spraying processes , where the set of nodes Each node in Characterize a typical geometric pattern and associate it with a recommended process parameter vector. and confidence scale edge set Each edge in Nodes with similar geometric patterns are connected and edge weights characterize the reliability of empirical transfer. For the current query geometric feature vector, it is mapped to the embedding space of the knowledge graph through an embedding projection layer: A graph attention network is used to calculate the similarity score between the query embedding and the embeddings of each knowledge graph node; Normalized attention weights are assigned to all nodes, and the recommendation parameters of adjacent knowledge nodes are weighted and aggregated by combining the confidence of each node and the confidence of the semantic label corresponding to the current path point.
[0024] Furthermore, after obtaining the initial values of the process parameters at each path point, geodesic smoothing interpolation of the process parameters is performed on the continuous path, modeling the spraying process parameter space as a five-dimensional non-Euclidean manifold. Geodesic interpolation is performed on the process parameters between adjacent path points: in, Indicates the arc length parameter. , They represent the first With the The arc length coordinates of each path point and Representing manifolds Exponential and logarithmic mappings on; Trajectory of path points Spray gun posture and the five-dimensional process parameter sequence after smooth interpolation By aligning with a unified timestamp axis, it is encapsulated into a digital spraying instruction set.
[0025] Furthermore, step S150, which involves inputting the digital spraying instruction set into the digital twin simulation environment for full-process simulation, includes: The simulation engine embeds a response surface database, which simulates and models the coating formation process. When the digital spraying instruction set is input, the simulation engine uses real-time table lookup and interpolation based on the process parameters of each path point to predict the amount of paint film deposited at that location. in, Represents the response surface function. Representing path points The process parameter vector at the location; The overall coverage uniformity index is calculated cumulatively along the entire trajectory. With average layer thickness ,in The standard deviation calculation is used to generate a predicted coverage result map; after passing the threshold verification, the instruction set is unlocked and sent to the physical control system. Step S160, which involves continuously collecting motion state parameters of the robotic arm during real-time execution and updating them synchronously with the digital twin, includes: Receive multi-source feedback data streams, perform global clock alignment and state interpolation compensation, and form a synchronized state vector: in, express The coordinates of the corresponding position projected onto the workpiece surface by the tip of the spray gun at all times are recorded; the processed synchronous state sequence is injected into the digital twin in real time to drive the virtual model to evolve synchronously with the physical system; When the paint film thickness deviation exceeds the preset tolerance threshold, the look-ahead compensation mechanism is activated, and the incremental optimization problem of process parameters for the remaining path segment is constructed using the measured thickness sequence of the currently coated section as boundary conditions: Solve the optimization problem to generate a corrected sequence of process parameters.
[0026] Furthermore, the input conditions, context, execution strategy, and output results of the entire task are constructed as structured quadruples training samples: in, This represents the summation vector of geometric features of the entire repaired area; Represents an environmental parameter vector; This represents the actual sequence of process parameters executed. This indicates the overall quality score; Periodically initiate an incremental graph neural network fine-tuning task to locally update the knowledge graph node embedding vectors with the goal of minimizing the quality prediction loss: in, Indicates sample The matched knowledge graph nodes. , These represent the embedding vectors of the node before and after the update, respectively. This indicates the prediction of the overall quality score based on node embedding. The supervised loss function, This represents the model's predicted score. Indicates the learning rate. This represents the gradient operator with respect to the embedded vector. This represents all learnable parameters of the graph neural network. This represents the weight decay coefficient; The updated embedding vectors are synchronously loaded into the graph attention network.
[0027] Compared with the prior art, the present invention has the following beneficial effects: The present invention overcomes the technical bottleneck of blurred boundaries of visible light under the high gloss reflection of metallic paint and dark light-absorbing materials, and effectively suppresses the pollution of segmentation accuracy by local degradation of a single mode.
[0028] It improves the accuracy of 2D and 3D spatial registration and the fidelity of geometric models.
[0029] It achieves semantically guided adaptive reconstruction.
[0030] This invention achieves a precise mapping from "geometric space" to "process parameter space", enabling a smooth transition of parameters on a continuous path.
[0031] It achieves online closed-loop control for simultaneous spraying and correction, and the final standard deviation of the paint film thickness is significantly reduced compared to the uncompensated scheme.
[0032] This invention realizes the structured connection of data flow and closed-loop feedback of information between various links, enabling the painting robot arm to have the ability to self-perceive, self-decision, self-execute, self-evaluate and self-evolve without human intervention when facing complex and dynamic industrial scenarios. Attached Figure Description
[0033] Figure 1 is an overall flowchart of the method of the present invention; Figure 2 is a schematic diagram of the network structure of the cross-modal attention gating unit of the present invention; Figure 3 is a schematic diagram of the weighted spatial registration and semantically enhanced point cloud generation process of the present invention.
[0034] The same reference numerals or labels in the accompanying drawings indicate the same or corresponding functional modules or data processing steps.
[0035] The arrows in each diagram only indicate the direction of data flow or control logic relationships and do not constitute a limitation on the actual physical connection or communication method. Detailed Implementation
[0036] The technical solutions in the embodiments of the present invention will now be clearly and completely described in conjunction with the accompanying drawings.
[0037] Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0038] Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0039] Experimental methods not specified in this embodiment are generally performed under conventional conditions or as recommended by the manufacturer.
[0040] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings.
[0041] This invention provides an adaptive spraying robot control method based on multimodal perception. This method realizes adaptive intelligent operation of spraying repair under complex working conditions by constructing a closed-loop control architecture that connects the entire chain of "perception-modeling-decision-simulation-execution-evaluation-learning".
[0042] According to an embodiment of the present invention, an adaptive spraying robot control method based on multimodal perception is provided, as shown in Figure 1. The knowledge graph shown on the right side of the figure and the information reading and writing relationship between step S140 (process retrieval) and step S170 (feedback update) are represented by bidirectional arrows.
[0043] Specifically, the method includes the following seven steps: S110. Multi-source perception data of the area to be repaired is obtained by integrating a dual vision system and a laser scanning device. The dual vision system includes a visible light camera and a short-wave infrared camera, and the laser scanning device acquires three-dimensional point cloud data. Preferably, the visible light camera is used to acquire color boundary information of the area to be repaired and the position image of the masking tape, which is denoted as an image tensor. ,in This represents the height of the image in pixels. This indicates the width of the image in pixels.
[0044] The short-wave infrared camera is used to penetrate the surface paint layer to obtain the true edge of the masking tape and the contour image of the area to be repaired, denoted as... .
[0045] The visible light camera and the short-wave infrared camera achieve initial spatial alignment through a common beam-splitting prism, and through joint calibration, the parallax of corresponding points in the image plane is controlled within the sub-pixel tolerance range.
[0046] The laser scanning device acquires high-precision three-dimensional point clouds. , where each point This represents the three-dimensional spatial coordinates of the sampling points on the workpiece surface. This represents the total number of point clouds.
[0047] S120. A deep learning network with a cross-modal attention mechanism is used to fuse the multi-source sensing data to generate a unified representation containing information on defect location and surface morphology. Preferably, the fusion process includes: processing the visible light images separately using a dual-stream encoder structure. With shortwave infrared images A convolutional backbone network with shared weights is used to extract image features from four scale levels, C2 to C5, to generate a multi-level visible light feature map sequence. With shortwave infrared feature sequence ,in , , Indicates the first Number of channels in the layer , They represent the first The height and width of the layer feature map.
[0048] At each level, a cross-modal attention gate (CMAG) is connected, which will... Generate the query matrix using linear projection. , Generate key matrix AND-value matrix : in, , , They represent the first Learnable projection weight matrices for query matrices, key matrices, and value matrices in the layer.
[0049] Calculate the cross-modal attention weight matrix: in, Represents the dimension of the key vector, used as a scaling factor; Represents the pixel-level correlation matrix; This represents the activation function that is normalized along the row direction.
[0050] Fusion features are obtained through residual connections: The multi-level fusion features enhanced by the CMAG The UNet decoder path is input sequentially, and the spatial details are recovered by combining the skip connections of the corresponding layers on the encoder side. Finally, a two-dimensional patched region segmentation map is output. (Hereinafter referred to as the segmentation image), where each pixel value This indicates whether the location belongs to the area to be repaired. This indicates an area that needs repair. This indicates that the area is not in the repair area.
[0051] In the CMAG, the multi-level visible light feature map sequence With shortwave infrared feature sequence Perform global average pooling separately to generate channel context vectors. , , its first The dimensional components are calculated by the following formula: in, Indicates the first The first layer feature map The spatial location of each channel Eigenvalues at; Indicates the first The first layer feature map The global average pooling result for each channel.
[0052] The two-channel context vectors are concatenated and then input into the fully connected layer for nonlinear transformation, outputting cross-weighted coefficients. It is used to dynamically recalibrate the channel dimension of two-modal feature maps.
[0053] Construct a bilinear spatial attention map, calculate cross-modal correlations between pixel locations, and generate a spatial weight mask. Element-wise weighting of fusion features is applied to suppress falsely activated regions caused by light reflection or masking film reflection.
[0054] More preferably, in generating the segmentation map Then, pixel-level modality confidence mapping is performed on the segmentation results for each spatial location. Extract visible light features Figure 3 Gradient variance within a ×3 neighborhood Transmission intensity compared to shortwave infrared characteristic map Input a lightweight multilayer perceptron network to predict the modality propensity factor: in, This represents a fully connected network with two hidden layers, using the ReLU activation function; A value close to 1 indicates that the location primarily relies on the visible light mode in the fusion decision, while a value close to 0 indicates that it primarily relies on the short-wave infrared mode.
[0055] All locations Constructing a modal confidence diagram , with the segmentation map The bundled data pairs are then transmitted to the subsequent spatial registration stage.
[0056] S130. Spatial registration is performed between the fused two-dimensional image data and the three-dimensional point cloud data, and a geometric model of the area to be repaired is constructed based on the registration result. Preferably, spatial registration includes: using the camera intrinsic parameter matrix and the calibrated extrinsic rotation matrix With translation vector The segmentation map set of positive class pixels Back-projected onto the camera's view frustum, generating an initial set of 3D candidate points. ,in This represents the total number of positive class pixels, and the back projection relationship is: in, Represents pixels homogeneous coordinate vector, The depth value corresponding to the pixel is obtained by interpolation of the three-dimensional point cloud acquired by the laser scanning device in the corresponding ray direction.
[0057] right With the three-dimensional point cloud Perform weighted iterative nearest-point registration and construct the following weighted objective function: in, This represents the rotation matrix to be optimized. This represents the translation vector to be optimized; Indicates the first The weight coefficient of each point in the point cloud is determined by the pixel position of that point. Modal confidence at the location according to Mapped to obtain; Represents point cloud points After transformation, in the candidate point set The nearest neighbor matching point in ; Represents the regularization coefficient; This represents a subset of point indices corresponding to low-confidence regions in a point cloud, where ; Point Surface normal vector.
[0058] The weighted objective function is minimized iteratively using the Levenberg-Marquardt algorithm if and only if the rotation increment Less than the first preset convergence threshold and the translation increment Convergence is determined when the value is less than the second preset convergence threshold, and the optimal transformation is output. .
[0059] Preferably, a geometric model of the region to be repaired is constructed based on the registration results, including: The optimal transformation Applied to the segmentation map All positive pixels will have region type labels. Modal confidence Mapped to the corresponding points in the 3D point cloud, where and its existing spatial coordinates and normal vector at that point. and curvature estimation By splicing together, a semantically enhanced point cloud is generated. .
[0060] The semantically enhanced point cloud The input semantic segmentation network is used to construct an input feature vector by concatenating the coordinates, normals, curvature, and modal confidence scores of each point. At the Set Abstraction layer, the geometric semantic label of each point is inferred through a confidence-weighted aggregation method. .
[0061] Solving the Poisson equation based on point clouds with geometric semantic labels. Reconstructing the triangular mesh model ,in, This represents the implicit indicator function to be solved, and its zero level set. To reconstruct the surface, This represents the vector field after the point cloud normal vector field has been smoothed and filtered. Represents the Laplace operator. This represents the divergence operator.
[0062] During the reconstruction process, geometric semantic labels of each point are used as a basis. Adaptively adjust the octree partitioning depth, setting the depth at boundaries and concave corners. Set depth in the planar area .
[0063] S140. Based on the local geometric features of each path point in the geometric model, retrieve matching process parameter combinations from the preset knowledge graph to generate a digital spraying instruction set containing trajectory, attitude and dynamic process parameters. Preferably, the matching process parameter combinations retrieved from the preset knowledge graph include: For the triangular mesh model Perform equal arc length discretization sampling, with arc length intervals between adjacent path points. Based on dynamic adjustment of surface curvature, an ordered spatial path point sequence is generated. ,in This represents the total number of path points.
[0064] For each waypoint Extract the geometric feature vectors in its local neighborhood. : Principal curvature tensor ,in , Representing the principal curvature values in the two principal directions respectively, and ; normal rate of change ,in The normal vector representing the next path point; Local surface type These correspond to plane, sphere, cylinder, and saddle-shaped surfaces, respectively. Boundary distance field ,in Represents the set of boundary vertices; The geometric feature vector spliced as ,in Indicates the type of local surface The four-dimensional vector obtained by one-hot encoding.
[0065] Constructing a knowledge graph of spraying processes , where the set of nodes Each node in Characterize a typical geometric pattern and associate it with a recommended process parameter vector. and confidence scalar edge set Each edge in Nodes with similar geometric patterns are connected, and edge weights characterize the reliability of empirical transfer.
[0066] For the current query geometric feature vector This is achieved by embedding a projection layer to map it into the embedding space of the knowledge graph: in, This represents the learnable projective weight matrix. This represents the bias vector. Indicates the embedding dimension. This represents the linear rectification activation function.
[0067] Graph attention network is used to compute query embedding and embedding of each knowledge graph node. Similarity score between them: in, This represents the learnable attention projection matrix. Represents the attention parameter vector. This represents a vector concatenation operation. This represents the activation function for a linear rectified circuit with leakage.
[0068] Normalize the attention weights for all nodes: in, Indicates query For nodes Normalized attention weights This represents an exponential function.
[0069] And combine the confidence level of each node and the confidence level of the semantic label corresponding to the current path point The recommendation parameters of adjacent knowledge nodes are weighted and aggregated: in, The five dimensions are spray gun moving speed, distance from workpiece surface, paint flow rate, atomization pressure, and spray overlap rate.
[0070] A further preferred embodiment involves, after obtaining the initial values of the process parameters at each path point, performing geodesic smoothing interpolation of the process parameters on the continuous path, thereby modeling the spraying process parameter space as a five-dimensional non-Euclidean manifold. Geodesic interpolation is performed on the process parameters between adjacent path points: in, Indicates the arc length parameter. , They represent the first With the The arc length coordinates of each path point and Representing manifolds Exponential and logarithmic mappings on the tectonic plane.
[0071] The interpolation kernel function of the geodesic interpolation is modulated by the local curvature gradient. When the path crosses a region of abrupt curvature change... When the decision value increases sharply, the interpolation step size is automatically compressed and the piecewise linearity preservation strategy is switched.
[0072] Trajectory of path points Spray gun posture ,in The representation is a unit quaternion, and the five-dimensional process parameter sequence is smoothly interpolated. Strictly aligned with a unified timestamp axis, it is encapsulated into a digital spraying instruction set.
[0073] S150. Before spraying, the digital spraying instruction set is input into a digital twin simulation environment for full-process simulation to verify the feasibility of the instructions and output the predicted coverage results, specifically including: The simulation engine embeds a pre-built response surface database, which performs offline simulation modeling of the coating formation process under various typical working conditions based on the finite element method, covering different paint viscosities. Ambient temperature relative humidity Paint mist diffusion dynamics and droplet impact spreading behavior under the combination of spray distance, flow rate and moving speed.
[0074] Once the instruction set is input, the simulation engine uses real-time table lookup and interpolation based on the process parameters of each path point to predict the amount of paint film deposited at that location. in, Represents the response surface function. Representing path points The five-dimensional process parameter vector at the location.
[0075] The overall coverage uniformity index is calculated cumulatively along the entire trajectory. With average layer thickness ,in This indicates the standard deviation calculation, which generates a prediction coverage result map.
[0076] The simulation engine performs continuous collision detection with sub-millisecond time steps, while simultaneously analyzing the Jacobian matrix of each joint of the robotic arm in real time. ,in Indicates the number of joints. Represents the joint angle vector, monitoring its condition number. The changing trend, when When the preset threshold is exceeded, a forward warning for singular configurations is triggered and local path fine-tuning is automatically initiated.
[0077] The instruction set is unlocked and sent to the physical control system only if the motion feasibility score, the expected coating thickness deviation range, and the visual consistency index all pass the threshold verification.
[0078] S160. During the real-time execution of the robotic arm, its motion state parameters are continuously collected and updated synchronously with the digital twin. Paint film thickness deviations are detected and dynamic compensation adjustments are triggered. Specifically, this includes: Simultaneously receive multi-source feedback data streams via industrial communication network, and receive the position of each joint at a sampling rate of 1kHz. ,speed With torque The attitude quaternion of the spray gun tip inertial measurement unit is received at 500Hz. The wet film thickness is received from the paint film thickness sensor at a period of 200ms. .
[0079] The multi-frequency heterogeneous data stream undergoes global clock alignment and state interpolation compensation via a time synchronization middleware based on the IEEE 1588 precision time protocol, forming a synchronized state vector: in, express The coordinates of the corresponding position projected onto the workpiece surface by the tip of the spray gun at all times are recorded; the processed synchronous state sequence is injected into the digital twin in real time to drive the virtual model and the physical system to evolve synchronously.
[0080] When the paint film thickness is off Exceeding the preset tolerance threshold At that time, among them Representing the target paint film thickness, the look-ahead compensation mechanism is activated, and an incremental optimization problem of process parameters for the remaining path segments is constructed using the measured thickness sequence of the currently coated segment as boundary conditions: in, This represents the vector of process parameter adjustments to be solved. Indicates the current path point The original process parameter vector at the location, This represents the diagonal weight matrix. Represents the smoothness regularization coefficient. This represents the number of discrete points in the remaining path segment.
[0081] The constraint is the physical limit of the equipment. Maximum adjustment range per step and edge transition region smoothness constraints ,in , These represent the physical lower and upper limits vectors for each process parameter, respectively. This indicates the maximum allowable adjustment range per step. This indicates the maximum allowable thickness gradient in the edge transition zone.
[0082] The optimization problem is solved using a sequential quadratic programming algorithm, generating a corrected sequence of process parameters. This sequence is then distributed using a segmented locking and sliding window rebinding strategy. The parameters of the path segments that have already been sprayed remain unchanged, while only the parameters of the path intervals that have not yet been executed are replaced.
[0083] like Figure 1 As shown, the method of the present invention further includes step S170: after the spraying is completed, the actual coating quality is detected, and the detection result is fed back to the knowledge graph to update the parameter mapping relationship.
[0084] This step specifically includes: The dual vision system and laser scanning device are restarted to perform a full surface scan of the coated area. The collected data is input into the quality scoring model to extract a five-dimensional structured quality index vector. ,in: The uniformity index is represented by the standard deviation of the paint film thickness distribution. with the mean The ratio according to Mapped to obtain; The orange peel index is graded, with 0 being the best and 3 being the worst. Indicates the risk index of spillage; Indicates the ratio of areas missed during spraying; Indicates the gloss deviation value; A fuzzy inference rule engine is used to perform nonlinear mapping and normalization on each sub-indicator to obtain... According to preset weights Weighted summation generates comprehensive quality score ,satisfy .
[0085] Preferably, the method of the present invention further includes: constructing structured quadruples of training samples from the input conditions, context, execution strategy, and output results of each job process. in, This represents the summation vector of geometric features of the entire repaired area; This represents an environmental parameter vector, including ambient temperature, relative humidity, and paint batch number; This represents the actual sequence of process parameters executed, including the parameters after compensation and adjustment. This indicates the overall quality score.
[0086] The quadruple sample, along with the unique job fingerprint, is written into the distributed time-series database.
[0087] Periodically initiate an incremental graph neural network fine-tuning task to locally update the knowledge graph node embedding vectors with the goal of minimizing the quality prediction loss: in, Indicates sample The matched knowledge graph nodes. , These represent the embedding vectors of the node before and after the update, respectively. This indicates the prediction of the overall quality score based on node embedding. The supervised loss function, This represents the model's predicted score. Indicates the learning rate. This represents the gradient operator with respect to the embedded vector. This represents all learnable parameters of the graph neural network. This represents the weight decay coefficient.
[0088] The updated embedding vectors are synchronously loaded into the graph attention network module; For the overall quality score Below the preset threshold For low-quality samples, the decision tree reverse causal analysis is automatically triggered to trace the root cause of the deviation and generate knowledge graph correction suggestions. After manual review and confirmation, the suggestions are injected into the graph database to complete the closed-loop evolution.
[0089] In a preferred embodiment of the present invention, the adaptive spraying robotic arm system includes a six-degree-of-freedom industrial robotic arm body, an air spray gun installed at the end of the robotic arm, a multi-source sensing module fixedly installed around the work station, and an edge computing unit deployed in a host computer.
[0090] The multi-source sensing module includes: a 5-megapixel industrial-grade visible light RGB camera (equipped with a 12mm fixed-focus lens and a ring LED supplementary light source), a short-wave infrared camera of the same resolution (based on an InGaAs focal plane detector, with a working wavelength covering 900nm~1700nm), and a line structured light 3D laser scanner (wavelength 660nm, measurement accuracy ±0.05mm).
[0091] The visible light camera and the short-wave infrared camera are coaxially mounted through a common beam splitter prism, ensuring that the natural field of view overlap of the two images reaches more than 99%.
[0092] After joint stereo calibration, the residual parallax of corresponding points in the image plane is controlled within 0.3 pixels.
[0093] The edge computing unit is equipped with an NVIDIA GPU accelerator card and a real-time industrial Ethernet communication interface, and is used to run computationally intensive tasks such as the cross-modal attention gating unit (CMAG), semantic segmentation network, knowledge graph retrieval module, digital twin simulation engine, and inverse optimization solver described in this invention.
[0094] The robotic arm controller and the edge computing unit communicate via EtherCAT industrial real-time Ethernet, with a communication cycle of 1ms.
[0095] After the robotic arm carrying the spray gun moves to the preset observation position in the area to be repaired, the system simultaneously sends hardware trigger signals to the visible light camera and the short-wave infrared camera to synchronously acquire visible light images. With shortwave infrared images .
[0096] In this example, , .
[0097] After acquisition, the two images are first subjected to geometric distortion correction and subpixel-level registration preprocessing.
[0098] The registration process employs a nonlinear optimization method based on mutual information to align the shortwave infrared image to the visible light image coordinate system, and the parallax of corresponding points in the two images after registration is controlled within 0.5 pixels.
[0099] Subsequently, the two images were cropped to regions of interest (ROIs), redundant background areas were removed, and normalized to... The intensity range is then fed into the input buffer queue of CMAG.
[0100] At the same time, the line structured light laser scanning device performs scanning on the area to be repaired within the same time window (trigger time difference not exceeding 50ms) to obtain high-precision three-dimensional point clouds. .
[0101] During the scanning process, the system adaptively adjusts the scan line density based on the prior estimate of the surface curvature.
[0102] Specifically, in the region of high curvature (based on the curvature estimate from the coarse sweep stage) (Judgment) The scan line spacing is set to 0.2mm, and the scan line spacing is set to 0.8mm in flat areas.
[0103] The raw point cloud after acquisition is filtered for statistical outliers (neighborhood radius). mm, standard deviation multiple threshold ) and voxel grid downsampling (voxel size) After preprocessing (mm), the total number of point clouds The number of points is controlled between 500,000 and 1,000,000, and stored in a shared memory space to await spatial registration with the results of two-dimensional perception.
[0104] As shown in Figure 2, the top part shows the visible light feature maps output from layers C2 to C5 of the dual-stream encoder. Compared with short-wave infrared feature map The middle section shows the detailed data flow within the CMAG (including the channel global pooling and cross-weighting operation branches, the bilinear spatial attention map construction branch, and the cross-modal attention weight matrix calculation branch). The bottom section shows the multi-level fused features of the fused output to the UNet decoder. .
[0105] In Figure 2, shaded rectangles represent learnable modules (including projective convolutional layers and fully connected layers), unshaded rectangles represent fixed computational modules (including pooling and softmax normalization), and parallelograms represent data tensors.
[0106] and Input the two-stream encoder network with shared weights respectively.
[0107] The encoder uses ResNet18 pre-trained on ImageNet as the convolutional backbone network, and outputs feature map sequences in parallel from four scale levels, C2 to C5.
[0108] Let's take layer 3 (i.e., layer C3, corresponding to the output of residual block 2 in the network) as an example: , .
[0109] Will pass Convolutional projection generates query matrix , Generate key matrix AND-value matrix .
[0110] According to the formula Calculate the cross-modal attention weight matrix, where A pixel-level correlation matrix. Used as a scaling factor.
[0111] After softmax normalization along the rows, the fused features are: .
[0112] Meanwhile, within the channel gating branches of CMAG, for and Perform global average pooling separately.
[0113] For example, for the first The pooling value of the visible light feature map for each channel is [value missing]. .
[0114] The concatenated pooling vectors are input into a fully connected layer (input dimension 512, hidden layer dimension 256, output dimension 128), and after ReLU activation, the output is a cross-weighted coefficient. .
[0115] This coefficient is multiplied channel by channel of the two feature maps and then added together to achieve key feature enhancement in the channel dimension.
[0116] In the spatial dimension, a bilinear spatial attention map is constructed, that is, the two feature maps are spatially located. Perform outer product operation and dimensionality reduction at the specified location to generate a spatial weight mask. By weighting the fusion features element by element, the contamination of the fusion results by local overexposure areas caused by the high-gloss reflection of metallic paint can be effectively suppressed.
[0117] Enhanced CMAG multi-level fusion features Enter the UNet decoder path in sequence.
[0118] Specifically: (size First, it is upsampled by transposed convolution to ,and (size After skip connections and concatenation, the output size is obtained through two convolution operations. Continue upsampling until ,and splicing, output size ; then upsample to ,and splicing, output size Finally, upsampling was performed. After two convolutions, through Convolutional layer output single-channel segmentation map Then, bilinear interpolation is used to restore the original size. .
[0119] Segmentation image Each pixel value This indicates whether the location belongs to the area to be repaired.
[0120] In the segmentation map During the inference process, pixel-level modality confidence mapping is performed synchronously.
[0121] For each spatial location Extract visible light features from the intermediate features of CMAG Figure 3 Gradient variance within a ×3 neighborhood (Characteristics of texture sharpness) and short-wave infrared transmission intensity (Representing penetration depth), input a lightweight MLP network (structure: 2 nodes in the input layer → 8 nodes in the hidden layer → 1 node in the output layer, all using ReLU activation), predict the modality propensity factor. .
[0122] In this example, typical values are as follows: in the area of the masking tape edge, the boundary contrast is obvious after short-wave infrared light penetrates the paint film. The value is relatively high. The predicted value is approximately 0.15, indicating a primary dependence on the short-wave infrared mode; in areas of high reflectivity, the visible light image is saturated. The value is extremely low. The predicted value is approximately 0.25; in textured, non-reflective areas, The predicted value is approximately 0.85, indicating that it mainly depends on the visible light mode.
[0123] All locations Constructing a modal confidence diagram , and segmentation map A bundled data pair is formed and passed to step S130 to guide spatial registration.
[0124] Figure 3 shows a schematic diagram of the modal confidence-guided weighted spatial registration and semantically enhanced point cloud generation process of the present invention.
[0125] The upper left side of Figure 3 is a segmentation diagram. Modal confidence plot The input is a weighted iterative nearest-point registration process, where different shades of gray represent the weight coefficients of each point. (Dark colors represent high weight, light colors represent low weight), and normal smoothing constraints are applied to low-confidence regions to suppress false matches; the lower right side shows the semantically enhanced point cloud generated after registration. and the triangular mesh model output by Poisson reconstruction Geometric semantic labels are arranged on the model surface using different colors. (Boundary, protrusion, concave corner, plane, transition surface).
[0126] In this embodiment, the camera intrinsic parameter matrix is used. (Obtained using Zhang's calibration method, in this example) (pixel units) and the calibrated extrinsic matrix ( , ), segmentation map All positive pixels are back-projected into the camera's view frustum.
[0127] With positive class pixels For example, its homogeneous coordinates Corresponding depth value laser point cloud Nearest neighbor interpolation is performed along the ray direction to obtain the three-dimensional candidate points, which are then back-projected. .
[0128] After backprojection of all positive class pixels, an initial 3D candidate point set is formed. ,common One point.
[0129] Perform weighted iterative nearest-point registration.
[0130] The weighted objective function is: In this example, the weighting coefficients according to Mapping.
[0131] Modal confidence The regional weight is , The regional weight is .
[0132] Regularization coefficient Values .
[0133] for A subset of point indices.
[0134] normal vector From the local neighborhood (radius) Principal component analysis (mm) was used to obtain the results.
[0135] The Levenberg-Marquardt algorithm is used iteratively to solve the problem, with the convergence condition set as the rotation increment. And translation increment mm.
[0136] In this example, the process converges after 7 iterations, outputting the optimal transformation. After registration, the alignment accuracy of the critical repair boundary (the actual edge of the masking tape) was verified to be approximately 0.15mm.
[0137] Apply the optimal transformation to all pixels of the segmentation map and label the region type. and modal confidence Mapped to the corresponding points in the 3D point cloud.
[0138] And calculate the normal vector at each point. With curvature estimation The curvature is determined by the three eigenvalues of the local neighborhood covariance matrix. according to calculate.
[0139] The concatenation results in a semantically enhanced point cloud. .
[0140] Will Input a semantic segmentation network (using the PointNet++ network architecture in this embodiment), with the coordinates of each point... Normal vector curvature and modal confidence The input features are composed of 8-dimensional vectors.
[0141] At the Set Abstraction level, the fine-grained geometric semantic label for each point is inferred through a confidence-weighted aggregation method—that is, when aggregating neighborhood features, a weighted average is performed using modality confidence as the weight— .
[0142] Based on point clouds with geometric semantic labels, the Poisson equation is solved using a Poisson surface reconstruction algorithm. .
[0143] In this example, the points of the boundary and concave corner labels ( Set the octree depth For planar label points ( Set depth Set the depth for the transition surface and the raised label point. .
[0144] The reconstructed triangular mesh model After topology optimization and face number compression, the number of vertices is reduced to approximately 200,000. Each vertex carries normal, curvature and semantic label attributes, and is output to step S140.
[0145] For triangular mesh model Perform equal arc length discretization sampling.
[0146] In this example, the basic arc length interval is set to mm, but adaptively adjusted based on local curvature: when at the path point hour, Reduce to mm; when hour, Increase to mm.
[0147] Generate an ordered spatial path point sequence , Approximately 300 to 800 points.
[0148] For each waypoint Extracting geometric feature vectors .
[0149] Taking the path point located at the edge of the car door as an example ( , , mm , That is, cylindrical surface. mm), after splicing (In one-hot encoding, the cylinder is [0,0,1,0]).
[0150] Will Input into the spraying process knowledge graph retrieval module.
[0151] This knowledge graph It contains approximately 1500 typical geometric pattern nodes, stored in the Neo4j graph database.
[0152] Mapped to query embedding via embedding projection layer Embedded with each node in the knowledge graph Compute graph attention similarity score.
[0153] In this example, the node with the "high curvature edge" (node number) Attention score The highest, and the "general convex" node ( The score is .
[0154] After softmax normalization , The remaining nodes total .
[0155] Combining the confidence levels of each node ( of , of After weighted aggregation, the initial value of the process parameters for this path point is... .
[0156] Perform geodesic smoothing interpolation on a continuous path, and interpolate the parameters of adjacent path points in the five-dimensional manifold along the path's direction of travel. Press the geodesic interpolation button above.
[0157] In the edge crossing segment of this example, due to The value increased sharply from 0.02 to 0.08 mm. The system automatically compresses the interpolation step size from every 1 mm to one interpolation point every 0.3 mm, so that the process parameters change uniformly within the 50 mm ridge transition zone.
[0158] Finally, the path point trajectory Spray gun posture (Keep the nozzle direction aligned with the surface normal) The deflection angle and five-dimensional process parameter sequence are encapsulated into a digital spraying instruction set.
[0159] Input the instruction set into the digital twin simulation engine.
[0160] The engine's embedded response surface database was built offline using the finite element method, covering five paint viscosities (30–100 s). The simulation data includes coating formation under four ambient temperature (15-40℃) and four relative humidity (40%-85%) conditions, totaling 80 basic conditions and approximately 500 process parameter combinations per condition.
[0161] Simulation engine for the first Path points, according to Current paint viscosity s Ambient temperature C. Relative humidity According to the formula Predict the amount of paint film deposition by interpolation from a table.
[0162] Cumulative calculation of overall uniformity index m, average layer thickness m.
[0163] In the sports school test, continuous collision detection was run with a time step of 0.2ms, and the minimum safe distance between all path points was greater than 30mm.
[0164] Jacobian matrix condition number The entire process was monitored, and the maximum value occurred at the 152nd path point. If the value is below the warning threshold of 50, no path fine-tuning is required.
[0165] Visual consistency rendering shows the color difference between the repaired area and the surrounding paint surface under standard D65 lighting. .
[0166] The comprehensive assessment report shows that all key indicators passed the verification, and the instruction set was unlocked and issued.
[0167] During the robotic arm's operation, the system receives joint positions at 1 kHz. ,speed With torque Receive spray gun IMU attitude quaternion at 500Hz The film thickness measurement value is received at a period of 200ms. .
[0168] In this example, when execution reaches the path segment (Concave area, predicted thickness) When m), the measured thickness m, deviation m, exceeding the preset tolerance threshold m, immediately activate look-ahead compensation.
[0169] Construct the remaining path segment ( The optimization problem of ).
[0170] Known measured sequence of the sprayed section Remaining areas to be optimized Five-dimensional process adjustment amount at each point .
[0171] In the objective function Set as a diagonal matrix, with the weight at the point of maximum deviation set to... Other positions are Smoothing coefficient .
[0172] Constraints: , , , m / mm.
[0173] The SQP algorithm is used to solve the problem within 42ms and output the correction parameters (such as adjusting the paint flow rate in the concave corner area from 0.35 to 0.52L / min and the spray gun speed from 350 to 280mm / s).
[0174] Compensation instructions are injected via a segmented locking strategy: completed path segments ( The parameters remain unchanged, only the path segment Then replace it with the new parameters.
[0175] The digital twin synchronously records the source map of this compensation event.
[0176] After the spraying is completed, restart the multi-source sensing module to scan the sprayed area.
[0177] The quality scoring model extracts five dimensions of indicators: , class, , , .
[0178] Fuzzy inference engines operate on rule sets (such as "if") and After mapping (e.g., uniformity is better), the normalized scores of the five sub-indicators are: By weight Weighted summation, overall quality score .
[0179] Construct quadruplet samples Store in the database.
[0180] Periodic incremental GNN fine-tuning: Started after accumulating 50 samples, fine-tuning the embedding of graph nodes with the goal of minimizing quality prediction loss.
[0181] Learning rate in the loss function Weight decay .
[0182] After fine-tuning With node embedding updates, future process recommendations for similar "high curvature ridge" scenarios will be more accurate.
[0183] In the fully automated operation mode of this invention, the system automatically executes the following time-sequential process without human intervention: P1. The robotic arm carrying the spray gun moves to the observation station of the area to be repaired; P2, Simultaneously trigger dual-camera exposure and laser scanning (corresponding to S110 in Figure 1). P3. Automatically perform CMAG fusion (corresponding to S120 in Figure 1) and weighted registration to construct the geometric model (corresponding to S130 in Figure 1). P4. Automatically execute the knowledge graph retrieval and geodesic interpolation generation instruction set (corresponding to S140 in Figure 1). P5. Automatically perform digital twin simulation verification (corresponding to S150 in Figure 1). If the verification fails, automatically revert to P4 and adjust the retrieval parameters. P6. After verification, the execution is automatically initiated, with real-time synchronization and dynamic compensation during the execution process (corresponding to S160 in Figure 1). P7. After the execution is complete, the automatic review and knowledge graph will be updated (corresponding to S170 in Figure 1).
[0184] The entire process, from initial detection to task completion, takes approximately 90–180 seconds per repair operation (depending on the defect area and complexity), with a comprehensive quality score. average reached above.
[0185] In summary, the advantages of this invention compared to the prior art include: This invention uses a visible light camera and a short-wave infrared camera to form a dual vision system, and utilizes the physical properties of short-wave infrared to penetrate the surface paint film to obtain the true edge of the masking tape and the outline of the repair area, thus overcoming the technical bottleneck of blurred boundaries of visible light under the high gloss reflection of metallic paint and dark light-absorbing materials.
[0186] This invention can adaptively allocate fusion weights based on the feature correlation between the two modalities at each pixel location, effectively suppressing the pollution of segmentation accuracy caused by local degradation of a single modality.
[0187] Experiments show that, under typical difficult conditions where the masking tape and paint are similar in color, the segmentation and cross-comparison method of the present invention improves the efficiency by about 22 percentage points compared to the pure visible light method, and controls the defect omission rate to within 2%.
[0188] This invention improves the accuracy of two-dimensional and three-dimensional spatial registration and the fidelity of geometric models.
[0189] This invention introduces modal confidence maps into the weighted iterative nearest point registration objective function, assigning high weights to high-confidence regions and applying normal smoothing constraints to low-confidence regions, thereby improving the alignment accuracy of critical repair boundaries to the sub-millimeter level.
[0190] Furthermore, this invention is based on geometric semantic tags. By adaptively adjusting the depth of the octree in the Poisson reconstruction, semantically guided adaptive reconstruction is achieved.
[0191] This invention extracts multidimensional geometric feature vectors of each path point and uses a graph attention network to calculate the similarity score between the query embedding and the knowledge graph node, thereby achieving a precise mapping from the "geometric morphology space" to the "process parameter space".
[0192] Meanwhile, the process parameter space is modeled as a five-dimensional non-Euclidean manifold, and smooth parameter transitions on continuous paths are achieved through geodesic interpolation.
[0193] This invention precisely aligns multi-frequency heterogeneous feedback data streams to form a synchronous state vector that is injected into the digital twin in real time.
[0194] When the deviation in paint film thickness exceeds the tolerance threshold, a nonlinear programming problem is constructed and solved within 50ms using a sequential quadratic programming algorithm to achieve online closed-loop control of simultaneous spraying and correction.
[0195] When the viscosity of the paint fluctuates during the execution process, resulting in a thickness deviation of more than 15μm, the standard deviation of the final paint film thickness of the present invention is significantly reduced compared with the uncompensated scheme.
[0196] This invention constructs a five-dimensional structured quality index and generates a comprehensive quality score through a fuzzy inference rule engine. At the same time, it constructs a structured quadruple training sample of "perceived data - decision parameters - execution results - quality score" and performs local updates on the knowledge graph node embedding by fine-tuning the loss function through an incremental graph neural network.
[0197] After accumulating 200 spraying tasks, the average comprehensive quality score of the first spraying of the same geometric pattern increased from 0.78 in the initial stage to 0.89, demonstrating a continuous evolutionary effect.
[0198] This invention constructs a fully integrated architecture encompassing "perception—modeling—decision-simulation—execution—evaluation—learning," achieving structured data flow and closed-loop information feedback between each stage. This enables the painting robot arm to possess self-perception, self-decision, self-execution, self-evaluation, and self-evolution capabilities without human intervention when facing complex and dynamic industrial scenarios, thereby enhancing its adaptability and intelligence in high-end manufacturing applications.
[0199] Finally, it should be noted that the above embodiments are for illustration only and not for limiting the technical solutions of the present invention. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that modifications or equivalent substitutions can still be made to the present invention without departing from the spirit and scope of the present invention. Any modifications or partial substitutions should be covered within the scope of the claims of the present invention.
Claims
1. An adaptive spraying robot arm control method based on multimodal perception, characterized in that, Includes the following steps: S110. Acquire multi-source sensing data; S120. The multi-source sensing data is fused to generate a unified representation containing defect location and surface morphology information. S130. Spatial registration is performed between the fused two-dimensional image data and the three-dimensional point cloud data, and a geometric model is constructed based on the registration results; S140. Based on the local geometric features of each path point in the geometric model, retrieve matching process parameter combinations from the preset knowledge graph to generate a digital spraying instruction set; S150. Before spraying, the digital spraying instruction set is input into the digital twin simulation environment for full-process simulation. S160. During the real-time execution of the robotic arm, its motion state parameters are continuously collected and updated synchronously with the digital twin to detect paint film thickness deviation and trigger dynamic compensation adjustment. S170. After the spraying is completed, the actual coating quality is detected, and the detection results are fed back to the knowledge graph to update the parameter mapping relationship.
2. The method according to claim 1, characterized in that, In step S110, the multi-source sensing data is acquired through a dual vision system and a laser scanning device. The dual vision system includes a visible light camera and a short-wave infrared camera, and the laser scanning device is used to acquire three-dimensional point cloud data. The visible light camera was used to acquire color boundary information of the area to be repaired and images of the location of the masking tape. The short-wave infrared camera is used to penetrate the surface paint layer to obtain the true edge of the masking tape and the contour image of the area to be repaired.
3. The method according to claim 2, characterized in that, In step S120, a deep learning network with a cross-modal attention mechanism is used to fuse the multi-source sensory data. A dual-stream encoder structure is used to process visible light images and short-wave infrared images respectively. A convolutional backbone network is used to extract image features and generate multi-level visible light feature map sequences and short-wave infrared feature map sequences. By connecting to a cross-modal attention gating unit (CMAG), the short-wave infrared feature map is... Generate the query matrix using linear projection. Visible light feature map Generate key matrix AND-value matrix : ; in, , , They represent the first Learnable projection weight matrices of the query matrix, key matrix, and value matrix in the layer; Calculate the cross-modal attention weight matrix: ; in, Represents the dimension of the key vector, used as a scaling factor; Represents the pixel-level correlation matrix; This represents the activation function that is normalized along the row direction. Fusion features are obtained through residual connections: ; Multi-level fusion features Input the decoder path sequentially, and combine the skip connections of the corresponding level on the encoder side to restore spatial details and generate a two-dimensional patched region segmentation map; Construct a bilinear spatial attention map, calculate cross-modal correlations, and generate a spatial weight mask to weight the fused features element by element.
4. The method according to claim 3, characterized in that, After generating the two-dimensional patch region segmentation map, modal confidence mapping is performed on the segmentation results for each spatial location. Extracting the gradient variance of visible light feature maps Transmission intensity compared to shortwave infrared characteristic map Input the multilayer perceptron network to predict the modality propensity factor: ; in, This represents a fully connected network containing two hidden layers; The modality tendency factors at all locations constitute a modality confidence map, which forms a bundled data pair with the two-dimensional patched partition map.
5. The method according to claim 4, characterized in that, Step S130 involves spatially registering the fused two-dimensional image data with the three-dimensional point cloud data, including: Using camera intrinsic matrix and the calibrated extrinsic rotation matrix With translation vector The set of positive pixels in the two-dimensional patch segmentation map Back-projected into the camera's view frustum, generating an initial set of 3D candidate points. ,in Indicates the total number of positive pixels; For the initial three-dimensional candidate point set With the three-dimensional point cloud Perform weighted iterative nearest-point registration and construct the weighted objective function: ; in, This represents the rotation matrix to be optimized. This represents the translation vector to be optimized; Indicates the first The weighting coefficients of each point cloud point; Represents point cloud points After transformation, in the candidate point set The nearest neighbor matching point in ; Represents the regularization coefficient; This represents a subset of point indices corresponding to low-confidence regions in a point cloud, where ; Point Surface normal vector; Minimize the weighted objective function and output the optimal transformation.
6. The method according to claim 5, characterized in that, In step S130, the step of constructing a geometric model based on the registration result further includes: The optimal transformation is applied to all positive pixels in the two-dimensional patched region segmentation map, and the region type label and modal confidence are mapped to the corresponding points in the three-dimensional point cloud. The semantically enhanced point cloud is input into the semantic segmentation network. The coordinates, normals, curvatures and modal confidence of each point are concatenated to form the input feature vector. The geometric semantic label of each point is inferred through a confidence-weighted aggregation method. Reconstruct a triangular mesh model based on point clouds with geometric semantic labels; Adjust the octree partitioning depth based on the geometric semantic labels of each point.
7. The method according to claim 6, characterized in that, In step S140, the matching process parameter combinations are retrieved from a preset knowledge graph based on the local geometric features of each path point in the geometric model, including the following steps: The triangular mesh model is discretized with equal arc lengths, and the arc length interval between adjacent path points is dynamically adjusted according to the surface curvature to generate an ordered spatial path point sequence. For each path point, extract the geometric feature vector within its local neighborhood; Constructing a knowledge graph of spraying processes , where the set of nodes Each node in Characterize a typical geometric pattern and associate it with a recommended process parameter vector. and confidence scale edge set Each edge in Nodes with similar geometric patterns are connected and edge weights characterize the reliability of empirical transfer. For the current query geometric feature vector, it is mapped to the embedding space of the knowledge graph through an embedding projection layer: A graph attention network is used to calculate the similarity score between the query embedding and the embeddings of each knowledge graph node; Normalized attention weights are assigned to all nodes, and the recommendation parameters of adjacent knowledge nodes are weighted and aggregated by combining the confidence of each node and the confidence of the semantic label corresponding to the current path point.
8. The method according to claim 7, characterized in that, After obtaining the initial values of the process parameters at each path point, geodesic smoothing interpolation of the process parameters is performed on the continuous path to model the spraying process parameter space as a five-dimensional non-Euclidean manifold. Geodesic interpolation is performed on the process parameters between adjacent path points: ; in, Indicates the arc length parameter. , They represent the first With the The arc length coordinates of each path point and Representing manifolds respectively Exponential and logarithmic mappings on; Trajectory of path points Spray gun posture and the five-dimensional process parameter sequence after smooth interpolation By aligning with a unified timestamp axis, it is encapsulated into a digital spraying instruction set.
9. The method according to claim 1, characterized in that, Step S150, which involves inputting the digital spraying instruction set into the digital twin simulation environment for full-process simulation, includes: The simulation engine embeds a response surface database, which simulates and models the coating formation process. When the digital spraying instruction set is input, the simulation engine uses real-time table lookup and interpolation based on the process parameters of each path point to predict the amount of paint film deposited at that location. ; in, Represents the response surface function. Representing path points The process parameter vector at the location; The overall coverage uniformity index is calculated cumulatively along the entire trajectory. With average layer thickness ,in The standard deviation is calculated to generate a predicted coverage map; after passing the threshold verification, the instruction set is unlocked and sent to the physical control system. Step S160, which involves continuously collecting motion state parameters of the robotic arm during real-time execution and keeping them synchronized with the digital twin, includes: Receive multi-source feedback data streams, perform global clock alignment and state interpolation compensation, and form a synchronized state vector: ; in, express The coordinates of the corresponding position projected onto the workpiece surface by the tip of the spray gun at all times are recorded; the processed synchronous state sequence is injected into the digital twin in real time to drive the virtual model to evolve synchronously with the physical system; When the paint film thickness deviation exceeds the preset tolerance threshold, the look-ahead compensation mechanism is activated, and the incremental optimization problem of process parameters for the remaining path segment is constructed using the measured thickness sequence of the currently coated section as boundary conditions: Solve the optimization problem to generate a corrected sequence of process parameters.
10. The method according to claim 9, characterized in that, The input conditions, context, execution strategy, and output results of this task are constructed into structured quadruples training samples: ; in, This represents the summation vector of geometric features of the entire repaired area; Represents an environmental parameter vector; This represents the actual sequence of process parameters executed. This indicates the overall quality score; Periodically initiate an incremental graph neural network fine-tuning task to locally update the knowledge graph node embedding vectors with the goal of minimizing the quality prediction loss: ; in, Indicates sample The matched knowledge graph nodes. , These represent the embedding vectors of the node before and after the update, respectively. This indicates the prediction of the overall quality score based on node embedding. The supervised loss function, This represents the model's predicted score. Indicates the learning rate. This represents the gradient operator with respect to the embedded vector. This represents all learnable parameters of the graph neural network. This represents the weight decay coefficient; The updated embedding vectors are synchronously loaded into the graph attention network.
