A method for image target recognition

By introducing a multi-branch perception module and a positive feedback loop mechanism into the image target recognition model, and adding a new target perception module and image similarity calculation module, the 'catastrophic forgetting' problem is solved and the model's continuous learning and efficient recognition capabilities are achieved.

CN118397420BActive Publication Date: 2024-09-06CHINA JILIANG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410864924.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-01
Publication Date
2024-09-06
Estimated Expiration
2044-07-01

AI Technical Summary

Technical Problem

Existing target recognition models suffer from the 'catastrophic forgetting' problem, are unable to continuously learn and adapt to the environment, and have low learning efficiency.

Method used

It adopts a multi-branch perception module and a positive feedback loop mechanism, and realizes the continuous learning ability of the image target recognition model by adding a new target perception module and image similarity calculation module to solve the 'catastrophic forgetting' problem.

Benefits of technology

This ensures the continuous learning ability of the image target recognition model, improves learning efficiency, and prevents the model from forgetting previously learned content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397420B
    Figure CN118397420B
Patent Text Reader

Abstract

The present invention relates to the field of computer vision technology, and in particular to an image target recognition method, comprising: obtaining an image to be recognized and inputting it into a pre-trained image target recognition model capable of continuous learning, the image target recognition model recognizing a target in the image to be recognized and outputting an image target recognition result; the image target recognition model comprises a plurality of multi-branch perception modules capable of adding a target perception module, each multi-branch perception module comprises a plurality of target perception modules of the same type, and the plurality of target perception modules corresponding to each multi-branch perception module perceive the target in the image to be recognized in a positive feedback loop manner, and the newly added target perception module of the same type in each multi-branch perception module is obtained after training with training samples that are incorrectly judged by other target perception modules in the corresponding multi-branch perception module, thereby being able to solve the "catastrophic forgetting" problem existing in the prior art.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer vision technology, and in particular to an image target recognition method. Background Art

[0002] With the rapid development of artificial intelligence technology, deep learning is increasingly used in computer vision, especially in the field of image object recognition.

[0003] Although existing target recognition models can recognize targets in images, they have a major flaw called "catastrophic forgetting". Catastrophic forgetting refers to the almost complete forgetting of previously learned content after learning new knowledge, which makes artificial intelligence models lack the ability to continuously adapt to the environment and continuously (incrementally) learn like biological organisms. In addition, although new data can be added to historical training data sets and the model can be retrained with data sets containing both new and old training data, the learning efficiency of this approach is too low. Summary of the invention

[0004] 1. Technical issues to be resolved

[0005] In view of the above-mentioned shortcomings and deficiencies of the prior art, the present invention provides an image target recognition method, which solves the technical problem of "catastrophic forgetting" existing in the prior art.

[0006] (II) Technical solution

[0007] In order to achieve the above object, the main technical solutions adopted by the present invention include:

[0008] In a first aspect, an embodiment of the present invention provides an image target recognition method, comprising: obtaining an image to be recognized; inputting the image to be recognized into a pre-trained image target recognition model capable of continuous learning, wherein the image target recognition model recognizes a target in the image to be recognized and outputs an image target recognition result;

[0009] Among them, the image target recognition model includes multiple multi-branch perception modules that are arranged in parallel and can add target perception modules, a first image similarity calculation module connected to the multiple multi-branch perception modules arranged in parallel, and an output module connected to the first image similarity calculation module, and each of the multiple multi-branch perception modules includes multiple target perception modules of the same type, and the multiple target perception modules corresponding to each multi-branch perception module perceive the target in the image to be recognized in a positive feedback loop, and the newly added target perception module of the same type in each multi-branch perception module is obtained after training with training samples that are misjudged by other target perception modules in the corresponding multi-branch perception module; each multi-branch perception module is used to perceive the image to be recognized to obtain the output image of each multi-branch perception module and the number of iterations of the positive feedback loop corresponding to each output image, the first image similarity calculation module is used to calculate the image similarity between the image to be recognized and each output image to obtain multiple image similarities, and the output module is used to perform target recognition based on the number of iterations and the multiple image similarities to obtain an image target recognition result.

[0010] Therefore, with the help of the above technical solution, the present application ensures the continuous learning ability of the image target recognition model, thereby being able to solve the "catastrophic forgetting" problem existing in the prior art.

[0011] In some possible embodiments, the output module is further used to determine whether the image similarity corresponding to the smallest number of iterations among all iteration numbers is the largest image similarity among all image similarities. If it is determined that the image similarity corresponding to the smallest number of iterations is the largest image similarity, the category of the output image corresponding to the smallest number of iterations is used as the image target recognition result.

[0012] In some possible embodiments, each multi-branch perception module is provided with a first competition indicator for indicating the superiority of the corresponding multi-branch perception module when competing with all multi-branch perception modules;

[0013] The output module is further used to determine whether the first competitive indicator corresponding to the minimum number of iterations is the largest first competitive indicator among all first competitive indicators if the image similarity corresponding to the minimum number of iterations is not the maximum image similarity; if the first competitive indicator corresponding to the minimum number of iterations is the largest first competitive indicator, the category of the output image corresponding to the minimum number of iterations is used as the image target recognition result.

[0014] In some possible embodiments, the process of determining the first competitive indicator includes: during the current training process of the image target recognition model, obtaining the first training image similarity corresponding to each multi-branch perception module during the current training process; sorting all first training image similarities in order from large to small to determine the largest first training image similarity; and adding 1 to the value of the first competitive indicator corresponding to the largest first training image similarity.

[0015] In some possible embodiments, each target perception module of each multi-branch perception module is provided with a second competition indicator for indicating the superiority of the corresponding target perception module when competing with all target perception modules of the corresponding multi-branch perception module;

[0016] The output module is further used to determine the largest second competitive indicator among all second competitive indicators of the multi-branch perception module corresponding to the smallest number of iterations if the first competitive indicator corresponding to the smallest number of iterations is not the largest first competitive indicator, and judge whether the largest second competitive indicator is unique; if it is determined that the largest second competitive indicator is unique, the category of the output image of the target perception module corresponding to the largest second competitive indicator is used as the image target recognition result.

[0017] In some possible embodiments, the process of determining the second competitive indicator includes: during the current training process of the image target recognition model, obtaining the second training image similarity between the output image of all target perception modules of the current multi-branch perception module in this iteration and the input image of the image target recognition model; sorting all second training image similarities corresponding to the current multi-branch perception module in order from large to small to determine the maximum second training image similarity corresponding to the current multi-branch perception module; adding 1 to the value of the second competitive indicator of the target perception module corresponding to the maximum second training image similarity in the current multi-branch perception module.

[0018] In some possible embodiments, each target perception module of each multi-branch perception module is further provided with a perception index for indicating its target perception capability;

[0019] The output module is further used to determine the largest perceptual indicator among all perceptual indicators of the multi-branch perception module corresponding to the minimum number of iterations if the largest second competitive indicator among all second competitive indicators of the multi-branch perception module corresponding to the minimum number of iterations is not unique, and judge whether the largest perceptual indicator is unique; if the largest perceptual indicator is determined to be unique, the category of the output image of the target perception module corresponding to the largest perceptual indicator is used as the image target recognition result.

[0020] In some possible embodiments, the training samples of the image target recognition model include the current positive sample; the process of determining the perception index includes: in the process of training the image target recognition model using the current positive sample, obtaining the third training image similarity of the output image of all target perception modules of the current multi-branch perception module in this iteration and the input image of the image target recognition model; adding 1 to the value of the perception index corresponding to the third training image similarities that are greater than or equal to the preset first image similarity threshold among all third training image similarities, and subtracting 1 from the value of the perception index corresponding to the third training image similarities that are less than the first image similarity threshold among all third training image similarities and whose corresponding output images are not all-zero pixel images, and also keeping the value of the perception index corresponding to all third training image similarities whose corresponding output images are all-zero pixel images unchanged.

[0021] In some possible embodiments, the training samples of the image target recognition model include the current negative sample; the process of determining the perception index includes: in the process of training the image target recognition model using the current negative sample, obtaining the output images of all target perception modules of the current multi-branch perception module in this iteration, and determining whether each output image is an all-zero pixel image; adding 1 to the values ​​of the perception indicators of all corresponding output images that are all-zero pixel images, and subtracting 1 from the values ​​of the perception indicators of all corresponding output images that are not all-zero pixel images.

[0022] In a second aspect, an embodiment of the present application provides a storage medium having a computer program stored thereon, and the computer program is executed by a processor to execute the method described in the first aspect or any optional implementation of the first aspect.

[0023] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate through the bus, and when the machine-readable instructions are executed by the processor, the method described in the first aspect or any optional implementation method of the first aspect is performed.

[0024] In a fourth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method in the first aspect or any possible implementation of the first aspect.

[0025] In order to make the above-mentioned objectives, features and advantages to be achieved by the embodiments of the present application more obvious and understandable, the following specifically cites preferred embodiments and describes them in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1 A flowchart of an image target recognition method provided by an embodiment of the present application is shown;

[0028] Figure 2 A schematic diagram of an image target recognition model provided by an embodiment of the present application is shown;

[0029] Figure 3 A schematic diagram of a multi-branch perception module provided in an embodiment of the present application is shown;

[0030] Figure 4A A schematic diagram of increasing a perception index by using positive samples provided by an embodiment of the present application is shown;

[0031] Figure 4B A schematic diagram of maintaining a perceptual index unchanged by using a positive sample provided by an embodiment of the present application is shown;

[0032] Figure 4C A schematic diagram of reducing a perception index by using positive samples provided by an embodiment of the present application is shown;

[0033] Figure 5A A schematic diagram of increasing a perceptual index by using negative samples provided in an embodiment of the present application is shown;

[0034] Figure 5B A schematic diagram of reducing a perceptual index by using negative samples provided in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0035] In order to better explain the present invention and facilitate understanding, the present invention is described in detail below through specific implementation modes in conjunction with the accompanying drawings.

[0036] In order to solve the problem of "catastrophic forgetting" existing in the prior art, an embodiment of the present application provides an image target recognition method, which uses the existing target perception module in the multi-branch perception module to select an image training set that cannot be accurately predicted. The image training set can then be used to train a targeted target perception module and add it to the corresponding multi-branch perception module, thereby ensuring the continuous learning ability of the image target recognition model, and thus being able to solve the problem of "catastrophic forgetting" existing in the prior art.

[0037] In order to better understand the above technical solution, exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be limited by the embodiments described herein. On the contrary, these embodiments are provided to enable a clearer and more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0038] See also Figure 1 , Figure 1 A flowchart of an image target recognition method provided by an embodiment of the present application is shown. It should be understood that the image target recognition method can be executed by an image target recognition device, and the specific device of the image target recognition device can be set according to actual needs, and the embodiment of the present application is not limited thereto. For example, the image target recognition device can be a computer or a server. Specifically, the image target recognition method includes:

[0039] Step S110, obtaining an image to be recognized;

[0040] Step S120, inputting the image to be recognized into a pre-trained image target recognition model capable of continuous learning, the image target recognition model recognizes the target in the image to be recognized, and outputs the image target recognition result.

[0041] It should be noted here that the specific targets to be identified in the image of the present application can be set according to actual needs, and the embodiments of the present application are not limited to this.

[0042] For example, the target to be recognized in the image may be handwritten numbers 0 to 9, so the image target recognition model may include 10 multi-branch perception modules, and the 10 multi-branch perception modules are used to recognize numbers 0 to 9 respectively.

[0043] In order to facilitate understanding of the embodiments of the present application, a description is given below using specific embodiments.

[0044] Specifically, see Figure 2 , Figure 2 FIG. 1 is a schematic diagram of an image target recognition model provided by an embodiment of the present application. Figure 2The image target recognition model shown includes a plurality of multi-branch perception modules arranged in parallel and capable of adding a target perception module, a first image similarity calculation module connected to the plurality of multi-branch perception modules arranged in parallel, and an output module connected to the first image similarity calculation module. Each multi-branch perception module is used to perceive the image to be recognized, so as to obtain the output image of each multi-branch perception module and the number of iterations of the positive feedback loop corresponding to each output image, the first image similarity calculation module is used to calculate the image similarity between the image to be recognized and each output image, and obtain multiple image similarities, and the output module is used to perform target recognition based on the number of iterations and the multiple image similarities, and obtain an image target recognition result.

[0045] Furthermore, each multi-branch perception module is provided with a first competition indicator WWout for indicating the superiority of the corresponding multi-branch perception module when competing with all multi-branch perception modules, and the determination process of the first competition indicator includes:

[0046] During this training process of the image target recognition model, the first training image similarity corresponding to each multi-branch perception module in this training process is obtained; all first training image similarities are sorted in order from large to small to determine the largest first training image similarity; the value of the first competitive index corresponding to the largest first training image similarity is increased by 1. Except for the above situation, the first competitive index of each multi-branch perception module remains unchanged.

[0047] It should be noted here that the first competitive indicator has been determined during the model training process, and in the subsequent continuous learning process, since the multi-branch perception module can add a target perception module, its competitiveness will continue to change, so that the image target recognition model can be continuously trained, and the first competitive indicator can be continuously updated.

[0048] It should be noted here that each of the multiple multi-branch perception modules includes multiple target perception modules of the same type, and the multiple target perception modules corresponding to each multi-branch perception module perceive the target in the image to be identified through a positive feedback loop, and the newly added target perception modules of the same type in each multi-branch perception module are obtained after training with the training samples that are incorrectly judged by other target perception modules in the corresponding multi-branch perception module. In addition, the number of target perception modules included in each multi-branch perception module can be the same or different.

[0049] To facilitate understanding of the multi-branch perception module, a multi-branch perception module is described below. Other multi-branch perception modules are similar, and the difference between each multi-branch perception module is that the recognition target is different, which will not be repeated one by one later.

[0050] Specifically, see Figure 3 , Figure 3 FIG. 1 is a schematic diagram of a multi-branch perception module provided in an embodiment of the present application. Figure 3 As shown, the multi-branch perception module includes multiple target perception modules arranged in parallel, a second image similarity calculation module connected to the multiple target perception modules, a judgment module connected to the second image similarity calculation module, and a positive feedback module connected to the judgment module.

[0051] Among them, the second target perception module in the multiple target perception modules set in parallel is obtained after training based on the training sample data that the first target perception module in the multiple target perception modules set in parallel judges incorrectly, and the third target perception module in the multiple target perception modules set in parallel is obtained after training based on the training sample data that the first two target perception modules in the multiple target perception modules set in parallel judge incorrectly, and so on, the last target perception module in the multiple target perception modules set in parallel is obtained after training based on the training sample data that the other target perception modules except the last target perception module judge incorrectly. And, as time goes by, there may be data that multiple target perception modules judge incorrectly. This can be achieved by collecting a certain number of existing data that all target perception modules judge incorrectly as a new training set, and then using the new training set to train a new target perception module, and adding the new target perception module to the current multi-branch perception module according to the setting method of other target perception modules, so that it can not only continue to learn, but also will not forget the content that has been learned before.

[0052] For example, when the target that the current multi-branch perception module needs to recognize may be a handwritten number 1 and the current multi-branch perception module includes m target perception modules, since each person's writing habits are different, there will be image data that the existing m target perception modules all make incorrect judgments. Then, a certain amount of image data is collected as a new training set, and then a new target perception module is trained using the new training set, and the new target perception module is added to the current multi-branch perception module as the m+1th target perception module in parallel with the other m target perception modules.

[0053] And, for each target perception module, each target perception module can be a type A perception module. If the input image is a type A image, and type A image is a positive sample of type A perception module, then its output image = , that is, the input image and the output image are the same; if the input image is a non-class A image, and the non-class A image is a negative sample of the class A perception module, then its output image = , All 0 values.

[0054] Furthermore, since the inputs of all target perception modules of the current multi-branch perception module are the same, the second image similarity calculation module can calculate the image similarity between the input image and the output image of each target perception module, and the judgment module can sort the multiple image similarities to determine the maximum image similarity, and judge whether the maximum image similarity is unique and the maximum image similarity is greater than or equal to the preset second image similarity threshold. If it is determined that the maximum image similarity is unique and the maximum image similarity is greater than or equal to the second image similarity threshold, it means that the target perception module corresponding to the maximum image similarity is familiar with the input image, and the target detection result has high credibility, then the output image of the target perception module corresponding to the maximum image similarity can be used as the final output image; if it is determined that the maximum image similarity is not unique or the maximum image similarity is less than the second image similarity threshold, then the positive feedback module can perceive the output images of multiple target perception modules in a positive feedback loop. For example, the specific process of the positive feedback loop can refer to the relevant scheme of the positive feedback loop in a cough sound detection and extraction method disclosed in the patent with application number 202311226086.5, which will not be described in detail here. Among them, the specific value of the preset second image similarity threshold can be set according to actual needs; if the maximum image similarity is less than the second image similarity threshold, it means that the multiple target perception modules are not familiar with the input image and the credibility of the target detection result is low.

[0055] And, each target perception module of each multi-branch perception module is further provided with a perception index Win for indicating the target perception capability exhibited during the model training process and a second competition index Wout for indicating the superiority of the corresponding target perception module when competing with all target perception modules of the corresponding multi-branch perception module. Moreover, the perception index and the second competition index are already determined during the model training process, and after the target perception module is subsequently added, the multi-branch perception module can continue to be trained, so that the two indicators corresponding to each target perception module are continuously updated.

[0056] Among them, FIG. 4A to FIG. 4C As shown, the training samples of the image target recognition model include the current positive samples; the determination process of the above perception index includes:

[0057] In the process of training the image target recognition model using the current positive sample, the third training image similarity of the output image of all target perception modules of the current multi-branch perception module in the current iteration process and the input image of the image target recognition model is obtained; the value of the perception index corresponding to the third training image similarity greater than or equal to the preset first image similarity threshold th among all the third training image similarities is added by 1, and the value of the perception index corresponding to the third training image similarity less than the first image similarity threshold and the corresponding output image is not a full zero pixel image (that is, the pixel values ​​in the image are all 0) among all the third training image similarities is reduced by 1, and the value of the perception index corresponding to all the third training image similarities whose corresponding output images are full zero pixel images is maintained unchanged. For example, when the third training image similarity of the fourth target perception module is less than the first image similarity threshold and the output image of the fourth target perception module is not a full zero pixel image, the value of the perception index of the fourth target perception module is reduced by 1; for another example, when the output image of the sixth target perception module is a full zero pixel image, the value of the perception index of the sixth target perception module is maintained unchanged. In addition, the specific value of the first image similarity threshold can be set according to actual needs, and the embodiments of the present application are not limited thereto.

[0058] And, if FIG. 5A to FIG. 5B As shown, the training samples of the image target recognition model include the current negative samples; the determination process of the above perception index includes:

[0059] In the process of training the image target recognition model using the current negative sample, the output images of all target perception modules of the current multi-branch perception module in this iteration are obtained, and each output image is judged to be an all-zero pixel image; the values ​​of the perception indicators of all corresponding output images that are all-zero pixel images are added by 1, and the values ​​of the perception indicators of all corresponding output images that are not all-zero pixel images are subtracted by 1. For example, when the output image of the 7th target perception module is an all-zero pixel image, the value of the perception indicator of the 7th target perception module is added by 1.

[0060] And, the process of determining the second competitive indicator includes:

[0061] During this training process of the image target recognition model, obtain the second training image similarities of the output images of all target perception modules of the current multi-branch perception module in this iteration and the input image of the image target recognition model; sort all the second training image similarities corresponding to the current multi-branch perception module in order from large to small to determine the maximum second training image similarity corresponding to the current multi-branch perception module; add 1 to the value of the second competitive index of the target perception module corresponding to the maximum second training image similarity in the current multi-branch perception module. Except for the above situation, the second competitive index of each target perception module remains unchanged.

[0062] Therefore, based on the above settings, the output module performs target recognition based on the number of iterations and the similarity of multiple images. The specific process of obtaining the image target recognition result is as follows:

[0063] First, determine whether the image similarity corresponding to the smallest number of iterations among all the iterations is the largest image similarity among all the image similarities. If it is determined that the image similarity corresponding to the smallest number of iterations is the largest image similarity, then the category of the output image corresponding to the smallest number of iterations is used as the image target recognition result. For example, when the number of iterations of the third multi-branch perception module is the smallest, the category of the output image of the third multi-branch perception module can be used as the image target recognition result;

[0064] If it is determined that the image similarity corresponding to the minimum number of iterations is not the maximum image similarity, then determine whether the first competitive indicator corresponding to the minimum number of iterations is the largest first competitive indicator among all first competitive indicators. If the first competitive indicator corresponding to the minimum number of iterations is the largest first competitive indicator, then the category of the output image corresponding to the minimum number of iterations is used as the image target recognition result. For example, when the number of iterations of the fourth multi-branch perception module is the smallest, it can be determined whether the first competitive indicator of the fourth multi-branch perception module is the largest first competitive indicator among all first competitive indicators. If it is the largest first competitive indicator, then the category of the output image of the fourth multi-branch perception module is used as the image target recognition result;

[0065] If the first competitive indicator corresponding to the minimum number of iterations is not the largest first competitive indicator, then determine the largest second competitive indicator among all the second competitive indicators of the multi-branch perception module corresponding to the minimum number of iterations, and judge whether the largest second competitive indicator is unique. If it is determined that the largest second competitive indicator is unique, then the category of the output image of the target perception module corresponding to the largest second competitive indicator is used as the image target recognition result. For example, in the case where the first competitive indicator of the fourth multi-branch perception module is not the largest first competitive indicator, the largest second competitive indicator among all the second competitive indicators of the fourth multi-branch perception module with the smallest number of iterations can be determined. If it is determined that the largest second competitive indicator is unique, then the category of the output image of the second target perception module in the fourth multi-branch perception module corresponding to the largest second competitive indicator can be used as the image target recognition result;

[0066] If the largest second competitive indicator among all the second competitive indicators of the multi-branch perception module corresponding to the minimum number of iterations is not unique, then the largest perceptual indicator among all the perceptual indicators of the multi-branch perception module corresponding to the minimum number of iterations is determined, and it is judged whether the largest perceptual indicator is unique. If the largest perceptual indicator is determined to be unique, the category of the output image of the target perception module corresponding to the largest perceptual indicator is used as the image target recognition result. For example, when there are multiple largest second competitive indicators of all target perception modules of the fourth multi-branch perception module, the perceptual indicators of all target perception modules of the fourth multi-branch perception module can be determined, and it is determined that the largest perceptual indicator among all the perceptual indicators is unique, and the perceptual indicator of the fifth target perception module is the largest, then the category of the output image of the fifth target perception module can be used as the image target recognition result;

[0067] If it is determined that the maximum perception indicator is not unique, the output is used to indicate that the identification information cannot be recognized.

[0068] Therefore, with the help of the above-mentioned technical solution, the present application selects an image training set that cannot be accurately predicted by the existing target perception module in the multi-branch perception module, and then uses the image training set to train a targeted target perception module and add it to the corresponding multi-branch perception module, thereby ensuring the continuous learning ability of the image target recognition model, and then being able to solve the "catastrophic forgetting" problem existing in the prior art.

[0069] It should be understood that the above-mentioned image target recognition method is only exemplary, and those skilled in the art may make various modifications based on the above-mentioned method, and the modified or deformed contents are also within the protection scope of this application.

[0070] The present application also provides a storage medium, on which a computer program is stored. When a processor runs the computer program, the method described in the method embodiment is executed.

[0071] The present application also provides a computer program product, which, when executed on a computer, enables the computer to execute the method described in the method embodiment.

[0072] It should be understood by those skilled in the art that embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0073] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present invention. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions.

[0074] It should be noted that the word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising a number of different components and by means of a suitably programmed computer. Among the several means listed, several of these means may be embodied by the same hardware. The use of the words first, second, third, etc., is for convenience of expression only and does not indicate any order. These words may be understood as part of the name of the component.

[0075] In addition, it should be noted that, in the description of this specification, the description of the terms "one embodiment", "some embodiments", "embodiment", "example", "specific example" or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

[0076] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments after knowing the basic creative concept. Therefore, the technical solution should be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present invention.

[0077] Obviously, those skilled in the art can make various modifications and variations to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention belong to the scope of the technical solution of the present invention and its equivalent technology, the present invention should also include these modifications and variations.

Claims

1. A method for image target recognition, characterized in that: include: Obtain an image to be recognized; Inputting the image to be identified into a pre-trained image target recognition model capable of continuous learning, wherein the image target recognition model recognizes the target in the image to be identified and outputs an image target recognition result; The image target recognition model includes a plurality of multi-branch perception modules arranged in parallel and capable of adding a target perception module, a first image similarity calculation module connected to the plurality of multi-branch perception modules arranged in parallel, and an output module connected to the first image similarity calculation module, and each of the plurality of multi-branch perception modules includes a plurality of target perception modules of the same type, and the plurality of target perception modules corresponding to each multi-branch perception module perceive the target in the image to be recognized in a positive feedback loop, and the newly added target perception module of the same type in each multi-branch perception module is obtained after training with training samples that are misjudged by other target perception modules in the corresponding multi-branch perception module; each multi-branch perception module is used to perceive the image to be recognized to obtain the output image of each multi-branch perception module and the number of iterations of the positive feedback loop corresponding to each output image, the first image similarity calculation module is used to calculate the image similarity between the image to be recognized and each of the output images to obtain a plurality of image similarities, and the output module is used to perform target recognition based on the number of iterations and the plurality of image similarities to obtain an image target recognition result; The output module is further used to determine whether the image similarity corresponding to the smallest number of iterations among all the iteration numbers is the largest image similarity among all the image similarities; if it is determined that the image similarity corresponding to the smallest number of iterations is the largest image similarity, the category of the output image corresponding to the smallest number of iterations is used as the image object recognition result; Each of the multi-branch perception modules is provided with a first competition indicator for indicating the superiority of the corresponding multi-branch perception module when competing with all the multi-branch perception modules; The output module is further used to determine whether the first competitive indicator corresponding to the minimum number of iterations is the largest first competitive indicator among all the first competitive indicators if it is determined that the image similarity corresponding to the minimum number of iterations is not the largest image similarity; if the first competitive indicator corresponding to the minimum number of iterations is the largest first competitive indicator, the category of the output image corresponding to the minimum number of iterations is used as the image target recognition result; The process of determining the first competitive indicator includes: During the current training process of the image object recognition model, obtaining the first training image similarity corresponding to each multi-branch perception module during the current training process; Sorting all the first training image similarities in descending order to determine the greatest first training image similarity; Add 1 to the value of the first competition index corresponding to the maximum first training image similarity; Each of the target perception modules of each of the multi-branch perception modules is provided with a second competition indicator for indicating the superiority of the corresponding target perception module when competing with all the target perception modules of the corresponding multi-branch perception module; The output module is further used to determine the largest second competitive indicator among all the second competitive indicators of the multi-branch perception module corresponding to the smallest number of iterations if the first competitive indicator corresponding to the smallest number of iterations is not the largest first competitive indicator, and judge whether the largest second competitive indicator is unique; if it is determined that the largest second competitive indicator is unique, use the category of the output image of the target perception module corresponding to the largest second competitive indicator as the image target recognition result; The process of determining the second competitive indicator includes: During the current training process of the image target recognition model, obtaining the second training image similarity between the output images of all the target perception modules of the current multi-branch perception module in the current iteration process and the input image of the image target recognition model; Sorting all the second training image similarities corresponding to the current multi-branch perception module in descending order to determine the maximum second training image similarity corresponding to the current multi-branch perception module; Add 1 to the value of the second competitive index of the target perception module corresponding to the maximum second training image similarity in the current multi-branch perception module.

2. The image target recognition method according to claim 1, characterized in that: Each of the target perception modules of each of the multi-branch perception modules is further provided with a perception index for indicating its target perception capability; The output module is further used to determine the largest perceptual indicator among all the perceptual indicators of the multi-branch perception module corresponding to the minimum number of iterations if the largest second competitive indicator among all the second competitive indicators of the multi-branch perception module corresponding to the minimum number of iterations is not unique, and judge whether the largest perceptual indicator is unique; if it is determined that the largest perceptual indicator is unique, then the category of the output image of the target perception module corresponding to the largest perceptual indicator is used as the image target recognition result.

3. The image target recognition method according to claim 2, characterized in that: The training samples of the image target recognition model include the current positive samples; the process of determining the perception index includes: In the process of training the image target recognition model using the current positive sample, obtaining the third training image similarity between the output images of all the target perception modules of the current multi-branch perception module in the current iteration and the input image of the image target recognition model; The values ​​of the perceptual indicators corresponding to the third training image similarities that are greater than or equal to the preset first image similarity threshold among all the third training image similarities are added by 1, and the values ​​of the perceptual indicators corresponding to the third training image similarities that are less than the first image similarity threshold among all the third training image similarities and whose corresponding output images are not all-zero pixel images are subtracted by 1, and the values ​​of the perceptual indicators corresponding to all the third training image similarities whose corresponding output images are the all-zero pixel images are maintained unchanged.

4. The image target recognition method according to claim 2, characterized in that: The training samples of the image object recognition model include current negative samples; The process of determining the perception index includes: In the process of training the image target recognition model using the current negative sample, the output images of all the target perception modules of the current multi-branch perception module in the current iteration are obtained, and it is determined whether each of the output images is an all-zero pixel image; The values ​​of the perceptual indicators of all the corresponding output images that are the all-zero pixel images are increased by 1, and the values ​​of the perceptual indicators of all the corresponding output images that are not the all-zero pixel images are decreased by 1.

5. The image target recognition method according to claim 2, characterized in that: The output module is further used to output identification information indicating that it cannot be identified if it is determined that the maximum perception indicator is not unique.