A method, system and storage medium for training and verifying a visual model of vehicle interior panel assembly defects

By constructing an auxiliary line identification dataset and a dual-branch shared backbone model, the interpretability and traceability issues of the visual verification model for vehicle assembly defects were resolved, enabling auditable defect detection, improving detection efficiency and accuracy, and meeting the quality management requirements of the automotive industry.

CN123160488APending Publication Date: 2026-11-24SHANGHAI DAIMAY AUTOMOTIVE PARTS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611337347.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-31
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing visual inspection models for vehicle assembly defects lack interpretability and traceability, making it difficult to meet the automotive industry's requirements for traceability and verifiability of inspection results.

Method used

Construct an auxiliary line label dataset, draw auxiliary line labels on the mapped image using a multimodal model, combine a defect identification model with a dual-branch shared trunk, output defect judgment results and predicted auxiliary line labels, perform deviation calculation, and generate audit logs.

Benefits of technology

It achieves auditability and traceability in vehicle assembly defect detection, significantly reduces training data annotation costs, improves model deployment efficiency and detection accuracy, and meets the quality management system requirements of the automotive industry.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160488A_ABST
    Figure CN123160488A_ABST
Patent Text Reader

Abstract

This invention relates to the field of industrial machine vision, providing a method, system, and storage medium for training and verifying a visual model of assembly defects in vehicle interior panels. The method includes: annotating digitally described feature structures of the target part in a virtual space; acquiring a pre-annotated physical image, mapping it to the virtual space, inputting it into a multimodal model, drawing auxiliary line markers, and constructing an auxiliary line marker dataset for model training; constructing a dual-branch shared backbone network, training it with a weighted sum of defect judgment loss and auxiliary line prediction loss to obtain a defect recognition model and deploying it at the edge; synchronously outputting defect judgment results and predicted auxiliary lines through online inference, calculating deviations based on feature structure types, prompting for review when thresholds are exceeded, and encapsulating the data into a database to form an audit log. This application improves the auditability and traceability of automotive assembly defect verification, reduces annotation costs, and achieves adaptive model evolution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of industrial machine vision, specifically to a method, system, and storage medium for training and verifying a visual model of assembly defects in vehicle interior panels. Background Technology

[0002] Vehicle assembly quality directly affects the safety, reliability, and lifespan of the entire vehicle, and accurate detection of assembly defects is a crucial step in the automobile manufacturing process. With the rapid development of deep learning technology, automated defect detection methods based on visual models have been widely applied in the field of assembly inspection.

[0003] Currently, a typical technical solution for visual verification of vehicle assembly defects is as follows: First, images of assembled parts are collected, and technicians manually label the defect types in the images, such as missing parts, positional misalignment, assembly defects, and normal samples, to construct a labeled training dataset; second, an end-to-end deep learning visual model is trained using the labeled data, enabling the model to learn the mapping from input images to assembly quality judgment results; finally, the trained model is deployed to the production line to perform forward inference on the online collected assembly images and output assembly OK / NG judgment conclusions.

[0004] However, the above-mentioned existing technical solutions have the following problems in practical applications: The reasoning process of the model exhibits "black box" characteristics, lacking interpretability and traceability. Existing end-to-end models only output the final judgment conclusion, failing to provide the basis for the judgment or intermediate reasoning evidence. When the model makes a misjudgment or omission, engineers find it difficult to trace the reason for the model's conclusion, and cannot distinguish whether the error is caused by abnormal image quality, changes in lighting conditions, batch differences in parts, or defects in the model itself. This problem is particularly prominent in the automotive industry, where quality management systems such as IATF 16949 have put forward clear requirements for the traceability and verifiability of inspection results in the manufacturing process, which existing technical solutions struggle to meet. Summary of the Invention

[0005] The purpose of this application is to overcome the shortcomings of the prior art and provide a visual model training and verification method, system and storage medium for assembly defects of vehicle interior panels, which can realize the verification of assembly defects of machine vision model with auditability, traceability and continuous optimization capabilities.

[0006] Firstly, this application provides a visual model training and verification method for assembly defects in vehicle interior panels, the technical solution of which includes the following steps: S100, the steps for constructing the auxiliary line label dataset specifically include: S110, For the target part to be inspected, according to the assembly design specifications, determine the feature structure of the target part in the perfect assembly state, and mark the feature structure in the virtual space to form a digital description of the feature structure. S120: Obtain the physical image of the actual assembly, pre-annotate whether the physical image is a complete assembly and the type of defect, and perform coordinate mapping of the physical image with respect to the virtual space through the homography matrix to obtain the mapped image; S130, Input the mapped image into the multimodal model, establish an auxiliary line label layer on the mapped image, and draw auxiliary line labels describing the feature structure on the auxiliary line label layer based on the digital description of the feature structure. S140, organize all physical images, pre-annotated data and auxiliary line labels into an auxiliary line label dataset; S200, the defect identification model training steps, specifically include: S210, Load the auxiliary line identifier dataset and divide it into a training set, a validation set, and a test set; S220, Construct a defect identification model learning network with two branches sharing a backbone. The two branches are a defect judgment branch and an auxiliary line prediction branch. Construct a joint loss function by weighted summation of defect judgment loss and auxiliary line prediction loss. Train the defect identification model learning network to obtain the defect identification model. S230 evaluates the defect identification model based on the test set and outputs the defect identification model with the qualified defect identification rate for edge deployment; S300, online identification and audit feedback steps, specifically include; S310 performs forward inference on assembly images captured on the production line based on a defect recognition model, and outputs defect judgment results and predicted auxiliary line markings. S320: Read the digital description of the feature structure of the target part to be inspected, predict the auxiliary line marking based on the type of feature structure, calculate the deviation of the digital description of the feature structure, generate a deviation index, and prompt a review when the deviation index exceeds the threshold. S330 encapsulates the assembly images, predicted auxiliary line markings, and deviation indicators in a structured manner and stores them in the database to form an audit log.

[0007] This application transforms the abstract visual model assembly quality judgment into quantifiable geometric deviation calculation by constructing auxiliary line markers, providing an auditable and traceable defect detection mechanism. This meets the mandatory requirements of the automotive industry for traceable and verifiable inspection processes, and can significantly reduce the labeling cost of training data, improve data labeling efficiency, shorten the model deployment cycle, and enhance the engineering practicality of the vehicle assembly defect visual verification system.

[0008] Preferably, the types of the target parts to be inspected include buckles, bolts, and trim strips; The geometry of the buckle is a polygon formed by the outer contour of the buckle, and its feature structure includes the position of the feature points of the outer contour polygon. The geometry of the bolt is the circumcircle of the bolt head, and its characteristic structure includes the ideal center position, ideal radius, and ellipticity of the circumcircle of the bolt head. The characteristic structure of the trim strip is an ordered set of points on the edge of the trim strip, and its characteristic structure includes the trajectory of the ordered set of points.

[0009] By instantiating the feature structure for specific part types in the vehicle interior panel assembly scenario, the geometric elements of the part feature structure are determined. This ensures the physical interpretability of the auxiliary line annotations during the model training phase and the auditability of defect identification during assembly inspection in the subsequent model application phase at the engineering implementation level.

[0010] Preferably, in S130, an auxiliary line label layer is established on the mapped image using a multimodal large model reference feature structure, specifically including the following steps: S131, Construct a prompt word template for feature structure and auxiliary line identification, including a description of the geometry type and feature structure of the target part; S132, embed a mapped image containing pre-drawn auxiliary line identifiers as a visual reference example, wherein the pre-drawn auxiliary line identifiers include spatial truth parameters of the auxiliary line identifiers corresponding to the feature structure of the target part to be inspected; S133, input the prompt word template and visual reference example into the multimodal model to perform forward inference, create an auxiliary line label layer, and generate auxiliary line labels corresponding to the feature structure in the auxiliary line label layer; S134, calculate the confidence score of the generated auxiliary line identifier; if the confidence score is greater than or equal to the threshold, the auxiliary line identifier is determined to be valid and added to the database; if the confidence score is less than the threshold, the auxiliary line identifier is determined to be a low-confidence sample, and is pushed for review to determine whether to add it to the database.

[0011] By combining prompt word templates with embedded visual reference examples, precise guidance for the reasoning behavior of multimodal large models is achieved, ensuring a clear correspondence between the auxiliary line labels output by the model and the digital description of the feature structure. At the same time, through the confidence score and threshold comparison mechanism, quality control of the model annotation results is achieved, effectively filtering low-confidence samples and ensuring the reliability of the data entering the database.

[0012] Preferably, in S134, the confidence score of the generated auxiliary line marker is calculated by calculating the cosine similarity of the feature vectors of the generated auxiliary line marker and the pre-drawn auxiliary line marker in the visual reference example in S132, and then normalizing the calculation result to obtain the confidence score.

[0013] Cosine similarity, as a mathematical metric for measuring the consistency of the directions of two feature vectors, has good computational efficiency. It is used to illustrate the degree of geometric consistency between the auxiliary line labels generated by the model and the reference example. The higher the degree of consistency, the more reliable the labeling quality.

[0014] Preferably, the proportion of low-confidence samples to the total samples is calculated in real time. If it exceeds the threshold, the process returns to S131 to rebuild the prompt word template, and then executes S132 to provide a new visual reference example. If the proportion of low-confidence samples to the total samples after adjustment still exceeds the threshold, the process returns to S110 to redetermine the feature structure of the target part in the virtual space under the perfect assembly state.

[0015] When the proportion of low-confidence samples exceeds the threshold, the system automatically backtracks to S131 to rebuild the prompt word template and update the visual reference example, forming a closed-loop optimization of annotation quality. If the adjustment still fails to meet the standard, it further backtracks to S110 to redefine the feature structure, building a bottom-up quality assurance link to ensure the long-term stable operation and continuous improvement capability of the automatic annotation system.

[0016] Preferably, in S200, the defect recognition model learning network adopts a lightweight convolutional neural network, including one of MobileNetV3 or EfficientNet-Lite; the defect determination branch outputs the defect category probability after global average pooling and fully connected layers; the auxiliary line prediction branch outputs an auxiliary line probability heatmap with the same resolution as the auxiliary line label layer after transposed convolution upsampling, and the auxiliary line probability heatmap represents the probability that each pixel belongs to the auxiliary line label.

[0017] The use of a lightweight backbone network enables the model to be deployed on edge computing devices on the production line, meeting the computing power constraints of real-time inference; while the output format of the auxiliary line probability heatmap retains the spatial location information of the auxiliary line markers, providing a pixel-level accurate prediction basis for subsequent deviation calculation.

[0018] As a preferred embodiment, in S300, the method for calculating the deviation of the auxiliary line identifier based on the type of feature structure in relation to the digital description of the feature structure, and generating the deviation index, is as follows: For buckles, the deviation between the actual outer contour and the theoretical outer contour of the buckle is calculated as the deviation index. For bolts, the Euclidean distance between the actual center and the theoretical center of the bolt head, the radius deviation, and the ellipticity deviation are used as deviation indicators. For the trim, the Hausdorff distance between the ordered point set and the theoretical point set is used as the deviation index.

[0019] Different types of assembly defects have different geometric failure modes. By designing differentiated deviation indices that correspond one-to-one with the failure modes, the deviation indices can accurately reflect the actual assembly state of various parts, avoiding the inability to effectively detect defect types and improving the targeting and accuracy of the detection system. As a preferred embodiment, in S320, the number of samples that fail the review is accumulated. Once the accumulated amount is reached, incremental training is started. The samples that fail the review are used as the physical images of the actual assembly. An incremental auxiliary line identification dataset is obtained, and incremental training is performed on the defect identification model.

[0020] This mechanism enables the defect identification model to continuously optimize. When new defect patterns emerge in the production line environment or equipment performance and data distribution drift due to long-term operation, the samples that fail the review allow the model to collect complex samples outside the current knowledge boundary. Incremental training using these accumulated samples allows the model to specifically fill in knowledge gaps and achieve performance iteration.

[0021] Secondly, the visual model training and verification system for assembly defects of vehicle interior panels provided in this application adopts the following technical solution, including: The auxiliary line identification dataset construction module is used to identify auxiliary lines on the physical image of actual assembly based on a multimodal model, and obtain the auxiliary line identification dataset. The defect identification model training module is used to construct a dual-branch shared backbone defect identification model learning network with a defect judgment branch and an auxiliary line prediction branch. Based on the auxiliary line identification dataset, the defect identification model is trained and deployed at the edge. The online recognition module includes a machine vision submodule for capturing assembly images on the production line and an edge computing submodule for online recognition. The edge computing submodule is used to output defect judgment results and predicted auxiliary line markings. The audit feedback module is used to calculate the deviation of the predicted auxiliary line identifiers from the digital description of the feature structure based on the type of feature structure, generate a deviation index, and prompt a review when the deviation index exceeds a threshold; it is also used to structure and encapsulate the assembly image, the predicted auxiliary line identifiers, and the deviation index, and store them in the database to form an audit log.

[0022] Thirdly, this application provides a computer-readable storage medium storing a computer program thereon. The technical solution adopted is that when the computer program is executed by a processor, it implements the steps in the above-mentioned visual model training and verification method for assembly defects of vehicle interior panels.

[0023] In summary, this application includes at least one of the following beneficial technical effects: 1. Significantly improves auditability and traceability. This application introduces an auxiliary line identifier dataset with auxiliary line markings as training data, and incorporates an auxiliary line prediction branch during the defect identification model training phase. This allows the model to simultaneously output defect judgment results and predicted auxiliary line identifiers during online inference. Simultaneously, the online identification and audit feedback steps quantify the deviation between the predicted auxiliary line identifiers and the digital description of the feature structure, generating deviation indicators and forming audit logs. Auditors can quickly locate the causes of anomalies based on the auxiliary line identifiers and deviation indicators, meeting the automotive industry's quality management system requirements for process traceability and verifiability.

[0024] 2. Significantly reduces training data annotation costs. This invention maps physical images to a virtual spatial coordinate system using a homography matrix, digitally describes the feature structure as a geometric benchmark, and automatically draws auxiliary lines on the mapped image using a multimodal model, replacing manual point-by-point annotation. The confidence scoring mechanism only pushes low-confidence samples for manual review, significantly reducing the workload of manual annotation and greatly shortening the data preparation cycle when new parts are deployed.

[0025] 3. Achieving Adaptive and Continuous Model Evolution. This invention incorporates samples that fail the review into the training set for incremental training of the defect identification model. This mechanism enables the model to continuously adapt to environmental drift such as changes in production line lighting and batch variations of parts, without needing to re-collect large amounts of data for retraining, effectively overcoming the problem of poor adaptability of fixed models. Attached Figure Description

[0026] Figure 1 This is a flowchart illustrating a method for training and verifying a visual model of assembly defects in vehicle interior panels, as described in this application. Figure 2 This is a flowchart illustrating step S100 of a visual model training and verification method for assembly defects of vehicle interior panels in an embodiment of this application. Figure 3 This is a flowchart illustrating step S200 of a visual model training and verification method for assembly defects of vehicle interior panels in an embodiment of this application. Figure 4 This is a flowchart illustrating step S300 of a visual model training and verification method for assembly defects of vehicle interior panels in an embodiment of this application. Figure 5 This is a flowchart illustrating step S130 of a visual model training and verification method for assembly defects of vehicle interior panels in an embodiment of this application. Figure 6 A training example diagram for drawing auxiliary line markings for a certain type of snap-fit ​​part in the embodiments of this application; Figure 7This is a schematic diagram of the architecture of a visual model training and verification system for assembly defects of vehicle interior panels according to an embodiment of this application. Detailed Implementation

[0027] This specific embodiment is merely an explanation of this application and is not intended to limit it. After reading this specification, those skilled in the art can make modifications to this embodiment without contributing any inventive step, but such modifications are protected by patent law as long as they are within the scope of this application.

[0028] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. It should be noted that in the optional embodiments of this application, the object information and other related data involved require the permission or consent of the object when the embodiments of this application are applied to specific products or technologies, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant countries and regions. That is to say, if the embodiments of this application involve data related to the object, it needs to be obtained with the authorization and consent of the object, the authorization and consent of the relevant departments, and in compliance with the relevant laws, regulations, and standards of the country and region. If personal information is involved in the embodiments, the acquisition of all personal information requires the consent of the individual. If sensitive information is involved, the separate consent of the information subject is required, and the embodiments also need to be implemented with the authorization and consent of the object.

[0029] The embodiments of this application will now be described in further detail with reference to the accompanying drawings. Example 1:

[0030] Please see Figure 1 This application discloses a visual model training and verification method for assembly defects of vehicle interior panels, which includes three stages: constructing an auxiliary line label dataset, training a defect recognition model, and online recognition and audit feedback.

[0031] S100, For the steps to construct the auxiliary line label dataset, please refer to [link / reference]. Figure 2 Specifically, it includes the following steps.

[0032] S110: For the target part to be inspected, based on the assembly design specifications, determine the feature structure of the target part in the perfect assembly state, and annotate the feature structure in virtual space to form a digital description of the feature structure.

[0033] Specifically, the target part to be inspected refers to the part whose assembly quality needs to be verified during the assembly of vehicle interior panels. A perfect assembly state is defined as the target part being installed according to the assembly design specifications and free of assembly defects. A feature structure is a sub-region or geometric element of a part in a perfect assembly state that has a clear geometric meaning or assembly constraint attribute. Virtual space refers to an abstract geometric coordinate system independent of the actual images captured by the production line camera. It can be a three-dimensional spatial coordinate system based on the CAD model or a two-dimensional planar coordinate system after projection transformation. In this embodiment, it is preferable to project the three-dimensional CAD model onto the imaging plane to obtain a two-dimensional theoretical contour, thus simplifying mapping calculations. The virtual space provides a unified geometric reference framework for the definition of feature structures. The coordinate definition of feature structures is independent of factors such as the spatial resolution of the actual physical images captured on the production line, thereby ensuring the stability and reproducibility of subsequent auxiliary line annotations. The digital description of the feature structure is predefined in this virtual space, providing a unified geometric benchmark for the automatic generation of subsequent auxiliary line markings and online deviation auditing. The digital description of the feature structure is obtained by process engineers based on their assembly design specifications, such as CAD models, BOM tables, tolerance design documents, etc., extracting the coordinates, dimensions, angles and other parameters of the key geometric elements on the part that have assembly constraints, and encoding and storing them in the form of unique identifiers (ID) combined with key-value pairs of spatial attributes.

[0034] More specifically, in the embodiments of this application, the types of target parts to be inspected include clips, bolts, and trim strips. Vehicle interior panel assembly involves various types of fasteners and decorative parts. Clips are used for snap-fit ​​fixing between the interior panel and the body sheet metal, bolts are used for threaded connections between the interior panel and the body frame, and trim strips are used for decoration and masking of the interior panel edges. These three types of parts differ significantly in geometry and assembly constraints; therefore, it is necessary to define the geometric type and description parameters of their feature structures separately. This ensures that the digital description of the feature structures has clear geometric semantics, facilitating subsequent auxiliary line annotation and deviation calculations processed separately according to part type.

[0035] It should be noted that the part types shown above, including the subsequent parameter and algorithm configurations for those part types, are merely illustrative examples to facilitate understanding of the technical solution of this application by those skilled in the art, and do not constitute a limitation on the scope of protection of this application. Those skilled in the art will understand that changing the specific part type will not exceed the scope of the technical solution of this application, and that parameters and algorithms can be configured based on the design concept of this application according to the type of the target part to be inspected.

[0036] For a snap fastener, its geometry is a polygon formed by its outer contour, and its characteristic structure includes the positions of feature points on the polygonal outline. The key to a snap fastener's proper assembly lies in whether the claws pass through the sheet metal holes and fully open, or whether the male and female snap fasteners are fully engaged. In virtual space, the shape of the closed contour represents its opening deformation or engagement boundary. The positions of the feature points are represented by the coordinates of the polygon's vertices, which are used to connect the feature points sequentially to determine the outer contour polygon, forming a digital description of the snap fastener's characteristic structure.

[0037] For bolts, the bolt geometry is defined by the circumcircle of the bolt head. Its characteristic structure includes the ideal center position, ideal radius, and ellipticity of the circumcircle. Ellipticity reflects the degree of deviation between the circumcircle and the ideal circle. The bolt head appears as an approximately circular outline in the image. The ideal center position and ideal radius are determined by the nominal geometric dimensions of the bolt head in the assembly design specifications, used to verify the bolt's assembly position and bolt type. Due to factors such as bolt assembly misalignment or manufacturing tolerances, the ellipticity of the bolt head will deviate from the ideal circle. Incorporating ellipticity into the digital description of the characteristic structure allows for an accurate representation of the bolt head's installation perfection, providing a geometric basis for subsequent deviation calculations in bolt installation verification.

[0038] For trim strips, the characteristic structure of the trim strip is an ordered set of points along its edge, including the trajectory of this ordered set of points. The ordered set of points is obtained by sampling along the extension direction of the trim strip at preset intervals. Trim strips are typically long strip-shaped parts extending along the edge of the interior trim panel. Their assembly quality is mainly reflected in whether the edges fit snugly and whether there is any warping or misalignment. In virtual space, the trim strip edge is sampled along its extension direction at preset intervals, resulting in a set of ordered points. These points together constitute the trajectory of the trim strip edge. The preset interval can be determined based on the degree of curvature change of the trim strip and the required detection accuracy. The sampling interval can be appropriately reduced in sections with large curvature changes and appropriately increased in sections with gentle curvature. The trajectory of the ordered set of points retains the continuous direction information of the trim strip edge while also facilitating storage and computation in the form of a discrete point set.

[0039] The digital descriptions of the feature structures of all three types of parts are stored in a structured manner using unique identifiers and their spatial attributes. The unique identifiers distinguish different feature structure instances; for example, buckles in different locations on the same interior panel can be assigned different identifiers. The spatial attributes contain corresponding descriptive content based on the part type. Through the structured storage of unique identifiers and spatial attributes, the subsequent auxiliary line annotation stage can call the corresponding geometric priors based on the part type, and the deviation calculation stage can select the corresponding deviation index calculation method based on the feature structure type, thus achieving separate processing according to part type.

[0040] S120: Obtain the physical image of the actual assembly, pre-annotate whether the physical image is a complete assembly and the type of defect, and perform coordinate mapping of the physical image with respect to the virtual space through the homography matrix to obtain the mapped image.

[0041] Specifically, physical images are obtained by photographing the assembled interior panels. Preliminary annotations are made to identify assembly defects and their specific types in the target parts within the physical images, such as misaligned clips, misaligned bolts, and raised trim strips. Then, a homography matrix is ​​used to establish a mapping between the physical image pixel coordinate system and the virtual space coordinate system, creating a spatial correspondence between the actual captured image and the digitally described feature structures in the virtual space. The homography matrix can be solved by placing calibration references with known spatial coordinates in the shooting scene, or it can be estimated based on the known geometric dimensions of the parts themselves. If auxiliary lines are directly annotated on the physical image without using a homography matrix for coordinate mapping, a lack of unified geometric reference between the auxiliary line markings and the virtual space feature structures will occur under different shooting angles and distances, making it impossible to calculate deviations in the same coordinate system later.

[0042] S130, input the mapped image into the multimodal model, establish an auxiliary line label layer on the mapped image, and draw auxiliary line labels describing the feature structure on the auxiliary line label layer based on the digital description of the feature structure.

[0043] Specifically, a multimodal model is a visual-language model capable of simultaneously processing image and text input. It can employ a pre-trained visual-language model based on the Transformer architecture, such as variants of the CLIP or LLaVA series, which possess visual localization capabilities. After homography matrix transformation, the mapped image is placed under the same geometric reference as the digital description of the feature structure in virtual space. The multimodal model establishes an auxiliary line label layer on this mapped image and draws corresponding auxiliary line labels on the layer according to the geometric type and spatial attributes defined in the digital description of the feature structure. The auxiliary line label layer maintains the same spatial resolution as the mapped image. The auxiliary line labels are presented in the form of lines, curves, polygonal contours, etc., to visually indicate the theoretical position and shape of the feature structure in the image. Through this method, a spatial correspondence is established between the actual captured image and the theoretical feature structure, and the auxiliary line labels become the direct basis for subsequent deviation calculations.

[0044] S140 organizes all physical images, pre-annotated data, and auxiliary line labels into an auxiliary line label dataset. Each sample in the auxiliary line label dataset contains at least a physical image, pre-annotated data, and a corresponding auxiliary line label layer. The dataset can be indexed by vehicle model, part type, and workstation for easy traceability during subsequent training and auditing.

[0045] The auxiliary line label dataset obtained after S100 is used as S200, which is the data source for training the defect recognition model in the defect recognition model training step. Please refer to [link to relevant documentation]. Figure 3 Specifically, it includes the following steps.

[0046] S210: Load the auxiliary line label dataset and divide it into training, validation, and test sets. The training set is used to optimize the parameters of the defect recognition model's learning network. The validation set is used to monitor the model's convergence and adjust hyperparameters during training. The test set is used to independently evaluate the model after training is complete.

[0047] S220: Construct a defect identification model learning network with two branches sharing a backbone. The two branches are the defect judgment branch and the auxiliary line prediction branch. Construct a joint loss function by weighted summation of the defect judgment loss and the auxiliary line prediction loss. Train the defect identification model learning network to obtain the defect identification model.

[0048] Specifically, the lightweight convolutional neural network used in the defect identification model learning network consists of a shared backbone network and two parallel output branches. Either MobileNetV3 or EfficientNet-Lite can be used. Lightweight convolutional neural networks significantly reduce the number of network parameters and computational cost while maintaining a certain level of feature extraction capability, making them suitable for edge deployment.

[0049] The defect determination branch outputs defect category probabilities after global average pooling and a fully connected layer. Specifically, the shared backbone network extracts features from the input image layer by layer, outputting a set of spatially scaled feature maps. The defect determination branch first performs global average pooling on the feature maps output by the backbone network, compressing each feature map into a scalar in spatial dimension, thus obtaining a feature vector with the same dimension as the number of channels in the feature map. Global average pooling does not introduce additional parameters and has a natural adaptability to changes in the spatial size of the input feature map, which helps reduce the risk of overfitting. The feature vector is then input into the fully connected layer, which maps the feature vector to an output vector with the same dimension as the number of defect categories. After processing with a normalized exponential function, the probability distribution of each defect category is obtained. Defect categories can include incomplete assembly, misaligned buckles, misaligned bolts, and raised trim strips, etc. The specific number of categories is determined based on the actual defect types that need to be verified on the production line.

[0050] The auxiliary line prediction branch, after upsampling via transposed convolution, outputs an auxiliary line probability heatmap with the same resolution as the auxiliary line label layer. This heatmap represents the probability that each pixel belongs to an auxiliary line label. Specifically, transposed convolution is a learnable upsampling operation that progressively expands the spatial size of the feature map by inserting zero values ​​between feature map elements and performing convolution operations. Simultaneously, learnable convolution kernel parameters are used to transform features during the upsampling process. The auxiliary line prediction branch can contain one or more transposed convolutions. Each transposed convolution layer can be followed by batch normalization and a non-linear activation function to enhance the branch's expressive power. After upsampling via transposed convolution, the auxiliary line prediction branch outputs an auxiliary line probability heatmap with the same resolution as the auxiliary line label layer. The value of each pixel in the auxiliary line probability heatmap represents the probability that the pixel belongs to an auxiliary line label. During the training phase, the auxiliary line probability heatmap is compared pixel by pixel with the ground truth values ​​of auxiliary line identifiers in the auxiliary line identifier dataset to calculate the auxiliary line prediction loss. During the inference phase, the auxiliary line probability heatmap is subjected to threshold segmentation and contour extraction to obtain the geometric parameters of the predicted auxiliary line identifiers, including but not limited to the outer contour vertex sequence, center coordinates, radius, and ellipticity parameters.

[0051] In this embodiment, the defect determination branch and the auxiliary line prediction branch share the feature representation extracted by the same backbone network. The backbone network only needs to perform one forward computation, and the two branches each perform lightweight task-specific processing based on the shared features. The global average pooling and fully connected layer parameters of the defect determination branch are extremely small, and the transposed convolutional layer parameters of the auxiliary line prediction branch are also much smaller than those of the backbone network. Therefore, the overall computational cost of the network is mainly determined by the shared backbone, and the increase in computation compared to a single-task network is limited. On edge computing devices, the shared backbone design allows the defect determination result and the predicted auxiliary line identifier to be obtained simultaneously in a single forward inference, without having to run two independent models, thus reducing inference latency and memory consumption.

[0052] It is particularly important to note that the auxiliary line prediction branch forces the backbone network's feature representations to align with manually defined geometric structures during training. The presence of the auxiliary line prediction loss in the joint loss function means that the backbone network must learn not only features useful for defect determination but also geometric features capable of supporting accurate prediction of auxiliary line identifiers during training. Since the ground truth of auxiliary line identifiers originates from the digital description of the feature structure, representing a manually defined geometric benchmark, the training objective of the auxiliary line prediction branch is essentially to ensure that the backbone network's feature representations contain spatial information consistent with the geometric shape of the feature structure. This constraint ensures that the feature representations learned by the backbone network no longer merely serve as a black-box mapping for defect determination but also simultaneously encode structured information with explicit geometric semantics, providing a structural foundation for the synchronous output of visualized auxiliary line identifiers during the online inference phase. When the defect identification model is deployed on the production line, the auxiliary line probability heatmap output by the auxiliary line prediction branch and the defect category probability output by the defect determination branch together constitute a complete output of an inference, providing auditable intermediate evidence to support the determination conclusion.

[0053] S230 evaluates the defect recognition model based on the test set and outputs defect recognition models that meet the defect recognition rate standards for edge deployment. Meeting the defect recognition rate standards means that the defect recognition model's accuracy, recall, and other metrics on the test set meet preset deployment criteria. The trained defect recognition model is then deployed to edge computing devices on the production line to prepare for real-time online assembly defect detection based on production rhythm.

[0054] S300, Online Identification and Audit Feedback Procedures. Please refer to [link / reference]. Figure 4 Specifically, it includes the following steps.

[0055] S310 performs forward inference on assembly images captured on the production line based on a defect recognition model, simultaneously outputting defect determination results and predicted auxiliary line identifiers. During mass production, assembly images captured on the production line are directly input into the defect recognition model deployed on an edge computing device. The model performs one forward inference step, with the defect determination branch outputting the defect determination result and the auxiliary line prediction branch outputting the predicted auxiliary line identifiers. The predicted auxiliary line identifiers are generated synchronously with the defect determination result, providing visual intermediate evidence to support the determination conclusion.

[0056] S320: Reads the digital description of the feature structure of the target part to be inspected. Based on the type of feature structure, it calculates the deviation of the predicted auxiliary line identifiers from the digital description of the feature structure, generates a deviation index, and prompts for review when the deviation index exceeds a threshold. The deviation calculation uses the digital description of the feature structure as a geometric reference, quantitatively comparing the predicted auxiliary line identifiers with the theoretical geometric structure defined in the digital description of the feature structure to generate the deviation index. The deviation index is used to measure the degree of deviation between the predicted auxiliary line identifiers and the theoretical feature structure. When the deviation index exceeds a preset threshold, it indicates that the assembly state of the sample may be abnormal, and the system prompts for review.

[0057] The following is an exemplary description of the deviation calculation for the three types of target parts to be inspected: buckles, bolts, and trim strips.

[0058] For snap fasteners, the overlap deviation between the actual and theoretical outer contours is calculated as a deviation index. Snap fasteners achieve engagement and locking through the elastic deformation of the male and female latches. When the fastener is correctly installed, the latches fully open after passing through the sheet metal mounting holes, and its outer contour appears as a closed polygon with a specific shape in the image. However, when the fastener is not correctly engaged, such as when the latches do not fully pass through the mounting holes, the male and female latches are misaligned, or the fastener body is skewed, its outer contour will undergo corresponding geometric deformation. Insufficient insertion depth leads to a reduction in the contour area, and skew results in an asymmetrical contour shape. Therefore, by calculating the overlap deviation between the predicted and theoretical contours, the degree of deformation of the snapener's outer contour can be directly quantified. A higher overlap area ratio indicates that the snapener engagement is closer to a perfect assembly state.

[0059] The method for calculating the overlap deviation between the actual and theoretical outer contours of the buckle is as follows: extract the predicted buckle outer contour vertex sequence V. p , and the pre-stored theoretical contour vertex sequence V in the digital description of the feature structure e Calculate the intersection-union ratio (IoU) of the regions enclosed by the two regions, and we have:

[0060] The overlap deviation index is equal to 1 - IoU. The closer the overlap deviation is to 0, the more complete the snap-fit ​​engagement; the larger the deviation, the more serious the deviation of the snap-fit ​​profile from the theoretical shape. When the overlap deviation exceeds a preset threshold, such as 0.15, the system determines that the snap-fit ​​has an assembly defect and sends it for review.

[0061] For bolts, the Euclidean distance between the actual and theoretical centers of the bolt head, radius deviation, and ellipticity deviation are used as deviation indicators. When a bolt is correctly screwed into a threaded hole, its head flange face is parallel to the workpiece surface, appearing as a standard circular projection in the camera's field of view. At this time, the center is in the theoretical position, the radius equals the theoretical value, and the ellipticity is close to 0. When assembly defects occur in the bolt, the above three geometric parameters will change systematically: when the bolt is installed eccentrically, the center shifts relative to the theoretical position; when the bolt is screwed in at an angle, the circular projection degenerates into an ellipse, resulting in a smaller radius and an increased ellipticity; when the bolt is not screwed in at all, a closed circular profile cannot be formed. By simultaneously detecting the deviations in the three dimensions of center position, radius, and ellipticity, various failure modes of bolts can be comprehensively covered.

[0062] Specifically, the bolt deviation is calculated as follows: the predicted point set P of the bolt head outer contour is extracted from the predicted auxiliary line markers. p The center C of the predicted circle is obtained by performing circle fitting on the predicted point set. p and prediction radius R p Meanwhile, ellipse fitting is performed to obtain the major semi-axis a and the minor semi-axis b.

[0063] The Euclidean distance between the center and the predicted center C is... p With respect to the theoretical center C e The Euclidean distance.

[0064] The radius deviation is the predicted radius R. p With theoretical radius R e The absolute value of the difference.

[0065] Ellipticity deviation is the degree to which the ratio of the major semi-axis to the minor semi-axis deviates from 1.

[0066] When any of the above deviation indicators exceeds the corresponding preset threshold, such as a center offset of 2.0 pixels, a radius deviation of 1.5 pixels, or an ellipticity of 0.08, the system determines that the bolt has an assembly defect and pushes it for review.

[0067] For trim strips, the Hausdorff distance between the ordered point set and the theoretical point set is used as the deviation index. The trim strip is a long strip-shaped part, fixed to the body sheet metal surface along the path direction by adhesive backing or several clips. When assembled correctly, its edge trajectory is highly consistent with the theoretical path. When assembly defects occur in the trim strip, such as adhesive backing detachment causing a central bulge, clip failure causing an end lift, or overall displacement, its edge trajectory will deviate from the theoretical path. The Hausdorff distance, as a mathematical tool for measuring the maximum mismatch between two point sets, can capture the maximum deviation distance between the predicted path and the theoretical path. Regardless of where the trim strip deviates, including a central bulge or an end lift, the Hausdorff distance can sensitively reflect this, ensuring that no abnormal position on the path is missed.

[0068] Specifically, the deviation of the trim is calculated by extracting the predicted ordered point set of the trim edge from the predicted auxiliary line markers. , and the theoretical point set pre-stored in the digital description of the feature structure Compare the two and calculate the Hausdorff distance between them:

[0069] This metric measures the maximum deviation between the predicted trim path and the theoretical path. A larger value indicates a more severe local or overall deviation of the trim. When the Hausdorff distance exceeds a preset threshold, such as 4.0, the system determines that the trim has an assembly defect and sends it for review.

[0070] Deviation calculation uses the digital description of the feature structure as a geometric benchmark. This means that the degree of deviation between the predicted auxiliary line markers and the theoretical feature structure is always quantitatively compared in the same virtual space coordinate system, avoiding scale inconsistencies caused by changes in the shooting angle and distance of the physical image. Since the predicted auxiliary line markers are generated on the mapped image, and the mapped image has been mapped to the virtual space coordinate system through a homography matrix, deviation calculation can be performed directly in the virtual space coordinate system without needing to perform coordinate transformations again for each calculation.

[0071] After the deviation index is generated, it is compared with a preset threshold. When the deviation index exceeds the threshold, it indicates that the deviation between the predicted auxiliary line marker and the theoretical feature structure exceeds the normal range, and the assembly state of the sample may be abnormal. The system prompts for review. By comparing the deviation index with the preset threshold, the system can provide independent quantitative audit basis in addition to the defect judgment result, enabling reviewers to quickly determine the degree and location of abnormality based on the specific value of the deviation index.

[0072] The number of samples that fail the review is accumulated. Once the accumulated amount is reached, incremental training is started. The samples that fail the review are used as the physical images of the actual assembly. An incremental auxiliary line identification dataset is obtained, and incremental training is performed on the defect identification model.

[0073] The samples that fail the cumulative review are essentially "difficult samples" that the model struggles to correctly identify outside its current knowledge boundaries. These samples either represent new distribution characteristics of the production line environment or new defect patterns that the model has never seen before. If these samples are not utilized, the model's performance will stagnate at the initial deployment level, unable to adapt to new defect patterns or continuous performance drift in the production line. In the technical solution of this application, the samples that fail the review are used as labeled data and input back into the S200 training process, forming a closed loop of deployment → use → feedback → retraining → redeployment. The samples that fail the review have been manually reviewed and confirmed, and come with accurate defect labels and corrected auxiliary line markers, thus possessing the basic conditions to be used as training data. Incremental training based on these samples allows the model's parameter distribution to be fine-tuned towards the new data distribution, thereby adapting to the new data distribution without completely discarding existing knowledge, achieving continuous learning in industrial visual inspection scenarios.

[0074] S330 encapsulates assembly images, predicted auxiliary line markers, and deviation indicators in a structured manner and stores them in a database to form an audit log. Structured encapsulation refers to organizing assembly images, predicted auxiliary line markers, deviation indicators, and defect judgment results according to a pre-defined data structure, facilitating subsequent querying and traceability. The audit log retains a complete verification record for each assembled product, allowing auditors to quickly locate the cause of anomalies based on auxiliary line markers and deviation indicators, meeting quality traceability requirements. Example 2:

[0075] In this embodiment, the specific process of establishing an auxiliary line marker layer on the mapped image based on the feature structure and drawing the auxiliary line markers in S130 is further elaborated. This step is a key step in realizing the technical solution of this application. Please refer to... Figure 5 Specifically, it includes the following steps.

[0076] S131, Construct a prompt word template for feature structure and auxiliary line identification, including a description of the geometry type and feature structure of the target part.

[0077] Specifically, the cue word template guides the multimodal large model to understand the text input for the auxiliary line annotation task. The template needs to clearly inform the model of the geometric type and specific description of the feature structure of the target part to be annotated, enabling the model to correlate the annotation task with the geometric priors in the digital description of the feature structure. Taking a buckle and a bolt as examples, the cue word template could be described as "Find the center position and circumferential outline of the bolt head's circumcircle in the image, and mark it with a specified color." The specified color in the cue word template is used to distinguish the auxiliary line markers corresponding to different feature structures, facilitating extraction according to feature structure type during subsequent deviation calculation. The quality of the cue word template construction directly affects the multimodal large model's understanding of the annotation task; the clearer the description of the geometric type and feature structure in the template, the higher the accuracy of the model in generating auxiliary line markers.

[0078] S132, embed a mapped image containing pre-drawn auxiliary line identifiers as a visual reference example, the pre-drawn auxiliary line identifiers including spatial truth parameters of the auxiliary line identifiers corresponding to the feature structure of the target part to be inspected.

[0079] Specifically, visual reference examples are manually drawn and verified mapped images containing correct auxiliary line markings. These pre-drawn auxiliary line markings are presented in the visual reference example as lines, curves, or polygonal outlines, carrying spatial truth parameters consistent with the spatial attributes in the digital description of the feature structure. Examples include the vertex coordinates of the snap-fit ​​outer contour polygon, the center coordinates and radius of the bolt head's circumcircle, and the coordinate sequence of the ordered set of points on the trim edge. The purpose of visual reference examples is to provide geometric prior references for large multimodal models, enabling the model to annotate by referring to the shape, position, and direction of the auxiliary line markings in the example, rather than relying solely on textual descriptions to understand the geometry of the feature structure from scratch. There can be one or more visual reference examples. When the geometry of the feature structure varies significantly under different shooting angles, multiple visual reference examples from different angles can be provided to enhance the model's adaptability to geometric changes.

[0080] S133, input the prompt word template and visual reference example into the multimodal model to perform forward inference, create an auxiliary line label layer, and generate auxiliary line labels corresponding to the feature structure in the auxiliary line label layer.

[0081] Specifically, the multimodal model simultaneously receives text-based cue word templates and image-based visual reference examples, creating an auxiliary line label layer on the mapped image through forward inference. This auxiliary line label layer maintains the same spatial resolution as the mapped image, and the model generates auxiliary line labels corresponding to the feature structures on this layer. Since the mapped image has already been mapped to a virtual coordinate system via a homography matrix, the auxiliary line labels generated by the model and the digital description of the feature structures are on the same geometric datum, allowing subsequent deviation calculations to be performed directly within the same coordinate system. The forward inference process of the multimodal model can be understood as the process by which the model, guided by the semantics of the cue word templates and constrained by the geometric priors of the visual reference examples, locates and depicts the feature structures of the target part in the mapped image.

[0082] Please see Figure 6 This is a training example diagram for drawing auxiliary line markings on a certain type of buckle part using the auxiliary line marking drawing method of this embodiment.

[0083] S134, calculate the confidence score of the generated auxiliary line identifier; if the confidence score is greater than or equal to the threshold, the auxiliary line identifier is determined to be valid and added to the database; if the confidence score is less than the threshold, the auxiliary line identifier is determined to be a low-confidence sample, and is pushed for review to determine whether to add it to the database.

[0084] Specifically, the confidence score is used to measure the reliability of auxiliary line labels generated by the multimodal model. Auxiliary line labels with a confidence score at or above a preset threshold indicate that the model has high confidence in their annotation results and can be directly deemed valid and included in the auxiliary line label dataset. Auxiliary line labels with a confidence score below the threshold indicate that the model has insufficient confidence in their annotation results, potentially containing positioning bias or shape depiction errors. These are classified as low-confidence samples and pushed to a manual review queue, where reviewers confirm their inclusion in the database. Through this confidence scoring mechanism, the workload of manual review is concentrated on samples where the model has insufficient confidence, while samples where the model has sufficient confidence can be included without manual intervention, significantly reducing the cost of manual annotation while ensuring annotation quality.

[0085] The method for calculating the confidence score of the generated auxiliary line markers involves calculating the cosine similarity of the feature vectors of the generated auxiliary line markers and the pre-drawn auxiliary line markers in the visual reference example in S132, and then normalizing the result to obtain the confidence score. The cosine similarity of feature vectors measures the closeness of two vectors in direction, with a value ranging from -1 to positive 1. The closer the value is to positive 1, the more consistent the directions of the two vectors. In calculating the confidence score, the generated auxiliary line markers and the pre-drawn auxiliary line markers in the visual reference example are first converted into feature vectors. Feature vectors can be obtained by encoding the geometric parameters of the auxiliary line markers, such as concatenating the geometric information of key point coordinates, line segment direction, curvature, etc., on the auxiliary line markers into a vector, or by using the feature representations of the intermediate layers of a multimodal model as feature vectors. After calculating the cosine similarity between the two feature vectors, the result is normalized to the interval between zero and one to obtain the confidence score. Normalization can be achieved through linear mapping, such as linearly mapping the cosine similarity from negative one to positive one to the interval of zero to one, or through other monotonic mapping methods. Using cosine similarity as the basis for confidence scoring can quantify the geometric consistency between the generated auxiliary line markers and the reference examples. The normalized score can be directly compared with a preset threshold, enabling automated quality screening.

[0086] During the auxiliary line annotation process, the proportion of low-confidence samples to the total samples is calculated in real time. If it exceeds the threshold, the process returns to S131 to rebuild the prompt word template, and then executes S132 to provide a new visual reference example. If the proportion of low-confidence samples to the total samples after adjustment still exceeds the threshold, the process returns to S110 to redetermine the feature structure of the target part in the virtual space under the perfect assembly state.

[0087] The proportion of low-confidence samples to the total samples is a key indicator for measuring the overall quality of auxiliary line annotation. When this proportion exceeds a preset threshold, it indicates that the current prompt template or visual reference example cannot effectively guide the multimodal model to complete the annotation task. The problem may lie in the prompt template's unclear description of the feature structure, or in the significant difference between the pre-drawn auxiliary line markers in the visual reference example and the actual feature structure morphology in the current batch of physical images. In this case, first return to S131 to rebuild the prompt template, adjust the description of the target part's geometric type and feature structure, and then execute S132 to provide a new visual reference example, replacing or supplementing it with a reference image that better matches the features of the current batch of images. If, after the above adjustments, the proportion of low-confidence samples to the total samples still exceeds the threshold, it indicates that the problem may not be at the level of the prompt template or visual reference example, but rather in the systematic deviation between the digital description of the feature structure itself and the actual situation. For example, the feature structure defined in the assembly design specification may differ significantly from the actual part's appearance in the image. In this case, return to S110 to redetermine the feature structure of the target part in the virtual space under a complete assembly state. This fallback mechanism forms a closed-loop control of annotation quality, avoiding persistently low annotation quality due to improper feature structure definition or unreasonable prompt word design, and ensuring that the samples entering the auxiliary line labeling dataset have sufficient annotation reliability.

[0088] This embodiment achieves a closed-loop quality control system for auxiliary line annotation by constructing prompt word templates, embedding visual reference examples, forward inference using multimodal models, filtering confidence scores, and implementing tiered backoff when the proportion of low-confidence samples exceeds a threshold. This reduces the cost of manual annotation while ensuring the annotation quality of the auxiliary line label dataset. Example 3:

[0089] Please see Figure 7 This embodiment provides a visual model training and verification system for assembly defects of vehicle interior panels. The system includes an auxiliary line identification dataset construction module 1, a defect identification model training module 2, an online identification module 3, and an audit feedback module 4.

[0090] The auxiliary line identification dataset construction module 1 is used to obtain a digital description of the feature structure of the target part to be inspected, obtain the physical image of the actual assembly captured by the machine vision submodule and pre-annotate it, map the physical image to the virtual space through the homography matrix to obtain the mapped image, input the mapped image into the multimodal model to establish the auxiliary line identification layer and draw the auxiliary line identification, and organize all physical images, pre-annotated data and auxiliary line identification into the auxiliary line identification dataset.

[0091] The defect identification model training module 2 is used to receive the auxiliary line identification dataset and divide it into training set, validation set and test set. It constructs a defect identification model learning network with two branches and a shared backbone, including a defect judgment branch and an auxiliary line prediction branch. It constructs a joint loss function by weighted summation of defect judgment loss and auxiliary line prediction loss for training. After evaluation based on the test set, the qualified model output is deployed at the edge.

[0092] The online recognition module 3 includes a machine vision submodule 31 for capturing assembly images on the production line and an edge computing submodule 32 for online recognition. The machine vision submodule 31 is positioned near the assembly station on the production line, capturing assembly images and transmitting them to the edge computing submodule 32. The edge computing submodule is equipped with a defect recognition model, which performs forward inference on the assembly images and simultaneously outputs defect judgment results and predicted auxiliary line markers.

[0093] Audit feedback module 4 is used to read the digital description of the feature structure of the target part to be inspected, calculate the deviation of the predicted auxiliary line markers according to the type of feature structure, generate a deviation index, and push a review prompt when the deviation index exceeds the threshold. It is also used to structurally encapsulate the assembly image, predicted auxiliary line markers, and deviation index, and store them in database 5 to form an audit log. The audit feedback module 4 can feed back the failed review samples accumulated during the review process to the auxiliary line marker dataset construction module and the defect recognition model training module to obtain incremental auxiliary line marker datasets and perform incremental training, forming a closed loop for continuous model evolution. Example 4:

[0094] This embodiment provides a computer-readable storage medium storing a computer program thereon. When the computer program is executed by a processor, it implements the steps of the above-described method for training and verifying visual models of assembly defects in vehicle interior panels.

[0095] Specifically, a computer-readable storage medium refers to a physical carrier capable of carrying computer program instructions in a non-transient manner. The processor can read and execute program instructions from the carrier to complete the entire process of constructing the auxiliary line identification dataset, training the defect identification model, and providing online identification and audit feedback.

[0096] The storage medium can be any of the non-volatile storage media such as read-only memory, random access memory, hard disk, optical disk, and flash memory, used to build an offline server for storing training data, auxiliary line label datasets, and intermediate model files generated during training. It should be understood that the specific type of storage medium is not limited to the above-listed examples; any medium capable of storing computer program instructions in a non-transient manner and accessible to the processor is suitable.

[0097] The processor can be a central processing unit (CPU), graphics processing unit (GPU), or neural network processor in the edge computing device. In actual deployments, edge computing devices can be configured with both a CPU and a neural network processor. The CPU is responsible for data scheduling and audit feedback processing, while the neural network processor is responsible for forward inference of the defect identification model. The two work together to complete the various tasks in the online identification and audit feedback phases.

[0098] By embedding the above methods and steps into a storage medium as a computer program, the visual model training and verification method for vehicle interior panel assembly defects can be stably and repeatedly executed on edge computing devices on the production line. It also facilitates program distribution and version management between different workstations or production lines.

[0099] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for training and verifying a visual model of assembly defects in vehicle interior panels, characterized in that, Includes the following steps: S100, the steps for constructing the auxiliary line label dataset specifically include: S110, For the target part to be inspected, according to the assembly design specifications, determine the feature structure of the target part in the perfect assembly state, and mark the feature structure in the virtual space to form a digital description of the feature structure. S120: Obtain the physical image of the actual assembly, pre-annotate whether the physical image is a complete assembly and the type of defect, and perform coordinate mapping of the physical image with respect to the virtual space through the homography matrix to obtain the mapped image; S130, Input the mapped image into the multimodal model, establish an auxiliary line label layer on the mapped image, and draw auxiliary line labels describing the feature structure on the auxiliary line label layer based on the digital description of the feature structure. S140, organize all physical images, pre-annotated data and auxiliary line labels into an auxiliary line label dataset; S200, the defect identification model training steps, specifically include: S210, Load the auxiliary line identifier dataset and divide it into a training set, a validation set, and a test set; S220, Construct a defect identification model learning network with two branches sharing a backbone. The two branches are a defect judgment branch and an auxiliary line prediction branch. Construct a joint loss function by weighted summation of defect judgment loss and auxiliary line prediction loss. Train the defect identification model learning network to obtain the defect identification model. S230 evaluates the defect identification model based on the test set and outputs the defect identification model with the qualified defect identification rate for edge deployment; S300, online identification and audit feedback steps, specifically include: S310 performs forward inference on assembly images captured on the production line based on a defect recognition model, and outputs defect judgment results and predicted auxiliary line markings. S320: Read the digital description of the feature structure of the target part to be inspected, predict the auxiliary line marking based on the type of feature structure, calculate the deviation of the digital description of the feature structure, generate a deviation index, and prompt a review when the deviation index exceeds the threshold. S330 encapsulates the assembly images, predicted auxiliary line markings, and deviation indicators in a structured manner and stores them in the database to form an audit log.

2. The visual model training and verification method for assembly defects of vehicle interior panels according to claim 1, characterized in that, The types of target parts to be inspected include clips, bolts, and trim strips; The geometry of the buckle is a polygon formed by the outer contour of the buckle, and its feature structure includes the position of the feature points of the outer contour polygon. The geometry of the bolt is the circumcircle of the bolt head, and its characteristic structure includes the ideal center position, ideal radius, and ellipticity of the circumcircle of the bolt head. The characteristic structure of the trim strip is an ordered set of points on the edge of the trim strip, and its characteristic structure includes the trajectory of the ordered set of points.

3. The visual model training and verification method for assembly defects of vehicle interior panels according to claim 1, characterized in that, In S130, an auxiliary line label layer is established on the mapped image using a multimodal large model reference feature structure, specifically including the following steps: S131, Construct a prompt word template for feature structure and auxiliary line identification, including a description of the geometry type and feature structure of the target part; S132, embed a mapped image containing pre-drawn auxiliary line identifiers as a visual reference example, wherein the pre-drawn auxiliary line identifiers include spatial truth parameters of the auxiliary line identifiers corresponding to the feature structure of the target part to be inspected; S133, input the prompt word template and visual reference example into the multimodal model to perform forward inference, create an auxiliary line label layer, and generate auxiliary line labels corresponding to the feature structure in the auxiliary line label layer; S134, Calculate the confidence score of the generated auxiliary line identifier; if the confidence score is greater than or equal to the threshold, the auxiliary line identifier is determined to be valid and added to the database; If the confidence level is less than the threshold, the auxiliary line will be identified as a low-confidence sample, and the sample will be pushed for review to determine whether it should be included in the database.

4. The visual model training and verification method for assembly defects of vehicle interior panels according to claim 3, characterized in that, In S134, the confidence score of the generated auxiliary line label is calculated by calculating the cosine similarity of the feature vectors of the generated auxiliary line label and the pre-drawn auxiliary line label in the visual reference example in S132, and then normalizing the calculation result to obtain the confidence score.

5. The visual model training and verification method for assembly defects of vehicle interior panels according to claim 3, characterized in that, The proportion of low-confidence samples to the total samples is calculated in real time. If it exceeds the threshold, the process returns to S131 to rebuild the prompt word template, and then executes S132 to provide a new visual reference example. If the proportion of low-confidence samples after adjustment still exceeds the threshold, return to S110 and redetermine the feature structure of the target part in the virtual space under the perfect assembly state.

6. The visual model training and verification method for assembly defects of vehicle interior panels according to claim 1, characterized in that, In S200, the defect identification model learning network adopts a lightweight convolutional neural network, including one of MobileNetV3 or EfficientNet-Lite. The defect determination branch outputs the defect category probability after global average pooling and a fully connected layer; the auxiliary line prediction branch outputs an auxiliary line probability heatmap with the same resolution as the auxiliary line identifier layer after transposed convolution upsampling, and the auxiliary line probability heatmap represents the probability that each pixel belongs to the auxiliary line identifier.

7. The visual model training and verification method for assembly defects of vehicle interior panels according to claim 2, characterized in that, In S300, the method for calculating the deviation of the auxiliary line identifier based on the type of feature structure in the digital description of the feature structure and generating the deviation index is as follows: For buckles, the deviation between the actual outer contour and the theoretical outer contour of the buckle is calculated as the deviation index. For bolts, the Euclidean distance between the actual center and the theoretical center of the bolt head, the radius deviation, and the ellipticity deviation are used as deviation indicators. For the trim, the Hausdorff distance between the ordered point set and the theoretical point set is used as the deviation index.

8. The visual model training and verification method for assembly defects of vehicle interior panels according to claim 1, characterized in that, In S320, the number of samples that fail the review is accumulated. Once the accumulated amount is reached, incremental training is started. The samples that fail the review are used as the physical images of the actual assembly. An incremental auxiliary line identification dataset is obtained, and incremental training is performed on the defect recognition model.

9. A visual model training and verification system for assembly defects in vehicle interior panels, comprising: The auxiliary line identification dataset construction module is used to identify auxiliary lines on the physical image of actual assembly based on a multimodal model, and obtain the auxiliary line identification dataset. The defect identification model training module is used to construct a dual-branch shared backbone defect identification model learning network with a defect judgment branch and an auxiliary line prediction branch. Based on the auxiliary line identification dataset, the defect identification model is trained and deployed at the edge. The online recognition module includes a machine vision submodule for capturing assembly images on the production line and an edge computing submodule for online recognition. The edge computing submodule is used to output defect judgment results and predicted auxiliary line markings. The audit feedback module is used to calculate the deviation of the predicted auxiliary line identifiers from the digital description of the feature structure based on the type of feature structure, generate a deviation index, and prompt a review when the deviation index exceeds a threshold; it is also used to structure and encapsulate the assembly image, the predicted auxiliary line identifiers, and the deviation index, and store them in the database to form an audit log.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the computer program implements the steps in the visual model training and verification method for assembly defects of vehicle interior panels as described in any one of claims 1 to 8.