WO2023040142A1 - Vehicle damage detection method and apparatus, and device and storage medium - Google Patents

Vehicle damage detection method and apparatus, and device and storage medium Download PDF

Info

Publication number
WO2023040142A1
WO2023040142A1 PCT/CN2022/071075 CN2022071075W WO2023040142A1 WO 2023040142 A1 WO2023040142 A1 WO 2023040142A1 CN 2022071075 W CN2022071075 W CN 2022071075W WO 2023040142 A1 WO2023040142 A1 WO 2023040142A1
Authority
WO
WIPO (PCT)
Prior art keywords
damage
damaged
vehicle
model
detection
Prior art date
Application number
PCT/CN2022/071075
Other languages
French (fr)
Chinese (zh)
Inventor
方起明
刘莉红
刘玉宇
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2023040142A1 publication Critical patent/WO2023040142A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • G06F18/241Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches
    • G06F18/2413Classification techniques relating to the classification model, e.g. parametric or non-parametric approaches based on distances to training or reference patterns
    • G06F18/24133Distances to prototypes
    • G06F18/24137Distances to cluster centroïds
    • G06F18/2414Smoothing the distance, e.g. radial basis function networks [RBFN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/08Insurance

Definitions

  • the embodiments of the present application relate to the field of artificial intelligence, and in particular to a vehicle damage detection method, device, equipment, and storage medium.
  • AI artificial intelligence
  • Embodiments of the present application provide a vehicle damage detection method, device, equipment, and storage medium, which can effectively improve detection efficiency and detection accuracy, and reduce labor costs in the process of vehicle damage determination.
  • the embodiment of the present application provides a vehicle damage detection method, including:
  • the integrated damage model includes:
  • a shared backbone neural network where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
  • a damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information
  • the damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
  • the shared backbone neural network is a deep residual neural network
  • the deep residual neural network includes: Res-Net50 network, Res-Net101 network, Res-Net110 network or Res-Net152 network ;
  • Said inputting the image of the damaged vehicle into the trained integrated damage model to obtain the information of the damaged parts including:
  • any residual block includes a An identity map and at least two convolutional layers, the identity map of any one residual block is directed from the input end of any one residual block to the output end of any one residual block;
  • the first output data is input to the damage detection classification layer corresponding to the component type to obtain damaged component information.
  • the embodiment of the present application provides a vehicle damage detection device, including:
  • An image acquisition module is used to acquire damaged vehicle images
  • the damaged part information determination module is used to input the damaged vehicle image into the trained integrated damage model to obtain the damaged part information, and the integrated damage model includes:
  • a shared backbone neural network where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
  • a damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information
  • An image segmentation module configured to input the damaged vehicle image into the vehicle component segmentation model to obtain the damage location corresponding to the damaged vehicle image
  • a damage information synthesis module configured to obtain damage information of the vehicle from the damaged component information according to the damage location.
  • a computer device includes a processor and a memory
  • the memory is used to store programs
  • the processor is configured to execute the vehicle damage detection method according to any one of the first aspect according to the program:
  • the vehicle damage detection method includes:
  • the integrated damage model includes:
  • a shared backbone neural network where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
  • a damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information
  • the damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
  • the embodiment of the present application provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the vehicle damage detection method described in any one of the first aspects:
  • the vehicle damage detection method includes:
  • the integrated damage model includes:
  • a shared backbone neural network where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
  • a damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information
  • the damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
  • the first aspect of the embodiment of the present application provides a vehicle damage detection method.
  • this solution obtains damaged vehicle images and inputs the damaged vehicle images into the trained integrated damage model to obtain damaged parts information , and obtain the damage position corresponding to the damaged vehicle image according to the vehicle part segmentation model, and obtain the damage information of the vehicle according to the damage position and the damaged part information.
  • the integrated damage assessment model includes: a shared backbone neural network and a damage detection classification layer corresponding to at least one component type.
  • the shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type.
  • the integration method is convenient for model optimization training, and Labeled data of all damage types can be used during training, effectively improving the robustness of the model and reducing the possibility of overfitting.
  • the embodiment of the present application uses the integrated damage determination model to obtain the corresponding damaged component information through one forward processing, which greatly reduces the computing resources and time consumed , so as to effectively improve the detection efficiency and reduce the labor cost in the process of vehicle damage assessment.
  • the damage information of the vehicle including positioning information can be obtained after merging the damage positions corresponding to the damaged vehicle images obtained from the vehicle part segmentation model; on the other hand, since the damage information of the vehicle includes the damage positions , the embodiment of the present application can filter the false damage detection in the background area, and further improve the detection accuracy of the vehicle damage detection.
  • FIG. 1 is a schematic diagram of an exemplary system architecture provided by an embodiment of the present application
  • Fig. 2 is a flowchart of a vehicle damage detection method provided by an embodiment of the present application
  • Fig. 3 is a structural block diagram of a vehicle detection model in the related art
  • Fig. 4 is a structural block diagram of an integrated damage assessment model provided by an embodiment of the present application.
  • FIG. 5 is a flowchart of a vehicle damage detection method provided by an embodiment of the present application.
  • FIG. 6 is a flow chart of training an integrated damage assessment model in a vehicle damage detection method provided by an embodiment of the present application
  • Fig. 7 is another flowchart of a vehicle damage detection method provided by an embodiment of the present application.
  • Fig. 8 is a structural block diagram of a vehicle damage detection device provided by an embodiment of the present application.
  • references to “one embodiment” or “some embodiments” described in the description of the embodiments of the present application mean that specific features described in conjunction with the embodiments of the present application are included in one or more embodiments of the embodiments of the present application. , structure or characteristics.
  • appearances of the phrases “in one embodiment,” “in some embodiments,” “in other embodiments,” “in other embodiments,” etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean “one or more but not all embodiments” unless specifically stated otherwise.
  • the terms “including”, “comprising”, “having” and variations thereof mean “including but not limited to”, unless specifically stated otherwise.
  • Cars are frequently used tools in land transportation. Affected by factors such as weather, road conditions and driver skills, car damage is inevitable, especially in traffic accidents. Therefore, it is very important to determine the damaged location and degree of damage for the damaged vehicle, because it will not only affect the determination of the subsequent vehicle maintenance plan, but also affect the determination of the amount of economic compensation for the parties involved in the accident.
  • the traditional loss assessment method relies on manual judgment, which is inefficient and prone to errors due to personal factors of the assessor.
  • some institutions have adopted methods based on computer vision (target detection, etc.) to carry out intelligent damage assessment for damaged vehicles. These methods have reduced the dependence of manual damage assessment to a certain extent.
  • the embodiment of the present application is to improve the above-mentioned defects, and provides a vehicle damage detection method, which relates to the field of artificial intelligence image recognition technology, specifically by acquiring damaged vehicle images, and inputting the damaged vehicle images into the trained integrated damage assessment model
  • the damaged part information is obtained in the vehicle part segmentation model, and the damage position corresponding to the damaged vehicle image is obtained according to the vehicle part segmentation model, and the damage information of the vehicle is obtained according to the damage position and the damaged part information.
  • the integrated damage assessment model includes: a shared backbone neural network and a damage detection classification layer corresponding to at least one component type.
  • the shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type.
  • the integration method is convenient for model optimization training, and Labeled data of all damage types can be used during training, effectively improving the robustness of the model and reducing the possibility of overfitting.
  • using the integrated damage determination model can obtain all the damaged component information through one forward reasoning, which greatly reduces the computing resources and time consumed, and effectively improves the detection efficiency. Efficiency, reducing labor costs in the process of vehicle damage assessment.
  • the damage information of the vehicle including the positioning information can be obtained; on the other hand, since the damage position of the component is included, the false detection of damage in the background area can be filtered , to further improve the detection accuracy of vehicle damage detection.
  • Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied.
  • the system architecture 100 may include terminal equipment (one or more of a desktop computer 101, a tablet computer 102, and a portable computer 103 as shown in FIG. 1, and of course other terminals with a display screen equipment, etc.), network 104 and server 105.
  • the network 104 is used as a medium for providing a communication link between the terminal device and the server 105 .
  • Network 104 may include various connection types, such as wired communication links, wireless communication links, and so on.
  • terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
  • server 105 can be an independent server, also can provide cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content distribution network (Content Delivery) Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, or server clusters composed of multiple servers.
  • cloud database cloud computing
  • cloud function cloud storage
  • network service cloud communication
  • middleware service domain name service
  • security service content distribution network (Content Delivery) Network
  • CDN content distribution network
  • cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, or server clusters composed of multiple servers.
  • the user can use the terminal device 101 (or the terminal device 102 or 103) to upload a damaged vehicle image to the server 105.
  • the damaged vehicle image can include different parts, different angles, different Images of damaged vehicles collected from a distance, or a single photo.
  • the server 105 acquires these damaged vehicle images, it inputs the damaged vehicle images into the trained integrated damage model to obtain the damaged parts information, and obtains the damage location corresponding to the damaged vehicle images according to the vehicle part segmentation model, and then according to The damaged location and damaged parts information obtains the damaged information of the vehicle. It can effectively improve the detection efficiency and reduce the labor cost in the process of vehicle damage assessment. And the damage information of the vehicle including the positioning information can be obtained.
  • the damage position of the component since the damage position of the component is included, the false detection of the damage in the background area can be filtered, and the detection accuracy of the vehicle damage detection can be further improved.
  • the vehicle damage detection method provided in the embodiment of the present application is generally executed by the server 105 , and correspondingly, the vehicle damage detection device is generally set in the server 105 .
  • the terminal device may also have a similar function to the server, so as to execute the waiting-for-diagnosis image processing solution provided in the embodiment of the present application.
  • system architecture and application scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application.
  • Those skilled in the art know that with the system architecture The evolution of the technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems.
  • the system architecture shown in Figure 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine some components, or different components layout.
  • AI artificial intelligence
  • digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
  • FIG. 2 is a flowchart of a vehicle damage detection method provided by an embodiment of the present application, including but not limited to step S110 and step S140 .
  • Step S110 acquiring an image of the damaged vehicle.
  • Step S120 input the image of the damaged vehicle into the trained integrated damage model to obtain the information of the damaged parts.
  • step S130 the damaged vehicle image is input into the vehicle component segmentation model to obtain the damage location corresponding to the damaged vehicle image.
  • Step S140 according to the damage location, locate and obtain the damage information of the vehicle from the damaged part information.
  • step S120 and step S130 there is no sequence between the above step S120 and step S130, they can be executed at the same time, or step S120 can be executed first and then step S130 can be executed, or step S130 can be executed first and then step S120 can be executed. No restrictions.
  • the damaged part information in step S120 includes the damaged part name, damage state and damage degree.
  • the name of damaged parts includes but not limited to: sheet metal parts, glass, tires, etc.; damage information includes but not limited to: scratches, scratches, dents, folds, tears, missing, cracks, etc.; the degree of damage includes but not limited to: minor moderate damage, moderate damage, severe damage, etc.
  • the user can use his mobile phone to take images of the accident scene, for example, take pictures of damaged vehicles at different positions and angles to obtain images of the damaged vehicles, and then send the images of the damaged vehicles to the background server for further processing.
  • the damage when a traffic accident occurs, the user can use his mobile phone to take images of the accident scene, for example, take pictures of damaged vehicles at different positions and angles to obtain images of the damaged vehicles, and then send the images of the damaged vehicles to the background server for further processing.
  • the damage when a traffic accident occurs, the user can use his mobile phone to take images of the accident scene, for example, take pictures of damaged vehicles at different positions and angles to obtain images of the damaged vehicles, and then send the images of the damaged vehicles to the background server for further processing.
  • the pre-trained integrated damage model is stored in the background server, and the type of damaged parts in the damaged vehicle image is obtained according to the damaged vehicle image uploaded by the user.
  • the damaged part information includes the name of the damaged part, the damage state and the degree of damage, such as the The name of the damaged part of the vehicle is sheet metal, the damage information is scratches, and the damage degree is moderate damage.
  • the damage position corresponding to the damaged vehicle in the damaged vehicle image is obtained through the vehicle part segmentation model, for example: the left front door sheet metal part.
  • the damage information of the damaged vehicle is obtained according to the damage location and the damage component information, that is, the damage information includes: damage component information and damage location.
  • the damage information of the damaged vehicle is: the sheet metal part of the left front door is scratched with a moderate degree of damage.
  • the integrated loss assessment model includes:
  • the shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain the first output data; the damage corresponding to at least one component type
  • the detection and classification layer is configured to process the first output data to obtain damaged component information.
  • the integrated damage assessment model is composed of an integrated shared backbone neural network and multiple damage detection classification layers (corresponding to different component types), and each damage detection classification layer corresponds to processing a damage data set of a component type.
  • the damage detection model corresponding to at least one component type is integrated to obtain a shared backbone neural network, and then the damage detection classification layer corresponding to at least one component type is connected to output the damaged component information corresponding to the component type.
  • the damage detection of each different component shares the previous shared backbone neural network except for the damage detection and classification layer of the last layer. layer to predict its damage category. That is, multiple damage detection models are integrated into one model by sharing the backbone neural network. Different from the existing multiple components corresponding to different damage detection models, the shared backbone neural network does not distinguish between component types, and uses a network structure for different Multiple damage detection classification layers correspond to multiple damage data sets to output damage results for all components.
  • FIG. 3 it is a structural block diagram of a vehicle detection model in the related art. Since there are many vehicle components, this embodiment selects sheet metal parts, glass, and tires for illustration. It is understandable that it does not mean that it is limited to these in three categories.
  • the structural block diagram of the vehicle detection model includes three functional units, namely:
  • the first unit damage data set, including: sheet metal damage detection data set, glass damage detection data set and tire damage detection data set. These damage data sets are all labeled for the damage of a specific component, and do not contain damage label information of other components.
  • the training samples of the damage data set can include: damage images, damage judgment labels, etc.
  • the second unit single data set detection model, including: sheet metal damage detection model, glass damage detection model and tire damage detection model, damage detection model includes: damage detection subject and damage detection classifier. Different detection models correspond to different data sets.
  • the third unit loss function, including: sheet metal damage loss function, glass damage loss function and tire damage loss function, the loss function corresponds to the damage detection model one by one, and is used to update the parameters of the damage detection model.
  • the damage data set of the first unit into the single data set detection model of the second unit to obtain the corresponding damage detection results, and then use the loss function of the third unit to update the parameters of the damage detection model.
  • the sheet metal damage detection data set is input into the sheet metal damage detection model to obtain the sheet metal damage detection result, and then the sheet metal damage loss function is used to update the parameters of the sheet metal damage detection model.
  • each detection model of the vehicle detection model in the related art works independently without interfering with each other. Therefore, there are the following problems: First, in the model training and development stage, it is necessary to prepare and label multiple damage data sets, and train and optimize multiple damage detection models separately. This process of separately training different damage detection models is cumbersome and inefficient. More manpower and material resources are invested, and at the same time, the trained model has poor robustness due to the low data reuse rate. The second is the stage of model deployment and launch. Multiple models need to consume more computing resources, and at the same time increase the difficulty of scheduling and increase costs.
  • the structural block diagram of the integrated damage assessment model provided by an embodiment of the present application is illustrated below by using FIG. 4 .
  • FIG. 4 it is a structural block diagram of an integrated damage assessment model provided by an embodiment of the present application, including the following functional units.
  • the structural block diagram of the vehicle detection model includes four units, namely:
  • the first unit damage data set, including: sheet metal damage detection data set, glass damage detection data set and tire damage detection data set, etc. These damage data sets are all labeled for the damage of a specific component, and do not contain damage label information of other components.
  • the training samples of the damage data set can include: damage images, damage judgment labels, etc., for example:
  • Sample 1 The damage image is a glass image, and the damage judgment label is: [glass, moderate damage, broken];
  • the damage image is an image of a sheet metal part, and the damage judgment label is: [sheet metal part, mild damage, scratch].
  • the second unit shared backbone neural network, wherein the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, for example, by integrating sheet metal damage detection models, glass damage detection models and tire damage detection models.
  • the third unit Different component types correspond to different damage detection classification layers, such as sheet metal damage detection classification layer, glass damage detection classification layer and tire damage detection classification layer.
  • the second unit and the third unit constitute the integrated damage assessment model of this embodiment.
  • the fourth unit loss function, including: sheet metal damage loss function, glass damage loss function and tire damage loss function, etc.
  • the loss function corresponds to the damage detection model one by one, and is used to update the parameters of the damage detection model. Since the damage categories of different damage datasets are all for specific parts, there is no overlapping of damage categories between different damage datasets, and there is no need to combine the damage functions into one for training.
  • the corresponding damage detection and classification layer is selected according to the damaged parts of the output. Since the damage data sets are all labeled for the damage of a specific component and do not contain damage label information of other components, it is not possible to simply merge the damage categories and train a detection model to detect the damage of all components. Therefore, without merging multiple In the case of the target category space of the impairment dataset, an integrated shared backbone neural network is trained, that is, multiple impairment detection models for a specific impairment dataset are trained in parallel in the shared backbone network.
  • the sheet metal damage detection data set is input into the shared backbone neural network and then output to the sheet metal damage detection classification layer, and then the sheet metal damage loss function is used to update the parameters of the sheet metal damage detection model.
  • the shared backbone neural network is a deep residual neural network (Deep Residual Network).
  • the deeper the learning rate the lower the learning rate.
  • the training error and test error of the deep learning network become larger as the number of layers increases, which shows that when the number of network layers becomes deeper, the deep network becomes difficult to train.
  • the deep residual neural network introduces the design of the residual block, which overcomes the above-mentioned problems that the learning rate becomes lower and the accuracy rate cannot be effectively improved due to the deepening of the network depth.
  • the principle of the residual block is to directly skip the data output of the previous layers and introduce it into the input part of the subsequent data layer. To put it simply, similar to skip connections, the data that is "clear" in the front and the data that is “lossy compressed” in the back are used as the input of the network data in the back, so that the network can learn richer content, so this implementation
  • the shared backbone neural network of the example uses a deep residual neural network.
  • step S120 includes but is not limited to the following steps:
  • Step S121 based on each residual block sequentially connected in the deep residual neural network, perform residual feature vector extraction processing on the damaged vehicle image to obtain first output data.
  • any residual block includes an identity map and at least two convolutional layers, and the identity map of any residual block is directed to any residual block from the input end of any residual block
  • the output of , that is, the identity map is the skip connection mentioned above.
  • Step S122 inputting the first output data to the damage detection classification layer corresponding to the component type to obtain damaged component information.
  • the shared backbone neural network includes one of the following: Res-Net50 network, Res-Net101 network, Res-Net110 network or Res-Net152 network. Since the network structure is described in detail in the related art, details are not repeated here.
  • FIG. 6 it is a flow chart of training an integrated damage assessment model in a vehicle damage detection method provided in an embodiment of the present application, including but not limited to step S610 and step S640 .
  • step S610 a damage data set corresponding to at least one component type is obtained as a training data set, and the training data set includes a corresponding damage judgment label.
  • Step S620 input the training data set into the shared backbone neural network to obtain feature data, which is obtained by extracting residual feature vectors, which is similar to the above-mentioned first output data.
  • step S630 the feature data is input into the damage detection classification layer corresponding to the component type, and a detection result of damaged component information is obtained.
  • Step S640 according to the detection error between the detection result of the damaged component information and the damage judgment label, train to obtain an integrated damage assessment model.
  • the damage detection model corresponding to each component type includes its corresponding loss function.
  • Step S640 is specifically described as: adjust the parameters in the integrated damage model according to the detection error until the loss function satisfies the convergence condition, and obtain Integrate the damage model, that is, update the parameters of the damage detection model according to the loss function.
  • the convergence condition may be: minimizing loss functions, that is, optimizing parameters of each damage detection model by minimizing each loss function.
  • all types of damage labeling data are used when training the integrated damage assessment model, which significantly improves the robustness of the integrated damage assessment model and reduces the possibility of overfitting.
  • an integrated model can obtain all damage detection results after one forward reasoning, which greatly reduces the computing resources and time consumed.
  • a uniform sampling strategy and/or an inter-category balanced sampling strategy is used to sample the training data sets.
  • Uniform sampling strategy the uniform sampling strategy is used to uniformly sample the damage data sets corresponding to each component type to obtain the training data set, so that the number of samples between the loss data sets corresponding to different component types is balanced, and the integrated damage assessment is improved. The overall performance of the model on each damage dataset.
  • Balanced sampling strategy between categories When the number of samples between the damage data sets corresponding to different component types differs greatly, the balanced sampling strategy between categories is used to oversample the loss data sets corresponding to the component types with a small number of samples to obtain training data set. For example, the number of samples in a damage data set of a certain component category is significantly less than that of other damage data sets, and the amount of information that this category can provide is also less. Use this strategy for balanced sampling, and try to ensure that the amount of training data between categories is consistent.
  • This strategy aims to alleviate the problem of sample imbalance between different categories in the damage data set and improve the performance on the corresponding damage data set.
  • the main purpose is to ensure as much as possible that in each batch of training samples, the probability of occurrence of each class (samples of different component types) is the same, and to avoid the constant input order of pictures.
  • two lists are used to iteratively sample to obtain samples of each batch.
  • first sample a category X (such as glass) in the component category list and then sample a picture in the image list of this category X (such as the damage data set of glass), when the image list of category X traverses After that, reshuffle the order of the image list and start traversing from the beginning. For example, in this way, "oversampling" can be used to increase the number of samples of the damage data set with a small number of samples, so as to ensure that the number of samples of the damage data set of the component category in the batch is balanced.
  • the part category list is also processed to ensure that the types of part categories in each batch are also balanced.
  • the vehicle part segmentation model is pre-trained by a neural network model.
  • a neural network model In the forward reasoning stage, an image is input into the integrated damage model, and the model will simultaneously output the damaged part information for multiple damage data sets. The next step is to determine the specific location of the damaged part information.
  • This embodiment uses the following The two vehicle component segmentation models described above are used to assist localization.
  • the vehicle part segmentation model includes a part segmentation network and a global feature extraction network, collects the global feature map of the input damaged vehicle image, and uses the global feature extraction network to obtain multiple local features corresponding to the global feature map, so that it can be used according to the local features
  • the part segmentation network obtains the information of vehicle segmentation parts, and updates the parameters of the model according to the loss function, so that the vehicle part segmentation model can output the damage location corresponding to the damaged vehicle image.
  • the training process includes: labeling the categories in the damaged vehicle image samples and then generating a training set. Each category contains corresponding weights, and then the corresponding loss function is used to treat
  • the trained semantic segmentation model is trained, and after the loss value is obtained, the model parameters of the semantic segmentation model to be trained are adjusted according to the loss value, and the corresponding vehicle part segmentation model is constructed according to the semantic segmentation idea.
  • FIG. 7 it is a flow chart of a vehicle damage detection method provided by an embodiment of the present application. It can be seen from the figure that the following steps are included:
  • Step S710 acquiring the image of the damaged vehicle.
  • step S720 the damaged vehicle image is simultaneously input into the integrated damage assessment model and the vehicle part segmentation model, wherein the integrated damage assessment model includes a shared backbone neural network and multiple damage detection and classification layers.
  • step S730 the damaged component information output by the integrated damage assessment model and the damaged location output by the vehicle component segmentation model are acquired respectively.
  • step S740 the damage information of the damaged vehicle is obtained by locating from the damaged component information according to the damage position, and only the matching damage information under the target component is kept. That is, combined with the vehicle component segmentation model, the detection results of the integrated damage determination model are used for component positioning, so as to obtain the damaged component information and its damaged position, and filter the false detection of damage in the background area.
  • the damaged part information output by the integrated damage model includes: for example, the name of the damaged part of the vehicle is sheet metal and glass, the damage information is scratched and broken, and the damage degree is moderate damage .
  • the damage position corresponding to the damaged vehicle in the damaged vehicle image is obtained through the vehicle part segmentation model, for example: the right side of the front windshield.
  • the damage location and the damaged parts information are combined to obtain the damage information of the damaged vehicle as follows: moderate damage occurs on the right side of the front windshield, that is, the damage detection results of all the glass under the glass segmentation area are retained, and the damage detection results are removed. Possible damage detection results for tires or sheet metal parts.
  • the embodiment of the present application provides a vehicle damage detection method, by acquiring damaged vehicle images, inputting the damaged vehicle images into the trained integrated damage model to obtain damaged parts information, and obtaining damaged vehicles according to the vehicle parts segmentation model
  • the damage location corresponding to the image, and the damage information of the vehicle is obtained according to the damage location and damaged component information.
  • the integrated damage assessment model includes: a shared backbone neural network and a damage detection classification layer corresponding to at least one component type.
  • the shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type.
  • the integration method is convenient for model optimization training, and Labeled data of all damage types can be used during training, effectively improving the robustness of the model and reducing the possibility of overfitting.
  • using the integrated damage determination model can obtain all the damaged component information through one forward reasoning, which greatly reduces the computing resources and time consumed, and effectively improves the detection efficiency. Efficiency, reducing labor costs in the process of vehicle damage assessment. And after merging the damage position corresponding to the damaged vehicle image obtained by the vehicle part segmentation model, the damage information of the vehicle including the positioning information can be obtained; on the other hand, since the damage position of the component is included, the false detection of damage in the background area can be filtered , to further improve the detection accuracy of vehicle damage detection.
  • an embodiment of the embodiment of the present application also provides a vehicle damage detection device, referring to Figure 8, the device includes:
  • An image acquisition module 810 configured to acquire an image of the damaged vehicle
  • the damaged part information determination module 820 is used to input the image of the damaged vehicle into the trained integrated damage model to obtain the damaged part information.
  • the integrated damage model includes:
  • the shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain the first output data;
  • a damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information
  • the image segmentation module 830 is used to input the damaged vehicle image into the vehicle part segmentation model to obtain the damage position corresponding to the damaged vehicle image;
  • the damage information synthesis module 840 is configured to locate and obtain the damage information of the vehicle from the damaged component information according to the damage location.
  • the device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the vehicle damage detection device in this embodiment can implement the vehicle damage detection method in the embodiment shown in Figure 2 . That is, the vehicle damage detection device in this embodiment and the vehicle damage detection method in the embodiment shown in FIG. detail.
  • an embodiment of the embodiment of the present application further provides computer equipment, and the computer equipment includes: a memory, a processor, and a computer program stored in the memory and operable on the processor.
  • the processor and memory can be connected by a bus or other means.
  • memory can be used to store non-transitory software programs and non-transitory computer-executable programs.
  • the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices.
  • the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
  • the non-transient software programs and instructions required to realize the vehicle damage detection method of the above embodiment are stored in the memory, and when executed by the processor, the vehicle damage detection method in the above embodiment is executed, wherein the vehicle damage detection method includes: Obtaining an image of a damaged vehicle; inputting the image of the damaged vehicle into a trained integrated damage model to obtain information on damaged parts, the integrated damage model includes: a shared backbone neural network, the shared backbone neural network consists of at least A damage detection model corresponding to a component type is integrated, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data; at least one damage detection classification layer corresponding to a component type is used to The first output data is processed to obtain damaged component information; the damaged vehicle image is input into the vehicle component segmentation model to obtain the damaged position corresponding to the damaged vehicle image; The damage information of the vehicle is obtained by locating in the information.
  • the vehicle damage detection method includes: Obtaining an image of a damaged vehicle; inputting the image of the damaged vehicle into a trained integrated damage model
  • an embodiment of the embodiment of the present application also provides a computer-readable storage medium, the storage medium is a volatile storage medium or a non-volatile storage medium, and the computer-readable storage medium stores computer-executable Instructions, the computer-executable instructions are executed by a processor or a controller, for example, executed by a processor in the above-mentioned computer device embodiment, so that the above-mentioned processor can execute the native capability expansion method based on the API interface in the above-mentioned embodiment
  • the above-described method steps S110 and S140 in FIG. 2 are executed.
  • the above-mentioned processor can execute the vehicle damage detection method in the above-mentioned embodiment, for example, execute the method step S110 and step S140 in FIG. 2 described above, and FIG. The method steps S510 to 530 in 5, the method steps S610 to S640 in FIG. 6 and so on.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Business, Economics & Management (AREA)
  • Evolutionary Computation (AREA)
  • Biophysics (AREA)
  • Health & Medical Sciences (AREA)
  • Software Systems (AREA)
  • Mathematical Physics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Computing Systems (AREA)
  • Molecular Biology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Biomedical Technology (AREA)
  • Development Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Technology Law (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Economics (AREA)
  • Evolutionary Biology (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Image Analysis (AREA)

Abstract

The embodiments of the present application relate to the technical field of artificial intelligence image processing. Provided are a vehicle damage detection method and apparatus, and a device and a storage medium. The method comprises: acquiring an image of a damaged vehicle; inputting the image of the damaged vehicle into a trained integrated loss assessment model to obtain information of a damaged component; obtaining a damage position corresponding to the image of the damaged vehicle according to a vehicle component segmentation model; and obtaining damage information of the vehicle according to the damage position and the information of the damaged component. Compared with a plurality of damage detection models separated in the related art, an integrated loss assessment model is used in the embodiments of the present application to obtain, by means of one-time forward processing, corresponding information of a damaged component, so that the amount of calculation resources occupied thereby is greatly reduced, the consumed calculation time is greatly reduced, the detection efficiency is effectively improved, and the labor cost during a vehicle loss assessment process is reduced. In addition, the damage position corresponding to the image of the damaged vehicle is obtained by means of combining the vehicle component segmentation models, and the damage information of the vehicle including positioning information can be obtained.

Description

车辆损伤检测方法、装置、设备及存储介质Vehicle damage detection method, device, equipment and storage medium
本申请要求于2021年9月15日提交中国专利局、申请号为2021110801171,发明名称为“车辆损伤检测方法、装置、设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 2021110801171 and the invention title "vehicle damage detection method, device, equipment and storage medium" submitted to the China Patent Office on September 15, 2021, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请实施例涉及人工智能领域,尤其涉及一种车辆损伤检测方法、装置、设备及存储介质。The embodiments of the present application relate to the field of artificial intelligence, and in particular to a vehicle damage detection method, device, equipment, and storage medium.
背景技术Background technique
在交通事故中为受损车辆确定受损部位和受损程度是一项非常重要的工作。传统的定损方法依赖人工判断,效率低下且容易因定损员个人因素带来误差。近年来,随着人工智能技术的发展,其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。已有一部分机构采取基于计算机视觉(目标检测等)的方法为受损车辆进行智能定损,这些方法一定程度上降低了定损工作对人工的依赖。It is a very important work to determine the damaged location and the degree of damage for a damaged vehicle in a traffic accident. The traditional loss assessment method relies on manual judgment, which is inefficient and prone to errors due to personal factors of the assessor. In recent years, with the development of artificial intelligence technology, artificial intelligence (AI) is the use of digital computers or digital computer-controlled machines to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. Theories, methods, techniques and application systems for good results. Some institutions have adopted methods based on computer vision (target detection, etc.) to carry out intelligent damage assessment for damaged vehicles. These methods have reduced the dependence of manual damage assessment to a certain extent.
但是由于定损场景复杂多变、车辆部件较多、损伤形态较多等原因,往往需要开发较多的损伤检测模型,如根据部件的材质而开发出针对钣金件、玻璃、轮胎等的多种不同的损伤检测模型。发明人意识到上述方案会有比较明显的弊端,一是模型训练开发阶段,需要准备标注多个损伤数据集,并分别训练优化多个损伤检测模型,过程比较繁琐,效率比较低下,需要较多的人力、物力投入,同时训练得到的模型由于仅能用于对应的部件类型,其数据的重复利用率小而鲁棒性差;二是模型部署上线阶段,多个模型需要耗费更多计算资源,同时增大调度难度,增加成本开支等。However, due to complex and changeable damage scenarios, many vehicle components, and many damage forms, it is often necessary to develop more damage detection models, such as developing multiple damage detection models for sheet metal parts, glass, tires, etc. different damage detection models. The inventors realized that the above scheme would have obvious disadvantages. First, in the model training and development stage, it is necessary to prepare and label multiple damage data sets, and train and optimize multiple damage detection models separately. The process is cumbersome, the efficiency is relatively low, and more At the same time, because the model obtained by training can only be used for the corresponding component type, its data reuse rate is small and its robustness is poor; second, in the stage of model deployment and online, multiple models need to consume more computing resources. At the same time, it increases the difficulty of scheduling and increases the cost and expenditure.
发明内容Contents of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics described in detail in this article. This summary is not intended to limit the scope of the claims.
本申请实施例提供一种车辆损伤检测方法、装置、设备及存储介质,能够有效提高检测效率以及检测精度,降低车辆定损过程中的人力成本。Embodiments of the present application provide a vehicle damage detection method, device, equipment, and storage medium, which can effectively improve detection efficiency and detection accuracy, and reduce labor costs in the process of vehicle damage determination.
第一方面,本申请实施例提供一种车辆损伤检测方法,包括:In the first aspect, the embodiment of the present application provides a vehicle damage detection method, including:
获取受损车辆图像;Get images of damaged vehicles;
将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:Inputting the image of the damaged vehicle into the trained integrated damage model to obtain damaged component information, the integrated damage model includes:
共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;inputting the damaged vehicle image into a vehicle parts segmentation model to obtain a damage location corresponding to the damaged vehicle image;
根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。The damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
在一可选的实现方式中,所述共享主干神经网络为深度残差神经网络,所述深度残差神经网络包括:Res-Net50网络、Res-Net101网络、Res-Net110网络或Res-Net152网络;In an optional implementation, the shared backbone neural network is a deep residual neural network, and the deep residual neural network includes: Res-Net50 network, Res-Net101 network, Res-Net110 network or Res-Net152 network ;
所述将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,包括:Said inputting the image of the damaged vehicle into the trained integrated damage model to obtain the information of the damaged parts, including:
基于所述深度残差神经网络中顺次相连的各个残差块,对所述受损车辆图像进行残差特征向量提取处理,得到第一输出数据;其中,任意一个残差块中均包括一个恒等映射和至少两个卷积层,任意一个残差块的恒等映射由所述任意一个残差块的输入端指向所述任意一个 残差块的输出端;Based on the sequentially connected residual blocks in the deep residual neural network, the damaged vehicle image is subjected to residual feature vector extraction processing to obtain the first output data; wherein, any residual block includes a An identity map and at least two convolutional layers, the identity map of any one residual block is directed from the input end of any one residual block to the output end of any one residual block;
将所述第一输出数据输入到所述部件类型对应的损伤检测分类层,得到损伤部件信息。The first output data is input to the damage detection classification layer corresponding to the component type to obtain damaged component information.
第二方面,本申请实施例提供一种车辆损伤检测装置,包括:In the second aspect, the embodiment of the present application provides a vehicle damage detection device, including:
获取图像模块,用于获取受损车辆图像;An image acquisition module is used to acquire damaged vehicle images;
损伤部件信息确定模块,用于将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:The damaged part information determination module is used to input the damaged vehicle image into the trained integrated damage model to obtain the damaged part information, and the integrated damage model includes:
共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
图像分割模块,用于将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;An image segmentation module, configured to input the damaged vehicle image into the vehicle component segmentation model to obtain the damage location corresponding to the damaged vehicle image;
损伤信息合成模块,用于根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。A damage information synthesis module, configured to obtain damage information of the vehicle from the damaged component information according to the damage location.
第三方面,一种计算机设备,包括处理器以及存储器;In a third aspect, a computer device includes a processor and a memory;
所述存储器用于存储程序;The memory is used to store programs;
所述处理器用于根据所述程序执行如第一方面中任一项所述的车辆损伤检测方法:The processor is configured to execute the vehicle damage detection method according to any one of the first aspect according to the program:
其中,所述车辆损伤检测方法包括:Wherein, the vehicle damage detection method includes:
获取受损车辆图像;Get images of damaged vehicles;
将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:Inputting the image of the damaged vehicle into the trained integrated damage model to obtain damaged component information, the integrated damage model includes:
共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;inputting the damaged vehicle image into a vehicle parts segmentation model to obtain a damage location corresponding to the damaged vehicle image;
根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。The damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
第四方面,本申请实施例提供一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行第一方面中任意一项所述的车辆损伤检测方法:In the fourth aspect, the embodiment of the present application provides a computer-readable storage medium, which stores computer-executable instructions, and the computer-executable instructions are used to execute the vehicle damage detection method described in any one of the first aspects:
其中,所述车辆损伤检测方法包括:Wherein, the vehicle damage detection method includes:
获取受损车辆图像;Get images of damaged vehicles;
将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:Inputting the image of the damaged vehicle into the trained integrated damage model to obtain damaged component information, the integrated damage model includes:
共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;inputting the damaged vehicle image into a vehicle parts segmentation model to obtain a damage location corresponding to the damaged vehicle image;
根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。The damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
本申请实施例第一方面提供的一种车辆损伤检测方法,与相关技术相比,本方案通过获取受损车辆图像,将受损车辆图像输入到训练好的集成定损模型中得到损伤部件信息,并根据车辆部件分割模型得到受损车辆图像对应的损伤位置,根据损伤位置和损伤部件信息得到车辆的损伤信息。其中集成定损模型包括:一个共享主干神经网络和至少一个部件类型对应的损伤检测分类层,共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,集成的方式便于模型优化训练,并且训练时可以使用全部损伤类型的标注数据,有效提升模 型的鲁棒性,并减少过拟合的可能性。相比较相关技术中分离的多个损伤检测模型,本申请实施例使用集成定损模型通过一次前向处理即可得到对应的损伤部件信息,其占用的计算资源大大降低,耗费的计算时间大幅减少,从而有效提高检测效率,降低车辆定损过程中的人力成本。并且,本申请实施例通过将车辆部件分割模型得到受损车辆图像对应的损伤位置进行合并后,可以得到包含定位信息的车辆的损伤信息;另一方面,由于车辆的损伤信息包含部件的损伤位置,本申请实施例能够过滤背景区域的损伤误检,进一步提高对车辆损伤检测的检测精度。The first aspect of the embodiment of the present application provides a vehicle damage detection method. Compared with related technologies, this solution obtains damaged vehicle images and inputs the damaged vehicle images into the trained integrated damage model to obtain damaged parts information , and obtain the damage position corresponding to the damaged vehicle image according to the vehicle part segmentation model, and obtain the damage information of the vehicle according to the damage position and the damaged part information. The integrated damage assessment model includes: a shared backbone neural network and a damage detection classification layer corresponding to at least one component type. The shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type. The integration method is convenient for model optimization training, and Labeled data of all damage types can be used during training, effectively improving the robustness of the model and reducing the possibility of overfitting. Compared with the multiple damage detection models separated in the related art, the embodiment of the present application uses the integrated damage determination model to obtain the corresponding damaged component information through one forward processing, which greatly reduces the computing resources and time consumed , so as to effectively improve the detection efficiency and reduce the labor cost in the process of vehicle damage assessment. Moreover, in the embodiment of the present application, the damage information of the vehicle including positioning information can be obtained after merging the damage positions corresponding to the damaged vehicle images obtained from the vehicle part segmentation model; on the other hand, since the damage information of the vehicle includes the damage positions , the embodiment of the present application can filter the false damage detection in the background area, and further improve the detection accuracy of the vehicle damage detection.
可以理解的是,上述第二方面至第四方面与相关技术相比存在的有益效果与上述第一方面与相关技术相比存在的有益效果相同,可以参见上述第一方面中的相关描述,在此不再赘述。It can be understood that the beneficial effects of the above-mentioned second aspect to the fourth aspect compared with the related technology are the same as those of the above-mentioned first aspect compared with the related technology. Please refer to the relevant description in the above-mentioned first aspect. This will not be repeated here.
附图说明Description of drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请实施例的一些实施例,对于本领域普通技术人员来说,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings that need to be used in the embodiments or related technical descriptions. Obviously, the drawings in the following description are only the embodiments of the present application For some embodiments of the present invention, those skilled in the art can also obtain other drawings based on these drawings without paying creative efforts.
图1是本申请一个实施例提供的示例性系统架构的示意图;FIG. 1 is a schematic diagram of an exemplary system architecture provided by an embodiment of the present application;
图2是本申请一个实施例提供的车辆损伤检测方法的流程图;Fig. 2 is a flowchart of a vehicle damage detection method provided by an embodiment of the present application;
图3是相关技术中车辆检测模型的结构框图;Fig. 3 is a structural block diagram of a vehicle detection model in the related art;
图4是本申请一个实施例提供的集成定损模型结构框图;Fig. 4 is a structural block diagram of an integrated damage assessment model provided by an embodiment of the present application;
图5是本申请一个实施例提供的车辆损伤检测方法的流程图;FIG. 5 is a flowchart of a vehicle damage detection method provided by an embodiment of the present application;
图6是本申请一个实施例提供的车辆损伤检测方法中训练集成定损模型的流程图;FIG. 6 is a flow chart of training an integrated damage assessment model in a vehicle damage detection method provided by an embodiment of the present application;
图7是本申请一个实施例提供的车辆损伤检测方法的又一流程框图;Fig. 7 is another flowchart of a vehicle damage detection method provided by an embodiment of the present application;
图8是本申请一个实施例提供的车辆损伤检测装置的结构框图。Fig. 8 is a structural block diagram of a vehicle damage detection device provided by an embodiment of the present application.
具体实施方式Detailed ways
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请实施例。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请实施例的描述。In the following description, specific details such as specific system structures and technologies are presented for the purpose of illustration rather than limitation, so as to thoroughly understand the embodiments of the present application. However, it will be apparent to those skilled in the art that embodiments of the present application may be practiced in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the embodiments of the present application with unnecessary detail.
需要说明的是,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于流程图中的顺序执行所示出或描述的步骤。说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than in the flowchart. The terms "first", "second" and the like in the specification and claims and the above drawings are used to distinguish similar objects, and not necessarily used to describe a specific sequence or sequence.
还应当理解,在本申请实施例说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请实施例的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。It should also be understood that references to "one embodiment" or "some embodiments" described in the description of the embodiments of the present application mean that specific features described in conjunction with the embodiments of the present application are included in one or more embodiments of the embodiments of the present application. , structure or characteristics. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in other embodiments," etc. in various places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless specifically stated otherwise. The terms "including", "comprising", "having" and variations thereof mean "including but not limited to", unless specifically stated otherwise.
汽车是陆地交通中使用频率很高的工具,受天气,道路情况和驾驶人员技能等因素的影响,汽车受损是不可避免的,尤其是在交通事故中。因此为受损车辆确定受损部位和受损程度是一项非常重要的工作,因为它不仅会影响到后续车辆维修方案的确定,也会影响到事故相关方的经济赔偿额度确认。传统的定损方法依赖人工判断,效率低下且容易因定损员个人因素带来误差。近年来,随着人工智能技术的发展,已有一部分机构采取基于计算机视觉(目 标检测等)的方法为受损车辆进行智能定损,这些方法一定程度上降低了定损工作对人工的依赖。Cars are frequently used tools in land transportation. Affected by factors such as weather, road conditions and driver skills, car damage is inevitable, especially in traffic accidents. Therefore, it is very important to determine the damaged location and degree of damage for the damaged vehicle, because it will not only affect the determination of the subsequent vehicle maintenance plan, but also affect the determination of the amount of economic compensation for the parties involved in the accident. The traditional loss assessment method relies on manual judgment, which is inefficient and prone to errors due to personal factors of the assessor. In recent years, with the development of artificial intelligence technology, some institutions have adopted methods based on computer vision (target detection, etc.) to carry out intelligent damage assessment for damaged vehicles. These methods have reduced the dependence of manual damage assessment to a certain extent.
一般来说,在这种车辆智能定损系统的设计与开发过程中,由于定损场景复杂多变、车辆部件较多、损伤形态较多等原因,往往需要开发较多的损伤检测模型,如根据部件的材质而开发出针对钣金件、玻璃、轮胎等的损伤检测模型。这种方案的缺点也较为明显,一是在模型训练开发阶段,需要标注准备多个损伤数据集,并分别训练优化多个损伤检测模型,这种分开训练不同损伤检测模型的过程比较繁琐,效率比较低下,需要较多的人力、物力投入,同时,训练得到的模型由于数据的重复利用率小而鲁棒性差。二是模型部署上线阶段,多个模型需要耗费更多计算资源,同时增大调度难度,增加成本开支等。Generally speaking, in the design and development process of this kind of vehicle intelligent damage assessment system, due to the complex damage assessment scenarios, many vehicle components, and many damage forms, it is often necessary to develop more damage detection models, such as Damage detection models for sheet metal parts, glass, tires, etc. are developed according to the material of the parts. The shortcomings of this solution are also obvious. First, in the model training and development stage, multiple damage data sets need to be marked and prepared, and multiple damage detection models should be trained and optimized separately. This process of separately training different damage detection models is cumbersome and inefficient. It is relatively low and requires more manpower and material resources. At the same time, the trained model has poor robustness due to the low data reuse rate. The second is the stage of model deployment and launch. Multiple models need to consume more computing resources, and at the same time increase the difficulty of scheduling and increase costs.
本申请实施例即针对上述缺陷进行改进,提供了车辆损伤检测方法,涉及人工智能的图像识别技术领域,具体是通过获取受损车辆图像,将受损车辆图像输入到训练好的集成定损模型中得到损伤部件信息,并根据车辆部件分割模型得到受损车辆图像对应的损伤位置,根据损伤位置和损伤部件信息得到车辆的损伤信息。其中集成定损模型包括:一个共享主干神经网络和至少一个部件类型对应的损伤检测分类层,共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,集成的方式便于模型优化训练,并且训练时可以使用全部损伤类型的标注数据,有效提升模型的鲁棒性,并减少过拟合的可能性。相比较相关技术中分离的多个损伤检测模型,使用集成定损模型通过一次前向推理即可得到所有的损伤部件信息,其占用的计算资源大大降低,耗费的计算时间大幅减少,有效提高检测效率,降低车辆定损过程中的人力成本。并且通过与车辆部件分割模型得到受损车辆图像对应的损伤位置进行合并后,可以得到包含定位信息的车辆的损伤信息;另一方面,由于包含部件的损伤位置,能够过滤背景区域的损伤误检,进一步提高对车辆损伤检测的检测精度。The embodiment of the present application is to improve the above-mentioned defects, and provides a vehicle damage detection method, which relates to the field of artificial intelligence image recognition technology, specifically by acquiring damaged vehicle images, and inputting the damaged vehicle images into the trained integrated damage assessment model The damaged part information is obtained in the vehicle part segmentation model, and the damage position corresponding to the damaged vehicle image is obtained according to the vehicle part segmentation model, and the damage information of the vehicle is obtained according to the damage position and the damaged part information. The integrated damage assessment model includes: a shared backbone neural network and a damage detection classification layer corresponding to at least one component type. The shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type. The integration method is convenient for model optimization training, and Labeled data of all damage types can be used during training, effectively improving the robustness of the model and reducing the possibility of overfitting. Compared with the multiple damage detection models separated in related technologies, using the integrated damage determination model can obtain all the damaged component information through one forward reasoning, which greatly reduces the computing resources and time consumed, and effectively improves the detection efficiency. Efficiency, reducing labor costs in the process of vehicle damage assessment. And after merging the damage position corresponding to the damaged vehicle image obtained by the vehicle part segmentation model, the damage information of the vehicle including the positioning information can be obtained; on the other hand, since the damage position of the component is included, the false detection of damage in the background area can be filtered , to further improve the detection accuracy of vehicle damage detection.
下面结合附图,对本申请实施例作进一步阐述。The embodiments of the present application will be further described below in conjunction with the accompanying drawings.
图1示出了可以应用本申请实施例的技术方案的示例性系统架构的示意图。Fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied.
如图1所示,系统架构100可以包括终端设备(如图1中所示台式计算机101、平板电脑102和便携式计算机103中的一种或多种,当然也可以是其它的具有显示屏幕的终端设备等等)、网络104和服务器105。网络104用以在终端设备和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线通信链路、无线通信链路等等。As shown in FIG. 1, the system architecture 100 may include terminal equipment (one or more of a desktop computer 101, a tablet computer 102, and a portable computer 103 as shown in FIG. 1, and of course other terminals with a display screen equipment, etc.), network 104 and server 105. The network 104 is used as a medium for providing a communication link between the terminal device and the server 105 . Network 104 may include various connection types, such as wired communication links, wireless communication links, and so on.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks and servers in Fig. 1 are only illustrative. According to the implementation needs, there can be any number of terminal devices, networks and servers.
比如服务器105可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(Content Delivery Network,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器,或者是多个服务器组成的服务器集群等。Such as server 105 can be an independent server, also can provide cloud service, cloud database, cloud computing, cloud function, cloud storage, network service, cloud communication, middleware service, domain name service, security service, content distribution network (Content Delivery) Network, CDN), and cloud servers for basic cloud computing services such as big data and artificial intelligence platforms, or server clusters composed of multiple servers.
在本申请的一个实施例中,用户可以利用终端设备101(也可以是终端设备102或103)向服务器105上传受损车辆图像,该受损车辆图像可以包括针对不同部位,在不同角度、不同距离采集的受损车辆图像,也可以是单张照片。服务器105在获取到这些受损车辆图像之后,将受损车辆图像输入到训练好的集成定损模型中得到损伤部件信息,并根据车辆部件分割模型得到受损车辆图像对应的损伤位置,然后根据损伤位置和损伤部件信息得到车辆的损伤信息。能够有效提高检测效率,降低车辆定损过程中的人力成本。并且可以得到包含定位信息的车辆的损伤信息,同时,由于包含部件的损伤位置,能够过滤背景区域的损伤误检,进一步提高对车辆损伤检测的检测精度。In one embodiment of the present application, the user can use the terminal device 101 (or the terminal device 102 or 103) to upload a damaged vehicle image to the server 105. The damaged vehicle image can include different parts, different angles, different Images of damaged vehicles collected from a distance, or a single photo. After the server 105 acquires these damaged vehicle images, it inputs the damaged vehicle images into the trained integrated damage model to obtain the damaged parts information, and obtains the damage location corresponding to the damaged vehicle images according to the vehicle part segmentation model, and then according to The damaged location and damaged parts information obtains the damaged information of the vehicle. It can effectively improve the detection efficiency and reduce the labor cost in the process of vehicle damage assessment. And the damage information of the vehicle including the positioning information can be obtained. At the same time, since the damage position of the component is included, the false detection of the damage in the background area can be filtered, and the detection accuracy of the vehicle damage detection can be further improved.
需要说明的是,本申请实施例所提供的车辆损伤检测方法一般由服务器105执行,相应地,车辆损伤检测装置一般设置于服务器105中。但是,在本申请的其它实施例中,终端设备也可以与服务器具有相似的功能,从而执行本申请实施例所提供的待诊图像处理方案。It should be noted that the vehicle damage detection method provided in the embodiment of the present application is generally executed by the server 105 , and correspondingly, the vehicle damage detection device is generally set in the server 105 . However, in other embodiments of the present application, the terminal device may also have a similar function to the server, so as to execute the waiting-for-diagnosis image processing solution provided in the embodiment of the present application.
本申请实施例描述的系统架构以及应用场景是为了更加清楚的说明本申请实施例的技术 方案,并不构成对于本申请实施例提供的技术方案的限定,本领域技术人员可知,随着系统架构的演变和新应用场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。本领域技术人员可以理解的是,图1中示出的系统架构并不构成对本申请实施例的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。The system architecture and application scenarios described in the embodiments of the present application are for more clearly illustrating the technical solutions of the embodiments of the present application, and do not constitute limitations on the technical solutions provided by the embodiments of the present application. Those skilled in the art know that with the system architecture The evolution of the technology and the emergence of new application scenarios, the technical solutions provided by the embodiments of the present application are also applicable to similar technical problems. Those skilled in the art can understand that the system architecture shown in Figure 1 does not constitute a limitation to the embodiment of the present application, and may include more or less components than those shown in the illustration, or combine some components, or different components layout.
本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .
基于上述系统架构,提出本申请实施例的车辆损伤检测方法的各个实施例。Based on the above system architecture, various embodiments of the vehicle damage detection method according to the embodiments of the present application are proposed.
如图2所示,图2是本申请一个实施例提供的车辆损伤检测方法的流程图,包括但不限于有步骤S110和步骤S140。As shown in FIG. 2 , FIG. 2 is a flowchart of a vehicle damage detection method provided by an embodiment of the present application, including but not limited to step S110 and step S140 .
步骤S110,获取受损车辆图像。Step S110, acquiring an image of the damaged vehicle.
步骤S120,将受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息。Step S120, input the image of the damaged vehicle into the trained integrated damage model to obtain the information of the damaged parts.
步骤S130,将受损车辆图像输入到车辆部件分割模型,得到受损车辆图像对应的损伤位置。In step S130, the damaged vehicle image is input into the vehicle component segmentation model to obtain the damage location corresponding to the damaged vehicle image.
步骤S140,根据损伤位置从损伤部件信息中定位得到车辆的损伤信息。Step S140, according to the damage location, locate and obtain the damage information of the vehicle from the damaged part information.
可以理解的是,上述步骤S120和步骤S130之间没有先后顺序,可以同时执行,也可以先执行步骤S120再执行步骤S130,或者先执行步骤S130再执行步骤S120,本实施例在此对执行顺序不做限制。It can be understood that there is no sequence between the above step S120 and step S130, they can be executed at the same time, or step S120 can be executed first and then step S130 can be executed, or step S130 can be executed first and then step S120 can be executed. No restrictions.
在一实施例中,步骤S120中损伤部件信息包括损伤部件名称、损伤状态和损伤程度。损伤部件名称包括但不限于:钣金件、玻璃、轮胎等;损伤信息包括但不限于:划痕、刮擦、凹陷、褶皱、撕裂、缺失、破裂等;损伤程度包括但不限于:轻度损伤、中度损伤、重度损伤等。In one embodiment, the damaged part information in step S120 includes the damaged part name, damage state and damage degree. The name of damaged parts includes but not limited to: sheet metal parts, glass, tires, etc.; damage information includes but not limited to: scratches, scratches, dents, folds, tears, missing, cracks, etc.; the degree of damage includes but not limited to: minor moderate damage, moderate damage, severe damage, etc.
在一实施例中,当发生交通事故后,用户可以自行用手机拍摄事故现场图像,例如在不同位置、不同角度拍摄受损车辆得到受损车辆图像,然后将受损车辆图像发送至后台服务器进行定损。In one embodiment, when a traffic accident occurs, the user can use his mobile phone to take images of the accident scene, for example, take pictures of damaged vehicles at different positions and angles to obtain images of the damaged vehicles, and then send the images of the damaged vehicles to the background server for further processing. The damage.
后台服务器中存储预先训练好的集成定损模型,根据用户上传的受损车辆图像,得到受损车辆图像中受损的部件类型,损伤部件信息包括损伤部件名称、损伤状态和损伤程度,例如该车辆损伤部位名称是钣金件,损伤信息是刮擦,损伤程度是中度损伤。The pre-trained integrated damage model is stored in the background server, and the type of damaged parts in the damaged vehicle image is obtained according to the damaged vehicle image uploaded by the user. The damaged part information includes the name of the damaged part, the damage state and the degree of damage, such as the The name of the damaged part of the vehicle is sheet metal, the damage information is scratches, and the damage degree is moderate damage.
并且通过车辆部件分割模型得到对应受损车辆图像中受损车辆对应的损伤位置,例如是:左侧前车门钣金件。And the damage position corresponding to the damaged vehicle in the damaged vehicle image is obtained through the vehicle part segmentation model, for example: the left front door sheet metal part.
然后根据损伤位置和损伤部件信息得到该受损车辆的损伤信息,即损伤信息包括:损伤部件信息和损伤位置。例如上述示例中该受损车辆的损伤信息是:左侧前车门钣金件出现中度损伤程度的刮擦。Then, the damage information of the damaged vehicle is obtained according to the damage location and the damage component information, that is, the damage information includes: damage component information and damage location. For example, in the above example, the damage information of the damaged vehicle is: the sheet metal part of the left front door is scratched with a moderate degree of damage.
另外,在一实施例中,集成定损模型包括:In addition, in an embodiment, the integrated loss assessment model includes:
共享主干神经网络,共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,共享主干神经网络用于对受损车辆图像进行预处理,得到第一输出数据;至少一个部件类型对应的损伤检测分类层,用于对第一输出数据进行处理,得到损伤部件信息。The shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain the first output data; the damage corresponding to at least one component type The detection and classification layer is configured to process the first output data to obtain damaged component information.
本实施例中,集成定损模型由一个集成的共享主干神经网络和多个损伤检测分类层(对应不同部件类型)构成,每个损伤检测分类层对应处理一种部件类型的损伤数据集,利用至少一个部件类型对应的损伤检测模型集成得到共享主干神经网络,然后连接至少一个部件类型对应的损伤检测分类层,输出该部件类型对应的损伤部件信息。In this embodiment, the integrated damage assessment model is composed of an integrated shared backbone neural network and multiple damage detection classification layers (corresponding to different component types), and each damage detection classification layer corresponds to processing a damage data set of a component type. The damage detection model corresponding to at least one component type is integrated to obtain a shared backbone neural network, and then the damage detection classification layer corresponding to at least one component type is connected to output the damaged component information corresponding to the component type.
可以说每个不同部件的损伤检测除了最后一层的损伤检测分类层不同以外,共享前面的共享主干神经网络,每个损伤数据集经过共享主干神经网络之后,通过其对应的末端的损伤检测分类层来预测其损伤类别。即通过共享主干神经网络的方式将多个损伤检测模型集成为 一个模型,不同于现有的多个部件对应不同的损伤检测模型,该共享主干神经网络不区分部件类型,用一个网络结构进行不同的损伤检测,多个损伤检测分类层对应多个损伤数据集,从而输出所有部件的损伤结果。It can be said that the damage detection of each different component shares the previous shared backbone neural network except for the damage detection and classification layer of the last layer. layer to predict its damage category. That is, multiple damage detection models are integrated into one model by sharing the backbone neural network. Different from the existing multiple components corresponding to different damage detection models, the shared backbone neural network does not distinguish between component types, and uses a network structure for different Multiple damage detection classification layers correspond to multiple damage data sets to output damage results for all components.
下面对相关技术中车辆检测模型的结构框图与本实施例中集成定损模型结构框图的区别进行对比说明。The difference between the structural block diagram of the vehicle detection model in the related art and the structural block diagram of the integrated damage assessment model in this embodiment will be described below.
参照图3,为相关技术中车辆检测模型的结构框图,由于车辆部件较多,本实施例选取钣金件、玻璃、轮胎这三类进行说明,可以理解的是,并不代表仅限制在这三类中。Referring to FIG. 3 , it is a structural block diagram of a vehicle detection model in the related art. Since there are many vehicle components, this embodiment selects sheet metal parts, glass, and tires for illustration. It is understandable that it does not mean that it is limited to these in three categories.
该车辆检测模型的结构框图中包括三个功能单元,分别是:The structural block diagram of the vehicle detection model includes three functional units, namely:
第一单元:损伤数据集,包括:钣金件损伤检测数据集、玻璃损伤检测数据集和轮胎损伤检测数据集。这些损伤数据集都是针对某一特定部件的损伤进行的标注,并不含有其他部件的损伤标注信息,损伤数据集的训练样本可以包括:损伤图像、损伤判断标签等。The first unit: damage data set, including: sheet metal damage detection data set, glass damage detection data set and tire damage detection data set. These damage data sets are all labeled for the damage of a specific component, and do not contain damage label information of other components. The training samples of the damage data set can include: damage images, damage judgment labels, etc.
第二单元:单数据集检测模型,包括:钣金件损伤检测模型、玻璃损伤检测模型和轮胎损伤检测模型,损伤检测模型包括:损伤检测主体和损伤检测分类器。不同的检测模型对应不同的数据集得到。The second unit: single data set detection model, including: sheet metal damage detection model, glass damage detection model and tire damage detection model, damage detection model includes: damage detection subject and damage detection classifier. Different detection models correspond to different data sets.
第三单元:损失函数,包括:钣金件损伤损失函数、玻璃损伤损失函数和轮胎损伤损失函数,损失函数与损伤检测模型一一对应,用于更新损伤检测模型的参数。The third unit: loss function, including: sheet metal damage loss function, glass damage loss function and tire damage loss function, the loss function corresponds to the damage detection model one by one, and is used to update the parameters of the damage detection model.
训练时,将第一单元的损伤数据集分别输入第二单元的单数据集检测模型得到对应的损伤检测结果,再利用第三单元的损失函数更新损伤检测模型的参数。例如钣金件损伤检测数据集输入钣金件损伤检测模型得到钣金件损伤检测结果,然后利用钣金件损伤损失函数更新钣金件损伤检测模型的参数。During training, input the damage data set of the first unit into the single data set detection model of the second unit to obtain the corresponding damage detection results, and then use the loss function of the third unit to update the parameters of the damage detection model. For example, the sheet metal damage detection data set is input into the sheet metal damage detection model to obtain the sheet metal damage detection result, and then the sheet metal damage loss function is used to update the parameters of the sheet metal damage detection model.
参照图3,一般来说,相关技术中车辆检测模型的各检测模型都是单独工作,互相之间各不干扰。因此存在以下问题:一是在模型训练开发阶段,需要准备标注多个损伤数据集,并分别训练优化多个损伤检测模型,这种分开训练不同损伤检测模型的过程比较繁琐,效率比较低下,需要较多的人力、物力投入,同时训练得到的模型由于数据的重复利用率小而鲁棒性差。二是模型部署上线阶段,多个模型需要耗费更多计算资源,同时增大调度难度,增加成本开支等。下面通过图4说明本申请一个实施例提供的集成定损模型结构框图。Referring to FIG. 3 , generally speaking, each detection model of the vehicle detection model in the related art works independently without interfering with each other. Therefore, there are the following problems: First, in the model training and development stage, it is necessary to prepare and label multiple damage data sets, and train and optimize multiple damage detection models separately. This process of separately training different damage detection models is cumbersome and inefficient. More manpower and material resources are invested, and at the same time, the trained model has poor robustness due to the low data reuse rate. The second is the stage of model deployment and launch. Multiple models need to consume more computing resources, and at the same time increase the difficulty of scheduling and increase costs. The structural block diagram of the integrated damage assessment model provided by an embodiment of the present application is illustrated below by using FIG. 4 .
参照图4,为本申请一个实施例提供的集成定损模型结构框图,包括以下几个功能单元。Referring to FIG. 4 , it is a structural block diagram of an integrated damage assessment model provided by an embodiment of the present application, including the following functional units.
由于车辆部件较多,本实施例选取钣金件、玻璃、轮胎这三类进行说明,可以理解的是,并不代表仅限制在这三类中。Due to the large number of vehicle components, three types of sheet metal parts, glass, and tires are selected for illustration in this embodiment. It is understood that it does not mean that they are limited to these three types.
该车辆检测模型的结构框图中包括四个单元,分别是:The structural block diagram of the vehicle detection model includes four units, namely:
第一单元:损伤数据集,包括:钣金件损伤检测数据集、玻璃损伤检测数据集和轮胎损伤检测数据集等。这些损伤数据集都是针对某一特定部件的损伤进行的标注,并不含有其他部件的损伤标注信息,损伤数据集的训练样本可以包括:损伤图像、损伤判断标签等,例如:The first unit: damage data set, including: sheet metal damage detection data set, glass damage detection data set and tire damage detection data set, etc. These damage data sets are all labeled for the damage of a specific component, and do not contain damage label information of other components. The training samples of the damage data set can include: damage images, damage judgment labels, etc., for example:
样本1:损伤图像为玻璃图像,损伤判断标签为:[玻璃,中度损伤,破裂];Sample 1: The damage image is a glass image, and the damage judgment label is: [glass, moderate damage, broken];
样本2:损伤图像为钣金件图像,损伤判断标签为:[钣金件,轻度损伤,刮擦]。Sample 2: The damage image is an image of a sheet metal part, and the damage judgment label is: [sheet metal part, mild damage, scratch].
第二单元:共享主干神经网络,其中共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,例如由钣金件损伤检测模型、玻璃损伤检测模型和轮胎损伤检测模型集成得到。The second unit: shared backbone neural network, wherein the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, for example, by integrating sheet metal damage detection models, glass damage detection models and tire damage detection models.
第三单元:不同部件类型对应不同的损伤检测分类层,例如钣金件损伤检测分类层、玻璃损伤检测分类层和轮胎损伤检测分类层等。第二单元和第三单元构成本实施例的集成定损模型。The third unit: Different component types correspond to different damage detection classification layers, such as sheet metal damage detection classification layer, glass damage detection classification layer and tire damage detection classification layer. The second unit and the third unit constitute the integrated damage assessment model of this embodiment.
第四单元:损失函数,包括:钣金件损伤损失函数、玻璃损伤损失函数和轮胎损伤损失函数等,损失函数与损伤检测模型一一对应,用于更新损伤检测模型的参数。由于不同损伤数据集的损伤类别都是针对特定部件,因此不同损伤数据集之间的损伤类别不存在重合的现 象,无需将损伤函数合并为一个进行训练。The fourth unit: loss function, including: sheet metal damage loss function, glass damage loss function and tire damage loss function, etc. The loss function corresponds to the damage detection model one by one, and is used to update the parameters of the damage detection model. Since the damage categories of different damage datasets are all for specific parts, there is no overlapping of damage categories between different damage datasets, and there is no need to combine the damage functions into one for training.
训练时,将第一单元的损伤数据集输入第二单元的共享主干神经网络得到输出后,将输出根据其损伤部件选择对应的损伤检测分类层。由于损伤数据集都是针对某一特定部件的损伤进行的标注,并不含有其他部件的损伤标注信息,不能简单合并损伤类别,训练一个检测模型来检测所有部件的损伤,因此在不合并多个损伤数据集的目标类别空间的情况下,训练一个集成的共享主干神经网络,也就是在共享主干网络中并行地训练多个针对特定损伤数据集的损伤检测模型。During training, after the damage data set of the first unit is input into the shared backbone neural network of the second unit to obtain an output, the corresponding damage detection and classification layer is selected according to the damaged parts of the output. Since the damage data sets are all labeled for the damage of a specific component and do not contain damage label information of other components, it is not possible to simply merge the damage categories and train a detection model to detect the damage of all components. Therefore, without merging multiple In the case of the target category space of the impairment dataset, an integrated shared backbone neural network is trained, that is, multiple impairment detection models for a specific impairment dataset are trained in parallel in the shared backbone network.
例如钣金件损伤检测数据集输入共享主干神经网络后输出至钣金件损伤检测分类层,然后利用钣金件损伤损失函数更新钣金件损伤检测模型的参数。For example, the sheet metal damage detection data set is input into the shared backbone neural network and then output to the sheet metal damage detection classification layer, and then the sheet metal damage loss function is used to update the parameters of the sheet metal damage detection model.
另外,在一实施例中,共享主干神经网络是深度残差神经网络(Deep Residual Network)。In addition, in one embodiment, the shared backbone neural network is a deep residual neural network (Deep Residual Network).
对于传统的深度学习网络应用来说,网络越深,层数越多,所能学到的东西越多,当然收敛速度也就越慢,训练时间越长。然而深度到了一定程度之后就会出现越往深学习率越低的情况,甚至在一些场景下,网络层数越深反而降低了准确率,而且很容易出现梯度消失和梯度爆炸的现象。这种现象并不是由于过拟合导致的,过拟合是在训练集中把模型训练的太好,但是在新的数据中表现却不尽人意的情况。一般来说,深度学习网络训练准误差和测试误差在层数增加后皆变大了,这说明当网络层数变深后,深度网络变得难以训练。For traditional deep learning network applications, the deeper the network, the more layers, the more things can be learned, and of course the slower the convergence speed, the longer the training time. However, when the depth reaches a certain level, the deeper the learning rate, the lower the learning rate. Even in some scenarios, the deeper the network layer, the lower the accuracy rate, and the phenomenon of gradient disappearance and gradient explosion is easy to occur. This phenomenon is not caused by overfitting. Overfitting is the situation where the model is trained too well in the training set, but the performance in the new data is not satisfactory. Generally speaking, the training error and test error of the deep learning network become larger as the number of layers increases, which shows that when the number of network layers becomes deeper, the deep network becomes difficult to train.
而深度残差神经网络引入了残差块的设计,克服了上述这种由于网络深度的加深而产生的学习率变低、准确率无法有效提升的问题。残差块的原理为将前面若干层的数据输出直接跳过多层而引入到后面数据层的输入部分。简单来说就是,类似于跳跃连接,将前面较为“清晰”的数据和后面被“有损压缩”的数据共同作为后面网络数据的输入,这样网络可以学到更为丰富的内容,因此本实施例的共享主干神经网络采用深度残差神经网络。The deep residual neural network introduces the design of the residual block, which overcomes the above-mentioned problems that the learning rate becomes lower and the accuracy rate cannot be effectively improved due to the deepening of the network depth. The principle of the residual block is to directly skip the data output of the previous layers and introduce it into the input part of the subsequent data layer. To put it simply, similar to skip connections, the data that is "clear" in the front and the data that is "lossy compressed" in the back are used as the input of the network data in the back, so that the network can learn richer content, so this implementation The shared backbone neural network of the example uses a deep residual neural network.
在一实施例中,对应的,参考图5,步骤S120包括但不限于有以下步骤:In one embodiment, correspondingly, referring to FIG. 5, step S120 includes but is not limited to the following steps:
步骤S121,基于深度残差神经网络中顺次相连的各个残差块,对受损车辆图像进行残差特征向量提取处理,得到第一输出数据。Step S121 , based on each residual block sequentially connected in the deep residual neural network, perform residual feature vector extraction processing on the damaged vehicle image to obtain first output data.
在一实施例中,任意一个残差块中均包括一个恒等映射和至少两个卷积层,任意一个残差块的恒等映射由任意一个残差块的输入端指向任意一个残差块的输出端,即恒等映射就是上述提到的跳跃连接。In an embodiment, any residual block includes an identity map and at least two convolutional layers, and the identity map of any residual block is directed to any residual block from the input end of any residual block The output of , that is, the identity map is the skip connection mentioned above.
步骤S122,将第一输出数据输入到部件类型对应的损伤检测分类层,得到损伤部件信息。Step S122, inputting the first output data to the damage detection classification layer corresponding to the component type to obtain damaged component information.
在一实施例中,共享主干神经网络包括以下一种:Res-Net50网络、Res-Net101网络、Res-Net110网络或Res-Net152网络。由于相关技术中关于该网络结构有较为详细的说明,在此不再赘述。In an embodiment, the shared backbone neural network includes one of the following: Res-Net50 network, Res-Net101 network, Res-Net110 network or Res-Net152 network. Since the network structure is described in detail in the related art, details are not repeated here.
下面描述本实施例的集成定损模型的训练过程。The training process of the integrated loss assessment model of this embodiment is described below.
在一实施例中,参照图6,为本申请一实施例提供的车辆损伤检测方法中训练集成定损模型的流程图,包括但不限于有步骤S610和步骤S640。In an embodiment, referring to FIG. 6 , it is a flow chart of training an integrated damage assessment model in a vehicle damage detection method provided in an embodiment of the present application, including but not limited to step S610 and step S640 .
步骤S610,获取至少一个部件类型对应的损伤数据集作为训练数据集,训练数据集包含对应的损伤判断标签。In step S610, a damage data set corresponding to at least one component type is obtained as a training data set, and the training data set includes a corresponding damage judgment label.
步骤S620,将训练数据集输入共享主干神经网络得到特征数据,该特征数据由残差特征向量提取处理得到,即类似于上述第一输出数据。Step S620, input the training data set into the shared backbone neural network to obtain feature data, which is obtained by extracting residual feature vectors, which is similar to the above-mentioned first output data.
步骤S630,将特征数据输入到部件类型对应的损伤检测分类层,得到损伤部件信息检测结果。In step S630, the feature data is input into the damage detection classification layer corresponding to the component type, and a detection result of damaged component information is obtained.
步骤S640,根据损伤部件信息检测结果与损伤判断标签之间的检测误差,训练得到集成定损模型。Step S640, according to the detection error between the detection result of the damaged component information and the damage judgment label, train to obtain an integrated damage assessment model.
在一实施例中,每一个部件类型对应的损伤检测模型包括其对应的损失函数,步骤S640具体描述为:根据检测误差对集成定损模型中的参数进行调整,直至损失函数满足收敛条件,得到集成定损模型,即根据损失函数更新损伤检测模型的参数。本实施例中,收敛条件可以是:最小化损失函数,即通过最小化各损失函数的方式来针对各损伤检测模型的参数进行优化。In one embodiment, the damage detection model corresponding to each component type includes its corresponding loss function. Step S640 is specifically described as: adjust the parameters in the integrated damage model according to the detection error until the loss function satisfies the convergence condition, and obtain Integrate the damage model, that is, update the parameters of the damage detection model according to the loss function. In this embodiment, the convergence condition may be: minimizing loss functions, that is, optimizing parameters of each damage detection model by minimizing each loss function.
本实施例在对集成定损模型进行训练时使用了全部类别的损伤标注数据,明显提升集成定损模型的鲁棒性,减少过拟合的可能性。同时相比多个损伤检测模型,一个集成模型经过一次前向推理即可得到所有的损伤检测结果,其所占用的计算资源大大降低,耗费的计算时间大幅减少。In this embodiment, all types of damage labeling data are used when training the integrated damage assessment model, which significantly improves the robustness of the integrated damage assessment model and reduces the possibility of overfitting. At the same time, compared with multiple damage detection models, an integrated model can obtain all damage detection results after one forward reasoning, which greatly reduces the computing resources and time consumed.
另外,在一实施例中,针对多个损伤数据集中的各个损伤样本不平衡的问题,训练集成定损模型时,采用均匀采样策略和/或类别间平衡采样策略对训练数据集进行采样。In addition, in one embodiment, for the problem of unbalanced damage samples in multiple damage data sets, when training the integrated damage assessment model, a uniform sampling strategy and/or an inter-category balanced sampling strategy is used to sample the training data sets.
1)均匀采样策略:即采用均匀采样策略对每个部件类型对应的损伤数据集进行均匀采样得到训练数据集,以使得不同部件类型对应的损失数据集之间的样本数量均衡,提升集成定损模型在各个损伤数据集上的整体性能表现。1) Uniform sampling strategy: the uniform sampling strategy is used to uniformly sample the damage data sets corresponding to each component type to obtain the training data set, so that the number of samples between the loss data sets corresponding to different component types is balanced, and the integrated damage assessment is improved. The overall performance of the model on each damage dataset.
2)类别间平衡采样策略:当不同部件类型对应的损伤数据集之间的样本数量相差较大时,采用类别间平衡采样策略对样本数量少的部件类型对应的损失数据集进行过采样得到训练数据集。例如某一部件类别的损伤数据集样本数明显少于其他损伤数据集,则该类别能提供的信息量也较少采用该策略进行均衡采样,尽量保证类别间的训练数据量一致。2) Balanced sampling strategy between categories: When the number of samples between the damage data sets corresponding to different component types differs greatly, the balanced sampling strategy between categories is used to oversample the loss data sets corresponding to the component types with a small number of samples to obtain training data set. For example, the number of samples in a damage data set of a certain component category is significantly less than that of other damage data sets, and the amount of information that this category can provide is also less. Use this strategy for balanced sampling, and try to ensure that the amount of training data between categories is consistent.
该策略为了缓解在损伤数据集内部不同类别间样本不平衡问题,提升在对应损伤数据集上的性能表现。主要目的是尽可能地保证在每个批次(batch)的训练样本中,每个类(不同部件类型的样本)出现的概率相同,且避免图片输入顺序恒定不变。This strategy aims to alleviate the problem of sample imbalance between different categories in the damage data set and improve the performance on the corresponding damage data set. The main purpose is to ensure as much as possible that in each batch of training samples, the probability of occurrence of each class (samples of different component types) is the same, and to avoid the constant input order of pictures.
本实施例中使用两个列表来迭代采样获得每个批次的样本。在每个迭代中,首先在部件类别列表中采样一个类别X(例如玻璃),然后在该类别X的图像列表(例如玻璃的损伤数据集)中采样一幅图片,当类别X的图像列表遍历完毕,则重新打乱图像列表顺序,从头开始遍历。例如这样可以利用对少样本数的损伤数据集进行“过采样”,增大其样本数,保证在该批次中该部件类别的损伤数据集的样本数是均衡的。部件类别列表同样处理,保证每个批次中部件类别的种类也是均衡的。通过以上这种类别间平衡采样策略来解决训练样本中的类别分布不平衡问题。In this embodiment, two lists are used to iteratively sample to obtain samples of each batch. In each iteration, first sample a category X (such as glass) in the component category list, and then sample a picture in the image list of this category X (such as the damage data set of glass), when the image list of category X traverses After that, reshuffle the order of the image list and start traversing from the beginning. For example, in this way, "oversampling" can be used to increase the number of samples of the damage data set with a small number of samples, so as to ensure that the number of samples of the damage data set of the component category in the batch is balanced. The part category list is also processed to ensure that the types of part categories in each batch are also balanced. Through the above balanced sampling strategy between categories to solve the problem of unbalanced category distribution in training samples.
另外,在一实施例中,车辆部件分割模型由神经网络模型预先训练而成。在前向推理阶段,将一幅图像输入集成定损模型中,该模型会同时输出针对多个损伤数据集的损伤部件信息,下一步需要确定损伤部件信息所属的具体位置,本实施例利用下述两种车辆部件分割模型来辅助定位。In addition, in one embodiment, the vehicle part segmentation model is pre-trained by a neural network model. In the forward reasoning stage, an image is input into the integrated damage model, and the model will simultaneously output the damaged part information for multiple damage data sets. The next step is to determine the specific location of the damaged part information. This embodiment uses the following The two vehicle component segmentation models described above are used to assist localization.
下面介绍这两种车辆部件分割模型的具体细节。The specific details of these two vehicle part segmentation models are presented below.
1)车辆部件分割模型包括部件分割网络和全局特征提取网络,采集输入的受损车辆图像的全局特征图,利用全局特征提取网络获取对应全局特征图的多个局部特征,从而能根据局部特征利用部件分割网络得到车辆分割部件信息,并根据损失函数更新模型的参数,以使车辆部件分割模型能够输出受损车辆图像对应的损伤位置。1) The vehicle part segmentation model includes a part segmentation network and a global feature extraction network, collects the global feature map of the input damaged vehicle image, and uses the global feature extraction network to obtain multiple local features corresponding to the global feature map, so that it can be used according to the local features The part segmentation network obtains the information of vehicle segmentation parts, and updates the parameters of the model according to the loss function, so that the vehicle part segmentation model can output the damage location corresponding to the damaged vehicle image.
2)根据语义分割思路构建对应的车辆部件分割模型,训练过程包括:对受损车辆图像样本中的类别进行标注后生成训练集,每个类别均包含对应的权重,然后采用对应的损失函数对待训练的语义分割模型进行训练,得到损失值后根据损失值调整待训练的语义分割模型的模型参数,生成根据语义分割思路构建对应的车辆部件分割模型。2) Construct the corresponding vehicle part segmentation model according to the idea of semantic segmentation. The training process includes: labeling the categories in the damaged vehicle image samples and then generating a training set. Each category contains corresponding weights, and then the corresponding loss function is used to treat The trained semantic segmentation model is trained, and after the loss value is obtained, the model parameters of the semantic segmentation model to be trained are adjusted according to the loss value, and the corresponding vehicle part segmentation model is constructed according to the semantic segmentation idea.
上述描述了集成定损模型以及车辆部件分割模型的具体结构,下面参照图7,为本申请一个实施例提供的车辆损伤检测方法的流程框图,从图中可见包括以下步骤:The above describes the specific structure of the integrated damage model and the vehicle parts segmentation model. Referring to FIG. 7, it is a flow chart of a vehicle damage detection method provided by an embodiment of the present application. It can be seen from the figure that the following steps are included:
步骤S710,获取受损车辆图像。Step S710, acquiring the image of the damaged vehicle.
步骤S720,将受损车辆图像同时输入集成定损模型和车辆部件分割模型,其中集成定损模型包括共享主干神经网络和多个损伤检测分类层。In step S720, the damaged vehicle image is simultaneously input into the integrated damage assessment model and the vehicle part segmentation model, wherein the integrated damage assessment model includes a shared backbone neural network and multiple damage detection and classification layers.
步骤S730,分别获取集成定损模型输出的损伤部件信息和车辆部件分割模型输出的损伤位置。In step S730, the damaged component information output by the integrated damage assessment model and the damaged location output by the vehicle component segmentation model are acquired respectively.
步骤S740,根据损伤位置从损伤部件信息中定位得到受损车辆的损伤信息,仅保留目标部件下匹配的损伤信息。即结合车辆部件分割模型,将集成定损模型的检测结果进行部件定位,从而得到损伤部件信息与其损伤位置,过滤背景区域的损伤误检。In step S740, the damage information of the damaged vehicle is obtained by locating from the damaged component information according to the damage position, and only the matching damage information under the target component is kept. That is, combined with the vehicle component segmentation model, the detection results of the integrated damage determination model are used for component positioning, so as to obtain the damaged component information and its damaged position, and filter the false detection of damage in the background area.
例如,根据输入的受损车辆图像,集成定损模型输出的损伤部件信息包括:例如该车辆损伤部位名称是钣金件和玻璃,损伤信息是刮擦和碎裂,损伤程度均是中度损伤。For example, according to the input damaged vehicle image, the damaged part information output by the integrated damage model includes: for example, the name of the damaged part of the vehicle is sheet metal and glass, the damage information is scratched and broken, and the damage degree is moderate damage .
通过车辆部件分割模型得到对应受损车辆图像中受损车辆对应的损伤位置,例如是:前挡风玻璃右侧。The damage position corresponding to the damaged vehicle in the damaged vehicle image is obtained through the vehicle part segmentation model, for example: the right side of the front windshield.
然后将损伤位置和损伤部件信息进行合并,得到该受损车辆的损伤信息是:前挡风玻璃右侧出现中度损伤程度的碎裂,即保留玻璃分割区域下所有玻璃的损伤检测结果,去除可能的轮胎或钣金件的损伤检测结果。Then, the damage location and the damaged parts information are combined to obtain the damage information of the damaged vehicle as follows: moderate damage occurs on the right side of the front windshield, that is, the damage detection results of all the glass under the glass segmentation area are retained, and the damage detection results are removed. Possible damage detection results for tires or sheet metal parts.
本申请实施例提供了一种车辆损伤检测方法,通过获取受损车辆图像,将受损车辆图像输入到训练好的集成定损模型中得到损伤部件信息,并根据车辆部件分割模型得到受损车辆图像对应的损伤位置,根据损伤位置和损伤部件信息得到车辆的损伤信息。其中集成定损模型包括:一个共享主干神经网络和至少一个部件类型对应的损伤检测分类层,共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,集成的方式便于模型优化训练,并且训练时可以使用全部损伤类型的标注数据,有效提升模型的鲁棒性,并减少过拟合的可能性。相比较相关技术中分离的多个损伤检测模型,使用集成定损模型通过一次前向推理即可得到所有的损伤部件信息,其占用的计算资源大大降低,耗费的计算时间大幅减少,有效提高检测效率,降低车辆定损过程中的人力成本。并且通过与车辆部件分割模型得到受损车辆图像对应的损伤位置进行合并后,可以得到包含定位信息的车辆的损伤信息;另一方面,由于包含部件的损伤位置,能够过滤背景区域的损伤误检,进一步提高对车辆损伤检测的检测精度。The embodiment of the present application provides a vehicle damage detection method, by acquiring damaged vehicle images, inputting the damaged vehicle images into the trained integrated damage model to obtain damaged parts information, and obtaining damaged vehicles according to the vehicle parts segmentation model The damage location corresponding to the image, and the damage information of the vehicle is obtained according to the damage location and damaged component information. The integrated damage assessment model includes: a shared backbone neural network and a damage detection classification layer corresponding to at least one component type. The shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type. The integration method is convenient for model optimization training, and Labeled data of all damage types can be used during training, effectively improving the robustness of the model and reducing the possibility of overfitting. Compared with the multiple damage detection models separated in related technologies, using the integrated damage determination model can obtain all the damaged component information through one forward reasoning, which greatly reduces the computing resources and time consumed, and effectively improves the detection efficiency. Efficiency, reducing labor costs in the process of vehicle damage assessment. And after merging the damage position corresponding to the damaged vehicle image obtained by the vehicle part segmentation model, the damage information of the vehicle including the positioning information can be obtained; on the other hand, since the damage position of the component is included, the false detection of damage in the background area can be filtered , to further improve the detection accuracy of vehicle damage detection.
另外,本申请实施例的一个实施例还提供了一种车辆损伤检测装置,参照图8,装置包括:In addition, an embodiment of the embodiment of the present application also provides a vehicle damage detection device, referring to Figure 8, the device includes:
获取图像模块810,用于获取受损车辆图像;An image acquisition module 810, configured to acquire an image of the damaged vehicle;
损伤部件信息确定模块820,用于将受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,集成定损模型包括:The damaged part information determination module 820 is used to input the image of the damaged vehicle into the trained integrated damage model to obtain the damaged part information. The integrated damage model includes:
共享主干神经网络,共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,共享主干神经网络用于对受损车辆图像进行预处理,得到第一输出数据;The shared backbone neural network is obtained by integrating the damage detection model corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain the first output data;
至少一个部件类型对应的损伤检测分类层,用于对第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
图像分割模块830,用于将受损车辆图像输入到车辆部件分割模型,得到受损车辆图像对应的损伤位置;The image segmentation module 830 is used to input the damaged vehicle image into the vehicle part segmentation model to obtain the damage position corresponding to the damaged vehicle image;
损伤信息合成模块840,用于根据损伤位置从损伤部件信息中定位得到车辆的损伤信息。The damage information synthesis module 840 is configured to locate and obtain the damage information of the vehicle from the damaged component information according to the damage location.
以上所描述的装置实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The device embodiments described above are only illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
需要说明的是,本实施例中的车辆损伤检测装置,可以执行如图2所示实施例中的车辆 损伤检测方法。即,本实施例中的车辆损伤检测装置和如图2所示实施例中的车辆损伤检测方法,均属于相同的发明构思,因此这些实施例具有相同的实现原理以及技术效果,此处不再详述。It should be noted that the vehicle damage detection device in this embodiment can implement the vehicle damage detection method in the embodiment shown in Figure 2 . That is, the vehicle damage detection device in this embodiment and the vehicle damage detection method in the embodiment shown in FIG. detail.
另外,本申请实施例的一个实施例还提供了计算机设备,计算机设备包括:存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序。In addition, an embodiment of the embodiment of the present application further provides computer equipment, and the computer equipment includes: a memory, a processor, and a computer program stored in the memory and operable on the processor.
处理器和存储器可以通过总线或者其他方式连接。The processor and memory can be connected by a bus or other means.
存储器作为一种非暂态计算机可读存储介质,可用于存储非暂态软件程序以及非暂态性计算机可执行程序。此外,存储器可以包括高速随机存取存储器,还可以包括非暂态存储器,例如至少一个磁盘存储器件、闪存器件、或其他非暂态固态存储器件。在一些实施方式中,存储器可选包括相对于处理器远程设置的存储器,这些远程存储器可以通过网络连接至该处理器。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。As a non-transitory computer-readable storage medium, memory can be used to store non-transitory software programs and non-transitory computer-executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage devices. In some embodiments, the memory optionally includes memory located remotely from the processor, and these remote memories may be connected to the processor via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
实现上述实施例的车辆损伤检测方法所需的非暂态软件程序以及指令存储在存储器中,当被处理器执行时,执行上述实施例中的车辆损伤检测方法,其中,车辆损伤检测方法包括:获取受损车辆图像;将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。例如,执行以上描述的图2中的方法步骤S110和步骤S140、图5中的方法步骤S510至530、图6中的方法步骤S610至S640等。The non-transient software programs and instructions required to realize the vehicle damage detection method of the above embodiment are stored in the memory, and when executed by the processor, the vehicle damage detection method in the above embodiment is executed, wherein the vehicle damage detection method includes: Obtaining an image of a damaged vehicle; inputting the image of the damaged vehicle into a trained integrated damage model to obtain information on damaged parts, the integrated damage model includes: a shared backbone neural network, the shared backbone neural network consists of at least A damage detection model corresponding to a component type is integrated, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data; at least one damage detection classification layer corresponding to a component type is used to The first output data is processed to obtain damaged component information; the damaged vehicle image is input into the vehicle component segmentation model to obtain the damaged position corresponding to the damaged vehicle image; The damage information of the vehicle is obtained by locating in the information. For example, method steps S110 and S140 in FIG. 2 , method steps S510 to 530 in FIG. 5 , method steps S610 to S640 in FIG. 6 , etc. described above are performed.
此外,本申请实施例的一个实施例还提供了一种计算机可读存储介质,所述存储介质为易失性存储介质或非易失性存储介质,该计算机可读存储介质存储有计算机可执行指令,该计算机可执行指令被一个处理器或控制器执行,例如,被上述计算机设备实施例中的一个处理器执行,可使得上述处理器执行上述实施例中的基于API接口的原生能力拓展方法,例如,执行以上描述的图2中的方法步骤S110和步骤S140、图5中的方法步骤S510至530、图6中的方法步骤S610至S640等。In addition, an embodiment of the embodiment of the present application also provides a computer-readable storage medium, the storage medium is a volatile storage medium or a non-volatile storage medium, and the computer-readable storage medium stores computer-executable Instructions, the computer-executable instructions are executed by a processor or a controller, for example, executed by a processor in the above-mentioned computer device embodiment, so that the above-mentioned processor can execute the native capability expansion method based on the API interface in the above-mentioned embodiment For example, the above-described method steps S110 and S140 in FIG. 2 , method steps S510 to 530 in FIG. 5 , method steps S610 to S640 in FIG. 6 , etc., are executed.
又如,被上述计算机设备实施例中的一个处理器执行,可使得上述处理器执行上述实施例中的车辆损伤检测方法,例如,执行以上描述的图2中的方法步骤S110和步骤S140、图5中的方法步骤S510至530、图6中的方法步骤S610至S640等。As another example, being executed by a processor in the above-mentioned computer device embodiment, the above-mentioned processor can execute the vehicle damage detection method in the above-mentioned embodiment, for example, execute the method step S110 and step S140 in FIG. 2 described above, and FIG. The method steps S510 to 530 in 5, the method steps S610 to S640 in FIG. 6 and so on.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those skilled in the art can understand that all or some of the steps and systems in the methods disclosed above can be implemented as software, firmware, hardware and an appropriate combination thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application-specific integrated circuit . Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As known to those of ordinary skill in the art, the term computer storage media includes both volatile and nonvolatile media implemented in any method or technology for storage of information, such as computer readable instructions, data structures, program modules, or other data. permanent, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, tape, magnetic disk storage or other magnetic storage devices, or can Any other medium used to store desired information and which can be accessed by a computer. In addition, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .
以上是对本申请实施例的较佳实施进行了具体说明,但本申请实施例并不局限于上述实 施方式,熟悉本领域的技术人员在不违背本申请实施例精神的前提下还可做出种种的等同变形或替换,这些等同的变形或替换均包含在本申请实施例权利要求所限定的范围内。The above is a specific description of the preferred implementation of the embodiment of the present application, but the embodiment of the present application is not limited to the above-mentioned implementation, and those skilled in the art can make various modifications without violating the spirit of the embodiment of the present application. These equivalent modifications or replacements are all included within the scope defined by the claims of the embodiments of the present application.

Claims (20)

  1. 一种车辆损伤检测方法,其中,包括:A vehicle damage detection method, comprising:
    获取受损车辆图像;Get images of damaged vehicles;
    将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:Inputting the image of the damaged vehicle into the trained integrated damage model to obtain damaged component information, the integrated damage model includes:
    共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
    至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
    将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;inputting the damaged vehicle image into a vehicle parts segmentation model to obtain a damage location corresponding to the damaged vehicle image;
    根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。The damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
  2. 根据权利要求1所述的车辆损伤检测方法,其中,所述共享主干神经网络为深度残差神经网络,所述深度残差神经网络包括:Res-Net50网络、Res-Net101网络、Res-Net110网络或Res-Net152网络;The vehicle damage detection method according to claim 1, wherein the shared backbone neural network is a deep residual neural network, and the deep residual neural network comprises: Res-Net50 network, Res-Net101 network, Res-Net110 network or Res-Net152 network;
    所述将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,包括:Said inputting the image of the damaged vehicle into the trained integrated damage model to obtain the information of the damaged parts, including:
    基于所述深度残差神经网络中顺次相连的各个残差块,对所述受损车辆图像进行残差特征向量提取处理,得到第一输出数据;其中,任意一个残差块中均包括一个恒等映射和至少两个卷积层,任意一个残差块的恒等映射由所述任意一个残差块的输入端指向所述任意一个残差块的输出端;Based on the sequentially connected residual blocks in the deep residual neural network, the damaged vehicle image is subjected to residual feature vector extraction processing to obtain the first output data; wherein, any residual block includes a An identity map and at least two convolutional layers, the identity map of any one residual block is directed from the input end of any one residual block to the output end of any one residual block;
    将所述第一输出数据输入到所述部件类型对应的损伤检测分类层,得到损伤部件信息。The first output data is input to the damage detection classification layer corresponding to the component type to obtain damaged component information.
  3. 根据权利要求1所述的车辆损伤检测方法,其中,所述集成定损模型通过以下训练过程训练得到:The vehicle damage detection method according to claim 1, wherein the integrated damage model is trained through the following training process:
    获取至少一个部件类型对应的损伤数据集作为训练数据集,所述训练数据集包含对应的损伤判断标签;Obtaining a damage data set corresponding to at least one component type as a training data set, the training data set including a corresponding damage judgment label;
    将所述训练数据集输入所述共享主干神经网络得到特征数据;Inputting the training data set into the shared backbone neural network to obtain feature data;
    将所述特征数据输入到所述部件类型对应的损伤检测分类层,得到损伤部件信息检测结果;inputting the characteristic data into the damage detection classification layer corresponding to the component type, and obtaining the damage component information detection result;
    根据所述损伤部件信息检测结果与所述损伤判断标签之间的检测误差,训练得到所述集成定损模型。The integrated damage assessment model is obtained through training according to a detection error between the detection result of the damaged component information and the damage judgment label.
  4. 根据权利要求3所述的车辆损伤检测方法,其中,每一个所述部件类型对应的损伤检测模型包括其对应的损失函数,所述根据所述损伤部件信息检测结果与所述损伤判断标签之间的检测误差,训练得到所述集成定损模型还包括:The vehicle damage detection method according to claim 3, wherein the damage detection model corresponding to each of the component types includes its corresponding loss function, and the relationship between the detection result according to the damaged component information and the damage judgment label The detection error, the training to obtain the integrated damage model also includes:
    根据所述检测误差对所述集成定损模型中的参数进行调整,直至所述损失函数满足收敛条件,得到所述集成定损模型。Adjusting parameters in the integrated loss assessment model according to the detection error until the loss function satisfies a convergence condition to obtain the integrated impairment assessment model.
  5. 根据权利要求4所述的车辆损伤检测方法,其中,所述获取至少一个部件类型对应的损伤数据集作为训练数据集,包括:The vehicle damage detection method according to claim 4, wherein said obtaining a damage data set corresponding to at least one component type as a training data set comprises:
    采用均匀采样策略对每个部件类型对应的损伤数据集进行均匀采样得到训练数据集,以使得不同部件类型对应的损失数据集之间的样本数量均衡。The uniform sampling strategy is used to uniformly sample the damage data sets corresponding to each part type to obtain the training data set, so that the number of samples between the loss data sets corresponding to different part types is balanced.
  6. 根据权利要求4所述的车辆损伤检测方法,其中,所述获取至少一个部件类型对应的损伤数据集作为训练数据集,包括:The vehicle damage detection method according to claim 4, wherein said obtaining a damage data set corresponding to at least one component type as a training data set comprises:
    当不同部件类型对应的损伤数据集之间的样本数量相差较大时,采用类别间平衡采样策略对样本数量少的部件类型对应的损失数据集进行过采样得到训练数据集。When there is a large difference in the number of samples between the damage datasets corresponding to different part types, a balanced sampling strategy between categories is used to oversample the loss datasets corresponding to the part types with a small number of samples to obtain the training dataset.
  7. 根据权利要求1至6任一项所述的车辆损伤检测方法,其中,所述部件类型包括:钣金件、玻璃和轮胎;The vehicle damage detection method according to any one of claims 1 to 6, wherein the component types include: sheet metal parts, glass and tires;
    所述共享主干神经网络由钣金件损伤检测模型、玻璃损伤检测模型和轮胎损伤检测模型 集成得到;The shared backbone neural network is obtained by integrating the sheet metal damage detection model, the glass damage detection model and the tire damage detection model;
    所述损伤检测分类层包括:钣金件损伤检测分类层、玻璃损伤检测分类层或轮胎损伤检测分类层;The damage detection and classification layer includes: sheet metal damage detection and classification layer, glass damage detection and classification layer or tire damage detection and classification layer;
    所述损伤部件信息包括:损伤部件名称、损伤状态和损伤程度;The damaged part information includes: damaged part name, damage state and damage degree;
    所述损伤部件名称包括:钣金件、玻璃或轮胎中一种或多种;The name of the damaged part includes: one or more of sheet metal parts, glass or tires;
    所述损伤信息包括:划痕、刮擦、凹陷、褶皱、撕裂、缺失或破裂中一种或多种;The damage information includes: one or more of scratches, scratches, dents, wrinkles, tears, missing or ruptures;
    所述损伤程度包括:轻度损伤、中度损伤或重度损伤中一种或多种。The degree of injury includes: one or more of mild injury, moderate injury or severe injury.
  8. 一种车辆损伤检测装置,其中,包括:A vehicle damage detection device, including:
    获取图像模块,用于获取受损车辆图像;An image acquisition module is used to acquire damaged vehicle images;
    损伤部件信息确定模块,用于将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:The damaged part information determination module is used to input the damaged vehicle image into the trained integrated damage model to obtain the damaged part information, and the integrated damage model includes:
    共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
    至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
    图像分割模块,用于将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;An image segmentation module, configured to input the damaged vehicle image into the vehicle component segmentation model to obtain the damage location corresponding to the damaged vehicle image;
    损伤信息合成模块,用于根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。A damage information synthesis module, configured to obtain damage information of the vehicle from the damaged component information according to the damage location.
  9. 一种计算机设备,其中,包括处理器以及存储器;A computer device, including a processor and a memory;
    所述存储器用于存储程序;The memory is used to store programs;
    所述处理器用于根据所述程序执行车辆损伤检测方法:The processor is configured to execute the vehicle damage detection method according to the program:
    其中,所述车辆损伤检测方法包括:Wherein, the vehicle damage detection method includes:
    获取受损车辆图像;Get images of damaged vehicles;
    将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:Inputting the image of the damaged vehicle into the trained integrated damage model to obtain damaged component information, the integrated damage model includes:
    共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
    至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
    将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;inputting the damaged vehicle image into a vehicle parts segmentation model to obtain a damage location corresponding to the damaged vehicle image;
    根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。The damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
  10. 根据权利要求9所述的计算机设备,其中,所述共享主干神经网络为深度残差神经网络,所述深度残差神经网络包括:Res-Net50网络、Res-Net101网络、Res-Net110网络或Res-Net152网络;The computer device according to claim 9, wherein the shared backbone neural network is a deep residual neural network, and the deep residual neural network comprises: Res-Net50 network, Res-Net101 network, Res-Net110 network or Res -Net152 network;
    所述将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,包括:Said inputting the image of the damaged vehicle into the trained integrated damage model to obtain the information of the damaged parts, including:
    基于所述深度残差神经网络中顺次相连的各个残差块,对所述受损车辆图像进行残差特征向量提取处理,得到第一输出数据;其中,任意一个残差块中均包括一个恒等映射和至少两个卷积层,任意一个残差块的恒等映射由所述任意一个残差块的输入端指向所述任意一个残差块的输出端;Based on the sequentially connected residual blocks in the deep residual neural network, the damaged vehicle image is subjected to residual feature vector extraction processing to obtain the first output data; wherein, any residual block includes a An identity map and at least two convolutional layers, the identity map of any one residual block is directed from the input end of any one residual block to the output end of any one residual block;
    将所述第一输出数据输入到所述部件类型对应的损伤检测分类层,得到损伤部件信息。The first output data is input to the damage detection classification layer corresponding to the component type to obtain damaged component information.
  11. 根据权利要求9所述的计算机设备,其中,所述集成定损模型通过以下训练过程训练得到:The computer device according to claim 9, wherein the integrated damage model is trained through the following training process:
    获取至少一个部件类型对应的损伤数据集作为训练数据集,所述训练数据集包含对应的损伤判断标签;Obtaining a damage data set corresponding to at least one component type as a training data set, the training data set including a corresponding damage judgment label;
    将所述训练数据集输入所述共享主干神经网络得到特征数据;Inputting the training data set into the shared backbone neural network to obtain feature data;
    将所述特征数据输入到所述部件类型对应的损伤检测分类层,得到损伤部件信息检测结果;inputting the characteristic data into the damage detection classification layer corresponding to the component type, and obtaining the damage component information detection result;
    根据所述损伤部件信息检测结果与所述损伤判断标签之间的检测误差,训练得到所述集成定损模型。The integrated damage assessment model is obtained through training according to a detection error between the detection result of the damaged component information and the damage judgment label.
  12. 根据权利要求11所述的计算机设备,其中,每一个所述部件类型对应的损伤检测模型包括其对应的损失函数,所述根据所述损伤部件信息检测结果与所述损伤判断标签之间的检测误差,训练得到所述集成定损模型还包括:The computer device according to claim 11, wherein the damage detection model corresponding to each of the component types includes its corresponding loss function, and the detection result of the damaged component information and the detection between the damage judgment label Error, training to obtain the integrated loss model also includes:
    根据所述检测误差对所述集成定损模型中的参数进行调整,直至所述损失函数满足收敛条件,得到所述集成定损模型。Adjusting parameters in the integrated loss assessment model according to the detection error until the loss function satisfies a convergence condition to obtain the integrated impairment assessment model.
  13. 根据权利要求12所述的计算机设备,其中,所述获取至少一个部件类型对应的损伤数据集作为训练数据集,包括:The computer device according to claim 12, wherein said obtaining the damage data set corresponding to at least one component type as a training data set comprises:
    采用均匀采样策略对每个部件类型对应的损伤数据集进行均匀采样得到训练数据集,以使得不同部件类型对应的损失数据集之间的样本数量均衡。The uniform sampling strategy is used to uniformly sample the damage data sets corresponding to each part type to obtain the training data set, so that the number of samples between the loss data sets corresponding to different part types is balanced.
  14. 根据权利要求12所述的计算机设备,其中,所述获取至少一个部件类型对应的损伤数据集作为训练数据集,包括:The computer device according to claim 12, wherein said obtaining the damage data set corresponding to at least one component type as a training data set comprises:
    当不同部件类型对应的损伤数据集之间的样本数量相差较大时,采用类别间平衡采样策略对样本数量少的部件类型对应的损失数据集进行过采样得到训练数据集。When there is a large difference in the number of samples between the damage datasets corresponding to different part types, a balanced sampling strategy between categories is used to oversample the loss datasets corresponding to the part types with a small number of samples to obtain the training dataset.
  15. 根据权利要求9所述的计算机设备,其中,所述部件类型包括:钣金件、玻璃和轮胎;The computer device of claim 9, wherein the component types include: sheet metal, glass, and tires;
    所述共享主干神经网络由钣金件损伤检测模型、玻璃损伤检测模型和轮胎损伤检测模型集成得到;The shared backbone neural network is obtained by integrating a sheet metal damage detection model, a glass damage detection model and a tire damage detection model;
    所述损伤检测分类层包括:钣金件损伤检测分类层、玻璃损伤检测分类层或轮胎损伤检测分类层;The damage detection and classification layer includes: sheet metal damage detection and classification layer, glass damage detection and classification layer or tire damage detection and classification layer;
    所述损伤部件信息包括:损伤部件名称、损伤状态和损伤程度;The damaged part information includes: damaged part name, damage state and damage degree;
    所述损伤部件名称包括:钣金件、玻璃或轮胎中一种或多种;The name of the damaged part includes: one or more of sheet metal parts, glass or tires;
    所述损伤信息包括:划痕、刮擦、凹陷、褶皱、撕裂、缺失或破裂中一种或多种;The damage information includes: one or more of scratches, scratches, dents, wrinkles, tears, missing or ruptures;
    所述损伤程度包括:轻度损伤、中度损伤或重度损伤中一种或多种。The degree of injury includes: one or more of mild injury, moderate injury or severe injury.
  16. 一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行车辆损伤检测方法:A computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to execute a vehicle damage detection method:
    其中,所述车辆损伤检测方法包括:Wherein, the vehicle damage detection method includes:
    获取受损车辆图像;Get images of damaged vehicles;
    将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,所述集成定损模型包括:Inputting the image of the damaged vehicle into the trained integrated damage model to obtain damaged component information, the integrated damage model includes:
    共享主干神经网络,所述共享主干神经网络由至少一个部件类型对应的损伤检测模型集成得到,所述共享主干神经网络用于对所述受损车辆图像进行预处理,得到第一输出数据;A shared backbone neural network, where the shared backbone neural network is obtained by integrating damage detection models corresponding to at least one component type, and the shared backbone neural network is used to preprocess the damaged vehicle image to obtain first output data;
    至少一个部件类型对应的损伤检测分类层,用于对所述第一输出数据进行处理,得到损伤部件信息;A damage detection classification layer corresponding to at least one component type, configured to process the first output data to obtain damaged component information;
    将所述受损车辆图像输入到车辆部件分割模型,得到所述受损车辆图像对应的损伤位置;inputting the damaged vehicle image into a vehicle parts segmentation model to obtain a damage location corresponding to the damaged vehicle image;
    根据所述损伤位置从所述损伤部件信息中定位得到所述车辆的损伤信息。The damage information of the vehicle is obtained by locating from the damaged component information according to the damage location.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述共享主干神经网络为深度残差神经网络,所述深度残差神经网络包括:Res-Net50网络、Res-Net101网络、Res-Net110网络或Res-Net152网络;The computer-readable storage medium according to claim 16, wherein the shared backbone neural network is a deep residual neural network, and the deep residual neural network comprises: Res-Net50 network, Res-Net101 network, Res-Net110 network or Res-Net152 network;
    所述将所述受损车辆图像输入到训练好的集成定损模型中,得到损伤部件信息,包括:Said inputting the image of the damaged vehicle into the trained integrated damage model to obtain the information of the damaged parts, including:
    基于所述深度残差神经网络中顺次相连的各个残差块,对所述受损车辆图像进行残差特征向量提取处理,得到第一输出数据;其中,任意一个残差块中均包括一个恒等映射和至少两个卷积层,任意一个残差块的恒等映射由所述任意一个残差块的输入端指向所述任意一个 残差块的输出端;Based on the sequentially connected residual blocks in the deep residual neural network, the damaged vehicle image is subjected to residual feature vector extraction processing to obtain the first output data; wherein, any residual block includes a An identity map and at least two convolutional layers, the identity map of any one residual block is directed from the input end of any one residual block to the output end of any one residual block;
    将所述第一输出数据输入到所述部件类型对应的损伤检测分类层,得到损伤部件信息。The first output data is input to the damage detection classification layer corresponding to the component type to obtain damaged component information.
  18. 根据权利要求16所述的计算机可读存储介质,其中,所述集成定损模型通过以下训练过程训练得到:The computer-readable storage medium according to claim 16, wherein the integrated loss assessment model is trained through the following training process:
    获取至少一个部件类型对应的损伤数据集作为训练数据集,所述训练数据集包含对应的损伤判断标签;Obtaining a damage data set corresponding to at least one component type as a training data set, the training data set including a corresponding damage judgment label;
    将所述训练数据集输入所述共享主干神经网络得到特征数据;Inputting the training data set into the shared backbone neural network to obtain feature data;
    将所述特征数据输入到所述部件类型对应的损伤检测分类层,得到损伤部件信息检测结果;inputting the characteristic data into the damage detection classification layer corresponding to the component type, and obtaining the damage component information detection result;
    根据所述损伤部件信息检测结果与所述损伤判断标签之间的检测误差,训练得到所述集成定损模型。The integrated damage assessment model is obtained through training according to a detection error between the detection result of the damaged part information and the damage judgment label.
  19. 根据权利要求18所述的计算机可读存储介质,其中,每一个所述部件类型对应的损伤检测模型包括其对应的损失函数,所述根据所述损伤部件信息检测结果与所述损伤判断标签之间的检测误差,训练得到所述集成定损模型还包括:The computer-readable storage medium according to claim 18, wherein the damage detection model corresponding to each of the component types includes its corresponding loss function, and the difference between the detection result according to the damaged component information and the damage judgment label Between the detection errors, the training to obtain the integrated damage assessment model also includes:
    根据所述检测误差对所述集成定损模型中的参数进行调整,直至所述损失函数满足收敛条件,得到所述集成定损模型。Adjusting parameters in the integrated loss assessment model according to the detection error until the loss function satisfies a convergence condition to obtain the integrated impairment assessment model.
  20. 根据权利要求19所述的计算机可读存储介质,其中,所述获取至少一个部件类型对应的损伤数据集作为训练数据集,包括:The computer-readable storage medium according to claim 19, wherein said obtaining the damage data set corresponding to at least one component type as a training data set comprises:
    采用均匀采样策略对每个部件类型对应的损伤数据集进行均匀采样得到训练数据集,以使得不同部件类型对应的损失数据集之间的样本数量均衡。The uniform sampling strategy is used to uniformly sample the damage data sets corresponding to each part type to obtain the training data set, so that the number of samples between the loss data sets corresponding to different part types is balanced.
PCT/CN2022/071075 2021-09-15 2022-01-10 Vehicle damage detection method and apparatus, and device and storage medium WO2023040142A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111080117.1A CN113780435B (en) 2021-09-15 2021-09-15 Vehicle damage detection method, device, equipment and storage medium
CN202111080117.1 2021-09-15

Publications (1)

Publication Number Publication Date
WO2023040142A1 true WO2023040142A1 (en) 2023-03-23

Family

ID=78844155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/071075 WO2023040142A1 (en) 2021-09-15 2022-01-10 Vehicle damage detection method and apparatus, and device and storage medium

Country Status (2)

Country Link
CN (1) CN113780435B (en)
WO (1) WO2023040142A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883444A (en) * 2023-08-02 2023-10-13 武汉理工大学 Automobile damage detection method based on machine vision and image scanning
CN116910495A (en) * 2023-09-13 2023-10-20 江西五十铃汽车有限公司 Method and system for detecting off-line of automobile, readable storage medium and automobile

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113780435B (en) * 2021-09-15 2024-04-16 平安科技(深圳)有限公司 Vehicle damage detection method, device, equipment and storage medium
CN114723945A (en) * 2022-04-07 2022-07-08 平安科技(深圳)有限公司 Vehicle damage detection method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359676A (en) * 2018-10-08 2019-02-19 百度在线网络技术(北京)有限公司 Method and apparatus for generating vehicle damage information
CN110728236A (en) * 2019-10-12 2020-01-24 创新奇智(重庆)科技有限公司 Vehicle loss assessment method and special equipment thereof
US20210114606A1 (en) * 2020-12-23 2021-04-22 Intel Corporation Systems and methods for intrusion detection in vehicle systems
US20210182713A1 (en) * 2019-12-16 2021-06-17 Accenture Global Solutions Limited Explainable artificial intelligence (ai) based image analytic, automatic damage detection and estimation system
CN113780435A (en) * 2021-09-15 2021-12-10 平安科技(深圳)有限公司 Vehicle damage detection method, device, equipment and storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109657596A (en) * 2018-12-12 2019-04-19 天津卡达克数据有限公司 A kind of vehicle appearance component identification method based on deep learning
CN109657716B (en) * 2018-12-12 2020-12-29 中汽数据(天津)有限公司 Vehicle appearance damage identification method based on deep learning
CN110443814B (en) * 2019-07-30 2022-12-27 北京百度网讯科技有限公司 Loss assessment method, device, equipment and storage medium for vehicle

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109359676A (en) * 2018-10-08 2019-02-19 百度在线网络技术(北京)有限公司 Method and apparatus for generating vehicle damage information
CN110728236A (en) * 2019-10-12 2020-01-24 创新奇智(重庆)科技有限公司 Vehicle loss assessment method and special equipment thereof
US20210182713A1 (en) * 2019-12-16 2021-06-17 Accenture Global Solutions Limited Explainable artificial intelligence (ai) based image analytic, automatic damage detection and estimation system
US20210114606A1 (en) * 2020-12-23 2021-04-22 Intel Corporation Systems and methods for intrusion detection in vehicle systems
CN113780435A (en) * 2021-09-15 2021-12-10 平安科技(深圳)有限公司 Vehicle damage detection method, device, equipment and storage medium

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116883444A (en) * 2023-08-02 2023-10-13 武汉理工大学 Automobile damage detection method based on machine vision and image scanning
CN116883444B (en) * 2023-08-02 2024-01-12 武汉理工大学 Automobile damage detection method based on machine vision and image scanning
CN116910495A (en) * 2023-09-13 2023-10-20 江西五十铃汽车有限公司 Method and system for detecting off-line of automobile, readable storage medium and automobile
CN116910495B (en) * 2023-09-13 2024-01-26 江西五十铃汽车有限公司 Method and system for detecting off-line of automobile, readable storage medium and automobile

Also Published As

Publication number Publication date
CN113780435B (en) 2024-04-16
CN113780435A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
WO2023040142A1 (en) Vehicle damage detection method and apparatus, and device and storage medium
CN109902732B (en) Automatic vehicle classification method and related device
CN109977921B (en) Method for detecting hidden danger of power transmission line
CN112380921A (en) Road detection method based on Internet of vehicles
WO2021217775A1 (en) Steel scrap rating method and apparatus based on fusion of neural network models
CN112633149B (en) Domain-adaptive foggy-day image target detection method and device
CN111435446A (en) License plate identification method and device based on L eNet
CN111652293A (en) Vehicle weight recognition method for multi-task joint discrimination learning
CN113159024A (en) License plate recognition technology based on improved YOLOv4
CN108323209B (en) Information processing method, system, cloud processing device and computer storage medium
CN111178282A (en) Road traffic speed limit sign positioning and identifying method and device
CN111444911B (en) Training method and device of license plate recognition model and license plate recognition method and device
CN113326826A (en) Network model training method and device, electronic equipment and storage medium
CN111435445A (en) Training method and device of character recognition model and character recognition method and device
CN115272222A (en) Method, device and equipment for processing road detection information and storage medium
CN107909021A (en) A kind of guideboard detection method based on single deep layer convolutional neural networks
CN113140012A (en) Image processing method, image processing apparatus, image processing medium, and electronic device
CN115946722A (en) Vehicle control method and system based on traffic sign and traffic sign identification platform
CN115375987B (en) Data labeling method and device, electronic equipment and storage medium
CN114972725B (en) Model training method, readable medium and electronic device
CN113269730B (en) Image processing method, image processing device, computer equipment and storage medium
CN113033539B (en) Calligraphy practicing lattice detection method and device, readable medium and electronic equipment
WO2021147927A1 (en) Method and system for verifying vehicle
CN114972283A (en) Training method and system for knife and gun detection model of riot terrorism and computer storage medium
CN110809088A (en) Traffic accident photographing method and system based on mobile phone app

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE