WO2021114633A1 - Image confidence determination method, apparatus, electronic device, and storage medium - Google Patents

Image confidence determination method, apparatus, electronic device, and storage medium Download PDF

Info

Publication number
WO2021114633A1
WO2021114633A1 PCT/CN2020/099490 CN2020099490W WO2021114633A1 WO 2021114633 A1 WO2021114633 A1 WO 2021114633A1 CN 2020099490 W CN2020099490 W CN 2020099490W WO 2021114633 A1 WO2021114633 A1 WO 2021114633A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
credibility
sample
sample image
characteristic
Prior art date
Application number
PCT/CN2020/099490
Other languages
French (fr)
Chinese (zh)
Inventor
李风仪
南洋
王佳平
谢春梅
侯晓帅
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021114633A1 publication Critical patent/WO2021114633A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/213Feature extraction, e.g. by transforming the feature space; Summarisation; Mappings, e.g. subspace methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods

Definitions

  • This application relates to the field of smart medical care, and in particular to a method, device, electronic equipment, and storage medium for determining image credibility.
  • the inventor realizes that in the image classification problem, the focus is mostly on the prediction accuracy of the image classification model.
  • a large number of sample images are usually used to train the image classification model.
  • the training of the image classification model is for the purpose of fitting the target, and the prediction result is infinitely close to the training target.
  • the prerequisite of this learning and training is that the sample image is true. If you ignore the credibility of the sample image and blindly chase the infinite closeness of the result, and use this to evaluate the prediction accuracy of the image classification model, it will seriously affect the actual output of the image classification model.
  • the accuracy and credibility of the image classification results Therefore, in the process of training the image classification model through the sample image, how to determine the credibility of the sample image has become an urgent problem to be solved.
  • the embodiments of the present application provide a method, a device, an electronic device, and a storage medium for determining the credibility of an image, which are conducive to efficiently determining the credibility of a sample image.
  • an embodiment of the present application provides a method for determining the credibility of an image, and the method includes:
  • Image classification processing is performed on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
  • the similarity between the predicted probability and the calculated probability under the respective image categories is determined respectively, and the credibility of the sample image is determined based on the similarity under the respective image categories.
  • an embodiment of the present application provides a device for determining image credibility, including:
  • the processing module is used to perform image classification processing on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
  • the processing module is further configured to determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
  • An acquisition module configured to acquire a feature image corresponding to the sample image output by the over-fitting prevention layer
  • the processing module is further configured to identify the characteristic image, and determine the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
  • the processing module is further configured to determine the calculated probability that the sample image belongs to each image category based on the first characteristic parameter and the second characteristic parameter;
  • the processing module is further configured to determine the similarity between the predicted probability and the calculated probability under each image category, and determine the sample image based on the similarity under each image category Credibility.
  • an embodiment of the present application provides an electronic device, including a processor, a storage device, and a communication interface.
  • the processor, the storage device, and the communication interface are connected to each other, wherein the storage device is used for storing and supporting terminal execution.
  • the computer program of the above method the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps: perform image classification processing on the sample image through each network layer in the image classification model, so The various network layers include a classification calculation layer and an anti-overfitting layer; the predicted probability of the sample image belonging to each image category is determined based on the output result of the classification calculation layer; the sample output by the anti-overfitting layer is obtained
  • the characteristic image corresponding to the image the characteristic image is identified, and the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image are determined based on the recognition result; the first characteristic parameter and the second characteristic parameter are determined based on the first characteristic parameter and the second characteristic parameter
  • the sample image belongs to the calculated probability of each image category; respectively determine the similarity
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause all The processor executes the method for determining the credibility of the image.
  • the calculated probability of a sample image belonging to each image category can be determined through the image classification model, and the similarity between the predicted probability and the calculated probability under each image category can be determined respectively, and then the sample can be determined based on the similarity under each image category
  • the credibility of the image helps to efficiently determine the credibility of the sample image.
  • FIG. 1 is a schematic flowchart of a method for determining image credibility according to an embodiment of the present application
  • Fig. 2 is a schematic structural diagram of an image classification model according to an embodiment of the present application.
  • FIG. 3 is a schematic flowchart of another method for determining image credibility according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of an image credibility determination apparatus according to an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
  • S101 Perform image classification processing on a sample image through each network layer in the image classification model, where each network layer includes a classification calculation layer and an anti-overfitting layer.
  • the electronic devices involved in this application may be terminal devices such as smart phones, tablet computers, notebook computers, desktop computers, in-vehicle smart terminals, etc., and may also be servers or server groups, which are not limited in the embodiments of this application.
  • the above-mentioned image classification model may be, for example, an Inception model.
  • the image classification model may be as shown in FIG. 2, including an input layer (for input images), a preprocessing layer, a hidden layer, a dimensionality reduction layer, and an average. Pooling layer, anti-overfitting layer, and classification calculation layer.
  • the model has three hidden layers, namely: Inception-A first hidden layer, Inception-B second hidden layer, and Inception-C third hidden layer Containing layer, two dimensionality reduction layers, namely: Reduction-A first dimensionality reduction layer and Reduction-B second dimensionality reduction layer; the preprocessing layer, which can be used to preprocess the input data of Inception-A.
  • Processing can include multiple convolution and pooling of the data; the anti-overfitting layer can be used to prevent overfitting of the image classification model, effectively avoiding the image classification model from being able to classify the training images well, but in After deployment, for the actual images that need to be classified, the classification effect is poor; the classification calculation layer, its output result can be the probability that the image input through the input layer belongs to each category.
  • each sample image can be input to an image classification model, and each network layer in the image classification model can perform image classification processing on the sample image, and output an image classification result for each sample image.
  • a design goal may be determined, and the design goal may be a classification model for distinguishing multiple target categories.
  • the target category may refer to different categories.
  • the target category may be a dog or cat, or it may be a specific cat and/or More detailed categories such as dog breeds, for example, can be subdivided categories such as shepherd dog and Shiba Inu.
  • the target category can be coarse-grained categories such as normal glomeruli and sclerotic glomeruli, or segmental sclerosis, crescent glomeruli, and sclerotic kidneys. More fine-grained categories such as small balls.
  • M is a positive integer, such as 10000
  • P is a positive integer, such as 10000
  • the image classification model can extract the image feature data of the dog training image, and classify the dog training image according to the image feature data.
  • the output classification result indicates that the category of the dog training image is also a dog, it indicates that the classification network model is successful in classifying the dog training image. Further, after classifying the M training images that have been marked as dog categories, if the success rate is greater than the preset success rate threshold (such as 90%), it is determined that the image classification model can perform well on the images of the dog category. Classification recognition, otherwise, the parameters corresponding to each node in the image classification model can be adjusted, and the M dog training images can be classified again through the adjusted classification model. In the same way, the image classification model can be trained and optimized using P cat training images in the same way.
  • the preset success rate threshold such as 90%
  • the training of the image classification model is completed, and the trained image classification model is used as the classification model in the embodiment of the present application.
  • more different categories can be set, and the image classification model can be trained and optimized by obtaining a large number of training images of different categories, so that the finally obtained classification model can successfully classify various types of images.
  • the rates are all higher than a certain success rate threshold.
  • S102 Determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer.
  • the output result of the classification calculation layer may be the probability that the image input through the Input layer belongs to each category.
  • the electronic device can obtain the output of the classification calculation layer
  • the output result of the classification calculation layer is analyzed to determine the predicted probability that the sample image belongs to each image category.
  • each image category to which the sample image belongs is predetermined. Assuming that each image category to which the sample image belongs is normal glomerulus and sclerotic glomerulus, then the sample image determined based on the output result of the classification calculation layer belongs to each
  • the predicted probability of the image category may be, for example, 95% of normal glomeruli and 5% of sclerotic glomeruli.
  • S103 Obtain a feature image corresponding to the sample image output by the over-fitting layer, identify the feature image, and determine the first feature parameter and the second feature parameter corresponding to the feature image based on the recognition result.
  • the above recognition result includes the size of the characteristic image and the value of each characteristic point in the characteristic image
  • the specific implementation of the electronic device to determine the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result may be : Perform a summation calculation on the value of each feature point in the feature image, and determine the first feature parameter corresponding to the feature image based on the summation calculation result and the size of the feature image. Further, the difference between the value of each feature point and the first feature parameter can be determined, and the sum calculation of each difference can be performed, and then the determination is made based on the sum calculation result of the difference and the size of the feature image The second feature parameter corresponding to the feature image.
  • the size of the aforementioned feature image may refer to the size of the feature image, for example, 1*448.
  • the first feature parameter is represented by ⁇
  • the second feature parameter is represented by ⁇
  • the size of the feature image is 1*448
  • the value of each feature point in the feature image is represented by p i
  • the formula 1- 1 and Equations 1-2 respectively calculate the first characteristic parameter ⁇ and the second characteristic parameter ⁇ .
  • S104 Determine the calculated probability that the sample image belongs to each image category based on the first feature parameter and the second feature parameter.
  • the electronic device determines the calculated probability of the sample image belonging to each image category based on the first feature parameter and the second feature parameter may be: based on a preset probability algorithm to compare the first feature parameter and the second feature parameter Perform calculations to determine the initial probability of the sample image belonging to each image category, and further, normalize each initial probability to obtain the calculated probability of the sample image belonging to each image category.
  • each image category to which the sample image belongs may be pre-configured, and may include the first category, the second category, and the J-th category.
  • the initial probability of the sample image belonging to each image category is expressed as p k (k represents the image category , K ⁇ 0,1,...J ⁇ ), the above-mentioned preset probability algorithm can be Formula 1-3.
  • the electronic device can calculate the first feature parameter ⁇ and the second feature parameter ⁇ based on Equations 1-3 to determine the initial probability of the sample image belonging to each image category.
  • each initial probability p k can be normalized based on equations 1-4 to obtain the calculated probability that the sample image belongs to each image category
  • S105 Determine the similarity between the predicted probability and the calculated probability under each image category respectively, and determine the credibility of the sample image based on the similarity under each image category.
  • the electronic device can compare the calculated probability of each image category And the predicted probability, and based on the comparison result to determine the calculated probability under each image category Based on the similarity between the predicted probability and the similarity, the credibility of the sample image is determined. Among them, the calculated probability under each image category The higher the similarity with the predicted probability, the higher the credibility of the sample image.
  • the probability of each image category can be calculated Calculate the average value of the similarity with the predicted probability, and determine the obtained average value as the reliability of the sample image.
  • the electronic device after the electronic device determines the credibility of the sample image, it can obtain the credibility of the multiple sample images used to train the image classification model, and determine the credibility of the multiple sample images based on the credibility of the multiple sample images.
  • the credibility of the image classification model obtained after training with multiple sample images.
  • the image classification model can be trained through M sample images.
  • the above steps S101 to S105 can be performed to determine the value of each sample image. Reliability, and store the credibility of each sample image and each sample image in a designated storage area.
  • the electronic device can obtain the credibility of each sample image used for training the image classification model from the designated storage area, and based on the credibility of each sample image , To determine the credibility of the image classification model obtained after training through each of the above-mentioned sample images.
  • the average value of the credibility of the foregoing M sample images may be determined as the credibility of the image classification model.
  • the credibility of the image classification model may also be stored in the aforementioned designated storage area. Later, the user can obtain and view the credibility of each sample image and image classification model from the designated storage area. In this way, the interpretability of the prediction results of the image classification model can be increased, and the subsequent use of the image classification model Productization provides a strong basis, not a black box network.
  • the sample image can be classified by each network layer in the image classification model, and the predicted probability of the sample image belonging to each image category can be determined based on the output result of the classification calculation layer, and the output of the anti-overfitting layer can be obtained.
  • the feature image corresponding to the sample image can be obtained.
  • the feature image can be identified, the first feature parameter and the second feature parameter corresponding to the feature image can be determined based on the recognition result, and the calculated probability of the sample image belonging to each image category can be determined based on the first feature parameter and the second feature parameter, and respectively determine The similarity between the predicted probability and the calculated probability under each image category, and then determine the credibility of the sample image based on the similarity under each image category, which is conducive to efficiently determine the credibility of the sample image and prevent the sample image itself
  • the problem leads to the problem of unreliable or inaccurate image classification results output by image classification models.
  • the predicted probability and calculated probability may also be stored in a node of a blockchain.
  • FIG. 3 is a schematic flowchart of another method for determining image credibility according to an embodiment of the present application.
  • the method of the embodiment of the present application includes the following steps.
  • S301 Perform image classification processing on the sample image through each network layer in the image classification model, where each network layer includes a classification calculation layer and an overfitting prevention layer.
  • S302 Determine the predicted probability of the sample image belonging to each image category based on the output result of the classification calculation layer.
  • S303 Obtain a feature image corresponding to the sample image output by the over-fitting layer, identify the feature image, and determine the first feature parameter and the second feature parameter corresponding to the feature image based on the recognition result
  • S304 Determine the calculated probability that the sample image belongs to each image category based on the first feature parameter and the second feature parameter.
  • step S305 Determine the similarity between the predicted probability and the calculated probability under each image category respectively, and determine the credibility of the sample image based on the similarity under each image category.
  • step S301 to step S305 please refer to the related description of step S101 to step S105 in the foregoing embodiment, which will not be repeated here.
  • S306 Compare the credibility of the sample image with the first credibility threshold, and if the credibility of the sample image is greater than the first credibility threshold, add a credible sample label to the sample image.
  • sample images carrying credible sample labels can be obtained from the sample image set, and based on the pair of sample images carrying credible sample labels Training and optimization of other image classification models is beneficial to improve the credibility and accuracy of the output results of the other image classification models.
  • the electronic device compares the credibility of the sample image with the first credibility threshold, if the credibility of the sample image obtained by the comparison is less than or equal to the first credibility threshold (for example, 0.5), Then the credibility of the sample image can be compared with the second credibility threshold. If the credibility of the sample image is greater than the second credibility threshold (for example, 0.3), the sample image to be reviewed is added to the sample image. , And output a review prompt message, which is used to prompt the user to review the sample image. Further, after viewing the review prompt information, the user can correct the image classification mark of the sample image, for example, correct the image classification mark from crescent glomeruli to sclerotic glomeruli.
  • the first credibility threshold for example, 0.5
  • the sample image may be deleted from the sample image set. Later, the sample image will not be used to train any image classification model.
  • each of the above-mentioned network layers further includes a first classification layer and a second classification layer.
  • the first classification layer is used to determine the image category of the first granularity to which the sample image belongs
  • the second classification layer is used to determine the sample The image category of the second granularity to which the image belongs.
  • the first granularity is coarser than the second granularity.
  • Inception can be improved by adding two network layers, namely Gather1 (i.e., the first classification layer) and Gather2 (i.e., the second classification layer). Gather1 is added after stem in Figure 2, and Gather2 is added after Inception-C in Figure 2. Among them, Gather1 is used to classify the more easily distinguishable categories, and Gather2 is used to classify the more difficult categories. Taking the identification of glomerular types as an example, Gather1 can be used to distinguish between normal glomeruli and sclerotic glomeruli and other easily distinguishable categories, and Gather2 can be used to distinguish segmental sclerosis, crescent glomeruli and sclerotic glomeruli. Etc. which are more difficult to distinguish. Further, the electronic device can merge the classification result of the sample image by Gather1 and the classification result of the sample image by Gather2, and output the final image classification and recognition result, thereby improving the recognition accuracy of the image classification model.
  • Gather1 i.e., the first classification layer
  • Gather2 i.e., the second classification
  • the output data of Gather1 can be extracted. If the classification result of Gather1 is judged to be more accurate based on the output data, there is no need to call Gather2 for image recognition. More granular analysis. In this way, the computational overhead of the image classification model can be reduced, and the recognition efficiency of the image classification model can be improved.
  • the sample image can be classified by each network layer in the image classification model, and the predicted probability of the sample image belonging to each image category is determined based on the output result of the classification calculation layer, and the output of the anti-overfitting layer is obtained.
  • the feature image corresponding to the sample image is obtained.
  • the feature image can be identified, the first feature parameter and the second feature parameter corresponding to the feature image can be determined based on the recognition result, and the calculated probability of the sample image belonging to each image category can be determined based on the first feature parameter and the second feature parameter, and respectively determine The similarity between the predicted probability and the calculated probability under each image category, and then determine the credibility of the sample image based on the similarity under each image category, and compare the credibility of the sample image with the first credibility threshold, If the credibility of the sample image obtained by comparison is greater than the first credibility threshold, add credible sample labels to the sample image so that other image classification models can be trained and optimized directly based on the sample image with the credible sample label. .
  • the embodiment of the present application also provides a computer storage medium, the computer storage medium stores program instructions, and when the program instructions are executed, they are used to implement the corresponding methods described in the foregoing embodiments.
  • the computer-readable storage medium may be non-volatile or volatile.
  • FIG. 4 is a schematic structural diagram of an image credibility determination apparatus according to an embodiment of the present application.
  • the device includes the following structure.
  • the processing module 40 is configured to perform image classification processing on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
  • the processing module 40 is further configured to determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
  • the obtaining module 41 is configured to obtain a feature image corresponding to the sample image output by the over-fitting prevention layer;
  • the processing module 40 is further configured to identify the characteristic image, and determine the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
  • the processing module 40 is further configured to determine the calculated probability that the sample image belongs to each image category based on the first characteristic parameter and the second characteristic parameter;
  • the processing module 40 is further configured to determine the similarity between the predicted probability and the calculated probability under each image category, and determine the sample based on the similarity under each image category The credibility of the image.
  • the recognition result includes the size of the feature image and the value of each feature point in the feature image
  • the processing module 40 is specifically configured to perform a calculation of each feature point in the feature image.
  • the value is summed and calculated, and the first characteristic parameter corresponding to the characteristic image is determined based on the result of the summation calculation and the size of the characteristic image; the difference between the value of each characteristic point and the first characteristic parameter is determined , Performing a summation calculation for each of the difference values, and determining a second characteristic parameter corresponding to the characteristic image based on the summation calculation result for the difference values and the size of the characteristic image.
  • the processing module 40 is further specifically configured to calculate the first characteristic parameter and the second characteristic parameter based on a preset probability algorithm, and determine that the sample image belongs to each image category. Initial probability; normalizing each of the initial probabilities to obtain the calculated probability that the sample image belongs to each image category.
  • the acquiring module 41 is further configured to acquire the credibility of a plurality of sample images used for training the image classification model; the processing module 40 is also configured to acquire credibility based on the plurality of The credibility of the sample image determines the credibility of the image classification model obtained after training on the multiple sample images.
  • the processing module 40 is further configured to compare the credibility of the sample image with a first credibility threshold; if the comparison shows that the credibility of the sample image is greater than the first credibility For the credibility threshold, a credible sample label is added to the sample image.
  • the processing module 40 is further configured to compare the credibility of the sample image with the first credibility threshold if the credibility of the sample image is less than or equal to the first credibility threshold.
  • the two credibility thresholds are compared; if the credibility of the sample image is greater than the second credibility threshold, the sample image to be reviewed is added to the sample image, and the review prompt information is output, and the review The prompt information is used to prompt the user to review the sample image; if the credibility of the sample image obtained by comparison is less than or equal to the second credibility threshold, the sample image is deleted from the sample image set.
  • each of the network layers further includes a first classification layer and a second classification layer
  • the first classification layer is used to determine the image category of the first granularity to which the sample image belongs
  • the second classification The layer is used to determine the image category of the second granularity to which the sample image belongs, and the first granularity is coarser than the second granularity.
  • the processing module 40 is also used to determine the image category based on the output of the first classification layer. The classification result of the sample image and the classification result of the sample image output by the second classification layer determine the target image category to which the sample image belongs.
  • the predicted probability and calculated probability may also be stored in a node of a blockchain.
  • FIG. 5 is a schematic structural diagram of an electronic device in an embodiment of the present application.
  • the electronic device in an embodiment of the present application includes a power supply module and other structures, and includes a processor 501, a storage device 502, and a communication interface 503.
  • the processor 501, the storage device 502, and the communication interface 503 can exchange data, and the processor 501 implements the corresponding image credibility determination function.
  • the storage device 502 may include a volatile memory (volatile memory), such as random-access memory (RAM); the storage device 502 may also include a non-volatile memory (non-volatile memory), such as fast Flash memory (flash memory), solid-state drive (SSD), etc.; the storage device 502 may also include a combination of the foregoing types of memories.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • flash memory flash memory
  • SSD solid-state drive
  • the processor 501 may be a central processing unit (CPU) 501.
  • the processor 501 may also be a graphics processor 501 (Graphics Processing Unit, GPU).
  • the processor 501 may also be a combination of a CPU and a GPU.
  • the electronic device may include multiple CPUs and GPUs as needed to determine the credibility of the corresponding image.
  • the storage device 502 is used to store program instructions.
  • the processor 501 can call the program instructions to implement various methods mentioned above in the embodiments of the present application.
  • the processor 501 of the electronic device calls the program instructions stored in the storage device 502 for image classification of the sample image through each network layer in the image classification model Processing, the various network layers include a classification calculation layer and an anti-overfitting layer; determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer; obtain the output of the anti-overfitting layer
  • the characteristic image corresponding to the sample image identifying the characteristic image, and determining the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result; based on the first characteristic parameter and the second characteristic parameter Determine the calculated probability that the sample image belongs to each image category; determine the similarity between the predicted probability and the calculated probability under each image category, and determine the similarity based on the calculated probability under each image category
  • the similarity determines the credibility of the sample image.
  • the recognition result includes the size of the feature image and the value of each feature point in the feature image
  • the processor 501 is specifically configured to perform a calculation of each feature point in the feature image.
  • the value is summed and calculated, and the first characteristic parameter corresponding to the characteristic image is determined based on the result of the summation calculation and the size of the characteristic image; the difference between the value of each characteristic point and the first characteristic parameter is determined , Performing a summation calculation for each of the difference values, and determining a second characteristic parameter corresponding to the characteristic image based on the summation calculation result for the difference values and the size of the characteristic image.
  • the processor 501 is further specifically configured to calculate the first characteristic parameter and the second characteristic parameter based on a preset probability algorithm, and determine that the sample image belongs to the image category. Initial probability; normalizing each of the initial probabilities to obtain the calculated probability that the sample image belongs to each image category.
  • the processor 501 is further configured to obtain the credibility of a plurality of sample images used for training the image classification model, and based on the credibility of the plurality of sample images, determine the pass The credibility of the image classification model obtained after the multiple sample images are trained.
  • the processor 501 is further configured to compare the credibility of the sample image with a first credibility threshold; if the comparison shows that the credibility of the sample image is greater than the first credibility A degree threshold, a credible sample label is added to the sample image.
  • the processor 501 is further configured to compare the credibility of the sample image with the second credibility if the credibility of the sample image is less than or equal to the first credibility threshold.
  • the reliability threshold is compared; if the credibility of the sample image is greater than the second credibility threshold, the sample image to be reviewed is tagged with the sample image, and the review prompt information is output, the review prompt information It is used to prompt the user to review the sample image; if the credibility of the sample image obtained by comparison is less than or equal to the second credibility threshold, the sample image is deleted from the sample image set.
  • each of the network layers further includes a first classification layer and a second classification layer
  • the first classification layer is used to determine the image category of the first granularity to which the sample image belongs
  • the second classification The layer is used to determine the image category of the second granularity to which the sample image belongs, and the first granularity is coarser than the second granularity.
  • the classification result of the sample image and the classification result of the sample image output by the second classification layer determine the target image category to which the sample image belongs.
  • the program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
  • the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function, etc.; the storage data area may store a block chain node Use the created data, etc.
  • the blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm.
  • Blockchain essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block.
  • the blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

Abstract

Provided is an image confidence determination method, relating to image processing, and used in the field of smart medical care, said method comprising: performing image classification processing on a sample image by means of network layers in an image classification model, each network layer comprising a classification calculation layer and an overfitting prevention layer (S101); on the basis of the output result of the classification calculation layer, determining a predicted probability that the sample image belongs to each image category (S102); obtaining a feature image corresponding to the sample image outputted by the overfitting prevention layer, identifying the feature image, and, on the basis of the identification result, determining a first feature parameter and a second feature parameter corresponding to the feature image (S103); on the basis of the first feature parameter and the second feature parameter, determining a calculated probability that the sample image belongs to each image category (S104); determining the degree of similarity between the predicted probability and the calculated probability under each image category, and on the basis of the degree of similarity under each image category, determining the credibility of the sample image (S105); thus is facilitated the efficient determination of the credibility of a sample image. In addition, the method also relates to blockchain technology, and the predicted probability and calculated probability can be stored in the blockchain.

Description

一种图像可信度的确定方法、装置及电子设备、存储介质Method and device for determining image credibility, electronic equipment and storage medium
本申请要求于2020年5月20日提交中国专利局、申请号为202010431166.4、申请名称为“一种图像可信度的确定方法、装置及电子设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application requires the priority of a Chinese patent application filed with the Chinese Patent Office on May 20, 2020, the application number is 202010431166.4, and the application title is "a method, device, electronic equipment, and storage medium for determining image credibility". The entire content is incorporated into this application by reference.
技术领域Technical field
本申请涉及智慧医疗领域,尤其涉及一种图像可信度的确定方法、装置及电子设备、存储介质。This application relates to the field of smart medical care, and in particular to a method, device, electronic equipment, and storage medium for determining image credibility.
背景技术Background technique
目前,发明人意识到,在图像分类问题中,关注点大多聚焦于图像分类模型的预测精度。为了提高图像分类模型的预测精度,通常采用大量的样本图像对图像分类模型进行训练,针对图像分类模型的训练以拟合目标为目的,力求预测结果无限接近训练目标。而这一学习训练的前提是样本图像真实无疑,若忽略样本图像的可信度而一味追逐结果的无限接近,并以此评估图像分类模型的预测精度,将会严重影响图像分类模型实际输出的图像分类结果的精度和可信度。因此,在通过样本图像对图像分类模型进行训练的过程中,如何确定样本图像的可信度,成为一个亟待解决的问题。At present, the inventor realizes that in the image classification problem, the focus is mostly on the prediction accuracy of the image classification model. In order to improve the prediction accuracy of the image classification model, a large number of sample images are usually used to train the image classification model. The training of the image classification model is for the purpose of fitting the target, and the prediction result is infinitely close to the training target. The prerequisite of this learning and training is that the sample image is true. If you ignore the credibility of the sample image and blindly chase the infinite closeness of the result, and use this to evaluate the prediction accuracy of the image classification model, it will seriously affect the actual output of the image classification model. The accuracy and credibility of the image classification results. Therefore, in the process of training the image classification model through the sample image, how to determine the credibility of the sample image has become an urgent problem to be solved.
发明内容Summary of the invention
本申请实施例提供了一种图像可信度的确定方法、装置及电子设备、存储介质,有利于高效地确定样本图像的可信度。The embodiments of the present application provide a method, a device, an electronic device, and a storage medium for determining the credibility of an image, which are conducive to efficiently determining the credibility of a sample image.
一方面,本申请实施例提供了一种图像可信度的确定方法,所述方法包括:On the one hand, an embodiment of the present application provides a method for determining the credibility of an image, and the method includes:
通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;Image classification processing is performed on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率;Determining the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
获取所述防过拟合层输出的所述样本图像对应的特征图像;Acquiring a feature image corresponding to the sample image output by the over-fitting prevention layer;
识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;Identifying the characteristic image, and determining the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;Determining, based on the first feature parameter and the second feature parameter, the calculated probability that the sample image belongs to each image category;
分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。The similarity between the predicted probability and the calculated probability under the respective image categories is determined respectively, and the credibility of the sample image is determined based on the similarity under the respective image categories.
另一方面,本申请实施例提供了一种图像可信度的确定装置,包括:On the other hand, an embodiment of the present application provides a device for determining image credibility, including:
处理模块,用于通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所 述各个网络层包括分类计算层和防过拟合层;The processing module is used to perform image classification processing on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
所述处理模块,还用于基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率;The processing module is further configured to determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
获取模块,用于获取所述防过拟合层输出的所述样本图像对应的特征图像;An acquisition module, configured to acquire a feature image corresponding to the sample image output by the over-fitting prevention layer;
所述处理模块,还用于识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;The processing module is further configured to identify the characteristic image, and determine the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
所述处理模块,还用于基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;The processing module is further configured to determine the calculated probability that the sample image belongs to each image category based on the first characteristic parameter and the second characteristic parameter;
所述处理模块,还用于分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。The processing module is further configured to determine the similarity between the predicted probability and the calculated probability under each image category, and determine the sample image based on the similarity under each image category Credibility.
再一方面,本申请实施例提供了一种电子设备,包括处理器、存储装置和通信接口,所述处理器、存储装置和通信接口相互连接,其中,所述存储装置用于存储支持终端执行上述方法的计算机程序,所述计算机程序包括程序指令,所述处理器被配置用于调用所述程序指令,执行如下步骤:通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率;获取所述防过拟合层输出的所述样本图像对应的特征图像;识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。In another aspect, an embodiment of the present application provides an electronic device, including a processor, a storage device, and a communication interface. The processor, the storage device, and the communication interface are connected to each other, wherein the storage device is used for storing and supporting terminal execution. The computer program of the above method, the computer program includes program instructions, and the processor is configured to call the program instructions to perform the following steps: perform image classification processing on the sample image through each network layer in the image classification model, so The various network layers include a classification calculation layer and an anti-overfitting layer; the predicted probability of the sample image belonging to each image category is determined based on the output result of the classification calculation layer; the sample output by the anti-overfitting layer is obtained The characteristic image corresponding to the image; the characteristic image is identified, and the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image are determined based on the recognition result; the first characteristic parameter and the second characteristic parameter are determined based on the first characteristic parameter and the second characteristic parameter The sample image belongs to the calculated probability of each image category; respectively determine the similarity between the predicted probability and the calculated probability under each image category, and determine based on the similarity under each image category The credibility of the sample image.
又一方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序包括程序指令,所述程序指令当被处理器执行时使所述处理器执行上述图像可信度的确定方法。In another aspect, an embodiment of the present application provides a computer-readable storage medium that stores a computer program, and the computer program includes program instructions that, when executed by a processor, cause all The processor executes the method for determining the credibility of the image.
本申请实施例,可以通过图像分类模型确定样本图像属于各个图像类别的计算概率,分别确定各个图像类别下的预测概率和计算概率之间的相似度,进而基于各个图像类别下的相似度确定样本图像的可信度,有利于高效地确定样本图像的可信度。In this embodiment of the application, the calculated probability of a sample image belonging to each image category can be determined through the image classification model, and the similarity between the predicted probability and the calculated probability under each image category can be determined respectively, and then the sample can be determined based on the similarity under each image category The credibility of the image helps to efficiently determine the credibility of the sample image.
附图说明Description of the drawings
图1是本申请实施例的一种图像可信度的确定方法的流程示意图;FIG. 1 is a schematic flowchart of a method for determining image credibility according to an embodiment of the present application;
图2是本申请实施例的一种图像分类模型的结构示意图;Fig. 2 is a schematic structural diagram of an image classification model according to an embodiment of the present application;
图3是本申请实施例的另一种图像可信度的确定方法的流程示意图;3 is a schematic flowchart of another method for determining image credibility according to an embodiment of the present application;
图4是本申请实施例的一种图像可信度的确定装置的结构示意图;4 is a schematic structural diagram of an image credibility determination apparatus according to an embodiment of the present application;
图5是本申请实施例的一种电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
具体实施方式Detailed ways
请参见图1,本方案可应用于智慧医疗领域中,从而推动智慧城市的建设。是本申请实施例的一种图像可信度的确定方法的流程示意图,本申请实施例的所述方法可以由电子设备来执行。本申请实施例的所述方法包括如下步骤。Please refer to Figure 1. This solution can be applied in the field of smart medical care to promote the construction of smart cities. It is a schematic flowchart of a method for determining image credibility in an embodiment of the present application, and the method in the embodiment of the present application may be executed by an electronic device. The method of the embodiment of the present application includes the following steps.
S101:通过图像分类模型中的各个网络层对样本图像进行图像分类处理,其中,各个网络层包括分类计算层和防过拟合层。其中,本申请涉及的电子设备可以为智能手机、平板电脑、笔记本电脑、台式电脑、车载智能终端等终端设备,也可以为服务器或者服务器组本申请实施例不做限定。S101: Perform image classification processing on a sample image through each network layer in the image classification model, where each network layer includes a classification calculation layer and an anti-overfitting layer. Among them, the electronic devices involved in this application may be terminal devices such as smart phones, tablet computers, notebook computers, desktop computers, in-vehicle smart terminals, etc., and may also be servers or server groups, which are not limited in the embodiments of this application.
其中,上述图像分类模型例如可以为Inception模型,示例性地,该图像分类模型可以如图2所示,包括输入层(用于输入图像)、预处理层、隐含层、降维层、平均池化层、防过拟合层和分类计算层,该模型拥有三个隐含层,分别为:Inception-A第一隐含层、Inception-B第二隐含层以及Inception-C第三隐含层,二个降维层,分别为:Reduction-A第一降维层和Reduction-B第二降维层;预处理层,可以用于对输入Inception-A的数据进行预处理,该预处理可以包括数据进行多次卷积和池化;防过拟合层,可以用于防止图像分类模型出现过拟合的情况,有效避免图像分类模型对训练图像能够很好的进行分类,但在部署后对实际的需要分类的图像,则分类效果较差的情况;分类计算层,它的输出结果可以是通过输入层输入的图像属于各个类别的概率。Wherein, the above-mentioned image classification model may be, for example, an Inception model. Illustratively, the image classification model may be as shown in FIG. 2, including an input layer (for input images), a preprocessing layer, a hidden layer, a dimensionality reduction layer, and an average. Pooling layer, anti-overfitting layer, and classification calculation layer. The model has three hidden layers, namely: Inception-A first hidden layer, Inception-B second hidden layer, and Inception-C third hidden layer Containing layer, two dimensionality reduction layers, namely: Reduction-A first dimensionality reduction layer and Reduction-B second dimensionality reduction layer; the preprocessing layer, which can be used to preprocess the input data of Inception-A. Processing can include multiple convolution and pooling of the data; the anti-overfitting layer can be used to prevent overfitting of the image classification model, effectively avoiding the image classification model from being able to classify the training images well, but in After deployment, for the actual images that need to be classified, the classification effect is poor; the classification calculation layer, its output result can be the probability that the image input through the input layer belongs to each category.
在一个实施例中,在对图像分类模型进行训练之前,可以采集大量的样本图像,并构成样本图像集合。后续可以将各个样本图像输入图像分类模型,图像分类模型中的各个网络层可以对样本图像进行图像分类处理,并输出针对各个样本图像的图像分类结果。In one embodiment, before the image classification model is trained, a large number of sample images can be collected to form a sample image set. Subsequently, each sample image can be input to an image classification model, and each network layer in the image classification model can perform image classification processing on the sample image, and output an image classification result for each sample image.
在一个实施例中,在对图像分类模型进行训练优化之前,可以确定设计目标,该设计目标可以为用于对多个目标类别进行区分的分类模型。其中,在不同的应用场景下,该目标类别可以指代不同的类别,例如,在针对宠物识别的场景下,该目标类别可以为狗类或者猫类,或者也可以是具体的猫和/或狗的品种等更细化的类别,例如可以是牧羊犬、柴犬等等细分类别。在针对肾小球分型识别的场景下,该目标类别可以为正常肾小球和硬化肾小球等粗粒度的类别,也可以为分节段性硬化、新月体肾小球和硬化肾小球等粒度更为精细的类别。In one embodiment, before training and optimizing the image classification model, a design goal may be determined, and the design goal may be a classification model for distinguishing multiple target categories. Among them, in different application scenarios, the target category may refer to different categories. For example, in a pet identification scenario, the target category may be a dog or cat, or it may be a specific cat and/or More detailed categories such as dog breeds, for example, can be subdivided categories such as shepherd dog and Shiba Inu. In the context of glomerular classification and recognition, the target category can be coarse-grained categories such as normal glomeruli and sclerotic glomeruli, or segmental sclerosis, crescent glomeruli, and sclerotic kidneys. More fine-grained categories such as small balls.
示例性地,假设上述目标类别包括猫类和狗类,针对这种情况,在对图像分类模型进行训练时,可以从样本图像集合中预先选取M(M为正整数,如10000)个已经被确定为狗类别的图像作为图像分类模型的狗类训练图像和P个(P为正整数,如10000)已经被确定为猫类别的图像作为图像分类模型的猫类训练图像。在一个实施例中,当某一狗类训练图像被输入至图像分类模型后,图像分类模型可以提取该狗类训练图像的图像特征数据,并根据这些图像特征数据对狗类训练图像进行分类,如果输出的分类结果指示该狗类训练图像的类别也为狗,则表明分类网络模型对该狗类训练图像的分类是成功的。进一步地, 针对M个已经被标注为狗类别的训练图像进行分类后,如果成功率大于预设成功率阈值(如90%),则确定该图像分类模型能够很好地对狗类别的图像进行分类识别,否则,则可以调整该图像分类模型中每一个节点对应的参数,并通过调整后的分类模型再次对M个狗类训练图像进行分类。同理,可以采用同样的方式利用P个猫类训练图像对图像分类模型进行训练以及优化,如果最终对狗类训练图像和猫类训练图像的分类成功率均满足预设的成功率阈值,则对图像分类模型的训练完成,并将训练完成的图像分类模型作为本申请实施例中的分类模型。在其他实施例中,还可以设置更多的不同类别,通过获取大量的不同类别的训练图像,来对图像分类模型进行训练优化,使得最终得到的分类模型能够对各个类型的图像进行分类的成功率均高于某一成功率阈值。Exemplarily, suppose the above-mentioned target categories include cats and dogs. In this case, when training the image classification model, M (M is a positive integer, such as 10000) that have been selected from the sample image set can be selected in advance. The images determined as the dog category are used as the dog training images of the image classification model and P (P is a positive integer, such as 10000) images that have been determined as the cat category are used as the cat training images of the image classification model. In one embodiment, after a certain dog training image is input to the image classification model, the image classification model can extract the image feature data of the dog training image, and classify the dog training image according to the image feature data. If the output classification result indicates that the category of the dog training image is also a dog, it indicates that the classification network model is successful in classifying the dog training image. Further, after classifying the M training images that have been marked as dog categories, if the success rate is greater than the preset success rate threshold (such as 90%), it is determined that the image classification model can perform well on the images of the dog category. Classification recognition, otherwise, the parameters corresponding to each node in the image classification model can be adjusted, and the M dog training images can be classified again through the adjusted classification model. In the same way, the image classification model can be trained and optimized using P cat training images in the same way. If the final classification success rate of the dog training image and cat training image meets the preset success rate threshold, then The training of the image classification model is completed, and the trained image classification model is used as the classification model in the embodiment of the present application. In other embodiments, more different categories can be set, and the image classification model can be trained and optimized by obtaining a large number of training images of different categories, so that the finally obtained classification model can successfully classify various types of images. The rates are all higher than a certain success rate threshold.
S102:基于分类计算层的输出结果确定样本图像属于各个图像类别的预测概率。S102: Determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer.
在一个实施例中,参见图2所示的图像分类模型,分类计算层的输出结果可以为通过Input层输入的图像属于各个类别的概率,这种情况下,电子设备可以获取分类计算层的输出结果,并解析该分类计算层的输出结果,以确定样本图像属于各个图像类别的预测概率。示例性地,样本图像所属的各个图像类别是预先确定,假设样本图像所属的各个图像类别为正常肾小球和硬化肾小球,那么,基于分类计算层的输出结果确定出的样本图像属于各个图像类别的预测概率例如可以为:正常肾小球95%,硬化肾小球5%。In one embodiment, referring to the image classification model shown in FIG. 2, the output result of the classification calculation layer may be the probability that the image input through the Input layer belongs to each category. In this case, the electronic device can obtain the output of the classification calculation layer As a result, the output result of the classification calculation layer is analyzed to determine the predicted probability that the sample image belongs to each image category. Exemplarily, each image category to which the sample image belongs is predetermined. Assuming that each image category to which the sample image belongs is normal glomerulus and sclerotic glomerulus, then the sample image determined based on the output result of the classification calculation layer belongs to each The predicted probability of the image category may be, for example, 95% of normal glomeruli and 5% of sclerotic glomeruli.
S103:获取防过拟合层输出的样本图像对应的特征图像,识别特征图像,并基于识别结果确定特征图像对应的第一特征参数和第二特征参数。S103: Obtain a feature image corresponding to the sample image output by the over-fitting layer, identify the feature image, and determine the first feature parameter and the second feature parameter corresponding to the feature image based on the recognition result.
在一个实施例中,上述识别结果包括特征图像的大小和特征图像中每一个特征点的值,电子设备基于识别结果确定特征图像对应的第一特征参数和第二特征参数的具体实施方式可以为:对特征图像中每一个特征点的值进行求和计算,并基于求和计算结果和特征图像的大小确定特征图像对应的第一特征参数。进一步地,可以确定每一个特征点的值与第一特征参数之间的差值,并对每一个差值进行求和计算,进而基于针对该差值的求和计算结果和特征图像的大小确定特征图像对应的第二特征参数。其中,上述特征图像的大小,可以指特征图像的尺寸大小,例如1*448。In one embodiment, the above recognition result includes the size of the characteristic image and the value of each characteristic point in the characteristic image, and the specific implementation of the electronic device to determine the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result may be : Perform a summation calculation on the value of each feature point in the feature image, and determine the first feature parameter corresponding to the feature image based on the summation calculation result and the size of the feature image. Further, the difference between the value of each feature point and the first feature parameter can be determined, and the sum calculation of each difference can be performed, and then the determination is made based on the sum calculation result of the difference and the size of the feature image The second feature parameter corresponding to the feature image. Wherein, the size of the aforementioned feature image may refer to the size of the feature image, for example, 1*448.
示例性地,假设第一特征参数采用μ表示,第二特征参数采用σ表示,特征图像的大小为1*448,特征图像中每一个特征点的值用p i表示,那么可以通过式1-1和式1-2分别进行第一特征参数μ和第二特征参数σ的计算。 Exemplarily, assuming that the first feature parameter is represented by μ, the second feature parameter is represented by σ, the size of the feature image is 1*448, and the value of each feature point in the feature image is represented by p i , then the formula 1- 1 and Equations 1-2 respectively calculate the first characteristic parameter μ and the second characteristic parameter σ.
Figure PCTCN2020099490-appb-000001
Figure PCTCN2020099490-appb-000001
Figure PCTCN2020099490-appb-000002
Figure PCTCN2020099490-appb-000002
S104:基于第一特征参数和第二特征参数确定样本图像属于各个图像类别的计算概率。S104: Determine the calculated probability that the sample image belongs to each image category based on the first feature parameter and the second feature parameter.
在一个实施例中,电子设备基于第一特征参数和第二特征参数确定样本图像属于各个图像类别的计算概率的具体实施方式可以为:基于预设概率算法对第一特征参数和第二特征参数进行计算,确定样本图像属各个图像类别的初始概率,进一步地,对各个初始概率进行归一化处理,得到样本图像属于各个图像类别的计算概率。In an embodiment, the electronic device determines the calculated probability of the sample image belonging to each image category based on the first feature parameter and the second feature parameter may be: based on a preset probability algorithm to compare the first feature parameter and the second feature parameter Perform calculations to determine the initial probability of the sample image belonging to each image category, and further, normalize each initial probability to obtain the calculated probability of the sample image belonging to each image category.
示例性地,样本图像属于的各个图像类别可以为预先配置,可以包括第一类别、第二类别、以及第J类别等,样本图像属各个图像类别的初始概率表示为p k(k表示图像类别,k∈{0,1,...J}),上述预设概率算法可以为式1-3。这种情况下,电子设备可以基于式1-3对第一特征参数μ和第二特征参数σ进行计算,确定样本图像属各个图像类别的初始概率。 Exemplarily, each image category to which the sample image belongs may be pre-configured, and may include the first category, the second category, and the J-th category. The initial probability of the sample image belonging to each image category is expressed as p k (k represents the image category , K∈{0,1,...J}), the above-mentioned preset probability algorithm can be Formula 1-3. In this case, the electronic device can calculate the first feature parameter μ and the second feature parameter σ based on Equations 1-3 to determine the initial probability of the sample image belonging to each image category.
Figure PCTCN2020099490-appb-000003
Figure PCTCN2020099490-appb-000003
进一步地,对各个初始概率p k(k∈{0,1,...J})进行归一化处理,得到样本图像属于各个图像类别的计算概率
Figure PCTCN2020099490-appb-000004
Further, normalize each initial probability p k (k∈{0,1,...J}) to obtain the calculated probability that the sample image belongs to each image category
Figure PCTCN2020099490-appb-000004
其中,对各个初始概率p k进行归一化处理的具体方式,可以基于式1-4进行归一化处理,得到样本图像属于各个图像类别的计算概率
Figure PCTCN2020099490-appb-000005
Among them, the specific method of normalizing each initial probability p k can be normalized based on equations 1-4 to obtain the calculated probability that the sample image belongs to each image category
Figure PCTCN2020099490-appb-000005
Figure PCTCN2020099490-appb-000006
Figure PCTCN2020099490-appb-000006
S105:分别确定各个图像类别下的预测概率和计算概率之间的相似度,并基于各个图像类别下的相似度确定样本图像的可信度。S105: Determine the similarity between the predicted probability and the calculated probability under each image category respectively, and determine the credibility of the sample image based on the similarity under each image category.
在一个实施例中,电子设备可以对比各个图像类别下的计算概率
Figure PCTCN2020099490-appb-000007
和预测概率,并基于对比结果确定各个图像类别下的计算概率
Figure PCTCN2020099490-appb-000008
和预测概率之间的相似度,进而基于各个相似度,确定样本图像的可信度。其中,各个图像类别下的计算概率
Figure PCTCN2020099490-appb-000009
和预测概率之间的相似度越高,则样本图像的可信度也越高。
In one embodiment, the electronic device can compare the calculated probability of each image category
Figure PCTCN2020099490-appb-000007
And the predicted probability, and based on the comparison result to determine the calculated probability under each image category
Figure PCTCN2020099490-appb-000008
Based on the similarity between the predicted probability and the similarity, the credibility of the sample image is determined. Among them, the calculated probability under each image category
Figure PCTCN2020099490-appb-000009
The higher the similarity with the predicted probability, the higher the credibility of the sample image.
示例性地,可以对各个图像类别下的计算概率
Figure PCTCN2020099490-appb-000010
和预测概率之间的相似度进行平均值计算,将求得的平均值确定为样本图像的可信度。
Exemplarily, the probability of each image category can be calculated
Figure PCTCN2020099490-appb-000010
Calculate the average value of the similarity with the predicted probability, and determine the obtained average value as the reliability of the sample image.
在一个实施例中,电子设备确定出样本图像的可信度之后,可以获取用于对图像分类模型进行训练的多个样本图像的可信度,并基于多个样本图像的可信度,确定通过多个样本图像进行训练后得到的图像分类模型的可信度。In one embodiment, after the electronic device determines the credibility of the sample image, it can obtain the credibility of the multiple sample images used to train the image classification model, and determine the credibility of the multiple sample images based on the credibility of the multiple sample images. The credibility of the image classification model obtained after training with multiple sample images.
在一个实施例中,可以通过M样本图像对图像分类模型进行训练,在通过每一个样本图像对图像分类模型进行训练的过程中,均可以执行上述步骤S101~步骤S105确定出每一个样本图像的可信度,并将每一个样本图像的可信度与各个样本图像存储在指定存储区域。后续,在通过M样本图像对图像分类模型训练结束后,电子设备可以从指定存储区域中获 取用于对图像分类模型进行训练的各个样本图像的可信度,并基于各个样本图像的可信度,确定通过上述各个样本图像进行训练后得到的图像分类模型的可信度。作为一种可行的实施方式,可以将上述M个样本图像的可信度的均值确定为图像分类模型的可信度。In one embodiment, the image classification model can be trained through M sample images. In the process of training the image classification model through each sample image, the above steps S101 to S105 can be performed to determine the value of each sample image. Reliability, and store the credibility of each sample image and each sample image in a designated storage area. Subsequently, after training the image classification model through the M sample images, the electronic device can obtain the credibility of each sample image used for training the image classification model from the designated storage area, and based on the credibility of each sample image , To determine the credibility of the image classification model obtained after training through each of the above-mentioned sample images. As a feasible implementation manner, the average value of the credibility of the foregoing M sample images may be determined as the credibility of the image classification model.
在一个实施例中,电子设备确定出图像分类模型的可信度之后,也可以将该图像分类模型的可信度存储至上述指定存储区域。后续,用户可从该指定存储区域中获取并查看各个样本图像和图像分类模型的可信度,采用这样的方式,可以增加图像分类模型预测结果的可解释性,为后续图像分类模型的使用和产品化提供强有力依据,而非一个黑盒子网络。In an embodiment, after the electronic device determines the credibility of the image classification model, the credibility of the image classification model may also be stored in the aforementioned designated storage area. Later, the user can obtain and view the credibility of each sample image and image classification model from the designated storage area. In this way, the interpretability of the prediction results of the image classification model can be increased, and the subsequent use of the image classification model Productization provides a strong basis, not a black box network.
本申请实施例,可以通过图像分类模型中的各个网络层对样本图像进行图像分类处理,基于分类计算层的输出结果确定样本图像属于各个图像类别的预测概率,并获取防过拟合层输出的样本图像对应的特征图像。进一步地,可以识别特征图像,基于识别结果确定特征图像对应的第一特征参数和第二特征参数,并基于第一特征参数和第二特征参数确定样本图像属于各个图像类别的计算概率,分别确定各个图像类别下的预测概率和计算概率之间的相似度,进而基于各个图像类别下的相似度确定样本图像的可信度,有利于高效地确定样本图像的可信度,防止由于样本图像本身问题导致图像分类模型输出的图像分类结果不可信或者不准确的问题。In this embodiment of the application, the sample image can be classified by each network layer in the image classification model, and the predicted probability of the sample image belonging to each image category can be determined based on the output result of the classification calculation layer, and the output of the anti-overfitting layer can be obtained. The feature image corresponding to the sample image. Further, the feature image can be identified, the first feature parameter and the second feature parameter corresponding to the feature image can be determined based on the recognition result, and the calculated probability of the sample image belonging to each image category can be determined based on the first feature parameter and the second feature parameter, and respectively determine The similarity between the predicted probability and the calculated probability under each image category, and then determine the credibility of the sample image based on the similarity under each image category, which is conducive to efficiently determine the credibility of the sample image and prevent the sample image itself The problem leads to the problem of unreliable or inaccurate image classification results output by image classification models.
需要强调的是,为进一步保证上述预测概率和计算概率的私密和安全性,上述预测概率和计算概率还可以存储于一区块链的节点中。It should be emphasized that, in order to further ensure the privacy and security of the predicted probability and calculated probability, the predicted probability and calculated probability may also be stored in a node of a blockchain.
再请参见图3,是本申请实施例的另一种图像可信度的确定方法的流程示意图。本申请实施例的所述方法包括如下步骤。Please refer to FIG. 3 again, which is a schematic flowchart of another method for determining image credibility according to an embodiment of the present application. The method of the embodiment of the present application includes the following steps.
S301:通过图像分类模型中的各个网络层对样本图像进行图像分类处理,其中,各个网络层包括分类计算层和防过拟合层。S301: Perform image classification processing on the sample image through each network layer in the image classification model, where each network layer includes a classification calculation layer and an overfitting prevention layer.
S302:基于分类计算层的输出结果确定样本图像属于各个图像类别的预测概率。S302: Determine the predicted probability of the sample image belonging to each image category based on the output result of the classification calculation layer.
S303:获取防过拟合层输出的样本图像对应的特征图像,识别特征图像,并基于识别结果确定特征图像对应的第一特征参数和第二特征参数S303: Obtain a feature image corresponding to the sample image output by the over-fitting layer, identify the feature image, and determine the first feature parameter and the second feature parameter corresponding to the feature image based on the recognition result
S304:基于第一特征参数和第二特征参数确定样本图像属于各个图像类别的计算概率。S304: Determine the calculated probability that the sample image belongs to each image category based on the first feature parameter and the second feature parameter.
S305:分别确定各个图像类别下的预测概率和计算概率之间的相似度,并基于各个图像类别下的相似度确定样本图像的可信度。其中,步骤S301~步骤S305的具体实施方式,可以参见上述实施例步骤S101~步骤S105的相关描述,此处不再赘述。S305: Determine the similarity between the predicted probability and the calculated probability under each image category respectively, and determine the credibility of the sample image based on the similarity under each image category. For the specific implementation manners of step S301 to step S305, please refer to the related description of step S101 to step S105 in the foregoing embodiment, which will not be repeated here.
S306:将样本图像的可信度与第一可信度阈值进行对比,若对比得到样本图像的可信度大于第一可信度阈值,则对样本图像添加可信样本标签。S306: Compare the credibility of the sample image with the first credibility threshold, and if the credibility of the sample image is greater than the first credibility threshold, add a credible sample label to the sample image.
在一个实施例中,当后续需要获取样本图像对其他图像分类模型进行训练时,可以从样本图像集合中获取携带有可信样本标签的样本图像,并基于携带有可信样本标签的样本图像对其他图像分类模型进行训练优化,有利于提高该其他图像分类模型的输出结果的可信度和准确度。In one embodiment, when sample images need to be subsequently acquired to train other image classification models, sample images carrying credible sample labels can be obtained from the sample image set, and based on the pair of sample images carrying credible sample labels Training and optimization of other image classification models is beneficial to improve the credibility and accuracy of the output results of the other image classification models.
在一个实施例中,电子设备将样本图像的可信度与第一可信度阈值进行对比之后,若对比得到样本图像的可信度小于或者等于第一可信度阈值(例如为0.5),则可以将样本图像的可信度与第二可信度阈值进行对比,若对比得到样本图像的可信度大于第二可信度阈值(例如为0.3),则对样本图像添加待复核样本标签,并输出复核提示信息,该复核提示信息用于提示用户针对样本图像进行复核。进一步地,用户查看该复核提示信息之后,可以对样本图像的图像分类标记进行修正,例如将图像分类标记从新月体肾小球修正为硬化肾小球。In one embodiment, after the electronic device compares the credibility of the sample image with the first credibility threshold, if the credibility of the sample image obtained by the comparison is less than or equal to the first credibility threshold (for example, 0.5), Then the credibility of the sample image can be compared with the second credibility threshold. If the credibility of the sample image is greater than the second credibility threshold (for example, 0.3), the sample image to be reviewed is added to the sample image. , And output a review prompt message, which is used to prompt the user to review the sample image. Further, after viewing the review prompt information, the user can correct the image classification mark of the sample image, for example, correct the image classification mark from crescent glomeruli to sclerotic glomeruli.
或者,在另一个实施例中,若电子设备对比得到所述样本图像的可信度小于或者等于第二可信度阈值,则可以将样本图像从样本图像集合中删除。后续,不再使用该样本图像对任一图像分类模型进行训练。Or, in another embodiment, if the credibility of the sample image obtained by the electronic device comparison is less than or equal to the second credibility threshold, the sample image may be deleted from the sample image set. Later, the sample image will not be used to train any image classification model.
在一个实施例中,上述各个网络层还包括第一分类层和第二分类层,该第一分类层用于确定样本图像所属的第一粒度的图像类别,该第二分类层用于确定样本图像所属的第二粒度的图像类别,第一粒度粗于第二粒度,电子设备通过图像分类模型中的各个网络层对样本图像进行图像分类处理之后,还可以基于第一分类层输出的针对样本图像的分类结果和第二分类层输出的针对样本图像的分类结果,确定样本图像所属的目标图像类别,采用这样的方式,有利于提高图像分类模型的识别精度。In an embodiment, each of the above-mentioned network layers further includes a first classification layer and a second classification layer. The first classification layer is used to determine the image category of the first granularity to which the sample image belongs, and the second classification layer is used to determine the sample The image category of the second granularity to which the image belongs. The first granularity is coarser than the second granularity. After the electronic device performs image classification processing on the sample image through each network layer in the image classification model, it can also be based on the sample output from the first classification layer. The classification result of the image and the classification result of the sample image output by the second classification layer determine the target image category to which the sample image belongs. In this way, it is beneficial to improve the recognition accuracy of the image classification model.
示例性地,为了提高图2对应图像分类模型的识别精确度,可以在对Inception进行改进,增加两个网络层,分别为Gather1(即第一分类层)和Gather2(即第二分类层),Gather1加在图2中的stem后面,Gather2加在图2中的Inception-C后面。其中,Gather1用于对较易区分的类别进行分类,Gather2用于对较难的类别进行分类。以识别肾小球分型为例,Gather1可用于区分正常肾小球和硬化肾小球等较易区分的类别,Gather2可用于区分节段性硬化、新月体肾小球和硬化肾小球等较难区分的类别。进一步地,电子设备可以融合Gather1对样本图像的分类结果和Gather2对样本图像的分类结果,输出最终的图像分类识别结果,从而提高图像分类模型的识别精度。Exemplarily, in order to improve the recognition accuracy of the image classification model corresponding to Figure 2, Inception can be improved by adding two network layers, namely Gather1 (i.e., the first classification layer) and Gather2 (i.e., the second classification layer). Gather1 is added after stem in Figure 2, and Gather2 is added after Inception-C in Figure 2. Among them, Gather1 is used to classify the more easily distinguishable categories, and Gather2 is used to classify the more difficult categories. Taking the identification of glomerular types as an example, Gather1 can be used to distinguish between normal glomeruli and sclerotic glomeruli and other easily distinguishable categories, and Gather2 can be used to distinguish segmental sclerosis, crescent glomeruli and sclerotic glomeruli. Etc. which are more difficult to distinguish. Further, the electronic device can merge the classification result of the sample image by Gather1 and the classification result of the sample image by Gather2, and output the final image classification and recognition result, thereby improving the recognition accuracy of the image classification model.
其中,作为一种可行的实施方式,在通过改进后的图像分类模型进行图像识别时,可以提取Gather1的输出数据,若基于该输出数据判断出Gather1的分类结果较为准确,则可以无需调用Gather2进行粒度更为精细的分析。采用这样的方式,可以减少图像分类模型的计算开销,提高图像分类模型的识别效率。Among them, as a feasible implementation, when performing image recognition through the improved image classification model, the output data of Gather1 can be extracted. If the classification result of Gather1 is judged to be more accurate based on the output data, there is no need to call Gather2 for image recognition. More granular analysis. In this way, the computational overhead of the image classification model can be reduced, and the recognition efficiency of the image classification model can be improved.
本申请实施例中,可以通过图像分类模型中的各个网络层对样本图像进行图像分类处理,基于分类计算层的输出结果确定样本图像属于各个图像类别的预测概率,并获取防过拟合层输出的样本图像对应的特征图像。进一步地,可以识别特征图像,基于识别结果确定特征图像对应的第一特征参数和第二特征参数,并基于第一特征参数和第二特征参数确定样本图像属于各个图像类别的计算概率,分别确定各个图像类别下的预测概率和计算概率之间的相似度,进而基于各个图像类别下的相似度确定样本图像的可信度,将样本图像 的可信度与第一可信度阈值进行对比,若对比得到样本图像的可信度大于第一可信度阈值,则对样本图像添加可信样本标签,以便于后续可以直接基于携带有可信样本标签的样本图像对其他图像分类模型进行训练优化。In the embodiment of this application, the sample image can be classified by each network layer in the image classification model, and the predicted probability of the sample image belonging to each image category is determined based on the output result of the classification calculation layer, and the output of the anti-overfitting layer is obtained. The feature image corresponding to the sample image. Further, the feature image can be identified, the first feature parameter and the second feature parameter corresponding to the feature image can be determined based on the recognition result, and the calculated probability of the sample image belonging to each image category can be determined based on the first feature parameter and the second feature parameter, and respectively determine The similarity between the predicted probability and the calculated probability under each image category, and then determine the credibility of the sample image based on the similarity under each image category, and compare the credibility of the sample image with the first credibility threshold, If the credibility of the sample image obtained by comparison is greater than the first credibility threshold, add credible sample labels to the sample image so that other image classification models can be trained and optimized directly based on the sample image with the credible sample label. .
本申请实施例还提供了一种计算机存储介质,该计算机存储介质中存储有程序指令,该程序指令被执行时,用于实现上述实施例中描述的相应方法。可选的,该计算机可读存储介质可以是非易失性的,也可以是易失性的。The embodiment of the present application also provides a computer storage medium, the computer storage medium stores program instructions, and when the program instructions are executed, they are used to implement the corresponding methods described in the foregoing embodiments. Optionally, the computer-readable storage medium may be non-volatile or volatile.
再请参见图4,是本申请实施例的一种图像可信度的确定装置的结构示意图。Please refer to FIG. 4 again, which is a schematic structural diagram of an image credibility determination apparatus according to an embodiment of the present application.
本申请实施例的所述装置的一个实现方式中,所述装置包括如下结构。In an implementation manner of the device in the embodiment of the present application, the device includes the following structure.
处理模块40,用于通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;The processing module 40 is configured to perform image classification processing on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
所述处理模块40,还用于基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率;The processing module 40 is further configured to determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
获取模块41,用于获取所述防过拟合层输出的所述样本图像对应的特征图像;The obtaining module 41 is configured to obtain a feature image corresponding to the sample image output by the over-fitting prevention layer;
所述处理模块40,还用于识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;The processing module 40 is further configured to identify the characteristic image, and determine the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
所述处理模块40,还用于基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;The processing module 40 is further configured to determine the calculated probability that the sample image belongs to each image category based on the first characteristic parameter and the second characteristic parameter;
所述处理模块40,还用于分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。The processing module 40 is further configured to determine the similarity between the predicted probability and the calculated probability under each image category, and determine the sample based on the similarity under each image category The credibility of the image.
在一个实施例中,所述识别结果包括所述特征图像的大小和所述特征图像中每一个特征点的值,所述处理模块40,具体用于对所述特征图像中每一个特征点的值进行求和计算,并基于求和计算结果和所述特征图像的大小确定所述特征图像对应的第一特征参数;确定每一个特征点的值与所述第一特征参数之间的差值,对每一个所述差值进行求和计算,并基于针对所述差值的求和计算结果和所述特征图像的大小确定所述特征图像对应的第二特征参数。In one embodiment, the recognition result includes the size of the feature image and the value of each feature point in the feature image, and the processing module 40 is specifically configured to perform a calculation of each feature point in the feature image. The value is summed and calculated, and the first characteristic parameter corresponding to the characteristic image is determined based on the result of the summation calculation and the size of the characteristic image; the difference between the value of each characteristic point and the first characteristic parameter is determined , Performing a summation calculation for each of the difference values, and determining a second characteristic parameter corresponding to the characteristic image based on the summation calculation result for the difference values and the size of the characteristic image.
在一个实施例中,所述处理模块40,还具体用于基于预设概率算法对所述第一特征参数和所述第二特征参数进行计算,确定所述样本图像属于所述各个图像类别的初始概率;对各个所述初始概率进行归一化处理,得到所述样本图像属于所述各个图像类别的计算概率。In one embodiment, the processing module 40 is further specifically configured to calculate the first characteristic parameter and the second characteristic parameter based on a preset probability algorithm, and determine that the sample image belongs to each image category. Initial probability; normalizing each of the initial probabilities to obtain the calculated probability that the sample image belongs to each image category.
在一个实施例中,所述获取模块41,还用于获取用于对所述图像分类模型进行训练的多个样本图像的可信度;所述处理模块40,还用于基于所述多个样本图像的可信度,确定通过所述多个样本图像进行训练后得到的图像分类模型的可信度。In one embodiment, the acquiring module 41 is further configured to acquire the credibility of a plurality of sample images used for training the image classification model; the processing module 40 is also configured to acquire credibility based on the plurality of The credibility of the sample image determines the credibility of the image classification model obtained after training on the multiple sample images.
在一个实施例中,所述处理模块40,还用于将所述样本图像的可信度与第一可信度阈 值进行对比;若对比得到所述样本图像的可信度大于所述第一可信度阈值,则对所述样本图像添加可信样本标签。In an embodiment, the processing module 40 is further configured to compare the credibility of the sample image with a first credibility threshold; if the comparison shows that the credibility of the sample image is greater than the first credibility For the credibility threshold, a credible sample label is added to the sample image.
在一个实施例中,所述处理模块40,还用于若对比得到所述样本图像的可信度小于或者等于所述第一可信度阈值,则将所述样本图像的可信度与第二可信度阈值进行对比;若对比得到所述样本图像的可信度大于所述第二可信度阈值,则对所述样本图像添加待复核样本标签,并输出复核提示信息,所述复核提示信息用于提示用户针对所述样本图像进行复核;若对比得到所述样本图像的可信度小于或者等于所述第二可信度阈值,则将所述样本图像从样本图像集合中删除。In one embodiment, the processing module 40 is further configured to compare the credibility of the sample image with the first credibility threshold if the credibility of the sample image is less than or equal to the first credibility threshold. The two credibility thresholds are compared; if the credibility of the sample image is greater than the second credibility threshold, the sample image to be reviewed is added to the sample image, and the review prompt information is output, and the review The prompt information is used to prompt the user to review the sample image; if the credibility of the sample image obtained by comparison is less than or equal to the second credibility threshold, the sample image is deleted from the sample image set.
在一个实施例中,所述各个网络层还包括第一分类层和第二分类层,所述第一分类层用于确定所述样本图像所属的第一粒度的图像类别,所述第二分类层用于确定所述样本图像所属的第二粒度的图像类别,所述第一粒度粗于所述第二粒度,所述处理模块40,还用于基于所述第一分类层输出的针对所述样本图像的分类结果和所述第二分类层输出的针对所述样本图像的分类结果,确定所述样本图像所属的目标图像类别。In an embodiment, each of the network layers further includes a first classification layer and a second classification layer, the first classification layer is used to determine the image category of the first granularity to which the sample image belongs, and the second classification The layer is used to determine the image category of the second granularity to which the sample image belongs, and the first granularity is coarser than the second granularity. The processing module 40 is also used to determine the image category based on the output of the first classification layer. The classification result of the sample image and the classification result of the sample image output by the second classification layer determine the target image category to which the sample image belongs.
需要强调的是,为进一步保证上述预测概率和计算概率的私密和安全性,上述预测概率和计算概率还可以存储于一区块链的节点中。It should be emphasized that, in order to further ensure the privacy and security of the predicted probability and calculated probability, the predicted probability and calculated probability may also be stored in a node of a blockchain.
再请参见图5,是本申请实施例的一种电子设备的结构示意图,本申请实施例的所述电子设备包括供电模块等结构,并包括处理器501、存储装置502以及通信接口503。所述处理器501、存储装置502以及通信接口503之间可以交互数据,由处理器501实现相应的图像可信度的确定功能。Please refer to FIG. 5 again, which is a schematic structural diagram of an electronic device in an embodiment of the present application. The electronic device in an embodiment of the present application includes a power supply module and other structures, and includes a processor 501, a storage device 502, and a communication interface 503. The processor 501, the storage device 502, and the communication interface 503 can exchange data, and the processor 501 implements the corresponding image credibility determination function.
所述存储装置502可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储装置502也可以包括非易失性存储器(non-volatile memory),例如快闪存储器(flash memory),固态硬盘(solid-state drive,SSD)等;所述存储装置502还可以包括上述种类的存储器的组合。The storage device 502 may include a volatile memory (volatile memory), such as random-access memory (RAM); the storage device 502 may also include a non-volatile memory (non-volatile memory), such as fast Flash memory (flash memory), solid-state drive (SSD), etc.; the storage device 502 may also include a combination of the foregoing types of memories.
所述处理器501可以是中央处理器501(central processing unit,CPU)。在一个实施例中,所述处理器501还可以是图形处理器501(Graphics Processing Unit,GPU)。所述处理器501也可以是由CPU和GPU的组合。在所述电子设备中,可以根据需要包括多个CPU和GPU进行相应的图像可信度的确定。在一个实施例中,所述存储装置502用于存储程序指令。所述处理器501可以调用所述程序指令,实现如本申请实施例中上述涉及的各种方法。The processor 501 may be a central processing unit (CPU) 501. In an embodiment, the processor 501 may also be a graphics processor 501 (Graphics Processing Unit, GPU). The processor 501 may also be a combination of a CPU and a GPU. The electronic device may include multiple CPUs and GPUs as needed to determine the credibility of the corresponding image. In one embodiment, the storage device 502 is used to store program instructions. The processor 501 can call the program instructions to implement various methods mentioned above in the embodiments of the present application.
在第一个可能的实施方式中,所述电子设备的所述处理器501,调用所述存储装置502中存储的程序指令,用于通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率; 获取所述防过拟合层输出的所述样本图像对应的特征图像;识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。In a first possible implementation manner, the processor 501 of the electronic device calls the program instructions stored in the storage device 502 for image classification of the sample image through each network layer in the image classification model Processing, the various network layers include a classification calculation layer and an anti-overfitting layer; determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer; obtain the output of the anti-overfitting layer The characteristic image corresponding to the sample image; identifying the characteristic image, and determining the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result; based on the first characteristic parameter and the second characteristic parameter Determine the calculated probability that the sample image belongs to each image category; determine the similarity between the predicted probability and the calculated probability under each image category, and determine the similarity based on the calculated probability under each image category The similarity determines the credibility of the sample image.
在一个实施例中,所述识别结果包括所述特征图像的大小和所述特征图像中每一个特征点的值,所述处理器501,具体用于对所述特征图像中每一个特征点的值进行求和计算,并基于求和计算结果和所述特征图像的大小确定所述特征图像对应的第一特征参数;确定每一个特征点的值与所述第一特征参数之间的差值,对每一个所述差值进行求和计算,并基于针对所述差值的求和计算结果和所述特征图像的大小确定所述特征图像对应的第二特征参数。In one embodiment, the recognition result includes the size of the feature image and the value of each feature point in the feature image, and the processor 501 is specifically configured to perform a calculation of each feature point in the feature image. The value is summed and calculated, and the first characteristic parameter corresponding to the characteristic image is determined based on the result of the summation calculation and the size of the characteristic image; the difference between the value of each characteristic point and the first characteristic parameter is determined , Performing a summation calculation for each of the difference values, and determining a second characteristic parameter corresponding to the characteristic image based on the summation calculation result for the difference values and the size of the characteristic image.
在一个实施例中,所述处理器501,还具体用于基于预设概率算法对所述第一特征参数和所述第二特征参数进行计算,确定所述样本图像属于所述各个图像类别的初始概率;对各个所述初始概率进行归一化处理,得到所述样本图像属于所述各个图像类别的计算概率。In one embodiment, the processor 501 is further specifically configured to calculate the first characteristic parameter and the second characteristic parameter based on a preset probability algorithm, and determine that the sample image belongs to the image category. Initial probability; normalizing each of the initial probabilities to obtain the calculated probability that the sample image belongs to each image category.
在一个实施例中,所述处理器501,还用于获取用于对所述图像分类模型进行训练的多个样本图像的可信度,基于所述多个样本图像的可信度,确定通过所述多个样本图像进行训练后得到的图像分类模型的可信度。In one embodiment, the processor 501 is further configured to obtain the credibility of a plurality of sample images used for training the image classification model, and based on the credibility of the plurality of sample images, determine the pass The credibility of the image classification model obtained after the multiple sample images are trained.
在一个实施例中,处理器501,还用于将所述样本图像的可信度与第一可信度阈值进行对比;若对比得到所述样本图像的可信度大于所述第一可信度阈值,则对所述样本图像添加可信样本标签。In one embodiment, the processor 501 is further configured to compare the credibility of the sample image with a first credibility threshold; if the comparison shows that the credibility of the sample image is greater than the first credibility A degree threshold, a credible sample label is added to the sample image.
在一个实施例中,处理器501,还用于若对比得到所述样本图像的可信度小于或者等于所述第一可信度阈值,则将所述样本图像的可信度与第二可信度阈值进行对比;若对比得到所述样本图像的可信度大于所述第二可信度阈值,则对所述样本图像添加待复核样本标签,并输出复核提示信息,所述复核提示信息用于提示用户针对所述样本图像进行复核;若对比得到所述样本图像的可信度小于或者等于所述第二可信度阈值,则将所述样本图像从样本图像集合中删除。In one embodiment, the processor 501 is further configured to compare the credibility of the sample image with the second credibility if the credibility of the sample image is less than or equal to the first credibility threshold. The reliability threshold is compared; if the credibility of the sample image is greater than the second credibility threshold, the sample image to be reviewed is tagged with the sample image, and the review prompt information is output, the review prompt information It is used to prompt the user to review the sample image; if the credibility of the sample image obtained by comparison is less than or equal to the second credibility threshold, the sample image is deleted from the sample image set.
在一个实施例中,所述各个网络层还包括第一分类层和第二分类层,所述第一分类层用于确定所述样本图像所属的第一粒度的图像类别,所述第二分类层用于确定所述样本图像所属的第二粒度的图像类别,所述第一粒度粗于所述第二粒度,所述处理器501,还用于基于所述第一分类层输出的针对所述样本图像的分类结果和所述第二分类层输出的针对所述样本图像的分类结果,确定所述样本图像所属的目标图像类别。In an embodiment, each of the network layers further includes a first classification layer and a second classification layer, the first classification layer is used to determine the image category of the first granularity to which the sample image belongs, and the second classification The layer is used to determine the image category of the second granularity to which the sample image belongs, and the first granularity is coarser than the second granularity. The classification result of the sample image and the classification result of the sample image output by the second classification layer determine the target image category to which the sample image belongs.
可参考前述各个附图所对应的实施例中相关内容的描述。Reference may be made to the description of related content in the embodiments corresponding to the foregoing drawings.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过 计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.
进一步地,所述计算机可用存储介质可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序等;存储数据区可存储根据区块链节点的使用所创建的数据等。Further, the computer usable storage medium may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function, etc.; the storage data area may store a block chain node Use the created data, etc.
本申请所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in this application is a new application mode of computer technology such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information for verification. The validity of the information (anti-counterfeiting) and the generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.
以上所揭露的仅为本申请的部分实施例而已,当然不能以此来限定本申请之权利范围,本领域普通技术人员可以理解实现上述实施例的全部或部分流程,并依本申请权利要求所作的等同变化,仍属于发明所涵盖的范围。The above-disclosed are only part of the embodiments of this application. Of course, it cannot be used to limit the scope of rights of this application. Those of ordinary skill in the art can understand all or part of the procedures for implementing the above-mentioned embodiments and make them in accordance with the claims of this application. The equivalent changes of is still within the scope of the invention.

Claims (20)

  1. 一种图像可信度的确定方法,其中,所述方法包括:A method for determining the credibility of an image, wherein the method includes:
    通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;Image classification processing is performed on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
    基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率;Determining the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
    获取所述防过拟合层输出的所述样本图像对应的特征图像;Acquiring a feature image corresponding to the sample image output by the over-fitting prevention layer;
    识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;Identifying the characteristic image, and determining the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
    基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;Determining, based on the first feature parameter and the second feature parameter, the calculated probability that the sample image belongs to each image category;
    分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。The similarity between the predicted probability and the calculated probability under the respective image categories is determined respectively, and the credibility of the sample image is determined based on the similarity under the respective image categories.
  2. 根据权利要求1所述的方法,其中,所述识别结果包括所述特征图像的大小和所述特征图像中每一个特征点的值,所述基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数,包括:The method according to claim 1, wherein the recognition result includes the size of the characteristic image and the value of each characteristic point in the characteristic image, and the first characteristic corresponding to the characteristic image is determined based on the recognition result Parameters and second characteristic parameters, including:
    对所述特征图像中每一个特征点的值进行求和计算,并基于求和计算结果和所述特征图像的大小确定所述特征图像对应的第一特征参数;Performing a summation calculation on the value of each characteristic point in the characteristic image, and determining the first characteristic parameter corresponding to the characteristic image based on the sum calculation result and the size of the characteristic image;
    确定每一个特征点的值与所述第一特征参数之间的差值;Determine the difference between the value of each feature point and the first feature parameter;
    对每一个所述差值进行求和计算,并基于针对所述差值的求和计算结果和所述特征图像的大小确定所述特征图像对应的第二特征参数。A summation calculation is performed on each of the differences, and a second characteristic parameter corresponding to the characteristic image is determined based on the sum calculation result for the difference and the size of the characteristic image.
  3. 根据权利要求2所述的方法,其中,所述基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率,包括:The method according to claim 2, wherein the determining the calculated probability of the sample image belonging to the respective image category based on the first characteristic parameter and the second characteristic parameter comprises:
    基于预设概率算法对所述第一特征参数和所述第二特征参数进行计算,确定所述样本图像属于所述各个图像类别的初始概率;Calculating the first feature parameter and the second feature parameter based on a preset probability algorithm, and determining the initial probability that the sample image belongs to each image category;
    对各个所述初始概率进行归一化处理,得到所述样本图像属于所述各个图像类别的计算概率。Perform normalization processing on each of the initial probabilities to obtain the calculated probability that the sample image belongs to each image category.
  4. 根据权利要求1所述的方法,其中,所述确定所述样本图像的可信度之后,所述方法还包括:The method according to claim 1, wherein after said determining the credibility of the sample image, the method further comprises:
    获取用于对所述图像分类模型进行训练的多个样本图像的可信度;Acquiring the credibility of a plurality of sample images used for training the image classification model;
    基于所述多个样本图像的可信度,确定通过所述多个样本图像进行训练后得到的图像分类模型的可信度。Based on the credibility of the plurality of sample images, the credibility of the image classification model obtained after training through the plurality of sample images is determined.
  5. 根据权利要求1所述的方法,其中,所述基于所述各个图像类别下的所述相似度确定所述样本图像的可信度之后,所述方法还包括:The method according to claim 1, wherein after the determining the credibility of the sample image based on the similarity in the respective image categories, the method further comprises:
    将所述样本图像的可信度与第一可信度阈值进行对比;Comparing the credibility of the sample image with the first credibility threshold;
    若对比得到所述样本图像的可信度大于所述第一可信度阈值,则对所述样本图像添加可信样本标签。If the credibility of the sample image obtained by comparison is greater than the first credibility threshold, a credible sample label is added to the sample image.
  6. 根据权利要求5所述的方法,其中,所述将所述样本图像的可信度与第一可信度阈值进行对比之后,所述方法还包括:The method according to claim 5, wherein after the comparing the credibility of the sample image with a first credibility threshold, the method further comprises:
    若对比得到所述样本图像的可信度小于或者等于所述第一可信度阈值,则将所述样本图像的可信度与第二可信度阈值进行对比;If the comparison shows that the credibility of the sample image is less than or equal to the first credibility threshold, then the credibility of the sample image is compared with the second credibility threshold;
    若对比得到所述样本图像的可信度大于所述第二可信度阈值,则对所述样本图像添加待复核样本标签,并输出复核提示信息,所述复核提示信息用于提示用户针对所述样本图像进行复核;If the comparison shows that the credibility of the sample image is greater than the second credibility threshold, add a sample tag to be reviewed to the sample image, and output a review prompt message, which is used to prompt the user to check The sample image is reviewed;
    若对比得到所述样本图像的可信度小于或者等于所述第二可信度阈值,则将所述样本图像从样本图像集合中删除。If the credibility of the sample image is less than or equal to the second credibility threshold, the sample image is deleted from the sample image set.
  7. 根据权利要求1所述的方法,其中,所述各个网络层还包括第一分类层和第二分类层,所述第一分类层用于确定所述样本图像所属的第一粒度的图像类别,所述第二分类层用于确定所述样本图像所属的第二粒度的图像类别,所述第一粒度粗于所述第二粒度,所述通过图像分类模型中的各个网络层对样本图像进行图像分类处理之后,所述方法还包括:The method according to claim 1, wherein the respective network layers further comprise a first classification layer and a second classification layer, the first classification layer is used to determine the image category of the first granularity to which the sample image belongs, The second classification layer is used to determine the image category of the second granularity to which the sample image belongs, the first granularity is coarser than the second granularity, and the sample image is processed by each network layer in the image classification model. After the image classification processing, the method further includes:
    基于所述第一分类层输出的针对所述样本图像的分类结果和所述第二分类层输出的针对所述样本图像的分类结果,确定所述样本图像所属的目标图像类别。Based on the classification result for the sample image output by the first classification layer and the classification result for the sample image output by the second classification layer, the target image category to which the sample image belongs is determined.
  8. 一种图像可信度的确定装置,其中,包括:An image credibility determination device, which includes:
    处理模块,用于通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;The processing module is configured to perform image classification processing on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
    所述处理模块,还用于基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率;The processing module is further configured to determine the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
    获取模块,用于获取所述防过拟合层输出的所述样本图像对应的特征图像;An acquisition module, configured to acquire a feature image corresponding to the sample image output by the over-fitting prevention layer;
    所述处理模块,还用于识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;The processing module is further configured to identify the characteristic image, and determine the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
    所述处理模块,还用于基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;The processing module is further configured to determine the calculated probability that the sample image belongs to each image category based on the first characteristic parameter and the second characteristic parameter;
    所述处理模块,还用于分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。The processing module is further configured to determine the similarity between the predicted probability and the calculated probability under each image category, and determine the sample image based on the similarity under each image category Credibility.
  9. 一种电子设备,其中,包括处理器、存储装置和通信接口,所述处理器、所述存储装置和所述通信接口相互连接,其中,所述存储装置用于存储计算机程序指令,所述处理器被配置调用所述程序指令,用于通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;基于所述分类计算层的输出结 果确定所述样本图像属于各个图像类别的预测概率;获取所述防过拟合层输出的所述样本图像对应的特征图像;识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。An electronic device, including a processor, a storage device, and a communication interface, the processor, the storage device, and the communication interface are connected to each other, wherein the storage device is used to store computer program instructions, and the processing The device is configured to call the program instructions for performing image classification processing on the sample image through each network layer in the image classification model. The network layers include a classification calculation layer and an overfitting prevention layer; based on the classification calculation layer The output result of determining the predicted probability that the sample image belongs to each image category; acquiring the characteristic image corresponding to the sample image output by the over-fitting layer; identifying the characteristic image, and determining the characteristic image based on the recognition result Corresponding first feature parameters and second feature parameters; determine the calculated probability that the sample image belongs to each image category based on the first feature parameter and the second feature parameter; determine the calculated probability of each image category The similarity between the predicted probability and the calculated probability, and the credibility of the sample image is determined based on the similarity in each image category.
  10. 根据权利要求9所述的电子设备,其中,所述识别结果包括所述特征图像的大小和所述特征图像中每一个特征点的值,所述处理器,具体用于对所述特征图像中每一个特征点的值进行求和计算,并基于求和计算结果和所述特征图像的大小确定所述特征图像对应的第一特征参数;确定每一个特征点的值与所述第一特征参数之间的差值;对每一个所述差值进行求和计算,并基于针对所述差值的求和计算结果和所述特征图像的大小确定所述特征图像对应的第二特征参数。The electronic device according to claim 9, wherein the recognition result includes the size of the characteristic image and the value of each characteristic point in the characteristic image, and the processor is specifically configured to compare the size of the characteristic image The value of each feature point is summed and calculated, and the first feature parameter corresponding to the feature image is determined based on the result of the summation calculation and the size of the feature image; the value of each feature point and the first feature parameter are determined A summation calculation is performed on each of the differences, and a second characteristic parameter corresponding to the characteristic image is determined based on the sum calculation result for the difference and the size of the characteristic image.
  11. 根据权利要求10所述的电子设备,其中,所述处理器,还具体用于基于预设概率算法对所述第一特征参数和所述第二特征参数进行计算,确定所述样本图像属于所述各个图像类别的初始概率;对各个所述初始概率进行归一化处理,得到所述样本图像属于所述各个图像类别的计算概率。The electronic device according to claim 10, wherein the processor is further specifically configured to calculate the first characteristic parameter and the second characteristic parameter based on a preset probability algorithm, and determine that the sample image belongs to all The initial probability of each image category; normalization processing is performed on each of the initial probabilities to obtain the calculated probability that the sample image belongs to each image category.
  12. 根据权利要求9所述的电子设备,其中,所述处理器,还用于获取用于对所述图像分类模型进行训练的多个样本图像的可信度;基于所述多个样本图像的可信度,确定通过所述多个样本图像进行训练后得到的图像分类模型的可信度。The electronic device according to claim 9, wherein the processor is further configured to obtain the credibility of a plurality of sample images used for training the image classification model; based on the reliability of the plurality of sample images The reliability determines the reliability of the image classification model obtained after training through the multiple sample images.
  13. 根据权利要求9所述的电子设备,其中,所述处理器还用于将所述样本图像的可信度与第一可信度阈值进行对比;若对比得到所述样本图像的可信度大于所述第一可信度阈值,则对所述样本图像添加可信样本标签。The electronic device according to claim 9, wherein the processor is further configured to compare the credibility of the sample image with a first credibility threshold; if the comparison shows that the credibility of the sample image is greater than For the first credibility threshold, a credible sample label is added to the sample image.
  14. 根据权利要求13所述的电子设备,其中,所述处理器,还用于若对比得到所述样本图像的可信度小于或者等于所述第一可信度阈值,则将所述样本图像的可信度与第二可信度阈值进行对比;若对比得到所述样本图像的可信度大于所述第二可信度阈值,则对所述样本图像添加待复核样本标签,并输出复核提示信息,所述复核提示信息用于提示用户针对所述样本图像进行复核;若对比得到所述样本图像的可信度小于或者等于所述第二可信度阈值,则将所述样本图像从样本图像集合中删除。The electronic device according to claim 13, wherein the processor is further configured to: if the credibility of the sample image obtained by comparison is less than or equal to the first credibility threshold, the The credibility is compared with the second credibility threshold; if the comparison shows that the credibility of the sample image is greater than the second credibility threshold, add a sample label to be reviewed to the sample image, and output a review prompt Information, the review prompt information is used to prompt the user to review the sample image; if the credibility of the sample image is less than or equal to the second credibility threshold, the sample image is removed from the sample image. Deleted from the image collection.
  15. 根据权利要求9所述的电子设备,其中,所述各个网络层还包括第一分类层和第二分类层,所述第一分类层用于确定所述样本图像所属的第一粒度的图像类别,所述第二分类层用于确定所述样本图像所属的第二粒度的图像类别,所述处理器,还用于基于所述第一分类层输出的针对所述样本图像的分类结果和所述第二分类层输出的针对所述样本图像的分类结果,确定所述样本图像所属的目标图像类别。The electronic device according to claim 9, wherein the respective network layers further comprise a first classification layer and a second classification layer, and the first classification layer is used to determine the image category of the first granularity to which the sample image belongs The second classification layer is used to determine the image category of the second granularity to which the sample image belongs, and the processor is also used to determine the classification result and the result of the sample image based on the output of the first classification layer. The classification result for the sample image output by the second classification layer determines the target image category to which the sample image belongs.
  16. 一种计算机可读存储介质,其中,所述计算机可读存储介质中存储有计算机程序 指令,所述计算机程序指令被处理器执行时实现以下步骤:A computer-readable storage medium, wherein computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are executed by a processor, the following steps are implemented:
    通过图像分类模型中的各个网络层对样本图像进行图像分类处理,所述各个网络层包括分类计算层和防过拟合层;Image classification processing is performed on the sample image through each network layer in the image classification model, and each network layer includes a classification calculation layer and an anti-overfitting layer;
    基于所述分类计算层的输出结果确定所述样本图像属于各个图像类别的预测概率;Determining the predicted probability that the sample image belongs to each image category based on the output result of the classification calculation layer;
    获取所述防过拟合层输出的所述样本图像对应的特征图像;Acquiring a feature image corresponding to the sample image output by the over-fitting prevention layer;
    识别所述特征图像,并基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数;Identifying the characteristic image, and determining the first characteristic parameter and the second characteristic parameter corresponding to the characteristic image based on the recognition result;
    基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率;Determining, based on the first feature parameter and the second feature parameter, the calculated probability that the sample image belongs to each image category;
    分别确定所述各个图像类别下的所述预测概率和所述计算概率之间的相似度,并基于所述各个图像类别下的所述相似度确定所述样本图像的可信度。The similarity between the predicted probability and the calculated probability under the respective image categories is determined respectively, and the credibility of the sample image is determined based on the similarity under the respective image categories.
  17. 根据权利要求16所述的计算机可读存储介质,其中,所述识别结果包括所述特征图像的大小和所述特征图像中每一个特征点的值,所述基于识别结果确定所述特征图像对应的第一特征参数和第二特征参数时,实现以下步骤:The computer-readable storage medium according to claim 16, wherein the recognition result includes the size of the characteristic image and the value of each characteristic point in the characteristic image, and the determination that the characteristic image corresponds to the characteristic image based on the recognition result For the first characteristic parameter and the second characteristic parameter, the following steps are implemented:
    对所述特征图像中每一个特征点的值进行求和计算,并基于求和计算结果和所述特征图像的大小确定所述特征图像对应的第一特征参数;Performing a summation calculation on the value of each characteristic point in the characteristic image, and determining the first characteristic parameter corresponding to the characteristic image based on the sum calculation result and the size of the characteristic image;
    确定每一个特征点的值与所述第一特征参数之间的差值;Determine the difference between the value of each feature point and the first feature parameter;
    对每一个所述差值进行求和计算,并基于针对所述差值的求和计算结果和所述特征图像的大小确定所述特征图像对应的第二特征参数。A summation calculation is performed on each of the differences, and a second characteristic parameter corresponding to the characteristic image is determined based on the sum calculation result for the difference and the size of the characteristic image.
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述基于所述第一特征参数和所述第二特征参数确定所述样本图像属于所述各个图像类别的计算概率时,实现以下步骤:The computer-readable storage medium according to claim 17, wherein when the calculated probability of the sample image belonging to the respective image category is determined based on the first characteristic parameter and the second characteristic parameter, the following steps are implemented :
    基于预设概率算法对所述第一特征参数和所述第二特征参数进行计算,确定所述样本图像属于所述各个图像类别的初始概率;Calculating the first feature parameter and the second feature parameter based on a preset probability algorithm, and determining the initial probability that the sample image belongs to each image category;
    对各个所述初始概率进行归一化处理,得到所述样本图像属于所述各个图像类别的计算概率。Perform normalization processing on each of the initial probabilities to obtain the calculated probability that the sample image belongs to each image category.
  19. 根据权利要求16所述的计算机可读存储介质,其中,所述确定所述样本图像的可信度之后,还实现以下步骤:The computer-readable storage medium according to claim 16, wherein after said determining the credibility of the sample image, the following steps are further implemented:
    获取用于对所述图像分类模型进行训练的多个样本图像的可信度;Acquiring the credibility of a plurality of sample images used for training the image classification model;
    基于所述多个样本图像的可信度,确定通过所述多个样本图像进行训练后得到的图像分类模型的可信度。Based on the credibility of the plurality of sample images, the credibility of the image classification model obtained after training through the plurality of sample images is determined.
  20. 根据权利要求16所述的计算机可读存储介质,其中,所述基于所述各个图像类别下的所述相似度确定所述样本图像的可信度之后,还实现以下步骤:The computer-readable storage medium according to claim 16, wherein after the credibility of the sample image is determined based on the similarity in the respective image categories, the following steps are further implemented:
    将所述样本图像的可信度与第一可信度阈值进行对比;Comparing the credibility of the sample image with the first credibility threshold;
    若对比得到所述样本图像的可信度大于所述第一可信度阈值,则对所述样本图像添加可信样本标签。If the credibility of the sample image obtained by comparison is greater than the first credibility threshold, a credible sample label is added to the sample image.
PCT/CN2020/099490 2020-05-20 2020-06-30 Image confidence determination method, apparatus, electronic device, and storage medium WO2021114633A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010431166.4A CN111695604A (en) 2020-05-20 2020-05-20 Image reliability determination method and device, electronic equipment and storage medium
CN202010431166.4 2020-05-20

Publications (1)

Publication Number Publication Date
WO2021114633A1 true WO2021114633A1 (en) 2021-06-17

Family

ID=72478021

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/099490 WO2021114633A1 (en) 2020-05-20 2020-06-30 Image confidence determination method, apparatus, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN111695604A (en)
WO (1) WO2021114633A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113642639A (en) * 2021-08-12 2021-11-12 云知声智能科技股份有限公司 Living body detection method, living body detection device, living body detection apparatus, and storage medium
CN113762382A (en) * 2021-09-07 2021-12-07 百果园技术(新加坡)有限公司 Model training and scene recognition method, device, equipment and medium
CN117011649A (en) * 2023-10-07 2023-11-07 腾讯科技(深圳)有限公司 Model training method and related device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112163110B (en) * 2020-09-27 2023-01-03 Oppo(重庆)智能科技有限公司 Image classification method and device, electronic equipment and computer-readable storage medium
CN112990154B (en) * 2021-05-11 2021-07-30 腾讯科技(深圳)有限公司 Data processing method, computer equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107067022A (en) * 2017-01-04 2017-08-18 美的集团股份有限公司 The method for building up of image classification model, set up device and equipment
CN108304882A (en) * 2018-02-07 2018-07-20 腾讯科技(深圳)有限公司 A kind of image classification method, device and server, user terminal, storage medium
CN109886141A (en) * 2019-01-28 2019-06-14 同济大学 A kind of pedestrian based on uncertainty optimization discrimination method again
CN110751191A (en) * 2019-09-27 2020-02-04 广东浪潮大数据研究有限公司 Image classification method and system
US20200074269A1 (en) * 2018-09-05 2020-03-05 Sartorius Stedim Data Analytics Ab Computer-implemented method, computer program product and system for data analysis

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110472675B (en) * 2019-07-31 2023-04-18 Oppo广东移动通信有限公司 Image classification method, image classification device, storage medium and electronic equipment
CN110458233B (en) * 2019-08-13 2024-02-13 腾讯云计算(北京)有限责任公司 Mixed granularity object recognition model training and recognition method, device and storage medium
CN110516745B (en) * 2019-08-28 2022-05-24 北京达佳互联信息技术有限公司 Training method and device of image recognition model and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107067022A (en) * 2017-01-04 2017-08-18 美的集团股份有限公司 The method for building up of image classification model, set up device and equipment
CN108304882A (en) * 2018-02-07 2018-07-20 腾讯科技(深圳)有限公司 A kind of image classification method, device and server, user terminal, storage medium
US20200074269A1 (en) * 2018-09-05 2020-03-05 Sartorius Stedim Data Analytics Ab Computer-implemented method, computer program product and system for data analysis
CN109886141A (en) * 2019-01-28 2019-06-14 同济大学 A kind of pedestrian based on uncertainty optimization discrimination method again
CN110751191A (en) * 2019-09-27 2020-02-04 广东浪潮大数据研究有限公司 Image classification method and system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113642639A (en) * 2021-08-12 2021-11-12 云知声智能科技股份有限公司 Living body detection method, living body detection device, living body detection apparatus, and storage medium
CN113642639B (en) * 2021-08-12 2024-03-01 云知声智能科技股份有限公司 Living body detection method, living body detection device, living body detection equipment and storage medium
CN113762382A (en) * 2021-09-07 2021-12-07 百果园技术(新加坡)有限公司 Model training and scene recognition method, device, equipment and medium
CN113762382B (en) * 2021-09-07 2024-03-08 百果园技术(新加坡)有限公司 Model training and scene recognition method, device, equipment and medium
CN117011649A (en) * 2023-10-07 2023-11-07 腾讯科技(深圳)有限公司 Model training method and related device
CN117011649B (en) * 2023-10-07 2024-01-30 腾讯科技(深圳)有限公司 Model training method and related device

Also Published As

Publication number Publication date
CN111695604A (en) 2020-09-22

Similar Documents

Publication Publication Date Title
WO2021114633A1 (en) Image confidence determination method, apparatus, electronic device, and storage medium
US11455807B2 (en) Training neural networks for vehicle re-identification
CN112037912B (en) Triage model training method, device and equipment based on medical knowledge graph
WO2021208721A1 (en) Federated learning defense method, apparatus, electronic device, and storage medium
WO2021238281A1 (en) Neural network training method, image classification system, and related device
CN109101602B (en) Image retrieval model training method, image retrieval method, device and storage medium
CN112329659B (en) Weak supervision semantic segmentation method based on vehicle image and related equipment thereof
CN112507936B (en) Image information auditing method and device, electronic equipment and readable storage medium
WO2022048363A1 (en) Website classification method and apparatus, computer device, and storage medium
CN111814910B (en) Abnormality detection method, abnormality detection device, electronic device, and storage medium
CN111898550B (en) Expression recognition model building method and device, computer equipment and storage medium
CN111723815B (en) Model training method, image processing device, computer system and medium
CN113626607B (en) Abnormal work order identification method and device, electronic equipment and readable storage medium
CN113806582B (en) Image retrieval method, image retrieval device, electronic equipment and storage medium
US20240087368A1 (en) Companion animal life management system and method therefor
WO2024001806A1 (en) Data valuation method based on federated learning and related device therefor
CN110795714A (en) Identity authentication method and device, computer equipment and storage medium
CN112668482A (en) Face recognition training method and device, computer equipment and storage medium
CN116311370A (en) Multi-angle feature-based cow face recognition method and related equipment thereof
CN111429289B (en) Single disease identification method and device, computer equipment and storage medium
CN112818946A (en) Training of age identification model, age identification method and device and electronic equipment
CN114758787A (en) Regional epidemic situation information processing method, device and system
CN113704474B (en) Bank outlet equipment operation guide generation method, device, equipment and storage medium
CN116166999A (en) Abnormal transaction data identification method, device, computer equipment and storage medium
CN112861962B (en) Sample processing method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20899039

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20899039

Country of ref document: EP

Kind code of ref document: A1