Image recognition method, apparatus, device, and storage medium
The image recognition method improves CT image diagnosis accuracy by utilizing voxel-based statistical data and feature extraction in pre-trained models, addressing the low accuracy of existing deep learning models.
Patent Information
- Application Number
- JP2023119935
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-19
- Filing Date
- 2023-07-24
- Publication Date
- 2024-10-31
- Estimated Expiration
- 2043-07-24
AI Technical Summary
The accuracy of image recognition in CT images, particularly for diagnosing diseases like chronic obstructive pulmonary disease, is low using existing deep learning models.
An image recognition method that involves determining an image histogram based on CT values of voxels, extracting statistical data, and inputting this data into pre-trained recognition models for feature extraction and fusion to improve recognition accuracy.
Enhances the accuracy of CT image recognition by leveraging voxel-based statistical data and feature extraction, leading to improved disease diagnosis.
Smart Images

Figure 2024155661000001_ABST
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of data processing, and in particular to an image recognition method, apparatus, device and storage medium. [Background technology]
[0002] Currently, computed tomography (CT) images are widely used in diagnostic imaging, for example diagnosing diseases such as chronic obstructive pulmonary disease (COPD) based on CT images of a patient's lungs.
[0003] In the prior art, a deep learning model can extract features from CT images and recognize the presence or absence of a lesion in a specific part of a patient's body based on an image of the specific part of the patient's body contained in the CT image, but the accuracy of this recognition method is low.
[0004] Therefore, how to improve the recognition accuracy of CT images has become an urgent issue. Summary of the Invention [Problem to be solved by the invention]
[0005] The present invention provides an image recognition method, apparatus, device and storage medium for solving the above-mentioned problems of the prior art. [Means for solving the problem]
[0006] The technical solutions used in the present invention are as follows:
[0007] The present invention provides an image recognition method, the method comprising: acquiring a computed tomography (CT) image of a user to be recognized; determining an image histogram corresponding to the CT image to be recognized based on a CT value corresponding to each voxel included in the CT image to be recognized, the image histogram being used to represent the number of voxels corresponding to each CT value related to the CT image to be recognized; determining at least one statistical data of the CT image to be recognized based on the image histogram, the statistical data including a CT value corresponding to a specified voxel included in the CT image to be recognized and a ratio of a number of voxels whose CT value is within a specified range to a total number of all voxels; inputting the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, and inputting the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation; and obtaining a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation.
[0008] Optionally, the step of acquiring a CT image to be recognized by the user specifically includes: acquiring an original computed tomography (CT) image of a user; Segmenting the original CT image to obtain a CT image corresponding to a specific part of the user's body; and resampling the CT image corresponding to a specific part of the user's body to obtain a CT image to be recognized.
[0009] Optionally, the step of inputting the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation specifically includes: normalizing at least a portion of the statistical data to obtain processed statistical data; and inputting the processed statistical data into a first feature extraction layer of the pre-trained recognition model to obtain the first feature representation.
[0010] Optionally, the step of inputting the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation specifically includes: normalizing the CT value corresponding to each voxel included in the CT image to be recognized to obtain a processed CT image to be recognized; and inputting the processed CT image to be recognized into a second feature extraction layer of the pre-trained recognition model to obtain the second feature representation.
[0011] Optionally, the step of obtaining a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation specifically includes: fusing the first feature representation and the second feature representation to obtain a fused feature representation; and obtaining a recognition result of the CT image to be recognized based on the fused feature representation.
[0012] Optionally, the method further comprises the step of training the recognition model, specifically A step of acquiring a CT image to be recognized for each sample user, the sample users including patients having a lesion in at least a part of a specific part of the body and non-patients having no lesion in at least a part of the specific part of the body; A step of setting CT images to be recognized of at least some sample users as a training set and CT images to be recognized of other sample users as a test set; Initially training the recognition model using a CT image to be recognized in the training set to obtain an initially trained recognition model; For each CT image to be recognized in the test set, input the CT image to be recognized into the initially trained recognition model to obtain a recognition result of the CT image to be recognized by the initially trained recognition model; The method includes a step of training the recognition model with the optimization goal of minimizing the difference between the recognition result of the CT image to be recognized obtained by the initially trained recognition model and the actual recognition result of the CT image to be recognized.
[0013] The present invention provides an image recognition device, comprising: an acquisition module for acquiring a computed tomography (CT) image to be recognized by a user; a determination module for determining an image histogram corresponding to the CT image to be recognized based on a CT value corresponding to each voxel included in the CT image to be recognized, the image histogram being used to represent the number of voxels corresponding to each CT value related to the CT image to be recognized; a statistical module for determining at least one statistical data of the CT image to be recognized based on the image histogram, the statistical data including a CT value corresponding to a designated voxel included in the CT image to be recognized and a ratio of a number of voxels whose CT value is within a designated range to a total number of all voxels; a feature extraction module for inputting the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, and inputting the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation; and a recognition module for obtaining a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation.
[0014] Optionally, the acquisition module specifically: Obtain the user's original computed tomography (CT) images; Segmenting the original CT image to obtain a CT image corresponding to a specific part of the user's body; The CT image corresponding to a specific part of the user's body is used to resample to obtain the CT image to be recognized.
[0015] Optionally, the feature extraction module specifically: normalizing at least a portion of the statistical data to obtain processed statistical data; The processed statistical data is used to input to a first feature extraction layer of the pre-trained recognition model to obtain the first feature representation.
[0016] Optionally, the feature extraction module specifically: Normalizing the CT value corresponding to each voxel included in the CT image to be recognized to obtain a processed CT image to be recognized; The processed CT image to be recognized is used as input to a second feature extraction layer of the pre-trained recognition model to obtain the second feature representation.
[0017] Optionally, the recognition module specifically: Fusing the first feature representation and the second feature representation to obtain a fused feature representation; Based on the fused feature representation, a recognition result of the CT image to be recognized is obtained.
[0018] Optionally, the apparatus further comprises a training module; The training module specifically includes: Acquire a CT image to be recognized for each sample user, the sample users including a patient having a lesion in at least a part of a specific body part and a non-patient not having a lesion in at least a part of a specific body part; CT images to be recognized of at least some of the sample users are set as a training set, and CT images to be recognized of other sample users are set as a test set; Initially training the recognition model using the CT images to be recognized in the training set to obtain an initially trained recognition model; For each CT image to be recognized in the test set, input the CT image to be recognized into the initially trained recognition model to obtain a recognition result of the CT image to be recognized by the initially trained recognition model; It is used to train the recognition model with the optimization goal of minimizing the difference between the recognition result of the CT image to be recognized obtained by the initially trained recognition model and the actual recognition result of the CT image to be recognized.
[0019] The present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, performs the above image recognition method.
[0020] The present invention provides an electronic device, the electronic device including a memory, a processor, and a computer program stored in the memory and executable on the processor, the electronic device implementing the image recognition method described above when the processor executes the computer program. Effect of the Invention
[0021] At least one of the above technical solutions used in the present invention can achieve the following beneficial effects:
[0022] The image recognition method provided by the present invention first acquires a computed tomography (CT) image to be recognized by a user, determines an image histogram corresponding to the CT image to be recognized based on a CT value corresponding to each voxel included in the CT image to be recognized, the image histogram is used to represent the number of voxels corresponding to each CT value related to the CT image to be recognized, determines at least one statistical data of the CT image to be recognized based on the image histogram, the statistical data includes a CT value corresponding to a specified voxel included in the CT image to be recognized and a proportion of the number of voxels whose CT values are within a specified range to the total number of all voxels, inputs the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, inputs the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation, and obtains a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation.
[0023] As can be seen from the above method, statistical data of the CT image to be recognized can be extracted based on the CT values corresponding to each voxel contained in the CT image to be recognized, and a first feature representation of the CT image to be recognized can be determined based on the statistical data of the CT image to be recognized by the recognition model, and a second feature representation of the CT image to be recognized can be determined based on the CT image to be recognized.Therefore, the CT image to be recognized can be recognized based on the statistical data of the CT image to be recognized and the image information of the CT image to be recognized, thereby improving the recognition accuracy. [Brief description of the drawings]
[0024] The accompanying drawings described herein are used to enhance understanding of the present invention and constitute a part of the present invention, and the exemplary embodiments of the present invention and their description are used to explain the present invention and do not constitute undue limitations of the present invention. [Figure 1] 1 is a schematic diagram showing the flow of an image recognition method provided in the present invention. [Diagram 2] 2 is an image histogram corresponding to a CT image to be recognized provided by the present invention; [Diagram 3] FIG. 2 is a schematic diagram showing a recognition process of a CT image to be recognized provided in the present invention. [Figure 4] 1 is a schematic diagram showing an image recognition device provided in the present invention. [Diagram 5] 1 is a schematic diagram showing an electronic device provided by the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be described clearly and completely below in conjunction with specific embodiments of the present invention and corresponding accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments that can be obtained by those skilled in the art without creative efforts all belong to the protection scope of the present invention.
[0026] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Below, the technical solutions provided in each embodiment of the present invention will be described in detail in conjunction with the accompanying drawings.
[0027] FIG. 1 is a schematic diagram showing the flow of the image recognition method provided in the present invention, which includes the following steps:
[0028] In S101, a computed tomography (CT) image to be recognized by a user is acquired.
[0029] In the present invention, the business platform may acquire an original computed tomography (CT) image of the user, segment the acquired original CT image of the user, and obtain a CT image corresponding to a specific part of the user's body from the original CT image of the user.
[0030] In the above, the business platform may segment the acquired original CT image of the user by inputting the original CT image of the user into a predetermined segmentation model, and obtain a CT image corresponding to a specific part of the user's body through the predetermined segmentation model. The segmentation model here may be a neural network model such as UNet or UNet++.
[0031] Furthermore, the CT image corresponding to a particular part of the user's body may be resampled to obtain the CT image to be recognized, where resampling can normalize the size of the voxels in the CT image to be recognized.
[0032] In addition, since the size of the CT image to be recognized obtained by resampling may differ from the size of the original image, operations such as trimming may be performed on the image to be recognized obtained by resampling so that the size of the CT image to be recognized obtained by resampling becomes the same as the size of the user's original CT image before division.
[0033] The specific part of the user's body in the above may be, for example, a part of the lung, liver, etc. The voxel in the above is a volume pixel, which is the smallest unit in a three-dimensional space. It may be understood that a three-dimensional image in a three-dimensional space may be composed of a plurality of small cubes called voxels, similar to a pixel in a two-dimensional space.
[0034] In addition, the size of the CT images corresponding to the specific parts of the body of different users may be different (the volume of the specific parts of each user is different and the proportion of the body is different, so the size of the CT images corresponding to the specific parts of the divided users' bodies may be different), and the size of the voxels included in the CT images corresponding to the specific parts of the body of different users may also be different. For example, the size of the voxels included in the CT image corresponding to the specific part of the body of one user may be (0.878906, 0.878906, 0.625), but the size of the voxels included in the CT image corresponding to the specific part of the body of another user may be (1, 1, 1). Therefore, in order to avoid the influence of the difference in the size of the voxels included in different CT images to be recognized on the recognition results output by the recognition model, it is necessary to normalize the size of the voxels in the CT image to be recognized by resampling, and it is necessary to make the size of the CT image corresponding to the specific part of the divided user's body the same as the original CT image of the user before division.
[0035] In the present invention, the executing entity for executing the image recognition method may be a designated device installed on a business platform, such as a server, or may be a device such as a notebook computer, a desktop computer, etc. For convenience of explanation, the image recognition method provided by the present invention will be described below using only a server as an example of the executing entity.
[0036] In S102, an image histogram corresponding to the CT image to be recognized is determined based on a CT value corresponding to each voxel included in the CT image to be recognized, and the image histogram is used to represent the number of voxels corresponding to each CT value related to the CT image to be recognized.
[0037] Furthermore, after the server acquires the CT image to be recognized, it may determine a CT value corresponding to each voxel included in the CT image to be recognized, and determine an image histogram corresponding to the CT image to be recognized, as shown in Figure 2, based on the CT value corresponding to each voxel included in the CT image to be recognized.
[0038] FIG. 2 is an image histogram corresponding to a CT image to be recognized provided by the present invention.
[0039] As can be seen from Fig. 2, the image histogram corresponding to the CT image to be recognized is used to represent the number of voxels corresponding to each CT value. For example, in Fig. 2, the number of voxels with a CT value of -950 HU is 5100. Note that 5100 here is the frequency value corresponding to the CT value of -950 HU, i.e., the number of voxels with a CT value of -950 HU in the CT image to be recognized.
[0040] The above CT value is also called the Hounsfield Unit (HU) value, and refers to a value corresponding to the attenuation coefficient when X-rays pass through different tissues.
[0041] In a practical application scenario, the CT image to be recognized may also contain voxels with CT values smaller than -1024 HU and voxels with CT values larger than 190 HU, and the server may perform thresholding on these voxels.
[0042] Specifically, the server may set the CT value corresponding to a voxel having a CT value smaller than -1024 HU to -1024 HU, and set the CT value corresponding to a voxel having a CT value larger than 190 HU to 190 HU.
[0043] In S103, at least one statistical data of the CT image to be recognized is determined based on the image histogram, and the statistical data includes a CT value corresponding to a specified voxel included in the CT image to be recognized and a proportion of the number of voxels whose CT values are within a specified range to the total number of all voxels.
[0044] Furthermore, the server may determine at least one statistical data of the CT image to be recognized based on the image histogram, where the statistical data includes CT values corresponding to specified voxels included in the CT image to be recognized and a percentage of the number of voxels whose CT values are within the specified range to the total number of all voxels, where all voxels refer to all voxels corresponding to a specific part of the user's body included in the CT image to be recognized.
[0045] Here, the designated voxel included in the CT image to be recognized may be a voxel in a designated percentile of the image histogram, for example, a voxel in the 15th percentile of the image histogram may be used as the designated voxel. In other words, the voxel in the 15th percentile here is a voxel located at 15% of all voxels after all voxels are sorted in ascending order according to the magnitude of the corresponding CT value.
[0046] Furthermore, the designated voxel included in the CT image to be recognized may indicate the voxel corresponding to the CT value with the highest frequency value among all the CT values.
[0047] The above-mentioned designated range may refer to a first designated range and a second designated range. The CT value being within the first designated range may be a CT value of -950HU or less. The CT value being within the second designated range may be at least one of a CT value being within [-1024, -920], a CT value being within (-920, -720), and a CT value being within [-720, 190].
[0048] In addition, the proportion of the number of voxels whose CT values are within the above-mentioned first specified range to the total number of all voxels can reflect the overall disease status of a specific part of the user's body, and each of the above-mentioned second specified ranges can reflect the disease status of a different area of the specific part of the user's body.
[0049] In S104, the statistical data is input into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, and the CT image to be recognized is input into a second feature extraction layer of the recognition model to obtain a second feature representation.
[0050] In addition, the first feature extraction layer and the second feature extraction layer may be selected according to actual needs. For example, the first feature extraction layer may be a linear layer, and the second feature extraction layer may be a ResNet18 network layer.
[0051] Furthermore, after the server determines the statistical data, it may normalize at least a portion of the determined statistical data to obtain processed statistical data, and input the processed statistical data to a first feature extraction layer of the pre-trained recognition model to obtain a first feature representation.
[0052] For example, the statistical data includes six pieces of statistical data: the CT value corresponding to the voxel at the 15th percentile of the image histogram, the CT value with the highest frequency value, the percentage of the number of voxels with a CT value of -950 HU or less to the total number of all voxels, the percentage of the number of voxels with a CT value of [-1024, -920] to the total number of all voxels, the percentage of the number of voxels with a CT value of (-920, -720) to the total number of all voxels, and the percentage of the number of voxels with a CT value of [-720, 190] to the total number of all voxels. In this case, after determining the above six statistical data, the server normalizes the CT value corresponding to the voxel at the 15th percentile of the image histogram and the CT value with the highest frequency value, inputs the two normalized statistical data together with the remaining four statistical data into the first feature extraction layer of the pre-trained recognition model, and combines the two normalized statistical data and the remaining four statistical data through the first feature extraction layer to obtain a first feature representation by performing linear transformation. The first feature representation may be a feature vector with a size of 1×256.
[0053] In addition, the server may normalize the CT value corresponding to each voxel included in the CT image to be recognized to obtain a processed CT image to be recognized, and input the processed CT image to be recognized to a second feature extraction layer of a pre-trained recognition model to obtain a second feature representation.
[0054] Illustratively, the second feature representation may be a feature vector of size 1×512.
[0055] In S105, a recognition result of the CT image to be recognized is obtained based on the first feature representation and the second feature representation.
[0056] Furthermore, the server may obtain a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation.
[0057] Specifically, the server may fuse the first feature representation and the second feature representation of the CT image to be recognized via a fully connected layer of the recognition model to obtain a fused feature representation, and input the obtained fused feature representation into a decision-making layer of the recognition model to obtain a recognition result of the CT image to be recognized.
[0058] In addition, in practical applications, the recognition model needs to be trained in advance before it is deployed on a server and used to recognize CT images.
[0059] Here, the method for training the recognition model may include the steps of acquiring CT images to be recognized of each sample user, where the sample users include patients having a lesion in at least a part of a specific body part and non-patients having no lesion in at least a part of a specific body part; using the CT images to be recognized of at least some of the sample users as a training set and the CT images to be recognized of the other sample users as a test set; initially training the recognition model using the CT images to be recognized in the training set to obtain an initially trained recognition model; for each CT image to be recognized in the test set, inputting the CT image to be recognized into the initially trained recognition model to obtain a recognition result of the CT image to be recognized by the initially trained recognition model; and training the recognition model with an optimization goal of minimizing the difference between the recognition result of the CT image to be recognized obtained by the initially trained recognition model and the actual recognition result of the CT image to be recognized.
[0060] To further elaborate on the above, the present invention further provides a schematic diagram illustrating the process of image recognition by said recognition model, as shown in FIG.
[0061] FIG. 3 is a schematic diagram showing the recognition process of a CT image to be recognized provided in the present invention.
[0062] As can be seen from Figure 3, the server may input the CT image to be recognized and at least one statistical data contained in the CT image to be recognized into a pre-trained recognition model, obtain a first feature representation of the CT image to be recognized by a first feature extraction layer of the recognition model, and obtain a second feature representation of the CT image to be recognized by a second feature extraction layer of the recognition model.
[0063] Furthermore, the recognition model may fuse the first feature representation and the second feature representation of the CT image to be recognized via a fully connected layer to obtain a fused feature representation, and recognize the CT image to be recognized based on the fused feature representation via a decision-making layer to obtain a recognition result of the CT image to be recognized.
[0064] As can be seen from the above, the server can extract statistical data of the CT image to be recognized based on the CT values corresponding to each voxel contained in the CT image to be recognized, and can determine a first feature representation of the CT image to be recognized based on the statistical data of the CT image to be recognized using a recognition model, and can determine a second feature representation of the CT image to be recognized based on the CT image to be recognized.Therefore, the CT image to be recognized can be recognized based on the statistical data of the CT image to be recognized and the image information of the CT image to be recognized, thereby improving the accuracy of recognition.
[0065] The above is the image recognition method provided in one or more embodiments of the present invention. Based on the same idea, the present invention further provides a corresponding image recognition apparatus, as shown in FIG.
[0066] FIG. 4 is a schematic diagram showing an image recognition device provided by the present invention, the device comprising: an acquisition module 401 for acquiring a computed tomography (CT) image to be recognized by a user; A determination module 402 for determining an image histogram corresponding to the CT image to be recognized based on a CT value corresponding to each voxel included in the CT image to be recognized, the image histogram being used to represent the number of voxels corresponding to each CT value related to the CT image to be recognized; a statistics module 403 for determining at least one statistical data of the CT image to be recognized based on the image histogram, the statistical data including: a CT value corresponding to a designated voxel included in the CT image to be recognized, and a ratio of a number of voxels whose CT value is within a designated range to a total number of all voxels; a feature extraction module 404 for inputting the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, and inputting the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation; a recognition module 405 for obtaining a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation.
[0067] Optionally, the acquisition module 401 specifically: Obtain the user's original computed tomography (CT) images; Segmenting the original CT image to obtain a CT image corresponding to a specific part of the user's body; The CT image corresponding to a specific part of the user's body is used to resample to obtain the CT image to be recognized.
[0068] Optionally, the feature extraction module 404 specifically: normalizing at least a portion of the statistical data to obtain processed statistical data; The processed statistical data is used to input to a first feature extraction layer of the pre-trained recognition model to obtain the first feature representation.
[0069] Optionally, the feature extraction module 404 specifically: Normalizing the CT value corresponding to each voxel included in the CT image to be recognized to obtain a processed CT image to be recognized; The processed CT image to be recognized is used as input to a second feature extraction layer of the pre-trained recognition model to obtain the second feature representation.
[0070] Optionally, the recognition module 405 specifically: Fusing the first feature representation and the second feature representation to obtain a fused feature representation; Based on the fused feature representation, a recognition result of the CT image to be recognized is obtained.
[0071] Optionally, the apparatus further comprises a training module 406; Specifically, the training module 406: Acquire a CT image to be recognized for each sample user, the sample users including a patient having a lesion in at least a part of a specific body part and a non-patient not having a lesion in at least a part of a specific body part; CT images to be recognized of at least some of the sample users are set as a training set, and CT images to be recognized of other sample users are set as a test set; Initially training the recognition model using the CT images to be recognized in the training set to obtain an initially trained recognition model; For each CT image to be recognized in the test set, input the CT image to be recognized into the initially trained recognition model to obtain a recognition result of the CT image to be recognized by the initially trained recognition model; It is used to train the recognition model with the optimization goal of minimizing the difference between the recognition result of the CT image to be recognized obtained by the initially trained recognition model and the actual recognition result of the CT image to be recognized.
[0072] The present invention further provides a computer-readable storage medium, which stores a computer program, and the computer program is used to execute the method of FIG. 1 above.
[0073] The present invention further provides an electronic device as shown in Fig. 5. As shown in Fig. 5, at the hardware level, the electronic device includes a processor, an internal bus, a network interface, an internal memory, and a non-volatile memory, and may of course include other hardware required for operation. The processor loads the corresponding computer program from the non-volatile memory into the internal memory and executes it to implement the method described in Fig. 1 above.
[0074] Of course, in addition to realization by software, the present invention does not exclude other realization methods, such as logical devices or a combination of hardware and software. In other words, the entity that executes the following processing steps is not limited to each logical unit, but may be hardware or a logical device.
[0075] In the 1990s, improvements in a technology could be clearly divided into hardware improvements (such as improvements in circuit structures such as diodes, transistors, and switches) and software improvements (improvements in method flows). However, with the development of technology, many of the current method flow improvements can be considered as direct improvements to hardware circuit structures. Designers can mostly obtain the corresponding hardware circuit structures by programming the improved method flows into the hardware circuits. Therefore, it cannot be said that method flow improvements cannot be realized by hardware physical modules. For example, Programmable Logic Devices (PLDs) (e.g. Field Programmable Gate Arrays (FPGAs)) are such integrated circuits, whose logical functions are determined by the user's programming of the device. Instead of chip manufacturers designing and manufacturing dedicated integrated circuit chips, designers program and "integrate" digital systems onto a single PLD.Nowadays, instead of handcrafting integrated circuit chips, this programming is mostly realized using software called a "logic compiler", which is similar to a software compiler used to write a program, and in order to compile the original code, it needs to be written in a specific programming language, which is called a Hardware Description Language (HDL). There is not just one type of HDL, but many types such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc., and the most commonly used at present are VHDL (Very-High-Speed Integrated Circuit Hardware Description Language) and Verilog. It will be clear to those skilled in the art that a hardware circuit that realizes a logical method flow can be easily obtained by simply programming a method flow logically in some of the above hardware description languages and programming it into an integrated circuit.
[0076] The controller may be realized in any suitable manner, for example, the controller may take the form of a microprocessor or processor, a computer-readable storage medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application specific integrated circuits (ASICs), programmable logic controllers and embedded microcontrollers, examples of which include, but are not limited to, microcontrollers such as ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, Silicone Labs C8051F320, etc., and the memory controller may also be realized as part of the control logic of the memory. It will be clear to those skilled in the art that in addition to implementing the controller purely with computer-readable program code, it is entirely possible to logically program method steps to cause the controller to perform the same functions in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers and embedded microcontrollers, etc. Thus, such a controller may be considered as a hardware component, and the devices included therein for implementing various functions may also be considered as structures within the hardware component. Alternatively, the apparatus for implementing various functions may be considered to be software modules implementing a method, or structures within hardware components.
[0077] The system, device, module or unit described in the above embodiments may be specifically realized by a computer chip, an entity, or a product having some function. A typical realizing device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a mobile phone, a camera phone, a smartphone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet, a wearable device, or any combination of these devices.
[0078] For the sake of convenience, the above-mentioned device will be described by dividing it into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be realized by the same or multiple pieces of software and / or hardware.
[0079] As will be appreciated by those skilled in the art, the embodiments of the present invention may be provided as a method, a system, or a computer program product. Thus, the present invention may employ an entirely hardware embodiment, an entirely software embodiment, or an embodiment that combines software and hardware. Furthermore, the present invention may take the form of a computer program product embodied in one or more computer usable storage media (including, but not limited to, magnetic disk memory, CD-ROM, optical memory, etc.) that contain computer usable program code.
[0080] The present invention will be 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 flow and / or block in the flowcharts and / or block diagrams, and combinations of flows and / or blocks in the flowcharts and / or block diagrams, may be realized by computer program instructions. These computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, whereby the instructions executed by the processor of the computer or other programmable data processing device generate an apparatus for implementing the functions specified in one or more flows of the flowcharts and / or one or more blocks of the block diagrams.
[0081] These computer program instructions may be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture that includes an instruction apparatus that implements the functions specified in one or more flows of the flowcharts and / or one or more blocks of the block diagrams.
[0082] These computer program instructions may be loaded into a computer or other programmable data processing device such that a sequence of operational steps are executed on the computer or other programmable device to generate a computer-implemented process, whereby the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more flows of the flowcharts and / or one or more blocks of the block diagrams.
[0083] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory.
[0084] The memory may include volatile, random access memory (RAM) and / or non-volatile memory forms of computer readable storage media, such as read only memory (ROM) or flash memory (flash RAM). The memory is one example of a computer readable storage medium.
[0085] Computer-readable storage media include non-volatile and volatile media, movable and non-movable media, and may implement information storage by any method or technology. Information may be computer-readable instructions, data structures, program modules, or other data. Computer storage media include, but are not limited to, Phase Change Memory (PRAM), Static Random-Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, magnetic cassette tape, magnetic tape magnetic disk storage or other magnetic storage device, or any other non-transmission medium that can be used to store information accessible by a computing device. As defined herein, computer readable storage media does not include transitory computer readable storage media, such as modulated data signals and carriers.
[0086] Additionally, the terms "comprise", "contain" or any other variation thereof are intended to include a non-exclusive inclusion, whereby a process, method, article or device that comprises a set of elements not only includes those elements, but also includes other elements not expressly listed, or includes the inherent elements of such process, method, article or device. Absent more limitations, an element qualified by the phrase "comprises a..." does not exclude the presence of further identical elements in a process, method, article or device that includes said element.
[0087] The invention may be described in the general context of computer-executable instructions being executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media, including storage devices.
[0088] Each embodiment of the present invention will be described in a stepwise manner, and the same or similar parts between each embodiment may be referred to each other, and the emphasis of each embodiment is on the differences from other embodiments. In particular, the system embodiment is basically similar to the method embodiment, so it will be briefly described, and the relevant parts may be referred to the description of part of the method embodiment.
[0089] The above is merely an embodiment of the present invention, and is not used to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made without departing from the spirit and principle of the present invention should be included in the scope of the claims of the present invention.
Claims
1. acquiring a computed tomography (CT) image of a user to be recognized; determining an image histogram corresponding to the CT image to be recognized based on a CT value corresponding to each voxel included in the CT image to be recognized, the image histogram being used to represent the number of voxels corresponding to each CT value related to the CT image to be recognized; determining at least one statistical data of the CT image to be recognized based on the image histogram, the statistical data including a CT value corresponding to a specified voxel included in the CT image to be recognized and a ratio of a number of voxels whose CT values are within a specified range to a total number of all voxels; inputting the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, and inputting the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation; obtaining a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation.
1. An image recognition method comprising:
2. The step of acquiring a CT image to be recognized by a user includes: acquiring an original computed tomography (CT) image of a user; Segmenting the original CT image to obtain a CT image corresponding to a specific part of the user's body; resampling the CT image corresponding to a specific part of the user's body to obtain a CT image to be recognized; 2. The method of claim 1 .
3. inputting the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, normalizing at least a portion of the statistical data to obtain processed statistical data; and inputting the processed statistical data into a first feature extraction layer of the pre-trained recognition model to obtain the first feature representation.
2. The method of claim 1 .
4. The step of inputting the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation includes: normalizing a CT value corresponding to each voxel included in the CT image to be recognized to obtain a processed CT image to be recognized; and inputting the processed CT image to be recognized into a second feature extraction layer of the pre-trained recognition model to obtain the second feature representation.
2. The method of claim 1 .
5. The step of obtaining a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation includes: fusing the first feature representation and the second feature representation to obtain a fused feature representation; and obtaining a recognition result of the CT image to be recognized based on the fusion feature representation.
2. The method of claim 1 .
6. training the recognition model; A step of acquiring a CT image to be recognized for each sample user, the sample users including patients having a lesion in at least a part of a specific body part and non-patients having no lesion in at least a part of a specific body part; A step of setting CT images to be recognized of at least some sample users as a training set and CT images to be recognized of other sample users as a test set; Initially training the recognition model using CT images to be recognized in the training set to obtain an initially trained recognition model; For each CT image to be recognized in the test set, input the CT image to be recognized into the initially trained recognition model to obtain a recognition result of the CT image to be recognized by the initially trained recognition model; training the recognition model with the optimization goal of minimizing a difference between a recognition result of the CT image to be recognized obtained by the initially trained recognition model and an actual recognition result of the CT image to be recognized; 2. The method of claim 1 .
7. an acquisition module for acquiring a computed tomography (CT) image of a user to be recognized; A determination module for determining an image histogram corresponding to the CT image to be recognized based on a CT value corresponding to each voxel included in the CT image to be recognized, the image histogram being used to represent the number of voxels corresponding to each CT value related to the CT image to be recognized; a statistical module for determining at least one statistical data of the CT image to be recognized based on the image histogram, the statistical data including a CT value corresponding to a designated voxel included in the CT image to be recognized and a ratio of a number of voxels whose CT values are within a designated range to a total number of all voxels; a feature extraction module for inputting the statistical data into a first feature extraction layer of a pre-trained recognition model to obtain a first feature representation, and inputting the CT image to be recognized into a second feature extraction layer of the recognition model to obtain a second feature representation; a recognition module for obtaining a recognition result of the CT image to be recognized based on the first feature representation and the second feature representation.
1. An image recognition device comprising:
8. A computer-readable storage medium storing a computer program, the computer program being executed by a processor to perform the method according to any one of claims 1 to 6. A computer-readable storage medium comprising:
9. An electronic device comprising a memory, a processor and a computer program stored in said memory and executable on said processor, the electronic device performing the method according to any one of claims 1 to 6 when the processor executes the computer program.
1. An electronic device comprising:
