Data set construction method, device, electronic device and storage medium

By constructing simulation data sets and feature operator sets, feature extraction and equalization processing are performed, which solves the problem of imbalanced training data in deep learning and improves the generalization ability and performance of the image quality evaluation model.

CN112488033BActive Publication Date: 2024-10-18BEIJING KINGSOFT CLOUD NETWORK TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202011462355.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-10
Publication Date
2024-10-18
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

In deep learning technology, unbalanced training data leads to poor generalization ability of image quality evaluation models and easy overfitting. How to construct a balanced training data set has become an urgent technical problem to be solved.

Method used

By constructing a simulation data set based on multiple preset original images, determining the target feature operator set, performing feature extraction and data equalization processing, a deep learning training data set is formed to improve the generalization and performance of the model.

Benefits of technology

It achieves the construction of a balanced training data set and improves the balance of the deep learning training data set, thereby improving the generalization ability and performance of the image quality evaluation model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112488033B_ABST
    Figure CN112488033B_ABST
Patent Text Reader

Abstract

The embodiments of the present invention relate to a method, device, electronic device and storage medium for constructing a data set, including: constructing a simulated data set based on a plurality of preset original images; determining a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set; extracting features from the candidate data set based on the target feature operator set to obtain a candidate data feature set; performing equalization processing on the candidate data feature set using a preset data equalization strategy, and using the candidate data corresponding to each candidate data feature in the candidate data feature set after equalization as deep learning training data to obtain a deep learning training data set. In this way, a balanced deep learning training data set can be constructed, thereby improving the generalization and model performance of a model trained using the deep learning training data set.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of deep learning technology, and in particular, to a method, device, electronic device and storage medium for constructing a data set. Background Art

[0002] With the widespread application of image information technology, the evaluation of image quality has become a widespread and fundamental issue. For example, in image recognition, the quality of the collected images directly affects the accuracy and reliability of the recognition results; in military applications, the effectiveness of battlefield monitoring and strike assessment also depends on the quality of images or videos collected by drones and other aerial photography equipment. Therefore, the reasonable evaluation of image quality has very important application value.

[0003] With the continuous development of deep learning technology, deep learning technology has been applied in image quality assessment scenarios. In this scenario, if the training data is unbalanced, the trained image quality assessment model will have poor generalization ability and be prone to overfitting. Therefore, how to construct a balanced training data set has become a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, in order to solve the technical problem of how to construct a balanced training data set, an embodiment of the present invention provides a method, device, electronic device and storage medium for constructing a data set.

[0005] In a first aspect, an embodiment of the present invention provides a method for constructing a data set, the method comprising:

[0006] Construct a simulated data set based on multiple preset original images;

[0007] Determining a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set;

[0008] Extracting features from the candidate data set based on the target feature operator set to obtain a candidate data feature set;

[0009] The candidate data feature set is balanced using a preset data balancing strategy, and the candidate data corresponding to each candidate data feature in the balanced candidate data feature set is used as deep learning training data to obtain a deep learning training data set.

[0010] In a possible implementation, determining a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set includes:

[0011] Based on a plurality of preset candidate feature operator sets, feature extraction is performed on the simulated data set to obtain a plurality of simulated data feature sets;

[0012] The plurality of simulated data feature sets are respectively balanced by using the data balancing strategy, and the simulated data corresponding to each simulated data feature in the simulated data feature set after the balanced processing is used as simulated training data to obtain a plurality of simulated training data sets;

[0013] Using the plurality of simulated training data sets to train the initial model respectively, to obtain a plurality of image quality evaluation models;

[0014] Performance indicator values ​​of the plurality of image quality assessment models are determined to determine a target feature operator set from the plurality of candidate feature operator sets according to the plurality of performance indicator values.

[0015] In a possible implementation manner, determining the performance indicator values ​​of the plurality of image quality assessment models includes:

[0016] Inputting preset test data into the plurality of image quality assessment models respectively, and obtaining predicted quality index values ​​of the test data output by the plurality of image quality assessment models;

[0017] The performance index values ​​of the plurality of image quality assessment models are determined based on the true quality index value and the predicted quality index value of the test data.

[0018] In a possible implementation, determining a target feature operator set from a plurality of candidate feature operator sets according to a plurality of performance indicator values ​​includes:

[0019] The candidate feature operator set corresponding to the image quality evaluation model with the highest performance index value is determined as the target feature operator set.

[0020] In a possible implementation, the step of constructing a simulated data set based on a plurality of preset original images includes:

[0021] Using a plurality of set image distortion simulation functions to perform distortion simulation on a plurality of original images respectively, to obtain a plurality of distorted simulated images;

[0022] A set number of the distorted simulated images are selected as simulated data and included in a simulated data set.

[0023] In a possible implementation, the method further includes:

[0024] Using other distorted simulated images other than the simulated data among the plurality of distorted simulated images as the test data; and

[0025] For each of the distorted simulated images, using the distortion parameter in the image distortion simulation function used when obtaining the distorted simulated image as a keyword, searching for a correspondence between the preset distortion parameter and the distortion intensity value, and obtaining a target correspondence containing the keyword;

[0026] The distortion intensity value in the target corresponding relationship is determined as the true quality index value of the distorted simulated image.

[0027] In a second aspect, an embodiment of the present invention provides a device for constructing a data set, the device comprising:

[0028] A simulation module, used to construct a simulation data set based on multiple preset original images;

[0029] A determination module, configured to determine a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set;

[0030] An extraction module, used to extract features from the candidate data set based on the target feature operator set to obtain a candidate data feature set;

[0031] The balancing module is used to balance the candidate data feature set using a preset data balancing strategy, and use the candidate data corresponding to each candidate data feature in the balanced candidate data feature set as deep learning training data to obtain a deep learning training data set.

[0032] In a possible implementation manner, the determining module is specifically configured to:

[0033] Based on a plurality of preset candidate feature operator sets, feature extraction is performed on the simulated data set to obtain a plurality of simulated data feature sets;

[0034] The plurality of simulated data feature sets are respectively balanced by using the data balancing strategy, and the simulated data corresponding to each simulated data feature in the simulated data feature set after the balanced processing is used as simulated training data to obtain a plurality of simulated training data sets;

[0035] Using the plurality of simulated training data sets to train the initial model respectively, to obtain a plurality of image quality evaluation models;

[0036] Performance indicator values ​​of the plurality of image quality assessment models are determined to determine a target feature operator set from the plurality of candidate feature operator sets according to the plurality of performance indicator values.

[0037] In a possible implementation manner, the determining module is specifically configured to:

[0038] Inputting preset test data into the plurality of image quality assessment models respectively, and obtaining predicted quality index values ​​of the test data output by the plurality of image quality assessment models;

[0039] The performance index values ​​of the plurality of image quality assessment models are determined based on the true quality index value and the predicted quality index value of the test data.

[0040] In a possible implementation manner, the determining module is specifically configured to:

[0041] The candidate feature operator set corresponding to the image quality evaluation model with the highest performance index value is determined as the target feature operator set.

[0042] In a possible implementation manner, the simulation module is specifically used for:

[0043] Using a plurality of set image distortion simulation functions to perform distortion simulation on a plurality of original images respectively, to obtain a plurality of distorted simulated images;

[0044] A set number of the distorted simulated images are selected as simulated data and included in a simulated data set.

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

[0046] a preprocessing module, used for taking other distorted simulated images other than the simulated data among the plurality of distorted simulated images as the test data; and

[0047] A search module is used to search for a correspondence between preset distortion parameters and distortion intensity values ​​for each of the distorted simulated images, using the distortion parameters in the image distortion simulation function used when obtaining the distorted simulated image as keywords, to obtain a target correspondence containing the keywords; and determine the distortion intensity value in the target correspondence as a true quality index value of the distorted simulated image.

[0048] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the processor is used to execute a data set construction program stored in the memory to implement the data set construction method described in any one of the first aspects.

[0049] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method for constructing a data set described in any one of the first aspects.

[0050] The technical solution provided by the embodiment of the present invention extracts features from the candidate data set based on the target feature operator set to obtain a candidate data feature set, uses a preset data balancing strategy to balance the candidate data feature set, and uses the candidate data corresponding to each candidate data feature in the balanced candidate data feature set as deep learning training data to obtain a deep learning training data set, thereby achieving the construction of a balanced training data set. Furthermore, since the above-mentioned target feature operator set is determined from a plurality of preset candidate feature operator sets based on a simulated data set, it is more suitable for screening training data sets than other candidate feature operator sets, thereby improving the balance of the final deep learning training data set, and thus improving the generalization and model performance of the model trained using the deep learning training data set. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A flowchart of an embodiment of a method for constructing a data set provided by an exemplary embodiment of the present invention;

[0052] Figure 2 A flowchart of an embodiment of step 102 provided for an exemplary embodiment of the present invention;

[0053] Figure 3 A block diagram of an embodiment of a data set construction device provided by an exemplary embodiment of the present invention;

[0054] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] To facilitate understanding of the embodiments of the present invention, specific embodiments will be further explained below in conjunction with the accompanying drawings. The embodiments do not constitute a limitation on the embodiments of the present invention.

[0057] See also Figure 1 , is a flow chart of an embodiment of a method for constructing a data set provided by an exemplary embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0058] Step 101: construct a simulation data set based on a plurality of preset original images.

[0059] As an embodiment, multiple video frames can be extracted from the video stream, and each video frame can be used as an original image. Optionally, the multiple video frames can be multiple continuous video frames in the video stream, or multiple discontinuous video frames in the video stream, which is not limited in the present invention.

[0060] As an embodiment, the above-mentioned construction of a simulation data set based on multiple preset original images includes: using multiple set image distortion simulation functions to perform distortion simulation on multiple original images respectively to obtain multiple distorted simulated images, and selecting a set number of distorted simulated images as simulation data to be included in the simulation data set.

[0061] Optionally, the above-mentioned image distortion simulation function includes but is not limited to: Gaussian blur noise function (such as fspecial function, imfilter function, etc.), Gaussian acquisition noise function (such as imnoise function), JPEG / JP2K compression noise function (such as imwrite function), etc.

[0062] As an optional implementation method, the distortion parameters of each image distortion simulation function can be adjusted multiple times, and the distortion simulation can be performed on multiple preset original images using the image distortion simulation functions containing different distortion parameters. This can achieve the generation of multiple distortion simulation images with different distortion intensities for each image distortion simulation function, that is, each distortion simulation type, thereby expanding the scale of the simulation data set.

[0063] Step 102: Determine a target feature operator set from a plurality of preset candidate feature operator sets based on a simulated data set.

[0064] Step 103: extract features from the candidate data set based on the target feature operator set to obtain a candidate data feature set.

[0065] Step 104: Use a preset data balancing strategy to balance the candidate data feature set, and use the candidate data corresponding to each candidate data feature in the balanced candidate data feature set as deep learning training data to obtain a deep learning training data set.

[0066] The following is a unified description of steps 102 to 104:

[0067] In deep learning, if the training data is not balanced, the trained model has poor generalization ability and is prone to overfitting. Therefore, in deep learning, it is particularly important to build a balanced training data set. Based on this, in the application, the method provided by the present invention can be used to balance the preset data set (hereinafter referred to as the candidate data set for the convenience of description) to obtain a well-distributed deep learning training data set, thereby improving the generalization ability and model performance of the subsequently trained model.

[0068] As an embodiment, in the application, the features of the candidate data in the candidate data set can be extracted for analysis, and the candidate data set can be balanced using a data balancing strategy to obtain the final deep learning training data set. Specifically, feature extraction can be performed on the candidate data set to obtain the features of each candidate data in the candidate data set (for the convenience of description, hereinafter referred to as candidate data features, and the set formed by each candidate data feature is referred to as a candidate data feature set), and then the candidate data feature set is balanced using a preset data balancing strategy. It can be understood that the candidate data feature is an abstract representation of the characteristics of the candidate data, so balancing the candidate data feature set is equivalent to balancing the candidate data set. Based on this, the candidate data corresponding to each candidate data feature in the candidate data feature set after the balanced processing can be used as deep learning training data to obtain a deep learning training data set.

[0069] In one example, the preset data balancing strategy is: a data set processing method based on mixed integer linear programming.

[0070] Furthermore, in applications, images have features in multiple dimensions, including but not limited to brightness, chromaticity, contrast, clarity, bit rate, resolution, etc., and the features used in the above analysis are different, and the feature calculation methods are different, which will affect the balance of the final deep learning training data set. Based on this, an embodiment of the present invention proposes: by analyzing and selecting one or more feature operators to form a target feature operator set, in the process of constructing the deep learning training data set described above, feature extraction is performed on the candidate data set based on the target feature operator set to improve the balance of the constructed deep learning training data set, thereby improving the generalization ability and model performance of the subsequent model trained using the deep learning training data set.

[0071] As an embodiment, multiple candidate feature operator sets may be pre-set, each of which may include at least one feature operator, and the feature operators in different candidate feature operator sets are different (here, the different may refer to completely different or partially different). The target feature operator set is determined from the multiple candidate feature operator sets based on the simulated data set.

[0072] As an optional implementation, a candidate feature operator set may be pre-set, and then multiple candidate feature operator sets may be derived based on the candidate feature operator set (hereinafter referred to as the benchmark candidate feature operator set for convenience of description). For example, one or several feature operators in the benchmark candidate feature operator set may be removed, one or several feature operators may be added to the benchmark candidate feature operator set, or one or several feature operators in the benchmark candidate feature operator set may be improved.

[0073] As for how to determine the target feature operator set from multiple preset candidate feature operator sets based on the simulated data set, we will explain it in the following. Figure 2 The process shown is only an example and will not be described in detail here.

[0074] The technical solution provided by the embodiment of the present invention extracts features from the candidate data set based on the target feature operator set to obtain a candidate data feature set, uses a preset data balancing strategy to balance the candidate data feature set, and uses the candidate data corresponding to each candidate data feature in the balanced candidate data feature set as deep learning training data to obtain a deep learning training data set, thereby achieving the construction of a balanced training data set. Furthermore, since the above-mentioned target feature operator set is determined from a plurality of preset candidate feature operator sets based on a simulated data set, it is more suitable for screening training data sets than other candidate feature operator sets, thereby improving the balance of the final deep learning training data set, and thus improving the generalization and model performance of the model trained using the deep learning training data set.

[0075] See also Figure 2 , is a flowchart of an embodiment of step 102 provided by an exemplary embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0076] Step 201 : extracting features from a simulated data set based on a plurality of preset candidate feature operator sets to obtain a plurality of simulated data feature sets.

[0077] In this step 201, for each candidate feature operator set, feature extraction is performed on the simulated data set based on the candidate feature operator set, so that a plurality of simulated data feature sets can be obtained.

[0078] For example, assuming that the simulated data set includes 100 simulated data, and assuming that the candidate feature operator set includes 2 feature operators, then based on the candidate feature operator set, feature extraction is performed on the simulated data in the simulated data set to obtain 100 simulated data features, each of which contains 2 dimensions, and the 100 simulated data features form a simulated data feature set.

[0079] Step 202: Use a data balancing strategy to balance the multiple simulated data feature sets respectively, and use the simulated data corresponding to each simulated data feature in the simulated data feature set after the balanced processing as simulated training data to obtain multiple simulated training data sets.

[0080] Similar to the above-mentioned balancing process of the candidate data set, the simulated data features are abstract representations of the simulated data characteristics. Therefore, balancing the simulated data feature set is equivalent to balancing the simulated data set. Based on this, the simulated data corresponding to each simulated data feature in the simulated data feature set after balancing can be used as simulated training data to obtain a simulated training data set.

[0081] It is understandable that, since each simulated data feature set corresponds to a different set of candidate feature operators, the multiple simulated training data sets obtained by performing balancing processing on each simulated data feature set are different, and their balance is also different.

[0082] Step 203: Use multiple simulated training data sets to train the initial models respectively to obtain multiple image quality assessment models.

[0083] In this step 203, the same initial model is trained respectively using multiple simulated training data sets to obtain multiple image quality assessment models, which are used to evaluate image quality and take the quality index value of the input image (hereinafter referred to as the predicted image quality index value) as output. It can be understood that since the multiple model training data sets are different, the multiple image quality assessment models are also different and have different model performances.

[0084] In one example, the initial model is a CNN model, such as a VGG16 model, a ResNet50 model, and the like.

[0085] As an embodiment, when training the initial model, a supervised learning algorithm may be used, including but not limited to the KNN method, the SVM method, etc. At the same time, this also means that the above-mentioned simulated training data has a known label, specifically, the known label is the true quality indicator value of the simulated training data.

[0086] As an optional implementation method, known labels can be determined for the simulated training data through the following process: for each distorted simulated image described in the above step 101, the distortion parameters in the image distortion simulation function used when obtaining the distorted simulated image are used as keywords to find the correspondence between the preset distortion parameters and the distortion intensity values, and a target correspondence containing the keywords is obtained, and the distortion intensity value in the target correspondence is determined as the true image quality index value of the distorted simulated image.

[0087] For example, assuming that for a distorted simulated image, a Gaussian blur noise function is used to obtain the distorted simulated image, and the noise parameter is 8. According to the above description, the noise parameter 8 is used as a keyword to search for the correspondence between the distortion parameters and the distortion intensity values ​​shown in the following Table 1, and the corresponding distortion intensity value can be obtained as 3. Further, the distortion intensity value 3 is determined as the true image quality value of the distorted simulated image.

[0088] Table 1

[0089]

[0090]

[0091] It can be seen from Table 1 above that the larger the distortion parameter (the noise parameter in Table 1), the larger the corresponding distortion intensity value, which means that the larger the distortion intensity of the image, the worse the image quality.

[0092] In addition, in an example, if there are 10 original images, then executing the above step 101 based on the above Table 1 can obtain 200 (10*4*5) distorted simulated images.

[0093] Step 204: Determine performance indicator values ​​of multiple image quality assessment models to determine a target feature operator set from multiple candidate feature operator sets according to the multiple performance indicator values.

[0094] In practice, if the performance of the image quality assessment model is better, it means that the deep learning training set used to train the image quality assessment model is more balanced, which means that the feature operator used to construct the deep learning training set is more suitable. Based on this, in this step 105, as an embodiment, the candidate feature operator set corresponding to the image quality assessment model with the highest performance index value is determined as the target feature operator set. Optionally, if a performance index value of the image quality assessment model is determined in this step 204, the candidate feature operator set corresponding to the image quality assessment model with the highest performance index value can be directly determined as the target feature operator set; if multiple performance index values ​​of the image quality assessment model are determined in this step 204, the multiple performance index values ​​can be calculated by setting an operation, such as weighted summation, to obtain a total performance index value, and the candidate feature operator set corresponding to the image quality assessment model with the highest total performance index value is determined as the target feature operator set.

[0095] As an embodiment, the performance index values ​​of multiple image quality evaluation models can be determined in the following manner: preset test data are respectively input into multiple image quality evaluation models to obtain predicted quality index values ​​of the test data output by the multiple image quality evaluation models, and then the performance index values ​​of the multiple image quality evaluation models are determined based on the actual quality index values ​​and predicted quality index values ​​of the test data.

[0096] The above performance index values ​​include at least one of the following: Pearson linear correlation coefficient, Spearman rank correlation coefficient, Kendall rank correlation coefficient, root mean square error, etc. Among them, the root mean square error reflects the absolute error between the predicted value and the true value of the image quality index of the test image, which can be used to measure the accuracy of the prediction of the image quality evaluation model; the Pearson linear correlation coefficient reflects the correlation between the predicted value and the true value of the image quality index of the test image, which can also be used to measure the accuracy of the prediction of the image quality evaluation model; the Spearman rank correlation coefficient and the Kendall rank correlation coefficient can be used to measure the monotonicity of the prediction of the image quality evaluation model.

[0097] As an embodiment, among the multiple distorted simulated images simulated in step 101, other distorted simulated images except the simulated data are used as the above test data, and then the real quality index value of the test data can be obtained through the relevant description in the above step 203.

[0098] pass Figure 2 The process shown realizes the feedback of the suitability of the candidate feature operators by using the performance index values ​​of the image quality evaluation model constructed by the training data set screened by different candidate feature operator sets, thereby realizing the determination of the target feature operator set from multiple preset candidate feature operator sets based on the simulated data set, and then optimizing the construction of the data set.

[0099] It should be noted that the above Figure 2 The process shown is only an optional implementation method for determining a target feature operator set from a plurality of preset candidate feature operator sets based on a simulated data set. In practical applications, there may be other implementation methods. For example, based on a plurality of preset candidate feature operator sets, feature extraction may be performed on the simulated data set to obtain a plurality of simulated data feature sets, and the balance of the plurality of simulated data feature sets may be analyzed, and the candidate feature operator set corresponding to the simulated data feature set with the best balance may be selected as the target feature operator set. The present invention is not limited to this.

[0100] Corresponding to the above-mentioned embodiment of the method for constructing a data set, the present invention also provides an embodiment of an apparatus for constructing a data set.

[0101] See also Figure 3 , is a block diagram of an embodiment of a data set construction device provided by an exemplary embodiment of the present invention. Figure 3 As shown, the device includes: a simulation module 31, a determination module 32, an extraction module 33, and a balancing module 34.

[0102] The simulation module 31 is used to construct a simulation data set based on a plurality of preset original images;

[0103] A determination module 32, configured to determine a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set;

[0104] An extraction module 33, configured to extract features from the candidate data set based on the target feature operator set to obtain a candidate data feature set;

[0105] The balancing module 34 is used to balance the candidate data feature set using a preset data balancing strategy, and use the candidate data corresponding to each candidate data feature in the balanced candidate data feature set as deep learning training data to obtain a deep learning training data set.

[0106] In a possible implementation manner, the determining module is specifically configured to:

[0107] In a possible implementation manner, the determining module 33 is specifically configured to:

[0108] Based on a plurality of preset candidate feature operator sets, feature extraction is performed on the simulated data set to obtain a plurality of simulated data feature sets;

[0109] The plurality of simulated data feature sets are respectively balanced by using the data balancing strategy, and the simulated data corresponding to each simulated data feature in the simulated data feature set after the balanced processing is used as simulated training data to obtain a plurality of simulated training data sets;

[0110] Using the plurality of simulated training data sets to train the initial model respectively, to obtain a plurality of image quality evaluation models;

[0111] Performance indicator values ​​of the plurality of image quality assessment models are determined to determine a target feature operator set from the plurality of candidate feature operator sets according to the plurality of performance indicator values.

[0112] In a possible implementation manner, the determining module 33 is specifically configured to:

[0113] Inputting preset test data into the plurality of image quality assessment models respectively, and obtaining predicted quality index values ​​of the test data output by the plurality of image quality assessment models;

[0114] The performance index values ​​of the plurality of image quality assessment models are determined based on the true quality index value and the predicted quality index value of the test data.

[0115] In a possible implementation manner, the determining module 33 is specifically configured to:

[0116] The candidate feature operator set corresponding to the image quality evaluation model with the highest performance index value is determined as the target feature operator set.

[0117] In a possible implementation manner, the simulation module 31 is specifically used for:

[0118] Using a plurality of set image distortion simulation functions to respectively perform distortion simulation on a plurality of original images to obtain a plurality of distorted simulated images;

[0119] A set number of the distorted simulated images are selected as simulated data and included in a simulated data set.

[0120] In a possible implementation, the device further includes ( Figure 3 Not shown):

[0121] a preprocessing module, used for taking other distorted simulated images other than the simulated data among the plurality of distorted simulated images as the test data; and

[0122] A search module is used to search for a correspondence between preset distortion parameters and distortion intensity values ​​for each of the distorted simulated images, using the distortion parameters in the image distortion simulation function used when obtaining the distorted simulated image as keywords, to obtain a target correspondence containing the keywords; and determine the distortion intensity value in the target correspondence as a true quality index value of the distorted simulated image.

[0123] Figure 4 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention, Figure 4 The electronic device 400 shown includes: at least one processor 401, a memory 402, at least one network interface 404 and other user interfaces 403. The various components in the electronic device 400 are coupled together via a bus system 405. It is understood that the bus system 405 is used to achieve connection and communication between these components. In addition to the data bus, the bus system 405 also includes a power bus, a control bus and a status signal bus. However, for the sake of clarity, the bus system 405 is not shown in FIG. Figure 4 Various buses are labeled as bus system 405 .

[0124] The user interface 403 may include a display, a keyboard, or a pointing device (eg, a mouse, a trackball, a touch pad, or a touch screen).

[0125] It can be understood that the memory 402 in the embodiment of the present invention can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DRRAM). The memory 402 described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0126] In some implementations, the memory 402 stores the following elements, executable units or data structures, or a subset thereof, or an extended set thereof: an operating system 4021 and application programs 4022 .

[0127] The operating system 4021 includes various system programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 4022 includes various application programs, such as a media player (MediaPlayer), a browser (Browser), etc., which are used to implement various application services. The program for implementing the method of the embodiment of the present invention can be included in the application 4022.

[0128] In the embodiment of the present invention, by calling the program or instruction stored in the memory 402, specifically, the program or instruction stored in the application 4022, the processor 401 is used to execute the method steps provided by each method embodiment, for example, including:

[0129] Construct a simulated data set based on multiple preset original images;

[0130] Determining a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set;

[0131] Extracting features from the candidate data set based on the target feature operator set to obtain a candidate data feature set;

[0132] The candidate data feature set is balanced using a preset data balancing strategy, and the candidate data corresponding to each candidate data feature in the balanced candidate data feature set is used as deep learning training data to obtain a deep learning training data set.

[0133] The method disclosed in the above embodiment of the present invention can be applied to the processor 401, or implemented by the processor 401. The processor 401 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit in the processor 401 or the instruction in the form of software. The above processor 401 can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present invention can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the embodiment of the present invention can be directly embodied as a hardware decoding processor to execute, or the hardware and software units in the decoding processor can be executed. The software unit can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 402, and the processor 401 reads the information in the memory 402 and completes the steps of the above method in combination with its hardware.

[0134] It is understood that the embodiments described herein can be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPDevice, DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described in the present application or a combination thereof.

[0135] For software implementation, the technology described herein can be implemented by a unit that performs the functions described herein. The software code can be stored in a memory and executed by a processor. The memory can be implemented in the processor or outside the processor.

[0136] The electronic device provided in this embodiment may be Figure 4 The electronic device shown in FIG. 1 may perform the following steps: Figure 1-2 All the steps of the dataset construction method in Figure 1-2 The technical effect of the method for constructing the dataset shown is shown in Figure 1-2 For the sake of brevity, the relevant description is not repeated here.

[0137] The embodiment of the present invention also provides a storage medium (computer-readable storage medium). The storage medium here stores one or more programs. The storage medium may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above-mentioned types of memory.

[0138] When one or more programs in the storage medium can be executed by one or more processors, the method for constructing a data set executed on the electronic device side can be implemented.

[0139] The processor is used to execute a data set construction program stored in the memory to implement the following steps of a data set construction method executed on the electronic device side:

[0140] Construct a simulated data set based on multiple preset original images;

[0141] Determining a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set;

[0142] Extracting features from the candidate data set based on the target feature operator set to obtain a candidate data feature set;

[0143] The candidate data feature set is balanced using a preset data balancing strategy, and the candidate data corresponding to each candidate data feature in the balanced candidate data feature set is used as deep learning training data to obtain a deep learning training data set.

[0144] The professionals should further realize that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0145] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0146] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for constructing a data set, characterized in that: The method comprises: Construct a simulated data set based on multiple preset original images; Determining a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set; Extracting features from the candidate data set based on the target feature operator set to obtain a candidate data feature set; The candidate data feature set is balanced by using a preset data balancing strategy, and the candidate data corresponding to each candidate data feature in the balanced candidate data feature set is used as deep learning training data to obtain a deep learning training data set; The method of determining a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set comprises: extracting features from the simulated data set based on the plurality of preset candidate feature operator sets to obtain a plurality of simulated data feature sets; performing equalization processing on the plurality of simulated data feature sets using the data equalization strategy, and using the simulated data corresponding to each simulated data feature in the simulated data feature set after equalization as simulated training data to obtain a plurality of simulated training data sets; training initial models using the plurality of simulated training data sets to obtain a plurality of image quality evaluation models; and determining performance index values ​​of the plurality of image quality evaluation models to determine a target feature operator set from the plurality of candidate feature operator sets according to the plurality of performance index values.

2. The method according to claim 1, characterized in that The determining of the performance indicator values ​​of the plurality of image quality assessment models comprises: Inputting preset test data into the plurality of image quality assessment models respectively, and obtaining predicted quality index values ​​of the test data output by the plurality of image quality assessment models; The performance index values ​​of the plurality of image quality assessment models are determined based on the true quality index value and the predicted quality index value of the test data.

3. The method according to claim 1, characterized in that Determining a target feature operator set from a plurality of candidate feature operator sets according to the plurality of performance indicator values ​​comprises: The candidate feature operator set corresponding to the image quality evaluation model with the highest performance index value is determined as the target feature operator set.

4. The method according to claim 1, characterized in that The method of constructing a simulated data set based on a plurality of preset original images includes: Using a plurality of set image distortion simulation functions to perform distortion simulation on a plurality of original images respectively, to obtain a plurality of distorted simulated images; A set number of the distorted simulated images are selected as simulated data and included in a simulated data set.

5. The method according to claim 4, characterized in that The method further comprises: Using other distorted simulated images other than the simulated data among the plurality of distorted simulated images as test data; and, For each of the distorted simulated images, using the distortion parameter in the image distortion simulation function used when obtaining the distorted simulated image as a keyword, searching for a correspondence between the preset distortion parameter and the distortion intensity value, and obtaining a target correspondence containing the keyword; The distortion intensity value in the target corresponding relationship is determined as the true quality index value of the distorted simulated image.

6. A device for constructing a data set, characterized in that: The device comprises: A simulation module, used to construct a simulation data set based on multiple preset original images; A determination module, configured to determine a target feature operator set from a plurality of preset candidate feature operator sets based on the simulated data set; An extraction module, used to extract features from the candidate data set based on the target feature operator set to obtain a candidate data feature set; A balancing module is used to balance the candidate data feature set using a preset data balancing strategy, and use the candidate data corresponding to each candidate data feature in the candidate data feature set after the balancing process as deep learning training data to obtain a deep learning training data set; The determination module is specifically used for: Based on a plurality of preset candidate feature operator sets, feature extraction is performed on the simulated data set to obtain a plurality of simulated data feature sets; The plurality of simulated data feature sets are respectively balanced by using the data balancing strategy, and the simulated data corresponding to each simulated data feature in the simulated data feature set after the balanced processing is used as simulated training data to obtain a plurality of simulated training data sets; Using the plurality of simulated training data sets to train the initial model respectively, to obtain a plurality of image quality evaluation models; Performance indicator values ​​of the plurality of image quality assessment models are determined to determine a target feature operator set from the plurality of candidate feature operator sets according to the plurality of performance indicator values.

7. The device according to claim 6, characterized in that The determination module is specifically used for: Inputting preset test data into the plurality of image quality assessment models respectively, and obtaining predicted quality index values ​​of the test data output by the plurality of image quality assessment models; The performance index values ​​of the plurality of image quality assessment models are determined based on the true quality index value and the predicted quality index value of the test data.

8. The device according to claim 6, characterized in that The determination module is specifically used for: The candidate feature operator set corresponding to the image quality evaluation model with the highest performance index value is determined as the target feature operator set.

9. The device according to claim 6, characterized in that The simulation module is specifically used for: Using a plurality of set image distortion simulation functions to perform distortion simulation on a plurality of original images respectively, to obtain a plurality of distorted simulated images; A set number of the distorted simulated images are selected as simulated data and included in a simulated data set.

10. The device according to claim 9, characterized in that The device also includes: a preprocessing module, used for taking other distorted simulated images other than the simulated data among the plurality of distorted simulated images as test data; and A search module is used to search for a correspondence between preset distortion parameters and distortion intensity values ​​for each of the distorted simulated images, using the distortion parameters in the image distortion simulation function used when obtaining the distorted simulated image as keywords, to obtain a target correspondence containing the keywords; and determine the distortion intensity value in the target correspondence as a true quality index value of the distorted simulated image.

11. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is used to execute a data set construction program stored in the memory to implement the data set construction method according to any one of claims 1 to 5.

12. A storage medium, characterized in that: The storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement the method for constructing a data set according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Monocular light field image unsupervised depth estimation method based on convolutional neural network

    CN110163246A

  • Multi-modal image target detection method based on image fusion

    CN110322423A

  • Adas target detection method and system based on deep learning

    CN111160481A

  • Machine learning algorithm selection method and device

    CN111783867A

  • Learning to simulate

    US20200094824A1