Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are used merely to distinguish one device, module, or unit from another device, module, or unit, and are not intended to limit the order or interdependence of the functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
The present disclosure provides an image classification method, apparatus, electronic device, and computer readable medium, which aim to solve the above technical problems in the prior art.
The following describes the technical solutions of the present disclosure and how the technical solutions of the present disclosure solve the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
The embodiment of the disclosure provides an image classification method, which can be applied to a terminal for image classification, as shown in fig. 1, and the method can include:
step S101, obtaining an image to be classified;
step S102, inputting an image to be classified into a classification model to obtain the class of the image;
the classifying model is obtained by adjusting parameters of the initial classifying model based on the corrected loss function; the corrected loss function is obtained by correcting the loss function of the initial classification model by an error coefficient; the error coefficient is determined based on the true class of the sample image input to the initial classification model and the predicted class output by the initial classification model.
Specifically, a sample image is input into an initial classification model, the sample image is marked with a real class, the initial classification model outputs a prediction class of the sample image, the association degree between the real class and the prediction class can be determined, an error coefficient is determined based on the association degree, a loss function is corrected based on the error coefficient, and parameters of the initial classification model are adjusted according to the corrected loss function, so that a classification model is obtained.
In the above embodiment, the parameters of the classification model are adjusted based on the corrected loss function, the loss function is obtained by correcting the loss function of the initial classification model based on the error coefficient, the error coefficient is determined by the real class and the predicted class of the sample image, and the loss function between the real class and the predicted class with high association with the real class can be adjusted to be smaller, so that the model tends to output the real class, and the next output is the predicted class with high association with the real class, even if the class output by the trained model is different from the real class, the class with high association with the real class can effectively improve the classification accuracy.
One possible implementation manner is provided in the embodiments of the present disclosure, and the classification model is trained based on the following manner:
step S101a, inputting the sample image marked with the real category into the initial classification model to obtain the predicted category of the sample image output by the initial classification model.
The real category is the actual category of the target in the sample image; the predicted category may be a category obtained by identifying and classifying the image by the initial classification model.
Specifically, the predicted category output by the initial classification model may be the same as the true category or may be different from the true category.
In step S101b of the process of the present invention, A loss function of the initial classification model is obtained based on the true class and the predicted class.
Specifically, the obtaining the loss function of the initial classification model based on the true class and the predicted class in step S101b may include:
(1) Acquiring a first feature vector corresponding to a real category, and acquiring a second feature vector corresponding to a predicted category;
(2) A loss function of the initial classification model is obtained based on the first feature vector and the second feature vector.
In the implementation process, the loss function of the initial classification model may be obtained according to the degree of difference between the first feature vector and the second feature vector, and the specific calculation process of the loss function is not limited herein.
Step S101c, determining an error coefficient between the target in the sample image and the prediction category.
Specifically, an error database may be preset, where a plurality of real categories are stored in the error database, each real category is correspondingly provided with a plurality of prediction categories, each real category includes at least one target, and an error coefficient is set between each target in each real category and a corresponding prediction category.
In the implementation process, an error coefficient between a target in a sample image and a prediction category can be queried in a preset error database.
Step S101d, correcting the loss function based on the error coefficient, and adjusting the parameters of the initial classification model based on the corrected loss function to obtain the classification model.
Specifically, the loss function is corrected based on the error coefficient, which may be that the error coefficient is multiplied by a loss value calculated by the loss function, and the obtained product is used as the corrected error coefficient; the parameters of the loss function may be corrected based on the error coefficient, and the specific correction procedure is not limited herein.
In the specific implementation process, if the loss value obtained by calculating the loss function is corrected based on the error coefficient, a classification model can be obtained when the corrected loss value is smaller than a preset threshold value; if the parameters of the loss function are corrected based on the error coefficient, the classification model can be obtained when the corrected loss function converges.
In the above embodiment, by determining the error coefficient between the target and the prediction category in the sample image and correcting the loss function based on the error coefficient, the parameters of the initial classification model are adjusted according to the corrected loss function, so as to obtain the classification model, and the accuracy of the classification result can be effectively improved.
In one possible implementation manner provided in the embodiments of the present disclosure, before determining the error coefficient between the target and the prediction category in the sample image in step S101c, the method may further include:
determining the association degree between the real category and the predicted category;
determining error coefficients between the true category and the predicted category of step S101c may include:
and if the determined association degree is greater than a preset threshold value, determining an error coefficient between the target in the sample image and the prediction category.
In the implementation process, the association degree between the real category and the predicted category can be determined first, if the association degree is larger, the error coefficient is required to be set more when the corresponding error coefficient is smaller, and if the association degree is smaller, the error coefficient is larger, the error coefficient is required to be set more when the corresponding error coefficient is closer to 1, so that the error coefficient is not required to be set, and the calculated amount in the training process can be effectively reduced when the association degree is larger than a preset threshold value.
In one possible implementation manner provided in the embodiments of the present disclosure, before determining the error coefficient between the target and the prediction category in the sample image in step S101c, the method may further include:
(1) A plurality of true categories and a plurality of predicted categories are obtained.
Specifically, a plurality of sample images can be obtained, each sample image is marked with a real category, and the plurality of sample images are respectively input into a classification model to obtain a prediction category corresponding to each sample image.
(2) For each real category, a degree of association between the real category and each predicted category is determined.
Wherein the degree of association between the real category and each predicted category may be determined by: when a certain target belongs to a real category, probability of simultaneously belonging to a predicted category is obtained, and correlation degree and obtained probability are positively correlated.
For example, the real category is a table category, the predicted category is a furniture category, the association degree between the table category and the furniture category is determined, the probability that one table belongs to the table category and simultaneously belongs to the furniture category can be determined, and the obtained probability is multiplied by a preset coefficient value to obtain the corresponding association degree.
It should be noted that the degree of association between the real category and each predicted category is not necessarily equal to the degree of association between the predicted category and the real category.
As shown in fig. 3, an association relationship correspondence table may be established, where a plurality of real categories are provided, each real category is provided with at least one prediction category, and a corresponding association degree is provided between each real category and each prediction category.
(3) An error coefficient between each target in the real class and each predicted class is set based on a degree of association between the real class and each predicted class.
Wherein the error coefficient may be a probability value between 0 and 1.
Specifically, the error coefficient between each target in each real category and each predicted category is inversely related to the degree of association between the real category and the predicted category.
That is, the greater the association degree between the real class and the predicted class, the greater the probability of belonging to the predicted class when a certain target simultaneously belongs to the real class, the greater the accuracy of judgment at this time, the smaller the corrected loss function which should be obtained, and the smaller the corresponding error coefficient.
(4) An error database is constructed based on the error coefficients between each target in each real class and each predicted class.
As shown in fig. 4, the error database may be a relationship comparison table among each target, prediction category and error coefficient in the real categories, each target in each real category is provided with at least one prediction category, and a corresponding error coefficient may be provided between each target in each real category and each prediction category.
For example, if the real category includes a tea table and a chair, and the corresponding prediction category is a table category, a smaller error coefficient can be set between the tea table and the table category, and a relatively larger error coefficient can be set between the chair and the table category, so that when the tea table is classified, the tea table is not classified into the furniture category, but is more prone to be classified into the table category.
In order to facilitate a clearer understanding of the above-described image classification method, the image classification method in the present application will be described below with reference to the accompanying drawings and specific examples.
As shown in fig. 5, in an example, the image classification method provided by the present application may include the following steps:
step S501, inputting a sample image marked with a real class into an initial classification model to obtain a predicted class of the sample image output by the initial classification model;
step S502, obtaining a loss function of an initial classification model;
step S503, determining the association degree between the real category and the predicted category;
step S504, judging whether the association degree between the real category and the predicted category is larger than a preset threshold value; if yes, go to step S505;
step S505, determining an error coefficient between a target in the sample image and a prediction category;
Step S506, correcting the loss function based on the error coefficient;
step S507, adjusting parameters of the initial classification model based on the corrected loss function to obtain a classification model;
step S508, obtaining an image to be classified;
step S509, inputting the images to be classified into the classification model to obtain the categories of the images.
According to the image classification method, parameters of the classification model are adjusted based on the corrected loss function, the loss function is obtained by correcting the loss function of the initial classification model based on the error coefficient, the error coefficient is determined by the real type and the prediction type of the sample image, the loss function between the real type and the prediction type with high association degree with the real type can be adjusted to be smaller, the model tends to output the real type, the next output is the prediction type with high association degree with the real type, and even if the type output by the trained model is different from the real type, the model is the type with high association degree with the real type, and the classification accuracy can be effectively improved.
Further, if one sample image belongs to at least two real categories, any one of the real categories can be used as a prediction category corresponding to the other real category, and the loss function is corrected to be smaller, so that the model tends to output any one of the at least two real categories, and the accuracy of model classification is improved.
Further, the association degree between the real category and the predicted category can be determined first, if the association degree is larger, the error coefficient is required to be set if the corresponding error coefficient is smaller, and if the association degree is smaller, the error coefficient is larger, and is close to 1 if the corresponding error coefficient is larger, the error coefficient is possibly not required to be set, so that when the association degree is larger than a preset threshold value, the error coefficient can be determined again, and the calculated amount in the training process can be effectively reduced.
An embodiment of the present disclosure provides an image classification apparatus 60, as shown in fig. 6, the image classification apparatus 60 may include: an acquisition module 601, and a classification module 602, wherein,
an acquisition module 601, configured to acquire an image to be classified;
the classification module 602 is configured to input an image to be classified into a classification model to obtain a class of the image;
the classifying model is obtained by adjusting parameters of the initial classifying model based on the corrected loss function; the corrected loss function is obtained by correcting the loss function of the initial classification model by an error coefficient; the error coefficient is determined based on the true class of the sample image input to the initial classification model and the predicted class output by the initial classification model.
One possible implementation is provided in the presently disclosed embodiments, the image classification device 60 further comprises a training module for:
inputting the sample image marked with the real category into an initial classification model to obtain the predicted category of the sample image output by the initial classification model;
acquiring a loss function of the initial classification model based on the real class and the predicted class;
determining an error coefficient between a target in the sample image and the prediction category;
correcting the loss function based on the error coefficient, and adjusting the parameters of the initial classification model based on the corrected loss function to obtain the classification model.
One possible implementation is provided in the presently disclosed embodiments, the training module further comprises a determining unit for:
determining the association degree between the real category and the predicted category;
the training module in determining the error coefficients between the true class and the predicted class, the method is particularly used for:
and if the determined association degree is greater than a preset threshold value, determining an error coefficient between the real category and the predicted category.
The embodiment of the disclosure provides a possible implementation manner, and the training module is specifically used for acquiring a loss function of an initial classification model based on a real class and a predicted class:
Acquiring a first feature vector corresponding to a real category, and acquiring a second feature vector corresponding to a predicted category;
a loss function of the initial classification model is obtained based on the first feature vector and the second feature vector.
In one possible implementation manner provided in the embodiments of the present disclosure, the training module is specifically configured to, when determining an error coefficient between a target and a prediction category in a sample image:
inquiring an error coefficient between a target in a sample image and a prediction category in a preset error database; wherein, a plurality of real categories are stored in the error database, each real category containing at least one target; each real category is correspondingly provided with a plurality of prediction categories, and an error coefficient is arranged between each target in each real category and a corresponding prediction category.
In one possible implementation manner provided in the embodiments of the present disclosure, the image classification apparatus 60 further includes a construction module, where the construction module is configured to:
acquiring a plurality of real categories and a plurality of prediction categories;
for each real category, determining a degree of association between the real category and each predicted category;
setting an error coefficient between each target in the real category and each prediction category based on the association degree between the real category and each prediction category;
An error database is constructed based on the error coefficients between each target in each real class and each predicted class.
One possible implementation manner is provided in the embodiments of the present disclosure, where an error coefficient between any target in each real category and each corresponding prediction category is inversely related to a degree of association between the real category and the prediction category.
According to the image classification device, the parameters of the classification model are adjusted based on the corrected loss function, the loss function is obtained by correcting the loss function of the initial classification model based on the error coefficient, the error coefficient is determined by the real type and the prediction type of the sample image, the loss function between the real type and the prediction type with high association degree with the real type can be adjusted to be smaller, the model tends to output the real type, the next output is the prediction type with high association degree with the real type, and even if the type output by the trained model is different from the real type, the model is the type with high association degree with the real type, and the classification accuracy can be effectively improved.
Further, if one sample image belongs to at least two real categories, any one of the real categories can be used as a prediction category corresponding to the other real category, and the loss function is corrected to be smaller, so that the model tends to output any one of the at least two real categories, and the accuracy of model classification is improved.
Further, the association degree between the real category and the predicted category can be determined first, if the association degree is larger, the error coefficient is required to be set if the corresponding error coefficient is smaller, and if the association degree is smaller, the error coefficient is larger, and is close to 1 if the corresponding error coefficient is larger, the error coefficient is possibly not required to be set, so that when the association degree is larger than a preset threshold value, the error coefficient can be determined again, and the calculated amount in the training process can be effectively reduced.
The image classification device according to the embodiments of the present disclosure may perform an image classification method provided by the embodiments of the present disclosure, and its implementation principle is similar, and actions performed by each module in the image classification device according to each embodiment of the present disclosure correspond to steps in the image classification method according to each embodiment of the present disclosure, and detailed functional descriptions of each module in the image classification device may be specifically referred to the descriptions in the corresponding image classification method shown in the foregoing, which are not repeated herein.
Referring now to fig. 7, a schematic diagram of an electronic device 700 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 7 is merely an example and should not be construed to limit the functionality and scope of use of the disclosed embodiments.
An electronic device includes: a memory and a processor, where the processor may be referred to as a processing device 701 hereinafter, the memory may include at least one of a Read Only Memory (ROM) 702, a Random Access Memory (RAM) 703, and a storage device 708 hereinafter, as specifically shown below:
as shown in fig. 7, the electronic device 700 may include a processing means (e.g., a central processor, a graphics processor, etc.) 701, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 702 or a program loaded from a storage means 708 into a Random Access Memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. Input/output (I/O) interface 705 are also connected to the bus 704.
In general, the number of the devices used in the system, the following devices may be connected to the I/O interface 705: input devices 706 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 707 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 708 including, for example, magnetic tape, hard disk, etc.; and a communication device 709. The communication means 709 may allow the electronic device 700 to communicate wirelessly or by wire with other devices to exchange data. While fig. 7 shows an electronic device 700 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 709, either from storage 708 or ROM 702. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 701.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable medium, or any combination of the two. The computer readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to:
acquiring an image to be classified;
inputting the images to be classified into a classification model to obtain the categories of the images;
wherein, the liquid crystal display device comprises a liquid crystal display device, the classification model is obtained by adjusting parameters of the initial classification model based on the corrected loss function; the corrected loss function is obtained by correcting the loss function of the initial classification model by an error coefficient; the error coefficient is determined based on the true class of the sample image input to the initial classification model and the predicted class output by the initial classification model.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The modules or units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Where the name of the module or unit does not constitute a limitation on the unit itself in some cases, for example, the classification module may also be described as "a module for classifying images".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing information.
According to one or more embodiments of the present disclosure, there is provided an image classification method including:
acquiring an image to be classified;
inputting an image to be classified into a classification model to obtain the class of the image;
the classifying model is obtained by adjusting parameters of an initial classifying model based on the corrected loss function; the corrected loss function is obtained by correcting the loss function of the initial classification model through an error coefficient; the error coefficient is determined based on a true class of a sample image input to an initial classification model and a predicted class output corresponding to the initial classification model.
According to one or more embodiments of the present disclosure, the classification model is trained based on:
inputting the sample image marked with the real category into the initial classification model to obtain the predicted category of the sample image output by the initial classification model;
acquiring a loss function of the initial classification model based on the real class and the prediction class;
determining the error coefficient between a target in the sample image and the prediction category;
Correcting the loss function based on the error coefficient, and adjusting the parameters of the initial classification model based on the corrected loss function to obtain the classification model.
According to one or more embodiments of the present disclosure, before the determining the error coefficient between the target in the sample image and the prediction category, the determining further includes:
determining a degree of association between the true category and the predicted category;
the determining error coefficients between the true class and the predicted class comprises:
and if the determined association degree is greater than a preset threshold value, determining the error coefficient between the target in the sample image and the prediction category.
According to one or more embodiments of the present disclosure, the obtaining a loss function of the initial classification model based on the true class and the predicted class includes:
acquiring a first feature vector corresponding to the real category, and acquiring a second feature vector corresponding to the predicted category;
a loss function of the initial classification model is obtained based on the first feature vector and the second feature vector.
According to one or more embodiments of the present disclosure, the determining the error coefficient between the target in the sample image and the prediction category includes:
Inquiring an error coefficient between a target in a sample image and the prediction category in a preset error database; wherein, the error database stores a plurality of real categories, each real category containing at least one target; each real category is correspondingly provided with a plurality of prediction categories, and an error coefficient is arranged between each target in each real category and a corresponding prediction category.
According to one or more embodiments of the present disclosure, before the determining the error coefficient between the true class and the predicted class, the method further includes:
acquiring a plurality of real categories and a plurality of prediction categories;
for each real category, determining a degree of association between the real category and each predicted category;
setting an error coefficient between each target in the real category and each prediction category based on the association degree between the real category and each prediction category;
the error database is constructed based on error coefficients between each target in each real class and each predicted class.
According to one or more embodiments of the present disclosure, the error coefficient between any target in each real class and each corresponding predicted class is inversely related to the degree of association between that real class and the predicted class.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.