Data processing and model training method and device, equipment, medium and product

By retrieving and annotating similar images from the suspected disease database, and using data enhancement technology to expand the data set, the problem of low data collection efficiency and high cost of the automatic road disease identification model is solved, and efficient disease identification model training and recognition effects are achieved. .

CN118736262APending Publication Date: 2024-10-01BEIJING AUTONAVI YUNMAP TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310341963.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-31
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, the data collection efficiency of automatic road disease identification models is low and the cost is high. Especially for low-frequency diseases such as potholes, a large amount of manually annotated data is required for model learning.

Method used

By retrieving suspected disease images similar to the training images from the pre-stored suspected disease database, and annotating them, using data enhancement technology to expand the training data set, constructing triples for feature extraction model training, and improving the performance of the disease recognition model. Training data acquisition efficiency and accuracy.

Benefits of technology

It achieves efficient and low-cost acquisition of training data sets for the disease recognition model, improves the recognition ability and efficiency of the road disease recognition model, and reduces the cost of manual annotation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736262A_ABST
    Figure CN118736262A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a data processing and model training method and device, equipment, a medium and a product, and the method comprises the steps: obtaining a retrieval image which comprises a training image of a disease recognition model; retrieving from a pre-stored suspected disease library to obtain suspected disease images, wherein the similarity between the suspected disease images and the retrieved image meets a preset condition, and labeling based on the retrieved suspected disease images to obtain a training data set of the disease recognition model; wherein suspected disease images are recorded in the suspected disease library, and the suspected disease images are road images of which suspected disease areas are identified. According to the technical scheme, the training data set of the disease recognition model can be efficiently collected at low cost.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer vision technology, and in particular to a data processing and model training method, device, equipment, medium, and product. Background Art

[0002] The pavement of highways, national and provincial roads, and urban roads is prone to different types of road damage such as cracks, potholes, and road marking wear due to long-term effects of natural factors or vehicle loads. The appearance of these road damages will affect the service life of the road and driving safety. Therefore, it is necessary to use maintenance vehicles to regularly inspect the roads, automatically identify and report road damages through vehicle-side equipment, and promptly handle road damages and perform road maintenance.

[0003] In the prior art, a deep learning model is usually used to automatically identify road defects. The deep learning model needs to collect effective road defect data in advance for training and learning. The more effective defect data is collected, the stronger the defect recognition ability of the trained deep learning model will be. Currently, data collection is collected through manual annotation, but some road defects (such as potholes) are low-frequency defects. It is necessary to manually search a large amount of road data to collect a sufficient amount of road defect data for model learning. The collection efficiency is low and the cost is high. Therefore, how to collect model training data efficiently and at low cost has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In order to solve the problems in the related art, the embodiments of the present disclosure provide a data processing and model training method, device, equipment, medium, and product.

[0005] In a first aspect, an embodiment of the present disclosure provides a data processing method.

[0006] Specifically, the data processing method includes:

[0007] Acquire a retrieval image, wherein the retrieval image includes an image for training a disease recognition model;

[0008] Retrieving suspected disease images whose similarity with the retrieved image meets a preset condition from a pre-stored suspected disease library, and obtaining a training data set for the disease recognition model based on the annotation of the retrieved suspected disease images;

[0009] The suspected disease database records suspected disease images, and the suspected disease images are road images in which suspected disease areas are identified.

[0010] In a second aspect, the present disclosure provides a feature extraction model training method, including:

[0011] If a suspected disease area is identified from the road image, the road image is determined to be an original suspected disease image;

[0012] Performing data enhancement on the suspected disease image to obtain an expanded suspected disease image;

[0013] Constructing a triplet, wherein the reference sample in the triplet is the original suspected disease image, the positive sample in the triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the triplet is other original suspected disease images different from the original suspected disease image;

[0014] The feature extraction model is trained using the triplet to obtain a trained feature extraction model.

[0015] In a third aspect, an embodiment of the present disclosure provides a data processing device, including:

[0016] An image acquisition module is configured to acquire a retrieval image, wherein the retrieval image includes an image for training a disease recognition model;

[0017] A retrieval module is configured to retrieve suspected disease images whose similarity with the retrieved image meets a preset condition from a pre-stored suspected disease library, so as to obtain a training data set for the disease recognition model based on annotations of the retrieved suspected disease images;

[0018] The suspected disease database records suspected disease images, and the suspected disease images are road images in which suspected disease areas are identified.

[0019] In a fourth aspect, an embodiment of the present disclosure provides a feature extraction model training device, wherein the device comprises:

[0020] a suspected image determination module, configured to determine that the road image is an original suspected disease image if a suspected disease area is identified from the road image;

[0021] A data enhancement module is configured to perform data enhancement on the suspected disease image to obtain an expanded suspected disease image;

[0022] A data construction module is configured to construct a triplet, wherein the reference sample in the triplet is the original suspected disease image, the positive sample in the triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the triplet is other original suspected disease images different from the original suspected disease image;

[0023] The training module is configured to use the triples to train the feature extraction model to obtain a trained feature extraction model.

[0024] In a fifth aspect, an embodiment of the present disclosure provides an electronic device, comprising a memory and a processor, wherein the memory is used to store one or more computer instructions, and wherein the one or more computer instructions are executed by the processor to implement a method as described in any one of the first aspect or the second aspect.

[0025] In a sixth aspect, a computer-readable storage medium is provided in an embodiment of the present disclosure, on which computer instructions are stored. When the computer instructions are executed by a processor, a method as described in any one of the first aspect or the second aspect is implemented.

[0026] In a seventh aspect, a computer program product is provided in an embodiment of the present disclosure, comprising computer instructions, which, when executed by a processor, implement the method steps as described in any one of the first aspect or the second aspect.

[0027] According to the technical solution provided by the embodiments of the present disclosure, the training images of the disease recognition model can be used as retrieval images, and suspected disease images whose similarity with the retrieval images meets preset conditions can be retrieved from a pre-stored suspected disease library. Since the retrieved suspected disease images are similar to the retrieval images, the retrieved suspected disease images are, to a large extent, images required for the training of the disease recognition model. The proportion of effective training images that can be used in the retrieved suspected disease images is much higher than the actual distribution of effective training images. Therefore, by annotating the retrieved suspected disease images, effective training images can be manually annotated quickly in a short time, and a training data set for the disease recognition model can be obtained efficiently and at low cost.

[0028] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Other features, objectives and advantages of the present disclosure will become more apparent through the following detailed description of non-limiting embodiments in conjunction with the accompanying drawings. In the accompanying drawings:

[0030] Figure 1 A flowchart showing a data processing method according to an embodiment of the present disclosure;

[0031] Figure 2 A flow chart showing a feature extraction model training method according to an embodiment of the present disclosure;

[0032] Figure 3 A schematic diagram showing an application scenario of a data processing method according to an embodiment of the present disclosure;

[0033] Figure 4 A structural block diagram of a data processing device according to an embodiment of the present disclosure is shown;

[0034] Figure 5 A structural block diagram of a feature extraction model training device according to an embodiment of the present disclosure is shown;

[0035] Figure 6 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown;

[0036] Figure 7 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION

[0037] Hereinafter, exemplary embodiments of the present disclosure will be described in detail with reference to the accompanying drawings so that those skilled in the art can easily implement them. In addition, for the sake of clarity, parts not related to the description of the exemplary embodiments are omitted in the accompanying drawings.

[0038] In the present disclosure, it should be understood that terms such as "include" or "have" are intended to indicate the presence of features, numbers, steps, behaviors, components, parts, or a combination thereof disclosed in the present specification, and are not intended to exclude the possibility that one or more other features, numbers, steps, behaviors, components, parts, or a combination thereof exist or are added.

[0039] It should also be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present disclosure may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0040] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0041] As mentioned above, the pavement of highways, national and provincial roads, and urban roads are prone to different types of road diseases such as cracks, potholes, and road marking wear under the long-term effects of natural factors or vehicle loads. The emergence of these road diseases not only reduces the strength of the pavement structure, but also destroys the continuity of the pavement, ultimately affecting the service life of the road and driving safety. Therefore, it is necessary to use maintenance vehicles to regularly inspect the roads, automatically identify and report road diseases through vehicle-side equipment, and promptly handle road diseases and perform road maintenance.

[0042] In the prior art, a deep learning model is usually used to automatically identify road defects. The deep learning model needs to collect effective road defect data in advance for training and learning. The more effective defect data is collected, the stronger the defect recognition ability of the trained deep learning model will be. Currently, data collection is collected through manual annotation, but some road defects (such as potholes) are low-frequency defects. It is necessary to manually search a large amount of road data to collect a sufficient amount of road defect data for model learning. The collection efficiency is low and the cost is high. Therefore, how to collect model training data efficiently and at low cost has become a technical problem that needs to be solved urgently.

[0043] The present disclosure provides a data processing method, which can select retrieval images required for training a disease recognition model for retrieval, and find suspected disease images similar to the retrieval images from a suspected disease library. Since the retrieved suspected disease images are largely the images required for training the disease recognition model, the proportion of effective training images that can be used in the retrieved suspected disease images is much higher than the actual distribution of effective training images. Therefore, the retrieved suspected disease images are annotated, and effective training images can be quickly annotated in a short time, so that a training data set for the disease recognition model can be obtained efficiently and at low cost.

[0044] Figure 1 1 is a flow chart showing a data processing method according to an embodiment of the present disclosure. Figure 1 As shown, the data processing method includes the following steps S101-S102:

[0045] In step S101, a search image is obtained, wherein the search image includes a training image for a disease recognition model;

[0046] In step S102, suspected disease images whose similarity with the search image meets a preset condition are retrieved from a pre-stored suspected disease library, so as to obtain a training data set for the disease recognition model based on the annotation of the retrieved suspected disease images.

[0047] In a possible implementation, the data processing method is applicable to devices such as computers, computing devices, servers, server clusters, etc. that can perform data processing.

[0048] In a possible implementation, road hazards refer to hazards existing on the road that affect driving safety, including pavement hazards represented by potholes and spills, and non-pavement hazards represented by blocked traffic signs and damaged traffic signs.

[0049] In a possible implementation, the disease recognition model refers to a model that can automatically recognize road diseases in road images, and the disease recognition model can be obtained by learning the intrinsic features of road disease images. In order to train the disease recognition model, a large number of images with road diseases need to be manually annotated as training images. However, road diseases are scattered in actual road images and account for a low proportion. Manually searching for road disease images from road images for annotation is costly and inefficient. Therefore, in this implementation, suspected disease images that are most likely to be training images can be retrieved from the suspected disease library for manual annotation to reduce costs and improve efficiency.

[0050] In a possible implementation, a large number of suspected disease images are recorded in the suspected disease library. These suspected disease images are all road images that can be identified as suspected diseases. The identification is only a rough identification. The identified suspected disease images may include real road disease images and may also include disease-free images that are mistakenly identified as road diseases.

[0051] In a possible implementation, in order to retrieve the required image from the suspected disease library, it is necessary to first obtain the retrieval benchmark, i.e., the retrieval image, which is the training image required for training the disease recognition model. For example, the retrieval image may be an image with obvious disease features. Suspected disease images whose similarity with the retrieval image meets a preset condition may be retrieved from the pre-stored suspected disease library. The preset condition may be a suspected disease image whose similarity with the retrieval image exceeds a preset threshold, or N suspected disease images with the highest similarity with the retrieval image.

[0052] In a possible implementation, after retrieving suspected disease images that meet preset conditions, the retrieved suspected disease images can be sent to a client, which will display them to annotators. The annotators can find training images for the disease recognition model from these retrieved suspected disease images and annotate them. For example, when pit disease images are found, they can be annotated as pit diseases, etc. The training images found by the annotators and their annotation results can constitute the training data set of the disease recognition model.

[0053] This embodiment can use the training image of the disease recognition model as the retrieval image, and retrieve the suspected disease image whose similarity with the retrieval image meets the preset conditions from the pre-stored suspected disease library. Since the retrieved suspected disease image is similar to the retrieval image, the retrieved suspected disease image is largely the image required for the training of the disease recognition model. The proportion of effective training images that can be used in the retrieved suspected disease images is much higher than the actual distribution of effective training images. Therefore, by annotating the retrieved suspected disease images, effective training images can be manually annotated quickly in a short time, and the training data set of the disease recognition model can be obtained efficiently and at low cost.

[0054] In a possible implementation, the method may further include the following steps:

[0055] If a suspected disease area is identified from the road image, the road image is determined to be an original suspected disease image;

[0056] Performing data enhancement on the original suspected disease image to obtain an expanded suspected disease image;

[0057] The suspected disease image is recorded in the suspected disease library, wherein the suspected disease image includes the original suspected disease image and the expanded suspected disease image.

[0058] In this embodiment, in order to ensure driving safety, the road maintenance vehicle will regularly inspect the roads. During the inspection process, the maintenance vehicle will use the camera device installed on the maintenance vehicle to obtain the road image of the road it is traveling on and upload it. It can be identified from the road image uploaded by the maintenance vehicle whether there is a suspected diseased area in the image. If so, it is determined that the road image is the original suspected diseased image.

[0059] In this embodiment, some road diseases are low-frequency diseases, which exist in very few real road images, and a sufficient number of related disease images cannot be collected. At this time, in order to enrich the training data set, the suspected disease library can be enriched first, and the acquired suspected disease images can be data enhanced to increase the number of suspected disease images. Here, the images obtained after data enhancement of the suspected disease images can be called expanded suspected disease images; in this way, the suspected disease images recorded in the suspected disease library include not only the original suspected disease images, but also a large number of expanded suspected disease images. In this way, the retrieved suspected disease images include not only the original suspected disease images, but also the expanded suspected disease images, so that the training data set of the disease recognition model includes not only the original suspected disease images, but also the expanded suspected disease images, thereby enriching the training data set and improving the recognition ability of the disease recognition model.

[0060] This implementation method expands the suspected disease images by means of data enhancement, which can quickly expand the training data required by the disease recognition model. For new categories of road diseases, a large number of images with such road diseases can be quickly obtained, and the recognition capability of the disease recognition model for new categories of road diseases can be established in a short period of time. For existing diseases in new scenes, images of existing diseases in new scenes can also be quickly obtained, and the existing disease recognition capability of the road recognition model in the newly added scenes can be updated in a short period of time.

[0061] In a possible implementation, the method may further include the following steps:

[0062] Extracting the suspected disease area contour in the original suspected disease image, and acquiring the suspected disease local image located within the suspected disease area contour;

[0063] The data enhancement of the original suspected disease image to obtain an expanded suspected disease image includes at least one of the following enhancement steps:

[0064] Using a pre-stored road surface background image to replace the image outside the outline of the suspected disease area in the original suspected disease image;

[0065] Rotating the original suspected disease image and / or the suspected disease partial image;

[0066] Changing the size of the original suspected disease image and / or the suspected disease partial image;

[0067] Adding random image noise to the original suspected disease image and / or the suspected disease partial image;

[0068] Adding a weather effect to the original suspected disease image and / or the suspected disease partial image;

[0069] Performing an affine transformation on the original suspected disease image and / or the suspected disease partial image;

[0070] The color channels of the original suspected disease image and / or the suspected disease partial image are transformed.

[0071] In this embodiment, when determining the original suspected disease image in the road image, the suspected disease area in the original suspected disease image can be extracted to obtain the outline of the suspected disease area. The image located within the outline of the suspected disease area can be recorded as a suspected disease local image, and the image located outside the outline of the suspected disease area can be recorded as a suspected disease background image.

[0072] In this implementation, the data enhancement method may include at least one of the following:

[0073] The first method is background replacement, which can be used to segment the road surface area from other road images, store the segmented road surface area as the road surface background image, and then copy and paste the suspected disease local image within the outline of the suspected disease area to the randomly selected road surface background image, and replace the image outside the outline of the suspected disease area in the original suspected disease image with the road surface background image. It should be noted here that the purpose of background replacement is to obtain the characteristic information of the suspected disease itself to avoid being affected by the background area near the disease (such as normal road surface).

[0074] The second method is random rotation, which can rotate the original suspected disease image and / or the suspected disease partial image at a random angle.

[0075] The third method is size transformation, which can transform the size of the original suspected disease image and / or the suspected disease partial image, and randomly reduce or enlarge the original suspected disease image and / or the suspected disease partial image.

[0076] The fourth method is random noise, which can add random image noise to the original suspected disease image and / or the suspected disease partial image, for example, adding random Gaussian noise.

[0077] The fifth method is weather change, which can add weather effects to the original suspected disease image and / or the suspected disease partial image. For example, rain / snow weather special effects can be added to the suspected disease image and / or the suspected disease partial image.

[0078] The sixth method is affine transformation, which is also called affine mapping. In geometry, a vector space is transformed into another vector space by a linear transformation followed by a translation. The original suspected disease image and / or the suspected disease partial image may be subjected to a random affine transformation;

[0079] The seventh method is color channel transformation, which can transform the color channel of the original suspected disease image and / or the suspected disease local image. For example, the color channel is RGB (Red Green Blue) color channel, which can be understood as an image composed of three elements such as RGB, R is a red channel; G is a green channel; B is a blue channel; the values ​​of the three RGB color channels corresponding to the original suspected disease image and / or the suspected disease local image can be randomly transformed.

[0080] In this embodiment, the above-mentioned various data enhancement methods can be used alone, or two or more data enhancement methods can be randomly selected and used in combination. For example, the first method and the second method can be used in combination, first performing background replacement and then rotating the suspected disease image to obtain an expanded suspected disease image, or the third to sixth methods can be used in combination to reduce the size of the suspected disease local image, then add random image noise and weather effects to the suspected disease image, and finally perform affine transformation on the suspected disease image. No more examples will be given here to illustrate one by one.

[0081] In a possible implementation, the method may further include the following steps:

[0082] Extracting image features of the suspected disease image from the suspected disease image using a pre-trained feature extraction model;

[0083] Recording the image features of the suspected disease image into the suspected disease database;

[0084] The retrieving from the pre-stored suspected disease library a suspected disease image whose similarity with the search image meets a preset condition includes:

[0085] Extracting image features of the retrieval image from the retrieval image using a pre-trained feature extraction model;

[0086] A suspected disease image whose similarity with the image feature of the search image meets a preset condition is retrieved from a pre-stored suspected disease library.

[0087] In this embodiment, the suspected disease database records not only the suspected disease images, but also the image features of the suspected disease images, wherein the image features of the suspected disease images can be extracted from the suspected disease images by a pre-trained feature extraction module. Accordingly, when performing a search, it is also necessary to use a pre-trained feature extraction model to extract the image features of the search image from the search image, calculate the similarity between the image features of each suspected disease image in the suspected disease database and the image features of the search image, and obtain the suspected disease images whose similarity meets the preset conditions.

[0088] In a possible implementation, the feature extraction model includes a local feature extractor and a global feature extractor.

[0089] The feature extraction model includes a local feature extractor and a global feature extractor, and the step of extracting the image features of the retrieval image from the retrieval image using the pre-trained feature extraction model includes:

[0090] Acquire a local search image located within the outline of the suspected disease area of ​​the search image;

[0091] Inputting the local search image into the local feature extractor to obtain the local features of the search image output by the local feature extractor;

[0092] Inputting the search image into the global feature extractor to obtain the global features of the search image output by the global feature extractor;

[0093] Nonlinear processing is performed according to the local features and global features of the retrieval image to obtain the image features of the retrieval image.

[0094] In this embodiment, the feature extraction model may include a local feature extractor and a global feature extractor, wherein the local feature extractor is used to extract local information within the suspected disease area in the image, and the global feature extractor is used to extract global information in the image. The features combining the local information and the global information can more comprehensively and accurately express the image features.

[0095] In this embodiment, for the search image, the suspected disease area in the search image can be identified to obtain the outline of the suspected disease area, and the image located within the outline of the suspected disease area is the local search image. The local search image can be input into the local feature extractor to obtain the local features extracted by the local feature extractor, and the search image can be input into the global feature extractor to obtain the global features extracted by the global feature extractor, and then the local features and global features of the search image can be nonlinearly processed to obtain the image features of the search image.

[0096] It should be noted here that, similarly, for the image features of the suspected disease images in the suspected disease library, the suspected disease local image in the suspected disease image is input into the local feature extractor to obtain the local features extracted by the local feature extractor, and the suspected disease image is input into the global feature extractor to obtain the global features extracted by the global feature extractor, and then the local features and global features of the suspected disease image are nonlinearly processed to obtain the image features of the suspected disease image.

[0097] In a possible implementation manner, the retrieval image includes a road damage image or a road damage noise image.

[0098] In this embodiment, the road damage image refers to an image containing real road damage, and the damage noise image refers to an image without road damage but easily misidentified as having road damage.

[0099] In this embodiment, suspected disease images similar to the road disease image are retrieved for annotation, so that training images with diseases can be quickly annotated. Suspected disease images similar to the disease noise image are retrieved for annotation, so that training images that are easily misidentified as having diseases can be quickly annotated. Using training images with diseases to train a disease recognition model can enable the disease recognition model to learn the intrinsic characteristics of road diseases and ensure the recall rate of the disease recognition model. Using training images that are easily misidentified as having diseases to train a disease recognition model can enable the disease recognition model to avoid recognition errors and ensure the accuracy of the disease recognition model.

[0100] In a possible implementation, if a suspected disease area is identified from a road image, determining that the road image is an original suspected disease image includes:

[0101] Identify road element areas and suspected disease areas in road images;

[0102] If suspected disease areas still exist in the road image after the suspected disease areas outside the road element area in the road image are filtered out, it is determined that the road image is an original suspected disease image.

[0103] In this embodiment, image recognition can be performed on the road image to identify road element areas and suspected disease areas in the road image. The road element area may include areas where various road elements are located. For example, it may include element areas on the road surface, such as lane lines, drivable areas, and other element areas. It may also include areas where various traffic equipment on the road are located, such as traffic signs, gantries, electronic eyes, and the like.

[0104] In this embodiment, as described above, road defects include pavement defects and non-pavement defects, and these road defects are respectively located in the above-mentioned road element areas. Therefore, the road element areas can be used to filter the identified suspected disease areas, and the suspected disease areas outside the road element areas in the road image are filtered out. If suspected disease areas still exist in the road image after filtering, the road image is determined to be the original suspected disease image. In this way, the accuracy of the suspected disease images can be improved, thereby improving the retrieval quality and efficiency.

[0105] The present disclosure also provides a feature extraction model training method, Figure 2 FIG. 1 is a flow chart showing a method for training a feature extraction model according to an embodiment of the present disclosure. Figure 2 As shown, the feature extraction model training method includes the following steps S201-S204:

[0106] In step S201, if a suspected disease area is identified from the road image, the road image is determined to be an original suspected disease image;

[0107] In step S202, data enhancement is performed on the suspected disease image to obtain an expanded suspected disease image;

[0108] In step S203, a triplet is constructed, wherein the reference sample in the triplet is the original suspected disease image, the positive sample in the triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the triplet is other original suspected disease images different from the original suspected disease image or other expanded suspected disease images corresponding to the original suspected disease images;

[0109] In step S204, the feature extraction model is trained using the triplet to obtain a trained feature extraction model.

[0110] In one possible implementation, the feature extraction model training method is applicable to computers, computing devices, servers, server clusters and other devices that can perform feature extraction model training.

[0111] In one possible implementation, the feature extraction model can be trained by unsupervised contrastive learning. In this case, the training data of the feature extraction model is a triplet, which includes a baseline sample, a positive sample, and a negative sample. The goal of the feature extraction model is to learn a feature space in which the baseline sample is closer to the positive sample and the baseline sample is farther from the negative sample.

[0112] In a possible implementation, the reference sample of the triplet is the original suspected disease image, and whether there is a suspected disease area in the image can be identified from the road image regularly uploaded by the maintenance vehicle, and if there is, the road image is determined to be the original suspected disease image. In order to ensure the recognition accuracy, the road element area and the suspected disease area in the road image can be identified; if the suspected disease area in the road image outside the road element area is filtered out, and the suspected disease area still exists in the road image, the road image is determined to be the original suspected disease image.

[0113] In a possible implementation, the positive sample in the triplet is an expanded suspected disease image corresponding to the original suspected disease image. The expanded suspected disease image may be obtained after data enhancement of the suspected disease image. As described above, the data enhancement method may include at least one of background replacement, random rotation, size transformation, random noise, weather transformation, affine transformation and color channel transformation.

[0114] In a possible implementation manner, the negative samples in the triplet are other original suspected disease images different from the original suspected disease images or other expanded suspected disease images corresponding to the original suspected disease images.

[0115] In one possible implementation, the above-mentioned triplets can be used to train a feature extraction model, and the model parameters in the feature extraction model can be continuously adjusted to make the feature distance between the baseline sample and the positive sample closer, and the feature distance between the baseline sample and the negative sample farther, until these feature distances reach predetermined conditions, and a trained feature extraction model can be obtained.

[0116] This implementation can expand the suspected disease image by means of data enhancement, and use the original suspected disease image, its corresponding expanded suspected disease image and other original suspected disease images different from it to construct a triplet, and use an unsupervised comparison method to train the feature extraction model. The feature extraction model trained in this way can extract effective disease features including features such as texture with strong distinguishing ability from the image. In this way, the image features extracted by the feature extraction model are used to retrieve suspected disease images similar to the retrieved image, so that suspected disease images similar to the effective disease features of the retrieved image can be obtained. In this way, the proportion of effective disease images in the retrieved suspected disease images will be much higher than the actual distribution of effective disease images. By annotating the retrieved suspected disease images, effective disease images can be quickly annotated in a short time, and a training data set for the disease recognition model can be obtained efficiently and at low cost.

[0117] In addition, expanding suspected disease images through data enhancement can also provide richer training data for the feature extraction model and improve the feature extraction capability of the feature extraction model.

[0118] In a possible implementation, the feature extraction model includes a local feature extractor and a global feature extractor, and constructing a triplet includes:

[0119] Extracting the suspected disease area contour in the suspected disease image, and acquiring the suspected disease local image located within the suspected disease area contour, wherein the suspected disease image includes the original suspected disease image and the expanded suspected disease image;

[0120] Constructing a local triplet, wherein the reference sample in the local triplet is a suspected disease local image of the original suspected disease image, the positive sample in the local triplet is a suspected disease local image of an expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the local triplet is a suspected disease local image of other original suspected disease images different from the original suspected disease image or a suspected disease local image of an expanded suspected disease image corresponding to other original suspected disease images;

[0121] Constructing a global triplet, wherein the reference sample in the global triplet is the original suspected disease image, the positive sample in the global triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the global triplet is other original suspected disease images different from the original suspected disease image or other expanded suspected disease images corresponding to the original suspected disease images;

[0122] The method of training the feature extraction model using the triplet to obtain a trained feature extraction model includes:

[0123] The local feature extractor is trained using the local triplet, and the global feature extractor is trained using the global triplet, and the trained feature extraction model is obtained through joint training.

[0124] In this embodiment, the feature extraction model may include a local feature extractor and a global feature extractor, wherein the local feature extractor is used to extract local information within the suspected disease area in the image, and the global feature extractor is used to extract global information in the image. The features combining the local information and the global information can more comprehensively and accurately express the image features.

[0125] In this embodiment, the training data of the local feature extractor is a local triplet, and the training data of the global feature extractor is a global triplet. The local feature extractor and the global feature extractor can be jointly trained using different training data.

[0126] In this embodiment, the sample in the local triplet is a suspected disease local image, and the suspected disease local image is an image located within the outline of the suspected disease area. The suspected disease area outline in the suspected disease image can be extracted first, and then the suspected disease local image located within the suspected disease area outline can be obtained. The suspected disease image mentioned here includes the original suspected disease image and the expanded suspected disease image. The reference sample in the local triplet is the suspected disease local image of the original suspected disease image, the positive sample in the local triplet is the suspected disease local image of the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the local triplet is the suspected disease local image of other original suspected disease images different from the original suspected disease image or the suspected disease local image of the expanded suspected disease image corresponding to other original suspected disease images.

[0127] In this embodiment, the reference sample in the global triplet is the original suspected disease image, the positive sample in the global triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the global triplet is other original suspected disease images different from the original suspected disease image or other expanded suspected disease images corresponding to other original suspected disease images.

[0128] In this embodiment, the local feature extractor and the global feature extractor are deep learning models, and by way of example, they may be deep learning models with ResNet50 (Residual Network 50) as the skeleton.

[0129] Figure 3 A schematic diagram of an application scenario of a data processing method according to an embodiment of the present disclosure is shown. Figure 3As shown, the maintenance vehicle can regularly collect road images and upload them to the server. If the server identifies a suspected disease area from the road image, it determines that the road image is an original suspected disease image, performs data enhancement on the original suspected disease image, obtains an expanded suspected disease image, and records the original suspected disease image and the expanded suspected disease image into the suspected disease library. The server can construct triples using the suspected disease images in the suspected disease library, and then use the constructed triples to train the feature extraction model to obtain a trained feature extraction model. In this way, when training the disease recognition model, the training image of the disease recognition model can be obtained as the retrieval image, and the image features of the retrieval image can be extracted from the retrieval image using the pre-trained feature extraction model, and the suspected disease image whose similarity with the image features of the retrieval image meets the preset conditions is retrieved from the pre-stored suspected disease library, and the retrieved suspected disease image is sent to the client, and the client is displayed to the annotation personnel, and the annotation personnel can find the training image of the disease recognition model from these retrieved suspected disease images and annotate them. The training images found by the annotation personnel and their annotation results can constitute the training data set of the disease recognition model, and the disease recognition model can be trained using this training data set. The disease recognition model can be configured on the maintenance vehicle, and the maintenance vehicle can use the disease recognition model to identify the road diseases in the road images it takes during the inspection process, and upload the identified road diseases to the maintenance system, and the maintenance system can notify the relevant road maintenance personnel to deal with the road diseases in a timely manner to ensure driving safety on the road.

[0130] The present disclosure proposes a data processing method for road disease maintenance. The input of the method is a road image of a national, provincial or urban road, and candidate categories of each pixel and suspected disease area in the road image are obtained. Then, invalid suspected disease areas are eliminated with a specific strategy through pixel categories such as lane lines and drivable areas of the road surface, and the contours of valid suspected disease areas are obtained. After collecting a certain amount of suspected disease images and contours of valid suspected disease areas, an unlabeled training data set is constructed. A local feature extractor and a global feature extractor are constructed with ResNet50 as the skeleton. The training data of the local feature extractor only includes the local images of suspected diseases within the outline of the suspected disease area, and the training data of the global feature extractor includes the road images with the effective suspected disease area. The global model and the local model are jointly trained in an unsupervised manner based on contrastive learning loss. During the training, strong data enhancement is performed on the suspected disease images and the local images of suspected diseases, including but not limited to random scale transformation, random Gaussian blur, random affine transformation, random rain and snow scenes, etc. In addition, the background of the suspected disease image is randomly replaced based on the outline to reduce the impact of the background on the features, etc. A feature extraction model that can effectively extract global and local features is trained in the above manner. The feature extraction model obtained through training extracts the global features and local features corresponding to each suspected disease image in the suspected disease library to construct a feature retrieval library. Based on this, a small number of high-quality disease images or noise images are used as query instances to search in the retrieval library to obtain a disease candidate set that is highly similar to the disease image or noise image. Among them, the proportion of valid disease images in the disease candidate set is much higher than the original data distribution. Finally, it is sent for manual annotation, which can effectively improve the efficiency of disease data mining and reduce data annotation costs.

[0131] The present invention discloses a data processing method for road damage maintenance, which aims to efficiently mine various categories of road damage data, improve data mining efficiency, reduce data annotation costs, and be applied to the short-term construction of new damage category recognition capabilities and the short-term update of existing damage recognition capabilities in new scenarios.

[0132] To achieve the above objectives, the present disclosure will adopt the following technical solutions, the process of which is as follows:

[0133] (1) Generation of candidate disease library

[0134] (1.1) Identify road element areas (including lane lines, drivable areas, traffic signs, etc.) and suspected disease areas from road images.

[0135] (1.2) The suspected disease area obtained in (1.1) is filtered by the road element area obtained in (1.1) (e.g., the non-ground suspected pothole area is filtered by the drivable area) to obtain the effective suspected disease area.

[0136] (1.3) Extracting the contour of the suspected disease area from the suspected disease area obtained in (1.2), obtaining suspected disease instance information, and constructing a candidate disease library, wherein the candidate disease library includes suspected disease instance information, and the suspected disease instance information includes a suspected disease image having the effective suspected disease area and a suspected disease local image within the contour of the suspected disease area.

[0137] (2) Training data preprocessing and feature extraction model training

[0138] (2.1) using the suspected disease instance information obtained in (1.3) to construct a training set, the training set including suspected disease images and suspected disease local images within the suspected disease area contour;

[0139] (2.2) In order to improve the randomness of the data and extract effective disease features, the suspected disease image and the suspected disease area outline can be combined to achieve random background replacement by copying and pasting. The road surface background image obtained by the road surface segmentation model from other pre-stored road images is randomly used to replace the image outside the suspected disease area outline in the suspected disease image. The goal of background replacement is to obtain the characteristic information of the suspected disease itself and avoid being affected by the background area near the disease (such as normal road surface).

[0140] (2.3) Data enhancement methods such as random flipping, random noise, random channel transformation, and random rain and snow weather are used to enhance the suspected disease local image within the suspected disease area outline obtained in (2.1) and the suspected disease image with random background replacement obtained in (2.2).

[0141] (2.4) ResNet50 is selected as the skeleton of the feature extraction model, and a local feature extractor and a global feature extractor are constructed to extract global features and local features respectively. The combination of the two improves the feature expression ability; a nonlinear layer is constructed to perform nonlinear processing on the output features again; and a feature extraction model is constructed based on this, that is, the feature extraction model includes a local feature extractor, a global feature extractor and a nonlinear processing layer.

[0142] (2.5) Extract the characterization capability of suspected disease areas for training feature extractors. The original suspected disease image and its corresponding expanded suspected disease image after data enhancement are used as positive sample pairs, and the original suspected disease image and other original suspected disease images different from it are used as negative sample pairs to construct local triples and global triples. The reference sample in the local triple is the suspected disease local image of the original suspected disease image, the positive sample in the local triple is the suspected disease local image of the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the local triple is the suspected disease local image of other original suspected disease images different from the original suspected disease image; the reference sample in the global triple is the original suspected disease local image. The positive sample in the global triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the global triplet is other original suspected disease images different from the original suspected disease image or other expanded suspected disease images corresponding to other original suspected disease images; in this way, the suspected disease image after data enhancement in (2.3) and its suspected disease local image can be respectively sent to the global feature extractor and the local feature extractor constructed in (2.4) in the form of a triplet, and the global feature extractor and the local feature extractor are jointly trained with the contrastive learning loss function as the objective function, so that the feature extraction model can acquire the ability to extract effective global features and local features.

[0143] (3) Database construction and data mining process

[0144] (3.1) The suspected disease images and suspected disease partial images in the candidate disease library constructed in (1) are input into the feature extraction model trained in (2), and the output features are used as the feature retrieval library of the candidate disease library. The feature retrieval library can be expanded at any time as the collected data increases.

[0145] (3.2) Using road damage images or damage noise images as query instances, input them into the feature extraction model trained in (2) to obtain features as retrieval features, and search in the feature retrieval library to obtain the n suspected damage images with the highest similarity.

[0146] (3.3) The n suspected disease images obtained in (3.2) are sent for manual labeling (where the proportion of valid data is much higher than the actual distribution) to obtain training data for the disease recognition model.

[0147] (3.4) The training data obtained in (3.3) is used as the data basis for building new disease recognition capabilities / updating existing disease recognition capabilities to train recognition capabilities. For new types of road diseases, a large number of images with such road diseases can be quickly obtained, and the recognition capabilities of the disease recognition model for new types of road diseases can be built in a short period of time; for existing diseases in new scenarios, images of existing diseases in new scenarios can also be quickly obtained, and the road recognition model's existing disease recognition capabilities in new scenarios can be updated in a short period of time.

[0148] This implementation method proposes a data mining solution for road disease maintenance. In the absence of labeling, it is proposed to train a feature extraction model with an unsupervised comparative learning method to obtain extraction capabilities with characterization capabilities. Subsequently, the feature extraction model is used to extract features corresponding to suspected disease images in a suspected disease library to construct a feature retrieval library. Finally, a small number of high-value retrieval images are selected for retrieval to obtain a disease candidate set with an effective proportion far higher than the actual distribution for manual labeling, thereby solving the problem of high labeling costs caused by scarcity of samples in disease data mining and quickly improving / establishing disease recognition capabilities in a short period of time.

[0149] This implementation proposes a data enhancement scheme and global and local feature extractors, which are based on road segmentation and randomly replace the background by combining the road area with the suspected disease contour information to solve the background information interference problem in the disease characteristics; improve data diversity through data enhancement methods such as random scale, rotation, random channel, random rain and snow weather; propose a feature extraction model that separates the global extractor and the local extractor to effectively obtain global features and local features, and improve the ability to extract effective disease information by jointly training the global extractor and the local extractor, thereby solving the problem of insufficient data mining effect due to insufficient features in feature retrieval.

[0150] Figure 4 1 shows a structural block diagram of a data processing device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 4 As shown, the data processing device includes:

[0151] An image acquisition module 401 is configured to acquire a retrieval image, wherein the retrieval image includes an image for training a disease recognition model;

[0152] The retrieval module 402 is configured to retrieve suspected disease images whose similarity with the retrieved image meets a preset condition from a pre-stored suspected disease library, so as to obtain a training data set for the disease recognition model based on the annotation of the retrieved suspected disease images;

[0153] The suspected disease database records suspected disease images, and the suspected disease images are road images in which suspected disease areas are identified.

[0154] In a possible implementation, the device further includes:

[0155] an identification module configured to determine that the road image is an original suspected disease image if a suspected disease area is identified from the road image;

[0156] An expansion module is configured to perform data enhancement on the original suspected disease image to obtain an expanded suspected disease image;

[0157] The recording module is configured to record the suspected disease image into the suspected disease library, wherein the suspected disease image includes the original suspected disease image and the expanded suspected disease image.

[0158] In a possible implementation, the device may further include:

[0159] A local image acquisition module extracts the suspected disease area contour in the original suspected disease image, and acquires the suspected disease local image located within the suspected disease area contour;

[0160] The expansion module is configured to perform at least one of the following enhancement steps:

[0161] Using a pre-stored road surface background image to replace the image outside the outline of the suspected disease area in the original suspected disease image;

[0162] Rotating the original suspected disease image and / or the suspected disease partial image;

[0163] Changing the size of the original suspected disease image and / or the suspected disease partial image;

[0164] Adding random image noise to the original suspected disease image and / or the suspected disease partial image;

[0165] Adding a weather effect to the original suspected disease image and / or the suspected disease partial image;

[0166] Performing an affine transformation on the original suspected disease image and / or the suspected disease partial image;

[0167] The color channels of the original suspected disease image and / or the suspected disease partial image are transformed.

[0168] In a possible implementation, the device further includes:

[0169] A feature extraction module is configured to extract image features of the suspected disease image from the suspected disease image using a pre-trained feature extraction model;

[0170] A feature recording module, configured to record the image features of the suspected disease image into the suspected disease library;

[0171] The retrieval module is configured to:

[0172] Extracting image features of the retrieval image from the retrieval image using a pre-trained feature extraction model;

[0173] A suspected disease image whose similarity with the image feature of the search image meets a preset condition is retrieved from a pre-stored suspected disease library.

[0174] In a possible implementation, the feature extraction model includes a local feature extractor and a global feature extractor, and the part of the retrieval module that uses the pre-trained feature extraction model to extract the image features of the retrieval image from the retrieval image is configured as follows:

[0175] Acquire a local search image located within the outline of the suspected disease area of ​​the search image;

[0176] Inputting the local search image into the local feature extractor to obtain the local features of the search image output by the local feature extractor;

[0177] Inputting the search image into the global feature extractor to obtain the global features of the search image output by the global feature extractor;

[0178] Nonlinear processing is performed according to the local features and global features of the retrieval image to obtain the image features of the retrieval image.

[0179] In a possible implementation manner, the retrieval image includes a road damage image or a road damage noise image.

[0180] In a possible implementation, the identification module is configured to:

[0181] Identify road element areas and suspected disease areas in road images;

[0182] If suspected disease areas still exist in the road image after the suspected disease areas outside the road element area in the road image are filtered out, it is determined that the road image is an original suspected disease image.

[0183] Figure 5FIG. 1 is a block diagram showing a feature extraction model training device according to an embodiment of the present disclosure. The device can be implemented as part or all of an electronic device through software, hardware, or a combination of both. Figure 5 As shown, the feature extraction model training device includes:

[0184] The suspected image determination module 501 is configured to determine that the road image is an original suspected disease image if a suspected disease area is identified from the road image;

[0185] The data enhancement module 502 is configured to perform data enhancement on the suspected disease image to obtain an expanded suspected disease image;

[0186] The data construction module 503 is configured to construct a triplet, wherein the reference sample in the triplet is the original suspected disease image, the positive sample in the triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the triplet is other original suspected disease images different from the original suspected disease image;

[0187] The training module 504 is configured to use the triples to train the feature extraction model to obtain a trained feature extraction model.

[0188] In a possible implementation, the feature extraction model includes a local feature extractor and a global feature extractor, and the data construction module 503 is configured as follows:

[0189] Extracting the suspected disease area contour in the suspected disease image, and acquiring the suspected disease local image located within the suspected disease area contour, wherein the suspected disease image includes the original suspected disease image and the expanded suspected disease image;

[0190] Constructing a local triplet, wherein the reference sample in the local triplet is a suspected disease local image of the original suspected disease image, the positive sample in the local triplet is a suspected disease local image of an expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the local triplet is a suspected disease local image of other original suspected disease images different from the original suspected disease image;

[0191] Constructing a global triplet, wherein the reference sample in the global triplet is the original suspected disease image, the positive sample in the global triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the global triplet is other original suspected disease images different from the original suspected disease image;

[0192] The method of training the feature extraction model using the triplet to obtain a trained feature extraction model includes:

[0193] The local feature extractor is trained using the local triplet, and the global feature extractor is trained using the global triplet, and the trained feature extraction model is obtained through joint training.

[0194] The technical terms and technical features mentioned in the implementation manner of this device are the same or similar. For the explanation and description of the technical terms and technical features involved in this device, reference may be made to the explanation and description of the implementation manner of the above-mentioned method, which will not be repeated here.

[0195] The present disclosure also discloses an electronic device, Figure 6 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown.

[0196] like Figure 6 As shown, the electronic device 600 includes a memory 601 and a processor 602, wherein the memory 601 is used to store one or more computer instructions, wherein the one or more computer instructions are executed by the processor 602 to implement the method according to an embodiment of the present disclosure.

[0197] Figure 7 A schematic diagram showing the structure of a computer system suitable for implementing the method according to an embodiment of the present disclosure is shown.

[0198] like Figure 7 As shown, the computer system 700 includes a processing unit 701, which can perform various processes in the above-mentioned embodiments according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the computer system 700 are also stored. The processing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0199] The following components are connected to the I / O interface 705: an input section 706 including a keyboard, a mouse, etc.; an output section 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN card, a modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage section 708 as needed. Among them, the processing unit 701 can be implemented as a processing unit such as a CPU, a GPU, a TPU, an FPGA, an NPU, etc.

[0200] In particular, according to an embodiment of the present disclosure, the method described above can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes computer instructions, and the computer instructions are executed by a processor to implement the method steps described above. In such an embodiment, the computer program product can be downloaded and installed from a network through the communication part 709, and / or installed from a removable medium 711.

[0201] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0202] The units or modules involved in the embodiments described in the present disclosure may be implemented by software or programmable hardware. The units or modules described may also be set in a processor, and the names of these units or modules do not constitute limitations on the units or modules themselves in some cases.

[0203] As another aspect, the present disclosure further provides a computer-readable storage medium, which may be a computer-readable storage medium included in the electronic device or computer system in the above embodiment; or a computer-readable storage medium that exists independently and is not assembled into a device. The computer-readable storage medium stores one or more programs, and the programs are used by one or more processors to execute the method described in the present disclosure.

[0204] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other.

Claims

1. A data processing method, comprising: Acquire a retrieval image, wherein the retrieval image includes an image for training a disease recognition model; Retrieving suspected disease images whose similarity with the retrieved image meets a preset condition from a pre-stored suspected disease library, and obtaining a training data set for the disease recognition model based on the annotation of the retrieved suspected disease images; The suspected disease database records suspected disease images, and the suspected disease images are road images with identified suspected disease areas.

2. The method according to claim 1, wherein: The method further comprises: If a suspected disease area is identified from the road image, the road image is determined to be an original suspected disease image; Performing data enhancement on the original suspected disease image to obtain an expanded suspected disease image; The suspected disease image is recorded in the suspected disease library, wherein the suspected disease image includes the original suspected disease image and the expanded suspected disease image.

3. The method according to claim 2, wherein: The method further comprises: Extracting the suspected disease area contour in the original suspected disease image, and acquiring the suspected disease local image located within the suspected disease area contour; The data enhancement of the original suspected disease image to obtain an expanded suspected disease image includes at least one of the following enhancement steps: Using a pre-stored road surface background image to replace the image outside the outline of the suspected disease area in the original suspected disease image; Rotating the original suspected disease image and / or the suspected disease partial image; Changing the size of the original suspected disease image and / or the suspected disease partial image; Adding random image noise to the original suspected disease image and / or the suspected disease partial image; Adding a weather effect to the original suspected disease image and / or the suspected disease partial image; Performing an affine transformation on the original suspected disease image and / or the suspected disease partial image; The color channels of the original suspected disease image and / or the suspected disease partial image are transformed.

4. The method according to claim 1, wherein: The method further comprises: Extracting image features of the suspected disease image from the suspected disease image using a pre-trained feature extraction model; Recording the image features of the suspected disease image into the suspected disease database; The retrieving from the pre-stored suspected disease library a suspected disease image whose similarity with the search image meets a preset condition includes: Extracting image features of the retrieval image from the retrieval image using a pre-trained feature extraction model; A suspected disease image whose similarity with the image feature of the search image meets a preset condition is retrieved from a pre-stored suspected disease library.

5. The method according to claim 4, wherein: The feature extraction model includes a local feature extractor and a global feature extractor, and the step of extracting the image features of the retrieval image from the retrieval image using the pre-trained feature extraction model includes: Acquire a local search image located within the outline of the suspected disease area of ​​the search image; Inputting the local search image into the local feature extractor to obtain the local features of the search image output by the local feature extractor; Inputting the search image into the global feature extractor to obtain the global features of the search image output by the global feature extractor; Nonlinear processing is performed according to the local features and global features of the retrieval image to obtain image features of the retrieval image.

6. The method according to any one of claims 1 to 5, wherein: The retrieval image includes a road damage image or a road damage noise image.

7. The method according to claim 2, wherein: If a suspected disease area is identified from the road image, determining that the road image is an original suspected disease image includes: Identify road element areas and suspected disease areas in road images; If suspected disease areas still exist in the road image after the suspected disease areas outside the road element area in the road image are filtered out, it is determined that the road image is an original suspected disease image.

8. A feature extraction model training method, wherein: The method comprises: If a suspected disease area is identified from the road image, the road image is determined to be an original suspected disease image; Performing data enhancement on the suspected disease image to obtain an expanded suspected disease image; Constructing a triplet, wherein the reference sample in the triplet is the original suspected disease image, the positive sample in the triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the triplet is other original suspected disease images different from the original suspected disease image or other expanded suspected disease images corresponding to the original suspected disease images; The feature extraction model is trained using the triplet to obtain a trained feature extraction model.

9. The method according to claim 8, wherein: The feature extraction model includes a local feature extractor and a global feature extractor, and the construction of the triplet includes: Extracting the suspected disease area contour in the suspected disease image, and acquiring the suspected disease local image located within the suspected disease area contour, wherein the suspected disease image includes the original suspected disease image and the expanded suspected disease image; Constructing a local triplet, wherein the reference sample in the local triplet is a suspected disease local image of the original suspected disease image, the positive sample in the local triplet is a suspected disease local image of an expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the local triplet is a suspected disease local image of other original suspected disease images different from the original suspected disease image or a suspected disease local image of an expanded suspected disease image corresponding to other original suspected disease images; Constructing a global triplet, wherein the reference sample in the global triplet is the original suspected disease image, the positive sample in the global triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the global triplet is other original suspected disease images different from the original suspected disease image or other expanded suspected disease images corresponding to the original suspected disease images; The method of training the feature extraction model using the triplet to obtain a trained feature extraction model includes: The local feature extractor is trained using the local triplet, and the global feature extractor is trained using the global triplet, and the trained feature extraction model is obtained through joint training.

10. A data processing device, comprising: An image acquisition module is configured to acquire a retrieval image, wherein the retrieval image includes an image for training a disease recognition model; A retrieval module is configured to retrieve suspected disease images whose similarity with the retrieved image meets a preset condition from a pre-stored suspected disease library, so as to obtain a training data set for the disease recognition model based on annotations of the retrieved suspected disease images; The suspected disease database records suspected disease images, and the suspected disease images are road images with identified suspected disease areas.

11. A feature extraction model training device, wherein: The device comprises: a suspected image determination module, configured to determine that the road image is an original suspected disease image if a suspected disease area is identified from the road image; A data enhancement module is configured to perform data enhancement on the suspected disease image to obtain an expanded suspected disease image; A data construction module is configured to construct a triplet, wherein the reference sample in the triplet is the original suspected disease image, the positive sample in the triplet is the expanded suspected disease image corresponding to the original suspected disease image, and the negative sample in the triplet is other original suspected disease images different from the original suspected disease image; The training module is configured to use the triples to train the feature extraction model to obtain a trained feature extraction model.

12. An electronic device comprising a memory and a processor; wherein: The memory is used to store one or more computer instructions, and the one or more computer instructions are executed by the processor to implement the method steps described in any one of claims 1 to 9.

13. A computer-readable storage medium having computer instructions stored thereon, wherein: When the computer instructions are executed by a processor, the method according to any one of claims 1 to 9 is implemented.

14. A computer program product comprising computer instructions, which, when executed by a processor, implement the method steps of any one of claims 1 to 9.