Computer aided method and electrical device for analyzing fibrosis
11508060 · 2022-11-22
Assignee
Inventors
- Pau-Choo Chung Chan (Tainan, TW)
- Nan-Haw Chow (Tainan, TW)
- Hung-Wen Tsai (Tainan, TW)
- Kuo-Sheng Cheng (Tainan, TW)
- Chun-Cheng Huang (New Taipei, TW)
Cpc classification
G06V10/255
PHYSICS
G06V10/454
PHYSICS
G06F18/254
PHYSICS
G16H50/20
PHYSICS
G16H50/30
PHYSICS
International classification
G16H50/30
PHYSICS
G16H50/20
PHYSICS
Abstract
A computer aided method for analyzing fibrosis is provided. First, a segmentation algorithm is performed on a medical image to obtain a segmentation image. Circular fibrosis is detected according to the segmentation image to determine a score. In some cases, it is also necessary to determine a number of fibrosis bridges and the condition of fiber expansion.
Claims
1. An electrical device, comprising: a memory, configured to store a plurality of instructions; and a processor, configured to execute the instructions to perform a plurality of steps: obtaining a medical image, and performing a segmentation algorithm to the medical image to obtain a segmentation image having at least one fibrosis portion and at least one cell portion; detecting circular fibrosis according to the segmentation image; detecting a plurality of portal areas and a plurality of central veins in the medical image; taking the portal areas and the central veins as a plurality of nodes; performing a triangulation algorithm to the nodes to determine adjacent nodes of each of the nodes; and for each of the nodes, determining if the node is connected to the corresponding adjacent nodes through the at least one fibrosis portion in the segmentation image so as to calculate a number of the fibrosis bridges; and determining a score according to a size of the circular fibrosis and the number of the fibrosis bridges.
2. The electrical device of claim 1, wherein the step of detecting the circular fibrosis according to the segmentation image comprises: excluding the at least one fibrosis portion, and performing at least one erosion procedure to the at least one cell portion to obtain at least one enclosed portion; calculating a roundness of the at least one enclosed portion; and determining that the at least one enclosed portion is the circular fibrosis if the roundness of the at least one enclosed portion is greater than a first threshold.
3. The electrical device of claim 2, wherein the roundness is calculated according to a following equation (1):
f.sub.circ=4πA/p2 (1) wherein f.sub.circ is the roundness, A is an area of the at least one enclosed portion, and P is a perimeter of the at least one enclosed portion.
4. The electrical device of claim 1, wherein the step of determining the score according to the size of the circular fibrosis and the number of the fibrosis bridges comprises: dividing a total area of the circular fibrosis by a total area of the at least one cell portion to obtain a first ratio; and determining that the score is a first score if the first ratio is greater than or equal to a second threshold, otherwise determining that the score is a second score, wherein the first score is greater than the second score.
5. The electrical device of claim 1, wherein the step of determining the score according to the size of the circular fibrosis and the number of the fibrosis bridges comprises: determining if a second ratio of the number of the fibrosis bridges to an edge number is greater than a third threshold; and determining that the score is a third score if the second ratio is greater than the third threshold, otherwise determining that the score is a fourth score, wherein the third score is greater than the fourth score, the edge number is (3n−3−k) n is a number of the nodes, and k is a number of the nodes on a convex hull formed by the nodes.
6. The electrical device of claim 1, wherein the steps further comprise: for each of the portal areas, determining if a third ratio of an area of the at least one fibrosis portion in the portal area to an area of the portal area is greater than a fourth threshold, and determining that the portal area is a portal expansion if the third ratio is greater than the fourth threshold; and determining that the score is a fifth score, a sixth score, or a seventh score according to a number of the portal expansions.
7. The electrical device of claim 6, wherein the steps further comprise: determining that the score is the fifth score if a fourth ratio of the number of the portal expansions to a number of the portal areas is greater than a fifth threshold; determining that the score is the sixth score if the fourth ratio is less than or equal to the fifth threshold and greater than zero; and determining that the score is the seventh score if the number of the portal expansions is equal to zero, wherein the fifth score is greater than the sixth score which is greater than the seventh score.
8. A computer aided fibrosis analyzing method for an electrical device, wherein the computer aided fibrosis analyzing method comprises: obtaining a medical image, and performing a segmentation algorithm to the medical image to obtain a segmentation image having at least one fibrosis portion and at least one cell portion; detecting circular fibrosis according to the segmentation image; detecting a plurality of portal areas and a plurality of central veins in the medical image; taking the portal areas and the central veins as a plurality of nodes; performing a triangulation algorithm to the nodes to determine adjacent nodes of each of the nodes; and for each of the nodes, determining if the node is connected to the corresponding adjacent nodes through the at least one fibrosis portion in the segmentation image so as to calculate a number of the fibrosis bridges; and determining a score according to a size of the circular fibrosis and the number of the fibrosis bridges.
9. The computer aided fibrosis analyzing method of claim 8, wherein the step of detecting the circular fibrosis according to the segmentation image comprises: excluding the at least one fibrosis portion, and performing at least one erosion procedure to the at least one cell portion to obtain at least one enclosed portion; calculating a roundness of the at least one enclosed portion; and determining that the at least one enclosed portion is the circular fibrosis if the roundness of the at least one enclosed portion is greater than a first threshold.
10. The computer aided fibrosis analyzing method of claim 9, wherein the roundness is calculated according to a following equation (1):
f.sub.circ=4πA/p2 (1) wherein f.sub.circ is the roundness, A is an area of the at least one enclosed portion, and P is a perimeter of the at least one enclosed portion.
11. The computer aided fibrosis analyzing method of claim 9, wherein the step of determining the score according to the size of the circular fibrosis and the number of the fibrosis bridges comprises: dividing a total area of the circular fibrosis by a total area of the at least one cell portion to obtain a first ratio; and determining that the score is a first score if the first ratio is greater than or equal to a second threshold, otherwise determining that the score is a second score, wherein the first score is greater than the second score.
12. The computer aided fibrosis analyzing method of claim 8, wherein the step of determining the score according to a size of the circular fibrosis and the number of the fibrosis bridges comprises: determining if a second ratio of the number of the fibrosis bridges to an edge number is greater than a third threshold; and determining that the score is a third score if the second ratio is greater than the third threshold, otherwise determining that the score is a fourth score, wherein the third score is greater than the fourth score, the edge number is (3n−3−k), n is a number of the nodes, and k is a number of the nodes on a convex hull formed by the nodes.
13. The computer aided fibrosis analyzing method of claim 8, wherein the steps further comprise: for each of the portal areas, determining if a third ratio of an area of the at least one fibrosis portion in the portal area to an area of the portal area is greater than a fourth threshold, and determining that the portal area is a portal expansion if the third ratio is greater than the fourth threshold; and determining that the score is a fifth score, a sixth score, or a seventh score according to a number of the portal expansions.
14. The computer aided fibrosis analyzing method of claim 13, wherein the steps further comprise: determining that the score is the fifth score if a fourth ratio of the number of the portal expansions to a number of the portal areas is greater than a fifth threshold; determining that the score is the sixth score if the fourth ratio is less than or equal to the fifth threshold and greater than zero; and determining that the score is the seventh score if the number of the portal expansions is equal to zero, wherein the fifth score is greater than the sixth score which is greater than the seventh score.
15. An electrical device, comprising: a memory, configured to store a plurality of instructions; and a processor, configured to execute the instructions to perform a plurality of steps: obtaining a medical image, and performing a segmentation algorithm to the medical image to obtain a segmentation image having at least one fibrosis portion and at least one cell portion; detecting circular fibrosis according to the segmentation image; detecting a plurality of portal areas and a plurality of central veins in the medical image; taking the portal areas and the central veins as a plurality of nodes, and taking connection between the nodes as edges to form a graph; transforming the graph into a tree structure which indicates corresponding adjacent nodes of each of the nodes; for each of the nodes, determining if the node is connected to the corresponding adjacent nodes through the at least one fibrosis portion in the segmentation image so as to calculate a number of the fibrosis bridges, and determining a score according to a size of the circular fibrosis and the number of the fibrosis bridges.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The invention can be more fully understood by reading the following detailed description of the embodiment, with reference made to the accompanying drawings as follows.
(2)
(3)
(4)
(5)
(6)
(7)
(8)
(9)
(10)
(11)
DETAILED DESCRIPTION
(12) Specific embodiments of the present invention are further described in detail below with reference to the accompanying drawings, however, the embodiments described are not intended to limit the present invention and it is not intended for the description of operation to limit the order of implementation. Moreover, any device with equivalent functions that is produced from a structure formed by a recombination of elements shall fall within the scope of the present invention. Additionally, the drawings are only illustrative and are not drawn to actual size.
(13) The using of “first”, “second”, “third”, etc. in the specification should be understood for identifying units or data described by the same terminology, but are not referred to particular order or sequence.
(14)
(15) TABLE-US-00001 TABLE 1 Description Score No fibrosis 0 Fibrous expansion of some portal areas ± short fibrous 1 septa Fibrous expansion of most portal areas ± short fibrous 2 septa Fibrous expansion of most portal areas with occasional portal 3 to portal bridging Fibrous expansion of portal areas with marked bridging 4 (portal to portal (P-P) as well as portal to central (P-C)) Marked bridging (P-P and/or P-C) with occasional nodules 5 (incomplete cirrhosis) Cirrhosis, probable or definite 6
(16) The fibrosis score of Table 1 depends on the doctor's subjective judgement. An objective fibrosis scoring method is provided below. First, a medical image is obtained. In the example of
(17) Next, circular fibrosis is detected according to the segmentation image. The circular fibrosis means the liver cells surrounded by fibrosis, and it is also called “nodule”. Since the cell portions and the fibrosis portions have been found in the segmentation image, the cell portions are left in the circular fibrosis if the fibrosis portion is excluded. The shape of the left cell portions would be close to a circle or an oval. However, this approach only identifies the liver cells which are completely surrounded by the fibrosis. A practical approach is to identify circular fibrosis if more than a percentage (e.g. 75%) of the liver cells are surrounded. Therefore, in the embodiment, an erosion procedure of image processing is performed to the cell portions after the fibrosis portions are excluded from the segmentation image to obtain enclosed portions. If more than 75% of the liver cells are surrounded by the fibrosis in an area, then the erosion procedure will remove some protruding liver cells so that the remaining liver cells are independent (i.e. not connected to other liver cells). Referring to
(18) Next, a roundness of each enclosed portion is calculated. If the roundness is greater than a threshold, it is determined that the enclosed portion is circular fibrosis. In some embodiments, the roundness is calculated by the following equation (1).
f.sub.circ=4πA/p2 (1)
(19) f.sub.circ is the roundness. A is the area of the enclosed portion. P is the perimeter of the enclosed portion. The greater the roundness is, the more the enclosed portion is close to a circle. In the embodiment, when the long axis of the enclosed portion (i.e. the longest distance between two points in the portion) is greater than 1 cm and the roundness is greater than 0.3, then it is determined that the enclosed portion is the circular fibrosis. For example, the image 370 shows circular fibrosis 371-374 while the other enclosed portions are not circular fibrosis. In some embodiments, multiple times of erosion procedures with different kernels are performed to the cell portions 351 after the fibrosis portions 352 are excluded, and the roundness is calculated for each time the erosion procedure is performed to determine if the enclosed portion is the circular fibrosis. The union of all determination results for one enclosed portion is taken as the final output. That is, if one enclosed portion is determined to be circular fibrosis in any one of the erosion procedures, then this enclosed portion is determined to be the circular fibrosis. The erosion procedure is performed for multiple times because the enclosed portion 361-365 may not be found by performing a single erosion procedure with a small kernel while the liver cells between the enclosed portion 361-365 are not cut off.
(20) After the circular fibrosis is detected, the size of the circular fibrosis is used to determine that a score is 5 or 6. To be specific, a total area of the circular fibrosis 371-374 is divided by a total area of all cell portions 351 in the segmentation image to obtain a ratio. If the ratio is greater than or equal to a threshold, then the score is 6, otherwise the score is 5.
(21) If the medical image does not contain circular fibrosis, then the score is in the range of 0 to 4. When the fibrosis situation is serious, fibrosis bridges are generated among portal areas and central veins, resulting in that the score is 3 or 4. If there is no fibrosis bridge, the score is in the range of 0 to 2. Accordingly, the portal areas and the central veins are detected in the medical image 210. For example, the detected portal areas and central veins are surrounded by bounding boxes as shown in
(22) The situation of no fibrosis bridge is described herein. In this case, it is determined if each portal area is a fibrosis expansion. To be specific, for each of the portal areas, it is determined if a ratio of the area of the fibrosis portion to the area of the portal area is greater than a threshold (e.g. 50%). If the determination result is affirmative, it is determined that the portal area is the portal expansion. Note that the area of the portal area is the sum of the area of the fibrosis portion and the area of the vessel portion or the cell portion, and all these areas can be calculated based on the segmentation image. For example, in the example of
(23) If a ratio of the number of the portal expansions to the number of all portal areas is greater than a threshold (e.g. 50%), it is determined that the score is 2. If the ratio is less than or equal to 50% and greater than another threshold (e.g. 0, 1, 2, or other suitable values), it is determined that the score is 1; and if the number of the portal expansion is less than or equal to the threshold (e.g. 0), the score is 0. These thresholds can be adjusted with respect to the adopted algorithms, and any value of the thresholds is in the scope of the disclosure.
(24) The fibrosis bridge is described herein. When the condition of fibrosis is serious, the fibrosis of the portal areas or central veins is expanded into adjacent portal area or central vein to form the fibrosis bridge. The number of the fibrosis bridges between two portal areas, between two central veins, and between one portal area and one central vein are counted herein. In detail, all the portal areas and the central veins in the medical image are taken as nods. A triangulation algorithm is performed to the nodes to form a graph which includes the nodes and edges as shown in
(25)
(26) In some embodiments, the portal areas and the central veins are taken as nodes, and distances between the nodes are taken as edges to form a fully connected graph. The fully connected graph is transformed into a tree structure (e.g. mining spanning three or other three structures) indicating adjacent nodes of each of the nodes. For each of the nodes, it is determined if the node is connected to the corresponding adjacent nodes through the fibrosis portions to calculate the number of the fibrosis bridges. In some embodiments, the number of the fibrosis bridges is divided by the number of the nodes (i.e. the positive integer n) to get a ratio. If the ratio is greater than a threshold, then the score is 4, otherwise the score is 3. In some embodiments, if a ratio of the number of the nodes connected by the fibrosis bridges to the number of all of the nodes is greater than a threshold, then the score is 4, otherwise the score is 3.
(27) The scores of 0-6 are merely examples, and the scores may have other values, symbols, or texts, which are not limited in the invention. From another aspect, the scores of 0-6 are also referred to a seventh score to a first score, but the values, symbols, or texts that the first to seventh scores represent are not limited in the invention.
(28) In some embodiments, the circular fibrosis may be detected by the fibrosis bridges because the nodes are connected to form a cycle through the fibrosis. For example, as shown in
(29)
C.sub.i=U.sub.j,j≠iC.sub.j (2)
(30) C.sub.i and C.sub.j are i.sup.th and j.sup.th cycles respectively. If the equation (2) is true, the cycle C.sub.i is deleted. After all cycles are tested by the equation (2), the number of the remaining cycles is referred to a cycle number. For example, in the embodiment of
(31)
(32) Although the present invention has been described in considerable detail with reference to certain embodiments thereof, other embodiments are possible. Therefore, the spirit and scope of the appended claims should not be limited to the description of the embodiments contained herein. It will be apparent to those skilled in the art that various modifications and variations can be made to the structure of the present invention without departing from the scope or spirit of the invention. In view of the foregoing, it is intended that the present invention cover modifications and variations of this invention provided they fall within the scope of the following claims.