A risk-assisted assessment method for respiratory infectious diseases

By introducing local salient indicators and morphological feature analysis into the image matching algorithm, the problem of low matching accuracy caused by differences in morphological features of respiratory infectious disease lesions is solved, and the accuracy of image matching and the credibility of risk assessment are improved.

CN118334017BActive Publication Date: 2024-09-10中国人民解放军总医院第八医学中心
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410749263.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-09-10
Estimated Expiration
2044-06-12

AI Technical Summary

Technical Problem

Existing image matching algorithms fail to effectively consider the differences in morphological characteristics of the lesion area when judging respiratory infectious diseases, resulting in low matching accuracy or failure to match, affecting the diagnostic results.

Method used

By obtaining local significant indicators of key points of the lesion area in the lung X-ray image, combined with the location distribution and area difference, the overall difference index is calculated to improve the matching accuracy, and the scale-invariant feature transformation algorithm and grayscale chaos analysis are used to enhance Morphological feature matching of lesion areas.

Benefits of technology

It improves the accuracy of image matching and the credibility of the risk assessment of respiratory infectious diseases in patients to be tested, enhances the ability to identify morphological features of the lesion area, and avoids matching errors caused by morphological differences.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334017B
    Figure CN118334017B
Patent Text Reader

Abstract

The present invention relates to the field of medical image analysis technology, and specifically to a risk-assisted assessment method for respiratory infectious diseases. The method obtains local significant indicators based on the grayscale difference and grayscale confusion degree of the area surrounding the key point in the lesion area, matches the local significant indicator difference, position distribution difference and area difference of the key point in each lesion area in the lung X-ray image and each lesion area in the lesion set of each candidate disease, and obtains the overall difference index of the two lesion areas; based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each candidate disease, the risk value of the patient suffering from each candidate disease is obtained. The position distribution of the key points in the lesion area of ​​the present invention, the surrounding grayscale significance and the area comprehensively present the morphological characteristics of the lesion area, and image matching is performed through the morphological feature differences of the lesion area to improve the accuracy of image matching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of medical image analysis, and in particular to a risk-assisted assessment method for respiratory infectious diseases. Background Art

[0002] Respiratory infectious diseases can cause lung infections. Doctors judge the patient's infection symptoms based on the patient's lung X-ray images. Usually, an image matching algorithm is used to match the patient's lung X-ray images with images in the disease database to determine the similarity between the images and obtain the patient's risk of contracting a certain respiratory infectious disease.

[0003] Since the morphological characteristics of the lesion areas of some respiratory diseases at different stages of the disease are different, existing image matching algorithms usually use common features such as grayscale values ​​and gradient values ​​for image matching, without considering the morphological characteristics of the lesion areas. This can easily lead to a low degree of matching or even no matching due to the contour morphological changes of the lesion areas, affecting the accuracy of image matching. Summary of the invention

[0004] In order to solve the technical problem that the morphological characteristics of the lesion areas of respiratory diseases at different stages of illness are different and the accuracy of image matching is reduced, the purpose of the present invention is to provide a risk auxiliary assessment method for respiratory infectious diseases. The technical solution adopted is as follows:

[0005] The present invention proposes a risk auxiliary assessment method for respiratory infectious diseases, which includes:

[0006] In a first aspect, an embodiment of the present invention provides a risk auxiliary assessment method for respiratory infectious diseases, the method comprising:

[0007] Obtaining a lung X-ray image of a patient to be tested and a lesion area in a sample image in an image set of different diseases to be selected, and determining key points in the lesion area; forming a lesion set for each disease to be selected from the lesion areas in all sample images in the image set of each disease to be selected;

[0008] According to the grayscale difference between each key point in each lesion area and the pixel points in its preset window, and the grayscale disorder degree in the preset window, a local saliency index of each key point in each lesion area is obtained;

[0009] According to the difference of the local significant index of the key points in each lesion area in the lung X-ray image and each lesion area in the lesion set of each candidate disease, the difference of the position distribution and the difference of the area, each lesion area in the lung X-ray image is matched with each lesion area in the lesion set of each candidate disease to obtain the overall difference index between the corresponding two lesion areas;

[0010] Based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each candidate disease, the risk value of the patient to be tested suffering from each candidate disease is obtained.

[0011] Furthermore, the method for obtaining the local saliency index of each key point in each lesion area includes:

[0012] According to the difference in grayscale value between each key point in each lesion area and the pixel points in its preset window, the grayscale difference index of the corresponding key point is obtained; according to the degree of disorder of the grayscale value of the pixel points in the preset window of each key point in each lesion area, the grayscale disorder index of the corresponding pixel point is obtained;

[0013] According to the grayscale difference index and the grayscale chaos index, a local significant index of each key point in each lesion area is obtained; the grayscale difference index and the local significant index are positively correlated; the grayscale chaos index and the local significant index are negatively correlated.

[0014] Furthermore, the method for obtaining the overall difference index between each lesion area in the lung X-ray image and each lesion area in the lesion set of each selected disease includes:

[0015] Obtain the centroid of each lesion area; select any lesion area from the lung X-ray image as the test area, and select any lesion area in the disease set of a selected disease as the sample area; map the sample area to the lung X-ray image to obtain a mapping area of ​​the sample area; the test area and the mapping area have the same centroid position;

[0016] respectively obtaining the minimum circumscribed circle of the area to be tested and the mapping area; recording the difference in the total number of pixels within the minimum circumscribed circle of the area to be tested and the mapping area as a first area index;

[0017] The mapping area is rotated around the centroid of the area to be tested by a preset angle in a preset direction each time, and a rotation area of ​​the mapping area under each rotation is obtained; according to the difference and position distribution difference between the rotation area of ​​the mapping area corresponding to the sample area under each rotation and the key points of the area to be tested, a final position difference index between the area to be tested and the sample area is obtained;

[0018] The final position difference index and the first area index are combined to obtain an overall difference index between the area to be tested and the sample area; the final position difference index and the first area index are both positively correlated with the overall difference index.

[0019] Furthermore, the method for obtaining the final position difference index between the area to be tested and the sample area according to the difference in the local saliency index and the position distribution difference between the key points of the rotation area and the area to be tested of the mapping area corresponding to the sample area under each rotation includes:

[0020] Respectively obtain the minimum bounding rectangle of the rotation area of ​​the mapping area corresponding to the test area and the sample area under each rotation; take the rotation area of ​​the mapping area under any rotation as the target area; take the total number of pixel points in the remaining area of ​​the minimum bounding rectangle of the test area and the target area except the overlapping part as the area rotation index of the test area and the target area;

[0021] Obtain the position vector of each key point in the target area; wherein the direction from the centroid of the target area to each key point is taken as the direction of the position vector of the corresponding key point, and the distance between the centroid of the target area and each key point is taken as the size of the position vector of the corresponding key point; obtain the position vector of each key point in the target area;

[0022] The modulus length of the difference between the position vectors of each key point in the test area and each key point in the target area is recorded as the position judgment index corresponding to the two key points; the key point in the target area corresponding to the minimum value of the position judgment index between each key point in the test area and all the key points in the target area is selected as the matching point of each key point in the test area in the target area;

[0023] The initial position difference index between the area to be tested and the target area is obtained by combining the position vector of each key point in the area to be tested and the matching point of the key point in the target area, the difference of the local saliency index and the area rotation index; the minimum value of the initial position difference index between the rotation areas of the mapping areas of the area to be tested and the sample area under all rotations is taken as the final position difference index between the area to be tested and the sample area.

[0024] Furthermore, the method for obtaining an initial position difference index between the area to be measured and the target area includes:

[0025] For each key point in the test area and the sample area, the product of the local saliency index of the key point and the position vector is used as the position local vector of the key point; the sum of the modulus lengths of the differences between the position local vectors of all key points in the test area and the matching points of the key points in the target area is used as the local position difference index between the test area and the target area;

[0026] The arithmetic square root of the sum of the squares of the area rotation index and the local position difference index is normalized to obtain an initial position difference index between the area to be measured and the target area.

[0027] Furthermore, the method of matching the lesion area in the lung X-ray image with the lesion area in the lesion set of each candidate disease based on the overall difference index to obtain the risk value of the patient to be tested suffering from each candidate disease includes:

[0028] Obtaining the mean of the overall difference index between each lesion area in the lung X-ray image and all lesion areas in the lesion set of each candidate disease as the disease index of each lesion area in the lung X-ray image under each candidate disease;

[0029] The mean values ​​of the disease indicators of all lesion areas in the lung X-ray image under each candidate disease are calculated and normalized to obtain the risk value of the patient suffering from each candidate disease.

[0030] Furthermore, the method for acquiring the key points in the lesion area is a scale-invariant feature transformation algorithm.

[0031] Furthermore, the method for obtaining the position vector of each key point in the target area includes:

[0032] The position vector of each key point in the target area is obtained; wherein the direction in which the center of mass of the target area points to each key point is used as the direction of the position vector of the corresponding key point, and the distance between the center of mass of the target area and each key point is used as the size of the position vector of the corresponding key point.

[0033] Furthermore, the preset window is a size of .

[0034] Furthermore, the preset angle is 30 degrees.

[0035] In a second aspect, an embodiment of the present invention further provides a risk auxiliary assessment system for respiratory infectious diseases, the system comprising:

[0036] A data acquisition module is used to obtain the lung X-ray image of the patient to be tested and the lesion area in the sample image in the image set of different diseases to be selected, and determine the key points in the lesion area; the lesion area in all the sample images in the image set of each disease to be selected constitutes a lesion set of each disease to be selected;

[0037] A local saliency acquisition module, used to acquire a local saliency index of each key point in each lesion area according to the grayscale difference between each key point in each lesion area and the pixel points in its preset window, and the grayscale disorder degree in the preset window;

[0038] An overall difference acquisition module is used to match each lesion area in the lung X-ray image with each lesion area in the lesion set of each selected disease according to the difference of the local significant index of the key points in each lesion area in the lung X-ray image and each lesion area in the lesion set of each selected disease, the difference in position distribution and the difference in area, and obtain the overall difference index between the corresponding two lesion areas;

[0039] The disease risk determination module is used to obtain the risk value of the patient suffering from each candidate disease based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each candidate disease.

[0040] The present invention has the following beneficial effects:

[0041] In the embodiment of the present invention, the lesion area of ​​a respiratory infectious disease is locally manifested as a large grayscale difference between the lesion position and the surrounding area. The grayscale difference between the key point in the analysis area and the pixel points in the preset window thereof presents the grayscale difference between the key point and the surrounding area. The grayscale disorder degree in the preset window of the key point reflects the accuracy of the grayscale difference between the key point and the surrounding area. The above two factors are analyzed comprehensively so that the local significant index of the key point more accurately presents the grayscale value significance of the key point. Although there are differences in the contour morphology of the lesion area of ​​respiratory diseases at different stages of illness, the area of ​​the lesion area is roughly similar. The position distribution of the key points in the lesion area presents the spatial information of the key points, and the local significant index of the key points comprehensively represents the overall morphological characteristics of the lesion area. By analyzing the difference in the local significant index, the position distribution difference and the area difference of the key points in each lesion area of ​​the lung X-ray image and the sample area in the image set of each candidate disease, the overall difference index of the two lesion areas obtained can measure the overall morphological feature difference of the two lesion areas, avoiding the situation where the lesion areas with the same characteristics have a low matching degree or cannot be matched due to certain differences in the morphology of the lesion areas, improving the accuracy of image matching, and increasing the credibility of the risk value of the patient to be tested suffering from each candidate disease. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0043] Figure 1 A method flow chart of a risk-assisted assessment method for respiratory infectious diseases provided by one embodiment of the present invention;

[0044] Figure 2 A method flow chart of a method for obtaining an overall difference index between each lesion area in a lung X-ray image and each lesion area in a lesion set of each candidate disease provided by one embodiment of the present invention;

[0045] Figure 3 A method flow chart of a method for obtaining a final position difference index between a test area and a sample area provided by an embodiment of the present invention;

[0046] Figure 4 A structural block diagram of a risk auxiliary assessment system for respiratory infectious diseases provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the risk auxiliary assessment method for respiratory infectious diseases proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0048] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0049] The specific scheme of the risk auxiliary assessment method for respiratory infectious diseases provided by the present invention is described in detail below with reference to the accompanying drawings.

[0050] See also Figure 1 , which shows a method flow chart of a risk auxiliary assessment method for respiratory infectious diseases provided by an embodiment of the present invention, the method comprising:

[0051] Step S1: Obtain the lung X-ray image of the patient to be tested and the lesion area in the sample image in the image set of different diseases to be selected, and determine the key points in the lesion area; the lesion area in all the sample images in the image set of each disease to be selected constitutes the lesion set of each disease to be selected.

[0052] Specifically, respiratory infectious diseases can cause lung infections. Doctors use flat-panel detectors to perform digital radiography (DR) examinations on patients to obtain lung X-ray images of patients, where the X-ray images are grayscale images. Based on the infection symptoms of the patient to be tested, doctors can determine the approximate range of diseases that the patient suffers from, that is, a variety of diseases to be selected; for example, if the infection symptom of the patient to be tested is coughing up phlegm, the doctor believes that the patient to be tested may have pneumonia, tuberculosis or respiratory infection based on medical experience, then the types of diseases to be selected include: pneumonia, tuberculosis and respiratory infection.

[0053] The doctor will upload the respiratory diseases and lung X-ray images of historical patients that were finally diagnosed to the database of the hospital system. After the doctor determines the candidate disease corresponding to the patient to be tested, the doctor selects the lung X-ray images of each candidate disease from the database of the hospital system; the lung X-ray images of each candidate disease constitute an image set of each candidate disease, and the sample images in the image set of each candidate disease are the lung X-ray images of each candidate disease.

[0054] If a patient has a respiratory disease, the patient's lung X-ray image will have diseased areas and normal areas, and the location of the diseased areas of different patients is different, resulting in a large error in matching the lung X-ray image of the patient to be tested with the sample image in the image set of each selected disease, which can easily lead to misdiagnosis of the disease. Therefore, it is necessary to prioritize the identification of the diseased area.

[0055] In the embodiment of the present invention, semantic segmentation is used to obtain the lesion area in the lung X-ray image of the patient to be tested, and the lesion area in the sample image in the image set of each selected disease. In order to match the lesion area, the key points in the lesion area of ​​the lung X-ray image and all sample images in the image set of each selected disease are obtained by the Scale Invariant Feature Transform (SIFT) algorithm. The key points are the pixels that represent the characteristics of the lesion area. Among them, the specific methods of semantic segmentation and SIFT algorithm are not introduced here, and they are both technical means well known to those skilled in the art.

[0056] In other embodiments of the present invention, a neural network may be used to obtain the lesion area, and algorithms such as the Speeded Up Robust Features (SURF) algorithm and the Features from accelerated segmenttest (FAST) corner detection algorithm may be used to obtain key points in the lesion area.

[0057] To facilitate subsequent analysis, the lesion set for each candidate disease is formed by the lesion areas in all sample images in the image set for each candidate disease.

[0058] Step S2: According to the grayscale difference between each key point in each lesion area and the pixel points in its preset window, and the grayscale disorder degree in the preset window, the local saliency index of each key point in each lesion area is obtained.

[0059] Specifically, different patients suffer from respiratory diseases at different times, and the characteristic manifestations of some respiratory diseases at different stages of the illness vary greatly, resulting in the inability to correspond to the key points in the different lesion areas corresponding to each disease, reducing the similarity between different lesion areas and affecting the accuracy of matching.

[0060] The lesion area of ​​respiratory infectious diseases is locally manifested as a large grayscale difference between the lesion location and the surrounding area. The grayscale difference between the key point in the lesion area and the pixel points in its preset window shows the degree of grayscale difference between the key point and the surrounding area, and then reflects the possibility that the key point is located at the lesion location; the degree of grayscale confusion in the preset window of the key point reflects the accuracy of the grayscale difference between the key point and the surrounding area. The above two factors are analyzed comprehensively to make the local significance index of the key point more accurately present the significance of the grayscale value of the key point.

[0061] Step S210: obtaining a grayscale difference index of the corresponding key point according to the grayscale value difference between each key point in each lesion area and the pixel points in its preset window.

[0062] The difference between the grayscale values ​​of the key point and the pixels in its preset window shows the significance of the grayscale value of the key point relative to the surrounding area. The greater the difference between the grayscale values ​​of the key point and the pixels in its preset window, the more obvious the grayscale value of the key point is in the surrounding area of ​​the key point, and the more significant the grayscale value of the key point is. It should be noted that the preset window in this embodiment is an empirical value of size. The key point is located at the center of its preset window, and the implementer can set it according to the specific situation.

[0063] The embodiment of the present invention calculates the mean of the grayscale value differences between each key point in each lesion area and the remaining pixel points in its preset window except the key point, and uses the absolute value of the mean as the grayscale difference index of the corresponding key point.

[0064] In another embodiment of the present invention, the mean grayscale value of the pixel points within a preset window of each key point in each lesion area is calculated and recorded as the grayscale comprehensive value of the corresponding key point; the absolute value of the difference between the grayscale value of each key point in each lesion area and the grayscale comprehensive value is used as the grayscale difference index of the corresponding key point.

[0065] Step S220: obtaining a grayscale disorder index of a corresponding pixel point according to the disorder degree of the grayscale value of the pixel point within the preset window of each key point in each lesion area.

[0066] Compared with the case where the grayscale disorder degree in the preset window is greater, the accuracy of the case where the grayscale of the pixel point is more uniform in the preset window relative to the grayscale significance in the preset window is higher. The embodiment of the present invention obtains the information entropy of the grayscale value of the pixel point in the preset window of each key point in each lesion area as the grayscale disorder index of each key point in the corresponding lesion area. Among them, the calculation method of the information entropy is a well-known technology for those skilled in the art and will not be repeated here.

[0067] Other embodiments of the present invention may also use the standard deviation, variance or coefficient of variation of the grayscale values ​​of the pixels within a preset window of each key point in the lesion area as the grayscale chaos index of the corresponding key point.

[0068] Step S230: According to the grayscale difference index and the grayscale chaos index, a local significant index of each key point in each lesion area is obtained; the grayscale difference index and the local significant index are positively correlated; the grayscale chaos index and the local significant index are negatively correlated.

[0069] The specific example of the calculation formula of the local saliency index of the kth key point in each lesion area is as follows:

[0070] ;

[0071] In the formula, For each lesion area Local saliency indicators of key points; For each lesion area Grayscale chaos index of key points; is the total number of pixels within the preset window of each key point in each lesion area; For each lesion area Gray value of key points; For each lesion area The remaining key points in the preset window except this key point The gray value of each pixel; For each lesion area Grayscale difference index of key points; It is a preset positive number with an empirical value of 0.1. It is used to prevent the denominator from being 0, which makes the fraction meaningless. is the absolute value function; is the normalization function.

[0072] It should be noted that Reflects the lesion area The grayscale difference between a key point and the pixel points in its preset window; The larger the The more obviously the gray value of a key point is greater or less than the gray value of the other pixels in the preset window of the key point, the The more significant the gray value of the key point is, the more significant the local saliency index is. The bigger. The lesion area The grayscale chaos degree in the preset window of the key point; compared with the situation where the grayscale chaos degree in the preset window is large, The accuracy is higher when the grayscale is more uniform in the preset window of the key point. and The product of is realized by using Adjustment accuracy; when The larger the size, the The more chaotic the grayscale distribution in the preset window of the key point is, The lower the accuracy, the The significance of the gray value of each key point should be reduced so that the local significant index The smaller.

[0073] In another embodiment of the present invention, it is possible to use Function to implement grayscale confusion index Negative correlation mapping is performed and the product and sum of the above mapping result and the grayscale difference index are normalized to obtain the local significant index, so that the grayscale difference index is positively correlated with the local significant index, and the grayscale chaos index is negatively correlated with the local significant index. In other embodiments of the present invention, other basic mathematical operations can be selected to form positive correlation and negative correlation, which are not limited here.

[0074] In the embodiment of the present invention, a normalization function is used to Normalization is performed. In the embodiment of the present invention, other normalization methods may also be selected, such as function conversion, maximum and minimum normalization, Normalization methods such as functions are not limited here.

[0075] Step S3: Based on the differences in local significant indicators, position distribution differences and area differences of key points in each lesion area in the lung X-ray image and each lesion area in the lesion set of each candidate disease, each lesion area in the lung X-ray image is matched with each lesion area in the lesion set of each candidate disease to obtain the overall difference index between the corresponding two lesion areas.

[0076] Specifically, since the lesion area itself is irregular and there are certain differences in the contour morphology of the lesion area at different stages of the same respiratory disease, the method of using common grayscale values ​​or gradient values ​​to measure the similarity between key points in the key point matching process using the SIFT algorithm cannot accurately represent the similar features of the lesion position in the lesion area. It is easy for key points with the same features to be unable to match due to the transformation of the contour morphology of the lesion area, thereby reducing the accuracy of key point matching.

[0077] The areas of lesion regions of the same disease are relatively close. The local significance index shows the significance of the grayscale value of the key points in the lesion region compared with the surrounding area. The position distribution, grayscale significance and area of ​​the key points in the lesion region jointly determine the overall morphological characteristics of the lesion region. According to the difference in the overall morphological characteristics of each lesion region in the lung X-ray image and each lesion region in the lesion set of each candidate disease, the overall difference index of the two lesion regions is obtained, reflecting the overall matching degree of the two lesion regions.

[0078] See also Figure 2 , which shows a method flow chart of a method for obtaining an overall difference index between each lesion area in a lung X-ray image and each lesion area in a lesion set of each candidate disease provided by an embodiment of the present invention, the method comprising:

[0079] Step 310: Obtain the centroid of each lesion area; select any lesion area from the lung X-ray image as the test area, and select any lesion area in the disease set of a selected disease as the sample area; map the sample area to the lung X-ray image to obtain the mapping area of ​​the sample area; the centroid position of the test area is the same as that of the mapping area.

[0080] As an example, suppose the lesion area in the lung X-ray image The pixel coordinates of the centroid are , the lesion area in the sample image The pixel coordinates of the centroid are , and the lesion area The pixel coordinates of the key point D in , then the lesion area of ​​the sample image The pixel coordinates of the key point D mapped to the pixel point in the lung X-ray image are .

[0081] Step 320: respectively obtain the minimum circumscribed circles of the area to be tested and the mapping area; and record the difference in the total number of pixels within the minimum circumscribed circles of the area to be tested and the mapping area as the first area index.

[0082] Because the lesion areas of some respiratory diseases are irregular, directly using the area of ​​the lesion area for analysis will ignore the morphological characteristics of the lesion area; and there are two lesion areas that have large morphological differences when viewed directly, but when a lesion area is rotated a certain angle, it will be found that the morphology of the two lesion areas is relatively close. Therefore, the embodiment of the present invention regards the number of pixels within the minimum circumscribed circle of the lesion area as the area of ​​the lesion area. It should be noted that for the area to be tested and the mapping area, when obtaining the minimum circumscribed circle of each area, the center of mass of the corresponding area needs to be used as the center of the circle.

[0083] The first area index of the mapping area between the test area and the sample area reflects both the area difference and the morphological feature difference of the two lesion areas; when the first area index is smaller, the area of ​​the test area and the sample area is closer and the overall morphology is more similar.

[0084] Step 330: Rotate the mapping area around the centroid of the area to be tested by a preset angle in a preset direction each time to obtain the rotation area of ​​the mapping area under each rotation; obtain the final position difference index between the area to be tested and the sample area based on the difference in local saliency indicators and position distribution differences between the rotation area of ​​the mapping area corresponding to the sample area under each rotation and the key points of the area to be tested.

[0085] It should be noted that the number of times the mapping area of ​​the sample area needs to be rotated is , the mapping area can be obtained Rotation area. Among them, is the preset angle, is a floor function. The mapping area itself is equivalent to a rotation The mapping area itself is used as the rotation area of ​​the mapping area under the first rotation, and 1 needs to be subtracted when obtaining the number of rotations. In the embodiment of the present invention, the preset direction is clockwise. The preset angle is 30 degrees, and implementers can set it according to specific circumstances.

[0086] In the process of mapping the sample area to the lung X-ray image, the sample area is not rotated; there are two lesion areas with large morphological differences when viewed directly, but when one lesion area is rotated by a certain angle, it is found that the morphologies of the two lesion areas are relatively close. Therefore, it is necessary to rotate the mapping area around the centroid of the area to be tested, and by comparing the position distribution differences of the key points in the rotated area and the area to be tested under each rotation and the differences in the local significance index, the degree of difference in the morphological characteristics of the two lesion areas, that is, the final position difference index, is determined.

[0087] See also Figure 3 , which shows a method flow chart of a method for obtaining a final position difference index between a test area and a sample area provided by an embodiment of the present invention, the method comprising:

[0088] Step 331: respectively obtain the minimum bounding rectangle of the rotation area of ​​the mapping area corresponding to the test area and the sample area under each rotation; use the rotation area of ​​the mapping area under any rotation as the target area; and use the total number of pixel points in the remaining area of ​​the minimum bounding rectangle of the test area and the target area, excluding the overlapping part, as the area rotation index of the test area and the target area.

[0089] Some lesion areas present linear shadows. If the analysis is performed based on the minimum circumscribed circle of the lesion area, the morphological features of the lesion area will be excessively blurred, reducing the accuracy of the position distribution difference of key points in the rotation area and the area to be measured under each rotation. The minimum circumscribed rectangle of the lesion area can present the obvious shape features of the lesion area. In the embodiment of the present invention, the minimum circumscribed rectangle of the rotation area of ​​the area to be measured and the mapping area under each rotation is obtained for analysis.

[0090] It should be noted that the area rotation index represents the degree of overlap between the minimum circumscribed rectangle of the area to be tested and the target area, that is, the degree of overlap between the two areas. When the area rotation index is smaller, the greater the overlap between the minimum circumscribed rectangle of the area to be tested and the target area, and the more similar the morphological features of the two areas are.

[0091] Step 332: Obtain the position vector of each key point in the area to be tested; wherein, the direction in which the center of mass of the area to be tested points to each key point is taken as the direction of the position vector of the corresponding key point, and the distance between the center of mass of the area to be tested and each key point is taken as the size of the position vector of the corresponding key point; obtain the position vector of each key point in the target area.

[0092] It is known that the key points in the lesion area will change according to the change of their position relative to the centroid of the lesion area. Therefore, this embodiment defines the position of the key points in the lesion area according to the positional relationship between the key points and the centroid of the lesion area, and the position vector of the key points represents the relative position of the key points in the lesion area. The position vector of each key point in the target area is obtained; wherein the direction from the centroid of the target area to each key point is taken as the direction of the position vector of the corresponding key point, and the distance between the centroid of the target area and each key point is taken as the size of the position vector of the corresponding key point.

[0093] It should be noted that, in the process of obtaining the position vector of the key point in the target area, since the target area is located in the lung X-ray image, the pixel coordinates of the key point in the target area are relative to the lung X-ray image. The pixel coordinates are well known to those skilled in the art and will not be described in detail here.

[0094] Step 333: record the modulus of the difference between the position vectors of each key point in the test area and each key point in the target area as the position judgment index corresponding to the two key points; select the key point in the target area corresponding to the minimum value of the position judgment index between each key point in the test area and all the key points in the target area as the matching point of each key point in the test area in the target area.

[0095] It should be noted that the modulus of the difference between the position vectors of each key point in the test area and each key point in the target area reflects the distance between the two key points. The smaller the position judgment index of the two key points, the closer the positions of the two key points are; the distance between each key point in the test area and the matching point in its target area is the smallest.

[0096] Step 334: Combine the position vector of each key point in the test area and the matching point of the key point in the target area, the difference in local saliency index and the area rotation index to obtain the initial position difference index between the test area and the target area; take the minimum value of the initial position difference index between the rotation areas of the mapping areas of the test area and the sample area under all rotations as the final position difference index between the test area and the sample area.

[0097] Preferably, the specific method for obtaining the initial position difference index is: for each key point in the test area and the sample area, the product of the local saliency index of the key point and the position vector is used as the position local vector of the key point; the sum of the moduli of the differences between the position local vectors of all key points in the test area and the matching points of the key points in the target area is used as the local position difference index between the test area and the target area; the arithmetic square root of the sum of the squares of the area rotation index and the local position difference index is normalized to obtain the initial position difference index between the test area and the target area.

[0098] The smaller the modulus of the difference vector between the position local vectors of the key point in the test area and its matching point in the target area, the closer the positions of the two key points are and the more similar the grayscale significance of the two key points is compared with the surrounding area; the smaller the area rotation index is, the more the minimum circumscribed rectangle of the test area and the target area overlaps, the closer the areas of the two areas are and the more similar the overall shapes are. The smaller the initial position difference index is, the greater the possibility that the test area and the target area correspond to the same disease. The initial position difference index can roughly reflect the difference in the position distribution of the key points in the test area and the target area.

[0099] The calculation formula of the initial position difference index between the area to be tested and the target area is as follows:

[0100] ;

[0101] In the formula, is the initial position difference index between the area to be tested and the target area; is the area to be tested; For the target area; is the total number of key points in the area to be tested; The first Local saliency indicators of key points; The first The position vector of the key points; The first The local saliency index of the matching points of the key points in the target area; The first The position vector of the matching point of the key point in the target area; The first The position local vector of the key points; The first The local vector of the position of the matching point of the key point in the target area; The first The modulus of the difference between the position local vector of a key point and its matching point in the target area; It is the local position difference index between the area to be tested and the target area; It is the area rotation index of the area to be tested and the target area; is the absolute value function; is the normalization function.

[0102] It should be noted that the local vector of the key point position not only reflects the relative position relationship between the key point and the centroid in the lesion area, but also shows the significance of the gray value of the key point compared with the surrounding area. The smaller the value, the The closer the position of a key point is to its matching point in the target area and the grayscale significance of the two key points and the surrounding area is similar, the initial position difference index The smaller. The smaller the value is, the more overlap there is between the minimum circumscribed rectangle of the test area and the target area, indicating that the two areas are closer in area and more similar in overall shape. When the initial position difference index The smaller it is, the greater the possibility that the tested area and the target area correspond to the same disease. The initial position difference index can roughly reflect the difference in position distribution of key points in the tested area and the target area.

[0103] According to the calculation method of the initial position difference index between the area to be tested and the target area, the initial position difference index between the rotation area of ​​the area to be tested and the mapping area of ​​the sample area under all rotations is obtained. It should be noted that in the process of calculating the initial position difference index between the area to be tested and the target area, the target area can be replaced by the rotation area of ​​the mapping area of ​​the sample area under all rotations, and other contents remain unchanged.

[0104] For the initial position difference index between the rotation areas of the mapped areas of the test area and the sample area under all rotations, the rotation area corresponding to the minimum value in the initial position difference index is closest to the position distribution of the key points in the test area and the more similar the grayscale distribution around the key points is, the smallest initial position difference index can best present the degree of difference in the overall morphological characteristics of the two areas. Then the minimum value of the initial position difference index between the rotation areas of the mapped areas of the test area and the sample area under all rotations is taken as the final position difference index between the test area and the sample area.

[0105] Step 340: combining the final position difference index and the first area index to obtain an overall difference index between the tested area and the sample area; the final position difference index and the first area index are both positively correlated with the overall difference index.

[0106] The specific example of the calculation formula of the overall difference index between the tested area and the sample area is as follows:

[0107] ;

[0108] In the formula, is the overall difference index between the tested area and the sample area, is the area to be tested; is the sample area; is a first area index between the area to be tested and the sample area; It is the final position difference indicator between the area to be tested and the sample area.

[0109] It should be noted that the size and shape of the lesion area of ​​the same disease are usually similar. The smaller the value, the closer the area of ​​the tested area is to the sample area and the more similar their overall shapes are. The smaller the difference between the area and overall shape of the two areas is, the greater the overall difference index is. The smaller the final position difference index The smaller the value, the closer the position distribution of the key points in the test area and the sample area is, the more similar the grayscale distribution around the key points is, the closer the morphological characteristics of the two areas are, and the overall difference index The smaller the overall difference index The smaller it is, the higher the degree of match between the tested area and the sample area, and the greater the possibility that the two areas are caused by the same disease.

[0110] In another embodiment of the present invention, the sum of the first area index and the final position difference index can be used as the overall difference index, so that the first area index and the final position difference index are both positively correlated with the overall difference index. In other embodiments of the present invention, other basic mathematical operations can be selected to form positive correlation and negative correlation, which is not limited here.

[0111] Obtain the final position difference index between each lesion area in the lung X-ray image and each lesion area in the lesion set of each candidate disease. The method for obtaining the final position difference index between each lesion area in the lung X-ray image and each lesion area in the lesion set of each candidate disease is the same as the method for obtaining the final position difference index between the test area and the sample area; it should be noted that in the process of calculating the final position difference index between the test area and the sample area, the sample area can be replaced by each lesion area in the lesion set of each candidate disease, and the other contents remain unchanged.

[0112] Step S4: Based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each candidate disease, the risk value of the patient to be tested suffering from each candidate disease is obtained.

[0113] The overall difference index reflects the degree of matching between the two lesion areas, thus showing the possibility that the two areas are caused by the same disease. The mean of the overall difference index between each lesion area in the lung X-ray image and all lesion areas in the lesion set of each candidate disease is obtained as the disease index of each lesion area in the lung X-ray image under each candidate disease; the mean of the disease index of all lesion areas in the lung X-ray image under each candidate disease is calculated and normalized to obtain the risk value of the patient suffering from each candidate disease.

[0114] If two patients have the same disease, the morphological contour features of the lesion areas in the lung X-ray images of the two patients are relatively similar and the grayscale distribution is relatively close. If the disease index is smaller, the overall morphological features of each lesion area in the lung X-ray image are closer to each lesion area in the lesion set of each candidate disease, the higher the matching degree of the two lesion areas, the greater the possibility that the two lesion areas are caused by the same disease, and the greater the possibility that each area in the lung X-ray image suffers from the corresponding candidate disease.

[0115] The formula for calculating the risk value of each candidate disease for the patient to be tested is as follows:

[0116] ;

[0117] In the formula, The patient to be tested has The risk value of the selected disease; is the total number of lesion areas in the lung X-ray image; For the The total number of lesion areas in the lesion set of the selected disease; is the overall difference index between the ath lesion area in the lung X-ray image and the bth lesion area in the lesion set of the cth candidate disease; is the disease index of the ath lesion area in the lung X-ray image under the cth selected disease; It is an exponential function with the natural constant e as its base.

[0118] It should be noted that when The smaller the value, the closer the overall morphological characteristics of the a-th lesion area in the lung X-ray image and the b-th lesion area in the lesion set of the c-th candidate disease are, the higher the matching degree of the two lesion areas, and the greater the possibility that the two lesion areas are caused by the same disease, indicating that the a-th area in the lung X-ray image is more likely to have the c-th candidate disease, and the risk value is The bigger.

[0119] The risk value of each selected disease for the patient to be tested is pushed to the doctor. The doctor will assist the doctor in evaluating the patient's respiratory sensory disease based on the patient's detailed infection symptoms and his or her own medical experience, combined with the risk value of each selected disease for the patient to be tested, to improve the efficiency of diagnosis and treatment.

[0120] So far, the present invention is completed.

[0121] In summary, in the embodiment of the present invention, the local significant index of the key point in the lesion area is obtained according to the grayscale difference and grayscale confusion degree between the key point in the lesion area and the pixel point in its preset window, and the overall difference index between the two lesion areas is obtained according to the local significant index difference, position distribution difference and area difference between each lesion area in the lung X-ray image and each lesion area in the lesion set of each candidate disease; the risk value of the patient suffering from each candidate disease is obtained based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each candidate set. The position distribution of the key points in the lesion area of ​​the present invention, the surrounding grayscale significance and the area comprehensively present the morphological characteristics of the lesion area, and image matching is performed through the morphological characteristic differences of the lesion area to improve the accuracy of image matching.

[0122] The embodiment of the present invention provides a risk auxiliary assessment system for respiratory infectious diseases. The structural block diagram of the system is as follows: Figure 4 As shown, the system includes:

[0123] The data acquisition module is used to obtain the lung X-ray image of the patient to be tested and the lesion area in the sample image in the image set of different diseases to be selected, and determine the key points in the lesion area; the lesion area in all the sample images in the image set of each disease to be selected constitutes the lesion set of each disease to be selected;

[0124] A local saliency acquisition module is used to obtain a local saliency index of each key point in each lesion area based on the grayscale difference between each key point in each lesion area and the pixel points in its preset window, as well as the grayscale disorder degree in the preset window;

[0125] An overall difference acquisition module is used to match each lesion area in the lung X-ray image with each lesion area in the lesion set of each selected disease according to the difference of the local significant index of the key points in each lesion area in the lung X-ray image and each lesion area in the lesion set of each selected disease, the difference in position distribution and the difference in area, and obtain the overall difference index between the corresponding two lesion areas;

[0126] The disease risk determination module is used to obtain the risk value of the patient to be tested suffering from each candidate disease based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each candidate disease.

[0127] Based on the same inventive concept as the above method embodiment, the embodiment of the present invention further provides a risk auxiliary assessment system for respiratory infectious diseases, the system comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the steps in the above risk auxiliary assessment method embodiment for respiratory infectious diseases are implemented, such as Figure 1 The risk auxiliary assessment method for respiratory infectious diseases has been described in detail in the above embodiments and will not be repeated here.

[0128] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0129] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.

Claims

1. A risk-assisted assessment method for respiratory infectious diseases. It is characterized in that The method includes: Obtaining a lung X-ray image of a patient to be tested and a lesion area in a sample image in an image set of different diseases to be selected, and determining key points in the lesion area; forming a lesion set for each disease to be selected from the lesion areas in all sample images in the image set of each disease to be selected; According to the grayscale difference between each key point in each lesion area and the pixel points in its preset window, and the grayscale disorder degree in the preset window, a local saliency index of each key point in each lesion area is obtained; According to the difference of the local significant index of the key points in each lesion area in the lung X-ray image and each lesion area in the lesion set of each candidate disease, the difference of the position distribution and the difference of the area, each lesion area in the lung X-ray image is matched with each lesion area in the lesion set of each candidate disease to obtain the overall difference index between the corresponding two lesion areas; Based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each disease to be selected, obtaining the risk value of the patient to be tested suffering from each disease to be selected; The method for obtaining the local saliency index of each key point in each lesion area comprises: According to the gray value difference between each key point in each lesion area and the pixel points in its preset window, a gray value difference index of the corresponding key point is obtained; According to the disorder degree of the grayscale value of the pixel point in the preset window of each key point in each lesion area, a grayscale disorder index of the corresponding pixel point is obtained; According to the grayscale difference index and the grayscale chaos index, a local significant index of each key point in each lesion area is obtained; the grayscale difference index and the local significant index are positively correlated; the grayscale chaos index and the local significant index are negatively correlated; The method of matching each lesion area in the lung X-ray image with each lesion area in the lesion set of each selected disease based on the difference of the local significant index of the key points in each lesion area in the lung X-ray image and each lesion area in the lesion set of each selected disease, and obtaining the overall difference index between the corresponding two lesion areas includes: Obtain the centroid of each lesion area; select any lesion area from the lung X-ray image as the test area, and select any lesion area in the disease set of a selected disease as the sample area; map the sample area to the lung X-ray image to obtain a mapping area of ​​the sample area; the test area and the mapping area have the same centroid position; respectively obtaining the minimum circumscribed circle of the area to be tested and the mapping area; recording the difference in the total number of pixels within the minimum circumscribed circle of the area to be tested and the mapping area as a first area index; The mapping area is rotated around the centroid of the area to be tested by a preset angle in a preset direction each time, and a rotation area of ​​the mapping area under each rotation is obtained; according to the difference and position distribution difference between the rotation area of ​​the mapping area corresponding to the sample area under each rotation and the key points of the area to be tested, a final position difference index between the area to be tested and the sample area is obtained; Combining the final position difference index with the first area index, obtaining an overall difference index between the area to be tested and the sample area; the final position difference index and the first area index are both positively correlated with the overall difference index; The method for obtaining the final position difference index between the area to be tested and the sample area according to the difference in the local saliency index and the position distribution difference between the key points of the rotation area and the area to be tested of the mapping area corresponding to the sample area under each rotation includes: Respectively obtain the minimum bounding rectangle of the rotation area of ​​the mapping area corresponding to the test area and the sample area under each rotation; take the rotation area of ​​the mapping area under any rotation as the target area; take the total number of pixel points in the remaining area of ​​the minimum bounding rectangle of the test area and the target area except the overlapping part as the area rotation index of the test area and the target area; Obtain the position vector of each key point in the target area; wherein the direction from the centroid of the target area to each key point is taken as the direction of the position vector of the corresponding key point, and the distance between the centroid of the target area and each key point is taken as the size of the position vector of the corresponding key point; obtain the position vector of each key point in the target area; The modulus length of the difference between the position vectors of each key point in the test area and each key point in the target area is recorded as the position judgment index corresponding to the two key points; the key point in the target area corresponding to the minimum value of the position judgment index between each key point in the test area and all the key points in the target area is selected as the matching point of each key point in the test area in the target area; Combining the position vector of each key point in the test area and the matching point of the key point in the target area, the difference of the local saliency index and the area rotation index, an initial position difference index between the test area and the target area is obtained; the minimum value of the initial position difference index between the rotation areas of the mapping areas of the test area and the sample area under all rotations is used as the final position difference index between the test area and the sample area; The method for obtaining an initial position difference index between the area to be tested and the target area includes: For each key point in the test area and the sample area, the product of the local saliency index of the key point and the position vector is used as the position local vector of the key point; the sum of the modulus lengths of the differences between the position local vectors of all key points in the test area and the matching points of the key points in the target area is used as the local position difference index between the test area and the target area; The arithmetic square root of the sum of the squares of the area rotation index and the local position difference index is normalized to obtain an initial position difference index between the area to be measured and the target area.

2. According to claim 1, a risk-assisted assessment method for respiratory infectious diseases, It is characterized in that The method for obtaining the risk value of each candidate disease in the patient to be tested based on the overall difference index between the lesion area in the lung X-ray image and the lesion area in the lesion set of each candidate disease, comprises: Obtaining the mean of the overall difference index between each lesion area in the lung X-ray image and all lesion areas in the lesion set of each candidate disease as the disease index of each lesion area in the lung X-ray image under each candidate disease; The mean values ​​of the disease indicators of all lesion areas in the lung X-ray image under each candidate disease are calculated and normalized to obtain the risk value of the patient suffering from each candidate disease.

3. According to claim 1, a risk-assisted assessment method for respiratory infectious diseases, It is characterized in that The method for acquiring the key points in the lesion area is a scale-invariant feature transformation algorithm.

4. The risk-assisted assessment method for respiratory infectious diseases according to claim 1, It is characterized in that The method for obtaining the position vector of each key point in the target area includes: The position vector of each key point in the target area is obtained; wherein the direction in which the center of mass of the target area points to each key point is used as the direction of the position vector of the corresponding key point, and the distance between the center of mass of the target area and each key point is used as the size of the position vector of the corresponding key point.

5. The risk-assisted assessment method for respiratory infectious diseases according to claim 1, It is characterized in that The preset window is of size .

6. The risk-assisted assessment method for respiratory infectious diseases according to claim 1, It is characterized in that The preset angle is 30 degrees.