A skin image analysis method based on image data processing
By combining specular reflection confidence analysis, alpha tree hierarchical connectivity and Dahu path obstacle calculation with Mutex Watershed processing, the problem of misjudgment of specular reflection areas was solved, achieving accurate segmentation of skin regions and reliable identification of abnormal regions, thus improving the accuracy and stability of skin image analysis.
Patent Information
- Application Number
- CN202611410874.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-11
- Publication Date
- 2026-11-27
AI Technical Summary
Existing skin image analysis methods struggle to distinguish between specular reflective areas and real skin abnormalities, easily leading to misjudgment and oversegmentation, thus reducing the accuracy of skin region segmentation and abnormal region identification.
By employing specular reflection confidence analysis, alpha tree hierarchical connectivity, Dahu path obstacle calculation, and Mutex Watershed relationship processing, a skin region relationship map is generated using the specular reflection confidence map and alpha tree skin region structure. The Dahu distance is used to calculate the path obstacle quantity and relationship priority, correct the specular reflection branch relationship, and combine Mutex Watershed processing to achieve accurate skin region segmentation and abnormal region identification.
It improves the accuracy of skin region segmentation and the recognition of abnormal target regions, reduces false merging and over-segmentation caused by specular reflection, and enhances the reliability of skin image analysis results.
Smart Images

Figure CN123181379A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image analysis and processing technology, and in particular to a skin image analysis method based on image data processing. Background Technology
[0002] With the development of digital imaging equipment and computer vision technology, skin image analysis is increasingly being applied to skin condition assessment, abnormal region screening, and image-assisted analysis. Existing skin image analysis methods typically begin by identifying skin regions, correcting brightness, and converting color spaces in the acquired image. Then, region segmentation is performed based on color, texture, brightness, and boundary information. Finally, image features of abnormal regions are extracted. Some methods employ thresholding, region growing, clustering, or watershed algorithms to divide skin regions, while others describe the relationships between different skin regions through region adjacency and graph structures.
[0003] However, the skin surface is affected by the light source, shooting angle, and skin surface condition, easily producing specular reflective areas with increased brightness, decreased saturation, and color shift. Existing methods typically exclude specular reflective areas as ordinary bright areas, or segment them only based on local differences between adjacent pixels and adjacent areas. This makes it difficult to distinguish between the apparent differences caused by specular reflection and the color, texture, and shape differences caused by real skin anomalies. It is easy to misclassify specular reflective areas as abnormal areas, and it is also easy to over-segment the same skin area separated by specular reflection.
[0004] Therefore, how to provide a skin image analysis method based on image data processing is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0005] One objective of this invention is to propose a skin image analysis method based on image data processing. This invention reduces the false merging, oversegmentation, and misjudgment of abnormal regions in skin areas caused by specular reflection by combining specular reflection confidence analysis, α-tree hierarchical connectivity, Dahu path obstacle calculation, and Mutex Watershed relation processing, thereby improving the accuracy of skin region segmentation, the accuracy of target abnormal region identification, and the reliability of skin image analysis results.
[0006] A skin image analysis method based on image data processing according to an embodiment of the present invention includes the following steps: Acquire the skin image to be analyzed and perform skin region identification and illumination correction to obtain the corrected skin image and specular reflection confidence map; Skin region difference maps are generated based on corrected skin images and specular reflection confidence maps. Alpha-trees are used for hierarchical connectivity processing to obtain alpha-tree skin region structures. A skin region relationship map is constructed based on the α-tree skin region structure, and the specular reflection branch is determined in the α-tree skin region structure according to the specular reflection confidence map; In the skin region relationship graph, the intra-branch path obstacle quantity and cross-branch path obstacle quantity are calculated based on Dahu distance, and a basic relationship set with relationship priority is generated based on the calculation results. The basic relation set is modified based on the branch position of the specular reflection branches in the α-tree skin region structure. Local mutual exclusion and cross-reflection attraction relationships are formed based on the specular reflection branches inside the branches. Mutual exclusion relationships inherited to the common merging level are formed based on the specular reflection branches between branches, and the modified relation set is obtained. According to the relationship priority, the modified relationship set in the skin region relationship map is processed by Mutex Watershed. The corresponding skin regions are processed according to the conflict state of local mutual exclusion relationship and cross-reflective attraction relationship, the priority of unprocessed relationship is updated, and the skin region segmentation result is obtained. Based on the skin region segmentation results, the target abnormal region is identified, and skin image feature analysis is performed on the target abnormal region to generate skin image analysis results.
[0007] Optionally, obtaining the corrected skin image and specular reflection confidence map specifically includes: The skin image to be analyzed is acquired and converted to a color representation space that separates luminance and chrominance information. Candidate skin pixels are determined based on the chrominance distribution of each pixel. Candidate skin regions are formed according to the spatial adjacency relationship between the candidate skin pixels. Connectivity region filtering is performed on the candidate skin regions to obtain effective skin regions. A reference skin region is determined based on the effective skin region. The illumination distribution of the effective skin region is estimated based on the reference skin region. Brightness compensation and color correction are performed on the effective skin region to obtain a corrected skin image. Based on the extracted specular reflection characterization information from the corrected skin image, the specular reflection confidence level of each pixel is determined according to the specular reflection characterization information, and a specular reflection confidence map is generated according to the pixel position.
[0008] Optionally, obtaining the α-tree skin region structure specifically includes: The corrected skin image is divided into basic regions, and the regional difference features of each basic skin region are extracted by combining the specular reflection confidence map to obtain the basic skin region set and the regional feature set. The degree of regional difference between adjacent basic skin regions is determined based on the set of basic skin regions and the set of regional features, and a skin region difference map is constructed based on the degree of regional difference. Using the basic skin regions in the skin region difference map as α-tree leaf nodes, the α-tree algorithm is used to merge the interconnected basic skin regions layer by layer in order of increasing regional difference, establishing parent-child connection relationships between hierarchical skin regions, and obtaining the α-tree skin region structure.
[0009] Optionally, obtaining the specular reflection branch specifically includes: Analyze the node inclusion and hierarchical connection relationships in the alpha tree skin region structure, extract hierarchical skin region nodes and divide skin region branches to obtain the hierarchical skin topology set; Based on the hierarchical skin topology set, establish the vertical and horizontal connection relationships between hierarchical skin region nodes, associate the hierarchical skin region nodes, vertical connection relationships, horizontal connection relationships and skin region branch identifiers to obtain the skin region relationship graph; The specular reflection confidence level in the specular reflection confidence map is mapped to the hierarchical skin region nodes in the skin region relationship map. The node reflection characterization value is determined based on the statistical results of the specular reflection confidence level corresponding to each level of skin region node. The node reflection characterization values are collected along the skin region branches, and the branch reflection characterization values are determined. The skin region branches whose branch reflection characterization values meet the reflection branch determination conditions and whose high-reflectivity nodes are continuously distributed in the corresponding skin region branches are determined as specular reflection branches.
[0010] Optionally, obtaining the basic relation set specifically includes: Based on the skin region relationship graph, the intra-branch paths and cross-branch paths between hierarchical skin region nodes are determined, and the hierarchical skin region nodes are associated with the corresponding regional difference features; A regional path obstacle calculation method based on Dahu distance is used to process intra-branch paths and cross-branch paths. Regional difference features corresponding to the hierarchical skin region nodes are extracted sequentially along each path. The difference between the maximum and minimum feature values in the regional difference features is determined, and the largest difference value is determined as the path obstacle quantity of the corresponding path. The path obstacle quantity within a branch is determined based on the path obstacle quantity corresponding to the path within the branch. The path obstacle quantity across branches is determined based on the path obstacle quantity corresponding to the path across branches. In the case where there are two or more path obstacles within a branch between two skin region nodes, the path obstacle quantity with the smallest value is determined as the path obstacle quantity within the branch. In the case where there are two or more path obstacles across branches between two skin region nodes, the path obstacle quantity with the smallest value is determined as the path obstacle quantity across branches. The basic relationship types and relationship priorities between hierarchical skin region nodes are determined based on the intra-branch path obstacle quantity and cross-branch path obstacle quantity. The hierarchical skin region nodes, basic relationship types, and relationship priorities are associated to generate a basic relationship set with relationship priorities. The basic relationship types include basic mutual exclusion relationships and basic attraction relationships.
[0011] Optionally, obtaining the modified relation set specifically includes: The branch position relationship of the specular reflection branch is determined based on the skin region branch identifier and hierarchical position of the specular reflection branch in the α-tree skin region structure. The branch position relationship includes the position relationship within the branch and the position relationship between the branches. Establish a local mutual exclusion relationship between the specular reflective branches and adjacent skin areas based on the internal positional relationships of the branches; Establish the trans-reflective attraction relationship between the skin regions on both sides of the specular reflective branch based on the internal positional relationship of the branch; Establish mutually exclusive relationships for inheritance up to the common merging level based on the positional relationships between branches; Write local mutually exclusive relationships, cross-reflective attraction relationships, and mutually exclusive relationships inherited to the common merging level into the basic relationship set. Delete the replaced basic relationship types, retain the basic relationships that have not undergone relationship type replacement and their corresponding relationship priorities, associate the replaced relationship types with their corresponding relationship priorities, and arrange all relationships according to their relationship priorities to obtain the modified relationship set.
[0012] Optionally, obtaining the skin region segmentation result specifically includes: The hierarchical skin region nodes in the skin region relationship diagram are set as independent skin regions. The basic attraction relationship, basic mutual exclusion relationship, local mutual exclusion relationship, cross-reflection attraction relationship, and mutual exclusion relationship inherited from the common merging level are arranged in descending order of relationship priority. The basic mutual exclusion relationship, local mutual exclusion relationship, and mutual exclusion relationship inherited from the common merging level are determined as mutual exclusion relationship. Relationships that have not yet been processed are determined as unprocessed relationships. The relationship processing order of Mutex Watershed is established. The highest priority unprocessed relation is selected according to the relation processing order. Mutex Watershed is used to process the basic attraction relation. The skin region to which the two hierarchical skin region nodes connected by the basic attraction relation currently belong is determined. The hierarchical skin region nodes contained in the two skin regions are traced along the parent-child connection relationship in the alpha tree skin region structure to the common merging level. It is checked whether there is a mutual exclusion relation between the two skin regions. If there is no mutual exclusion relation between the two skin regions, the basic attraction relation is accepted and the two skin regions are merged. If there is a mutual exclusion relation between the two skin regions, the basic attraction relation is rejected and the two skin regions are kept separate. After the skin region merging is completed, the mutual exclusion relation that was retained between the two skin regions and the outer skin region before the merging is inherited to the merged skin region. The skin region to which the hierarchical skin region node belongs is updated according to the processing result. Perform association conflict determination on cross-reflective attraction relationships, and determine the processing result of cross-reflective attraction relationships based on local mutual exclusion relationships and mutual exclusion relationships inherited to the common merging level; After merging the skin regions corresponding to the basic attraction relationship and the cross-reflective attraction relationship, the intra-branch path and cross-branch path corresponding to the unprocessed relationship are re-determined based on the merged skin region. The intra-branch path obstacle amount and cross-branch path obstacle amount are re-determined using the regional path obstacle calculation method based on Dahu distance. The priority of the unprocessed relationship is updated according to the re-determined intra-branch path obstacle amount and cross-branch path obstacle amount. Repeatedly execute the processes of selecting unprocessed relations, processing Mutex Watershed, determining association conflicts, and updating the priority of unprocessed relations until the relations in the corrected relation set are processed. Generate skin region segmentation results based on the merging and separating states of the hierarchical skin region nodes.
[0013] Optionally, obtaining the skin image analysis results specifically includes: The skin region segmentation results are mapped to the corrected skin image, and the region location, region area and region boundary of the segmented region are extracted. Based on the regional color difference, regional texture difference and regional brightness difference between the segmented region and the adjacent skin region, the segmentation region difference result is obtained. Based on the differences in the segmented regions, segmented regions that meet the criteria for anomaly determination are selected, segmented regions whose specular reflection confidence level meets the criteria for reflection exclusion are excluded, and the retained segmented regions are identified as target anomaly regions. Based on the features of the target abnormal region extracted from the corrected skin image, the degree of color abnormality, texture abnormality and morphological abnormality of the target abnormal region are determined. The target abnormal region is then associated with the corresponding target abnormal region features to generate skin image analysis results.
[0014] The beneficial effects of this invention are: This invention performs skin region identification, illumination correction, and specular reflection confidence analysis on the skin image to be analyzed, thereby obtaining a corrected skin image and a specular reflection confidence map. This allows the brightness increase, saturation decrease, and color shift caused by illumination changes and specular reflection to be characterized separately, reducing the degree of confusion between specular reflection features and real skin abnormal features, and providing a stable image data foundation for skin region segmentation and target abnormal region identification.
[0015] This invention employs an alpha tree to perform hierarchical connectivity processing on skin region difference maps. It utilizes hierarchical skin region nodes, branches, parent-child connections, and common merging levels to describe the gradual merging structure of skin regions from local areas to higher-level regions. Compared to methods that only perform planar segmentation based on differences between adjacent pixels, the alpha tree preserves the hierarchical inclusion relationships and branch positional relationships between skin regions. This provides a structural basis for specular reflection branch recognition, intra-branch relationship processing, and inter-branch relationship processing, reducing erroneous region merging caused by local reflections.
[0016] This invention employs a regional path obstacle calculation method based on Dahu distance. It extends the calculation of Dahu distance for the variation range of pixel grayscale paths to the hierarchical skin region node paths in the α-tree skin region structure. It combines regional chromaticity features, regional texture features, regional brightness features, and regional reflectivity features to determine the amount of path obstacles within branches and the amount of path obstacles across branches. By examining the maximum feature change in the entire path, rather than just comparing the local differences between two endpoints, it can more accurately describe the actual connection obstacles between skin regions and generate basic attraction relations, basic mutual exclusion relations, and relation priorities accordingly.
[0017] This invention modifies the basic relation set based on the branch position of the specular reflection branch in the α-tree skin region structure. For specular reflection branches located in the same skin region branch, a local mutual exclusion relation is established to isolate the specular reflection branch, and a cross-reflection attraction relation is established to connect the skin regions on both sides of the specular reflection branch, thereby restoring the same skin region separated by specular reflection while eliminating the interference of specular reflection. For specular reflection branches located in different skin region branches, the mutual exclusion relation is inherited to the common merging level along the parent-child connection relation to prevent different skin region branches from merging prematurely due to similar reflection characteristics.
[0018] This invention adaptively improves Mutex Watershed, enabling it to not only handle basic attraction and mutual exclusion relationships based on relation priority, but also to combine local mutual exclusion relationships, cross-reflection attraction relationships, and mutual exclusion relationships inherited to the common merging level to perform association conflict determination. After skin region merging, it redetermines intra-branch paths and cross-branch paths, recalculates path obstacle quantities, and updates the priority of unprocessed relations. By using the α-tree hierarchical structure, Dahu path obstacle calculation, and specular reflection relation correction to jointly participate in the region merging decision of Mutex Watershed, it can reduce skin region mis-merging, over-segmentation, and misjudgment of abnormal regions caused by specular reflection, thereby improving the accuracy of skin region segmentation, the reliability of target abnormal region identification, and the stability of skin image analysis results. Attached Figure Description
[0019] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a skin image analysis method based on image data processing proposed in this invention; Figure 2 This is a schematic diagram of Mutex Watershed skin region segmentation based on α-tree hierarchical constraints, Dahu path obstacle quantity, specular reflection relationship correction, and dynamic update of relationship priority, which is a skin image analysis method based on image data processing proposed in this invention. Detailed Implementation
[0020] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, illustrating only the basic structure of the invention, and therefore only show the components relevant to the invention.
[0021] refer to Figures 1-2 A skin image analysis method based on image data processing includes the following steps: Acquire the skin image to be analyzed and perform skin region identification and illumination correction to obtain the corrected skin image and specular reflection confidence map; Skin region difference maps are generated based on corrected skin images and specular reflection confidence maps. Alpha-trees are used for hierarchical connectivity processing to obtain alpha-tree skin region structures. A skin region relationship map is constructed based on the α-tree skin region structure, and the specular reflection branch is determined in the α-tree skin region structure according to the specular reflection confidence map; In the skin region relationship graph, the intra-branch path obstacle quantity and cross-branch path obstacle quantity are calculated based on Dahu distance, and a basic relationship set with relationship priority is generated based on the calculation results. The basic relation set is modified based on the branch position of the specular reflection branches in the α-tree skin region structure. Local mutual exclusion and cross-reflection attraction relationships are formed based on the specular reflection branches inside the branches. Mutual exclusion relationships inherited to the common merging level are formed based on the specular reflection branches between branches, and the modified relation set is obtained. According to the relationship priority, the modified relationship set in the skin region relationship map is processed by Mutex Watershed. The corresponding skin regions are processed according to the conflict state of local mutual exclusion relationship and cross-reflective attraction relationship, the priority of unprocessed relationship is updated, and the skin region segmentation result is obtained. Based on the skin region segmentation results, the target abnormal region is identified, and skin image feature analysis is performed on the target abnormal region to generate skin image analysis results.
[0022] In this embodiment, obtaining the corrected skin image and specular reflection confidence map specifically includes: The process involves acquiring a skin image to be analyzed and converting it to a color representation space that separates luminance and chrominance information. Candidate skin pixels are determined based on the chrominance distribution of each pixel. Candidate skin regions are formed according to the spatial adjacency relationship between the candidate skin pixels. Connectivity region filtering is then performed on the candidate skin regions to obtain effective skin regions. The skin image to be analyzed is a digital image obtained after the image acquisition device images the surface of the skin to be analyzed. The candidate skin pixels are pixels whose chrominance distribution meets the skin chrominance range. The spatial adjacency relationship is the positional connection relationship of the candidate skin pixels in the skin image to be analyzed. The connected region filtering is performed by retaining candidate skin regions that meet the skin region conditions based on the region area, boundary closure degree, color continuity, and texture continuity of the candidate skin regions. The retained candidate skin regions are then merged to form effective skin regions. A reference skin region is determined based on the effective skin region. The illumination distribution of the effective skin region is estimated based on the reference skin region. Brightness compensation and color correction are performed on the effective skin region to obtain a corrected skin image. The reference skin region is a local skin region with smooth brightness changes and continuous texture distribution. The illumination distribution is formed by propagation along the spatial position of the effective skin region based on the brightness reference of the reference skin region. The brightness compensation is to adjust the pixel brightness based on the difference between the estimated illumination value of each pixel position and the brightness reference. The color correction is to adjust the pixel color based on the offset between the color of each pixel and the color reference of the reference skin region. Based on the extracted specular reflection characterization information from the corrected skin image, the specular reflection confidence level of each pixel is determined according to the specular reflection characterization information, and a specular reflection confidence map is generated according to the pixel position. The specular reflection characterization information includes the degree of brightness increase, the degree of saturation decrease, and the local chromaticity deviation. The degree of brightness increase is the increase of pixel brightness relative to the local neighborhood brightness reference. The degree of saturation decrease is the decrease of pixel saturation relative to the local neighborhood saturation reference. The local chromaticity deviation is the deviation of pixel chromaticity from the chromaticity center of local non-reflective skin pixels. The specular reflection confidence level is a value characterizing the degree of specular reflection influence on the corresponding pixel in the corrected skin image. The higher the specular reflection confidence level, the more obvious the characteristics of increased brightness, decreased saturation, and chromaticity deviation from the skin's inherent color distribution are. The specular reflection confidence level is obtained by scaling the degree of brightness increase, the degree of saturation decrease, and the local chromaticity deviation, and then jointly judging the three specular reflection characterization information after scaling.
[0023] In this embodiment, obtaining the α-tree skin region structure specifically includes: The corrected skin image is divided into basic regions, and the regional difference features of each basic skin region are extracted by combining the specular reflection confidence map to obtain a set of basic skin regions and a set of regional features. The basic region division is based on the degree of color change and texture change of adjacent pixels in the corrected skin image, and adjacent pixels that meet the region merging conditions are assigned to the same basic skin region. The regional difference features include regional chromaticity features, regional texture features, regional brightness features, and regional reflection features. The degree of regional difference between adjacent basic skin regions is determined based on the set of basic skin regions and the set of regional features. A skin region difference map is constructed based on the degree of regional difference. The adjacent basic skin regions are basic skin regions that have a common boundary or meet the preset spatial proximity conditions in the corrected skin image. The degree of regional difference is determined based on the differences in regional chromaticity features, regional texture features, regional brightness features, and regional reflectivity features between adjacent basic skin regions. The skin region difference map uses basic skin regions as difference map nodes, the spatial connection relationship between adjacent basic skin regions as difference map connection edges, and the corresponding degree of regional difference as the edge value of the difference map connection edges. Using the basic skin regions in the skin region difference map as α-tree leaf nodes, the α-tree algorithm is used to merge the interconnected basic skin regions layer by layer in order of increasing regional difference, establish the parent-child connection relationship between the hierarchical skin regions, and obtain the α-tree skin region structure. The α-tree algorithm is as follows: Extract the degree of regional difference of each edge in the skin region difference graph. Sequentially determine the different degrees of regional difference as hierarchical connectivity conditions. When the degree of regional difference of an edge in the difference graph is not greater than the current hierarchical connectivity condition, merge the skin regions at both ends of the edge into a new hierarchical skin region. Establish a parent node for the new hierarchical skin region, set the merged skin regions as child nodes of the parent node, and record the current hierarchical connectivity condition as the merging level of the parent node. When the degree of regional difference is greater than the current hierarchical connectivity condition, keep the corresponding skin regions separate. Repeat the establishment of parent nodes and parent-child connections in ascending order of hierarchical connectivity conditions until all basic skin regions are merged into the highest-level skin region. Set the highest-level skin region as the root node, forming an α-tree skin region structure composed of leaf nodes, parent nodes, root nodes, parent-child connections, and merging levels.
[0024] In this embodiment, obtaining the specular reflection branch specifically includes: The node inclusion relationship and hierarchical connection relationship in the alpha tree skin region structure are analyzed. Hierarchical skin region nodes are extracted and skin region branches are divided to obtain a hierarchical skin topology set. The hierarchical skin topology set includes a set of hierarchical skin region nodes and a set of skin region branches. The hierarchical skin region nodes include leaf nodes corresponding to basic skin regions, parent nodes formed during the region merging process, and root nodes formed after merging all basic skin regions. The skin region branches are a continuous sequence of nodes that extend from leaf nodes along the parent-child connection relationship to the root node and terminate at the branch merging position. The node inclusion relationship is the regional relationship in which the skin region corresponding to the parent node contains the skin region corresponding to the corresponding child node. The hierarchical connection relationship is the parent-child connection relationship established between leaf nodes, parent nodes, and root nodes according to the merging level. Based on the hierarchical skin topology set, vertical and horizontal connection relationships are established between hierarchical skin region nodes. The hierarchical skin region nodes, vertical connection relationships, horizontal connection relationships, and skin region branch identifiers are associated to obtain a skin region relationship graph. The vertical connection relationships are established based on the parent-child connection relationships in the α-tree skin region structure. The horizontal connection relationships are established based on the spatial contact relationships between corresponding skin regions of hierarchical skin region nodes in the same merged level. The skin region branch identifiers are used to record the skin region branches to which each hierarchical skin region node belongs. The specular reflection confidence level in the specular reflection confidence map is mapped to the hierarchical skin region nodes in the skin region relationship map. The node reflection characterization value is determined based on the statistical results of the specular reflection confidence level corresponding to each hierarchical skin region node. The node reflection characterization values are then collected along the skin region branches, and the branch reflection characterization values are determined. Skin region branches whose branch reflection characterization values meet the reflection branch determination criteria and whose high-reflectivity nodes maintain a continuous distribution within their corresponding skin region branches are identified as specular reflection branches. The node reflection characterization value is determined based on the average level of specular reflection confidence level and the proportion of high-confidence pixels within the skin region corresponding to the hierarchical skin region node. The branch reflection characterization value... The reflective branch determination is based on the node reflectivity values of each level of skin region nodes within the skin region branch and the corresponding skin region area. The branch reflectivity determination condition is as follows: first, the branch reflectivity value of the skin region branch is compared with the reflectivity determination threshold. When the branch reflectivity value reaches the reflectivity determination threshold, the number of consecutive nodes whose node reflectivity values reach the reflectivity determination threshold is counted along the node connection sequence of the skin region branch. When the number of consecutive nodes reaches the branch continuity condition, the corresponding skin region branch is determined as a specular reflective branch. The branch continuity condition is that the number of consecutive nodes in the skin region branch whose node reflectivity values reach the reflectivity determination threshold is not less than a set number.
[0025] This invention maps the confidence level of specular reflection to an α-tree hierarchical skin topology, and identifies specular reflection branches by combining node reflection characterization values, branch reflection characterization values, and continuous node distribution. This allows for the accurate representation of the hierarchical position, branch affiliation, and continuous range of the specular reflection region, reducing misjudgments of reflection branches caused by local bright pixels, and improving the accuracy of skin region relationship construction and the reliability of subsequent relationship correction and region segmentation.
[0026] In this embodiment, obtaining the basic relation set specifically includes: Based on the skin region relationship graph, the intra-branch paths and cross-branch paths between hierarchical skin region nodes are determined, and the hierarchical skin region nodes are associated with the corresponding regional difference features. The intra-branch path is the connection path formed by two hierarchical skin region nodes in the same skin region branch along the vertical connection relationship. The cross-branch path is the connection path formed by two hierarchical skin region nodes in different skin region branches extending along the vertical connection relationship to the common merging layer. A Dahu distance-based regional path obstacle calculation method is used to process intra-branch paths and cross-branch paths. Regional difference features corresponding to hierarchical skin region nodes are extracted sequentially along each path. The difference between the maximum and minimum feature values in each regional difference feature is determined, and the largest difference is identified as the path obstacle amount for the corresponding path. The Dahu distance determines the path obstacle by examining the maximum range of feature value changes along the entire path connecting two hierarchical skin region nodes, rather than directly replacing feature changes in the path with endpoint feature differences between two hierarchical skin region nodes. This Dahu distance-based regional path obstacle calculation method converts the pixel grayscale path change range calculation into the range of regional difference feature changes of hierarchical skin region nodes in the α-tree skin region structure. The maximum and minimum feature values of regional chroma features, regional texture features, regional brightness features, and regional reflectivity features are extracted from each path. The difference between the maximum and minimum feature values of each type of regional difference feature is calculated, and the maximum value among the four types of differences is identified as the path obstacle amount for the corresponding path. This ensures that when any type of regional difference feature shows significant changes in the path, the corresponding path obstacle is retained. The path obstacle quantity within a branch is determined based on the path obstacle quantity corresponding to the path within the branch. The path obstacle quantity across branches is determined based on the path obstacle quantity corresponding to the path across branches. When there are two or more path within a branch between two skin region nodes, the path obstacle quantity with the smallest value is determined as the corresponding path obstacle quantity within the branch. When there are two or more path across branches between two skin region nodes, the path obstacle quantity with the smallest value is determined as the corresponding path obstacle quantity across branches. The path obstacle quantity within a branch represents the degree of change in regional difference characteristics between two skin region nodes in the same skin region branch. The path obstacle quantity across branches represents the degree of change in regional difference characteristics when two skin region nodes in different skin region branches are connected by a common merging level. The basic relationship types and relationship priorities between hierarchical skin region nodes are determined based on the intra-branch path obstacle quantity and the inter-branch path obstacle quantity. The hierarchical skin region nodes, basic relationship types, and relationship priorities are associated to generate a basic relationship set with relationship priorities. The basic relationship types include basic mutual exclusion relationships and basic attraction relationships. Specifically, two layers of skin region nodes whose intra-branch path obstacle amount or cross-branch path obstacle amount is not greater than the relationship determination threshold are determined as basic attraction relationships, and two layers of skin region nodes whose intra-branch path obstacle amount or cross-branch path obstacle amount is greater than the relationship determination threshold are determined as basic mutual exclusion relationships. The relationship priority is determined based on the absolute value of the difference between the intra-branch path obstacle amount or cross-branch path obstacle amount and the relationship determination threshold, with the larger the absolute value of the difference, the higher the relationship priority.
[0027] This invention extends the Dahu distance from pixel grayscale paths to α-tree level skin region node paths, comprehensively representing the maximum changes in the complete path by combining regional chromaticity, texture, brightness, and reflectivity features. This avoids misjudgment of relationships caused by relying solely on endpoint differences. Furthermore, it utilizes intra-branch path obstacle quantities and cross-branch path obstacle quantities to determine the basic relationship type and relationship priority, thereby improving the accuracy of skin region relationship representation, the ability to identify hierarchical differences, and the reliability of subsequent segmentation processing.
[0028] In this embodiment, obtaining the modified relation set specifically includes: The branch position relationship of the specular reflection branch is determined based on the skin region branch identifier and hierarchical position of the specular reflection branch in the α-tree skin region structure. The branch position relationship includes the internal position relationship of the branch and the position relationship between the branches. The internal position relationship of the branch is that the specular reflection branch is located in the same skin region branch and has adjacent skin region nodes at the starting end and adjacent skin region nodes at the ending end along the longitudinal connection relationship. The position relationship between the branches is that the specular reflection branch is located in different skin region branches and is included in the common merging level along the parent-child connection relationship. Based on the internal positional relationship of the branch, a local mutual exclusion relationship is established between the specular reflection branch and the adjacent skin region. The establishment of the local mutual exclusion relationship is as follows: along the longitudinal connection relationship, the hierarchical skin region nodes, the adjacent hierarchical skin region nodes at the starting end, and the adjacent hierarchical skin region nodes at the ending end in the specular reflection branch are determined. The basic relationship between the hierarchical skin region nodes in the specular reflection branch and the adjacent hierarchical skin region nodes at both ends is read from the basic relationship set. The type of the read basic relationship is replaced with a local mutual exclusion relationship and the corresponding relationship priority is retained, so that the hierarchical skin region nodes in the specular reflection branch and the adjacent hierarchical skin region nodes at both ends remain separated during the relationship processing. Based on the internal positional relationship of the branch, a cross-reflective attraction relationship is established between the skin regions on both sides of the mirror reflection branch. The establishment of the cross-reflective attraction relationship is as follows: read the basic relationship between the adjacent layer skin region nodes at the starting end and the adjacent layer skin region nodes at the ending end from the basic relationship set, replace the read basic relationship type with a cross-reflective attraction relationship and retain the corresponding relationship priority, so that the layer skin region nodes located on both sides of the mirror reflection branch and separated by the mirror reflection branch can establish a connection across the mirror reflection branch. The skin regions on both sides of the mirror reflection branch are in the same skin region branch, directly connected to the starting end and the ending end of the mirror reflection branch respectively, and do not belong to the skin region currently to which the layer skin region node of the mirror reflection branch belongs. Based on the positional relationship between branches, a mutual exclusion relationship is established to inherit to the common merging level. The establishment of the mutual exclusion relationship to inherit to the common merging level is as follows: along the parent-child connection relationship of different skin region branches, the level skin region nodes containing the specular reflection branch are determined layer by layer to the common merging level. The basic relationship between the level skin region nodes containing the specular reflection branch in the same merging level is read from the basic relationship set. The type of the read basic relationship is replaced with a mutual exclusion relationship layer by layer while retaining the corresponding relationship priority, until a mutual exclusion relationship is formed between the two direct child nodes corresponding to the common merging level, so that different skin region branches remain separated before the common merging level. The common merging level is the merging level corresponding to the skin region node of the same level when different skin region branches extend towards the root node along the parent-child connection relationship in the α-tree skin region structure. Write local mutually exclusive relationships, cross-reflective attraction relationships, and mutually exclusive relationships inherited to the common merging level into the basic relationship set. Delete the replaced basic relationship types, retain the basic relationships that have not undergone relationship type replacement and their corresponding relationship priorities, associate the replaced relationship types with their corresponding relationship priorities, and arrange all relationships according to their relationship priorities to obtain the modified relationship set.
[0029] This invention makes targeted corrections to the basic relationships based on the hierarchical position of the specular reflection branches, keeping the specular reflection areas in the same skin region branch isolated and enabling cross-connection of skin regions on both sides of the reflection area. At the same time, it inherits the mutual exclusion restrictions between different skin region branches to the common merging level, thereby reducing erroneous merging, region breakage and branch confusion caused by specular reflection, improving the accuracy of skin region relationship expression and the reliability of subsequent segmentation results.
[0030] In this embodiment, obtaining the skin region segmentation result specifically includes: The hierarchical skin region nodes in the skin region relationship graph are set as independent skin regions. The basic attraction relationship, basic mutual exclusion relationship, local mutual exclusion relationship, cross-reflection attraction relationship, and mutual exclusion relationship inherited to the common merging level are arranged and corrected according to the relationship priority from high to low. The basic mutual exclusion relationship, local mutual exclusion relationship, and mutual exclusion relationship inherited to the common merging level are determined as mutual exclusion relationship. Relationships that have not yet been processed are determined as unprocessed relationships. The relationship processing order of Mutex Watershed is established. The unprocessed relationship is the relationship that has not yet been processed by skin region merging, skin region separation, and conflict determination. The highest priority unprocessed relation is selected according to the relation processing order. Mutex Watershed is used to process the basic attraction relation. The skin region to which the two hierarchical skin region nodes connected by the basic attraction relation belong is determined. The hierarchical skin region nodes contained in the two skin regions are traced along the parent-child connection relationship in the alpha tree skin region structure to the common merging level. It is checked whether there is a mutual exclusion relationship between the two skin regions. If there is no mutual exclusion relationship between the two skin regions, the basic attraction relation is accepted and the two skin regions are merged. If there is a mutual exclusion relationship between the two skin regions, the basic attraction relation is rejected and the two skin regions are kept separate. After the skin region merging is completed, the mutual exclusion relationship that was retained between the two skin regions and the outer skin region before the merging is inherited to the merged skin region. The mutual exclusion restriction in the alpha tree hierarchy continues to participate in the relation conflict determination of Mutex Watershed. The skin region to which the hierarchical skin region node belongs is updated according to the processing result. The outer skin region is the skin region that did not participate in the merging of the skin region corresponding to the current basic attraction relation and has a retained mutual exclusion relationship with any skin region before the merging. A conflict determination is performed on the cross-reflective attraction relationship. The processing result of the cross-reflective attraction relationship is determined based on the local mutual exclusion relationship and the mutual exclusion relationship inherited to the common merging level. The conflict determination is to determine the skin regions on both sides of the specular reflection branch connected by the cross-reflective attraction relationship, read the local mutual exclusion relationship between the specular reflection branch and the skin regions on both sides, and read the mutual exclusion relationship inherited to the common merging level between the skin regions on both sides. When the specular reflection branch and the skin regions on both sides maintain a local mutual exclusion relationship and there is no mutual exclusion relationship inherited to the common merging level between the skin regions on both sides, the cross-reflective attraction relationship is accepted and the skin regions on both sides are merged. When accepting the cross-reflective attraction relationship destroys the local mutual exclusion relationship and the mutual exclusion relationship inherited to the common merging level, the cross-reflective attraction relationship is rejected. After merging the skin regions corresponding to the basic attraction relationship and the cross-reflective attraction relationship, the intra-branch path and cross-branch path corresponding to the unprocessed relationship are re-determined based on the merged skin region. The intra-branch path obstacle amount and cross-branch path obstacle amount are re-determined using the regional path obstacle calculation method based on Dahu distance. The priority of the unprocessed relationship is updated according to the re-determined intra-branch path obstacle amount and cross-branch path obstacle amount. The re-determining of the priority of the unprocessed relationship is to redetermine the relationship priority based on the absolute value of the difference between the re-determined intra-branch path obstacle amount and cross-branch path obstacle amount and the relationship determination threshold, and then arrange the unprocessed relationships according to the re-determined relationship priority. Repeatedly execute the unprocessed relation selection, Mutex Watershed processing, association conflict determination, and unprocessed relation priority update until the relations in the corrected relation set are processed. Generate skin region segmentation results based on the merging and separating states of the hierarchical skin region nodes. The generated skin region segmentation results are as follows: hierarchical skin region nodes merged by basic attraction relations and cross-reflective attraction relations are assigned to the same segmentation region, hierarchical skin region nodes separated by mutual exclusion relations are assigned to different segmentation regions, and the segmentation regions are mapped to the corresponding pixel positions in the corrected skin image.
[0031] This invention integrates α-tree hierarchical mutual exclusion constraints, specular reflection association conflict determination, and Dahu path obstacle quantity dynamic update mechanism into the Mutex Watershed processing process, enabling skin region merging to simultaneously consider branch hierarchy, reflective isolation, and cross-reflective connection status, reducing false merging, over-segmentation, and boundary misjudgment caused by specular reflection, and improving the accuracy, stability, and adaptability of skin region segmentation.
[0032] In this embodiment, obtaining the skin image analysis results specifically includes: The skin region segmentation results are mapped to the corrected skin image. The region location, region area, and region boundary of the segmented region are extracted. The segmentation region difference results are obtained based on the regional color difference, regional texture difference, and regional brightness difference between the segmented region and adjacent skin regions. The adjacent skin regions are skin regions in the corrected skin image that share a common region boundary with the segmented region. The regional color difference is determined based on the difference between the regional color features of the segmented region and adjacent skin regions. The regional texture difference is determined based on the difference between the regional texture features of the segmented region and adjacent skin regions. The regional brightness difference is determined based on the difference between the regional brightness features of the segmented region and adjacent skin regions. Based on the differences in the segmented regions, segmented regions that meet the criteria for anomaly determination are selected, segmented regions whose specular reflection confidence level meets the criteria for reflection exclusion are excluded, and the retained segmented regions are identified as target anomaly regions. Based on the extraction of target abnormal region features from the corrected skin image, the degree of color abnormality, texture abnormality, and morphological abnormality of the target abnormal region are determined. The target abnormal region is then associated with the corresponding target abnormal region features to generate skin image analysis results. The target abnormal region features include color distribution, texture distribution, boundary morphology, region area, and region location. The skin image analysis results include the region location, region area, degree of color abnormality, degree of texture abnormality, and degree of morphological abnormality of the target abnormal region.
[0033] Example 1: To verify the feasibility of this invention in practice, it was applied to an indoor close-range skin image analysis scenario. Skin surface images were acquired using a fixed shooting distance and stable lighting conditions. Due to the influence of skin oil, moisture, surface curvature, and the direction of light incidence, some images contain specular reflective areas formed by increased brightness, decreased saturation, and color shift. Conventional segmentation methods easily misidentify specular reflective areas as target abnormal areas, or divide continuous skin areas separated by specular reflections into different regions, resulting in broken boundaries of target abnormal areas, smaller area sizes, and distorted recognition results.
[0034] This embodiment establishes a validation sample set containing 600 skin images to be analyzed. Among them, 360 images have significant specular reflection, 150 images have weak specular reflection, 90 images do not have obvious specular reflection, 390 images contain target anomalous regions, and 210 images do not contain target anomalous regions. Two annotators respectively annotate the boundaries of valid skin areas, specular reflection areas, and target anomalous regions. When the annotation results are inconsistent, a third annotator reviews them to form a reference result. 180 images are selected to determine the reflection judgment threshold, relationship judgment threshold, and anomalous region judgment threshold, and the remaining 420 images are used for independent testing.
[0035] The skin image to be analyzed is converted to a color representation space that separates luminance and chromaticity information. Valid skin regions are identified, and luminance compensation and chromaticity correction are performed to obtain a corrected skin image. Before correction, the average luminance dispersion of the valid skin region is 0.184, which decreases to 0.071 after correction. A specular reflection confidence map is generated based on the degree of luminance increase, saturation decrease, and local chromaticity deviation. The specular reflection confidence level is limited to between 0 and 1, and 0.68 is set as the reflection determination threshold. Test results show that the specular reflection confidence map has an accuracy of 94.2% and a recall of 92.8% for identifying significantly specularly reflective pixels.
[0036] Based on the corrected skin image, basic skin regions are formed. Regional chromaticity, texture, brightness, and reflectivity features are extracted using a specular reflection confidence map to construct a skin region difference map. An alpha tree algorithm is then used to form a hierarchical skin region structure. On average, each image forms 351 basic skin regions, and the alpha tree contains an average of 8.4 merged levels. The hierarchical skin region nodes and branches are analyzed, and specular reflection confidence is mapped to the hierarchical skin region nodes. Specular reflection branches are identified based on node reflectivity values, branch reflectivity values, and the number of consecutive nodes. A total of 746 specular reflection branches were labeled in 420 test images. This invention correctly identified 704 of them, achieving a specular reflection branch identification accuracy of 95.8% and a recall rate of 94.4%.
[0037] In the skin region relationship map, intra-branch paths and cross-branch paths are determined. A regional path obstacle calculation method based on Dahu distance is used to handle regional differences. The relationship determination threshold is set to 0.36, and basic attraction relationships, basic mutual exclusion relationships, and relationship priorities are established accordingly. For specular reflection branches within the same skin region branch, local mutual exclusion relationships are established to isolate specular reflection areas, and cross-reflection attraction relationships are established to connect the skin regions on both sides of the specular reflection branch. For specular reflection branches in different skin region branches, mutual exclusion relationships are inherited to the common merging level. MutexWatershed is used to process and correct the relationship set according to relationship priority. After skin region merging, the Dahu path obstacle amount is recalculated and the priority of unprocessed relationships is updated to obtain the skin region segmentation result.
[0038] The thresholds for regional chromaticity difference, regional texture difference, and regional brightness difference were set to 0.28, 0.25, and 0.30, respectively. When at least two of the three differences reached their respective thresholds, the corresponding segmented region was considered a candidate target anomaly region. When the average confidence score of the specular reflection in the segmented region reached 0.70, and the percentage of pixels with a specular reflection confidence score of 0.68 reached 35%, the corresponding segmented region was excluded to reduce misjudgments of target anomalies caused by specular reflection. Skin image feature analysis was then performed on the retained target anomaly regions.
[0039] To verify the technical effectiveness, this invention was compared with the traditional local thresholding combined with watershed method and the Mutex Watershed method, which uses α-trees and Dahu distance but does not introduce specular reflection relationship correction and dynamic update of relationship priority. The traditional local thresholding combined with watershed method sets a segmentation threshold based on the differences in local brightness, color, and texture in the skin image, and then performs watershed segmentation using the image gradient. This method is prone to misjudging specular reflection areas as abnormal areas and causing oversegmentation. The Mutex Watershed method, which uses α-trees and Dahu distance but does not introduce specular reflection relationship correction and dynamic update of relationship priority, uses α-trees to build a hierarchical structure and uses Dahu distance to generate basic relationships, and then performs Mutex Watershed segmentation according to a fixed relationship priority. However, it does not establish local mutual exclusion relationships, cross-reflection attraction relationships, or hierarchical inheritance mutual exclusion relationships, nor does it update the relationship priority after region merging. All three methods used the same 420 test images and the same reference annotation results. The operating environment was an eight-core processor and 32GB of memory, without using a graphics processor for acceleration. Region intersection-union ratio (RUC) is used to evaluate the degree of overlap between the segmented region and the reference region; the Dice coefficient is used to evaluate the overall consistency of the region; the boundary F1 score is used to evaluate the accuracy of the region boundary; the specular reflection false positive rate is used to count the proportion of images in which specular reflection regions are identified as target abnormal regions; and the oversegmentation rate is used to count the proportion of images in which continuous skin regions are divided into more than two segmented regions. Specific comparison data are shown in Table 1. Table 1. Performance comparison results of different skin image segmentation methods
[0040] As shown in Table 1, the region intersection-union ratio, Dice coefficient, and boundary F1 value of the method of the present invention reach 0.842, 0.914, and 0.889, respectively, all of which are higher than the two comparison methods. This indicates that the present invention can improve the overlap and boundary consistency between the skin region segmentation results and the reference annotation results. The specular reflection false positive rate and oversegmentation rate of the method of the present invention are reduced to 4.0% and 6.2%, respectively, indicating that local mutual exclusion relationship, cross-reflection attraction relationship, and mutual exclusion relationship inherited to the common merging level can effectively suppress the erroneous segmentation caused by specular reflection. The target abnormal region identification accuracy and recall rate of the method of the present invention reach 93.1% and 91.7%, respectively, proving that path obstacle calculation based on Dahu distance and dynamic update of relationship priority can improve the reliability of target abnormal region identification. Although the average processing time per image increases to 0.61 seconds, the processing time still meets the application requirements of skin image analysis scenarios.
[0041] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A skin image analysis method based on image data processing, characterized in that, Includes the following steps: Acquire the skin image to be analyzed and perform skin region identification and illumination correction to obtain the corrected skin image and specular reflection confidence map; Skin region difference maps are generated based on corrected skin images and specular reflection confidence maps. Alpha-trees are used for hierarchical connectivity processing to obtain alpha-tree skin region structures. A skin region relationship map is constructed based on the α-tree skin region structure, and the specular reflection branch is determined in the α-tree skin region structure according to the specular reflection confidence map; In the skin region relationship graph, the intra-branch path obstacle quantity and cross-branch path obstacle quantity are calculated based on Dahu distance, and a basic relationship set with relationship priority is generated based on the calculation results. The basic relation set is modified based on the branch position of the specular reflection branches in the α-tree skin region structure. Local mutual exclusion and cross-reflection attraction relationships are formed based on the specular reflection branches inside the branches. Mutual exclusion relationships inherited to the common merging level are formed based on the specular reflection branches between branches, and the modified relation set is obtained. According to the relationship priority, the modified relationship set in the skin region relationship map is processed by Mutex Watershed. The corresponding skin regions are processed according to the conflict state of local mutual exclusion relationship and cross-reflective attraction relationship, the priority of unprocessed relationship is updated, and the skin region segmentation result is obtained. Based on the skin region segmentation results, the target abnormal region is identified, and skin image feature analysis is performed on the target abnormal region to generate skin image analysis results.
2. The skin image analysis method based on image data processing according to claim 1, characterized in that, The specific steps involved in obtaining the corrected skin image and specular reflection confidence map are as follows: The skin image to be analyzed is acquired and converted to a color representation space that separates luminance and chrominance information. Candidate skin pixels are determined based on the chrominance distribution of each pixel. Candidate skin regions are formed according to the spatial adjacency relationship between the candidate skin pixels. Connectivity region filtering is performed on the candidate skin regions to obtain effective skin regions. A reference skin region is determined based on the effective skin region. The illumination distribution of the effective skin region is estimated based on the reference skin region. Brightness compensation and color correction are performed on the effective skin region to obtain a corrected skin image. Based on the extracted specular reflection characterization information from the corrected skin image, the specular reflection confidence level of each pixel is determined according to the specular reflection characterization information, and a specular reflection confidence map is generated according to the pixel position.
3. The skin image analysis method based on image data processing according to claim 1, characterized in that, The specific process of obtaining the α-tree skin region structure includes: The corrected skin image is divided into basic regions, and the regional difference features of each basic skin region are extracted by combining the specular reflection confidence map to obtain the basic skin region set and the regional feature set. The degree of regional difference between adjacent basic skin regions is determined based on the set of basic skin regions and the set of regional features, and a skin region difference map is constructed based on the degree of regional difference. Using the basic skin regions in the skin region difference map as α-tree leaf nodes, the α-tree algorithm is used to merge the interconnected basic skin regions layer by layer in order of increasing regional difference, establishing parent-child connection relationships between hierarchical skin regions, and obtaining the α-tree skin region structure.
4. The skin image analysis method based on image data processing according to claim 1, characterized in that, The specific steps to obtain the specular reflection branch include: Analyze the node inclusion and hierarchical connection relationships in the alpha tree skin region structure, extract hierarchical skin region nodes and divide skin region branches to obtain the hierarchical skin topology set; Based on the hierarchical skin topology set, establish the vertical and horizontal connection relationships between hierarchical skin region nodes, associate the hierarchical skin region nodes, vertical connection relationships, horizontal connection relationships and skin region branch identifiers to obtain the skin region relationship graph; The specular reflection confidence level in the specular reflection confidence map is mapped to the hierarchical skin region nodes in the skin region relationship map. The node reflection characterization value is determined based on the statistical results of the specular reflection confidence level corresponding to each level of skin region node. The node reflection characterization values are collected along the skin region branches, and the branch reflection characterization values are determined. The skin region branches whose branch reflection characterization values meet the reflection branch determination conditions and whose high-reflectivity nodes are continuously distributed in the corresponding skin region branches are determined as specular reflection branches.
5. The skin image analysis method based on image data processing according to claim 1, characterized in that, The acquisition of the basic relation set specifically includes: Based on the skin region relationship graph, the intra-branch paths and cross-branch paths between hierarchical skin region nodes are determined, and the hierarchical skin region nodes are associated with the corresponding regional difference features; A regional path obstacle calculation method based on Dahu distance is used to process intra-branch paths and cross-branch paths. Regional difference features corresponding to the hierarchical skin region nodes are extracted sequentially along each path. The difference between the maximum and minimum feature values in the regional difference features is determined, and the largest difference value is determined as the path obstacle quantity of the corresponding path. The path obstacle quantity within a branch is determined based on the path obstacle quantity corresponding to the path within the branch. The path obstacle quantity across branches is determined based on the path obstacle quantity corresponding to the path across branches. In the case where there are two or more path obstacles within a branch between two skin region nodes, the path obstacle quantity with the smallest value is determined as the path obstacle quantity within the branch. In the case where there are two or more path obstacles across branches between two skin region nodes, the path obstacle quantity with the smallest value is determined as the path obstacle quantity across branches. The basic relationship types and relationship priorities between hierarchical skin region nodes are determined based on the intra-branch path obstacle quantity and cross-branch path obstacle quantity. The hierarchical skin region nodes, basic relationship types, and relationship priorities are associated to generate a basic relationship set with relationship priorities. The basic relationship types include basic mutual exclusion relationships and basic attraction relationships.
6. The skin image analysis method based on image data processing according to claim 1, characterized in that, The specific steps to obtain the modified relation set include: The branch position relationship of the specular reflection branch is determined based on the skin region branch identifier and hierarchical position of the specular reflection branch in the α-tree skin region structure. The branch position relationship includes the position relationship within the branch and the position relationship between the branches. Establish a local mutual exclusion relationship between the specular reflective branches and adjacent skin areas based on the internal positional relationships of the branches; Establish the trans-reflective attraction relationship between the skin regions on both sides of the specular reflective branch based on the internal positional relationship of the branch; Establish mutually exclusive relationships for inheritance up to the common merging level based on the positional relationships between branches; Write local mutually exclusive relationships, cross-reflective attraction relationships, and mutually exclusive relationships inherited to the common merging level into the basic relationship set. Delete the replaced basic relationship types, retain the basic relationships that have not undergone relationship type replacement and their corresponding relationship priorities, associate the replaced relationship types with their corresponding relationship priorities, and arrange all relationships according to their relationship priorities to obtain the modified relationship set.
7. The skin image analysis method based on image data processing according to claim 1, characterized in that, The specific steps to obtain the skin region segmentation results include: The hierarchical skin region nodes in the skin region relationship diagram are set as independent skin regions. The basic attraction relationship, basic mutual exclusion relationship, local mutual exclusion relationship, cross-reflection attraction relationship and mutual exclusion relationship inherited from the common merging level are arranged in descending order of relationship priority. The basic mutual exclusion relationship, local mutual exclusion relationship and mutual exclusion relationship inherited from the common merging level are determined as mutual exclusion relationship. Relationships that have not yet been processed are determined as unprocessed relationships. The relationship processing order of MutexWatershed is established. The highest priority unprocessed relation is selected according to the relation processing order. Mutex Watershed is used to process the basic attraction relation. The skin region to which the two hierarchical skin region nodes connected by the basic attraction relation currently belong is determined. The hierarchical skin region nodes contained in the two skin regions are traced along the parent-child connection relationship in the alpha tree skin region structure to the common merging level. It is checked whether there is a mutual exclusion relation between the two skin regions. If there is no mutual exclusion relation between the two skin regions, the basic attraction relation is accepted and the two skin regions are merged. If there is a mutual exclusion relation between the two skin regions, the basic attraction relation is rejected and the two skin regions are kept separate. After the skin region merging is completed, the mutual exclusion relation that was retained between the two skin regions and the outer skin region before the merging is inherited to the merged skin region. The skin region to which the hierarchical skin region node belongs is updated according to the processing result. Perform association conflict determination on cross-reflective attraction relationships, and determine the processing result of cross-reflective attraction relationships based on local mutual exclusion relationships and mutual exclusion relationships inherited to the common merging level; After merging the skin regions corresponding to the basic attraction relationship and the cross-reflective attraction relationship, the intra-branch path and cross-branch path corresponding to the unprocessed relationship are re-determined based on the merged skin region. The intra-branch path obstacle amount and cross-branch path obstacle amount are re-determined using the regional path obstacle calculation method based on Dahu distance. The priority of the unprocessed relationship is updated according to the re-determined intra-branch path obstacle amount and cross-branch path obstacle amount. Repeatedly execute the processes of selecting unprocessed relations, processing Mutex Watershed, determining association conflicts, and updating the priority of unprocessed relations until the relations in the corrected relation set are processed. Generate skin region segmentation results based on the merging and separating states of the hierarchical skin region nodes.
8. The skin image analysis method based on image data processing according to claim 1, characterized in that, The results of the skin image analysis are obtained specifically in the following ways: The skin region segmentation results are mapped to the corrected skin image, and the region location, region area and region boundary of the segmented region are extracted. Based on the regional color difference, regional texture difference and regional brightness difference between the segmented region and the adjacent skin region, the segmentation region difference result is obtained. Based on the differences in the segmented regions, segmented regions that meet the criteria for anomaly determination are selected, segmented regions whose specular reflection confidence level meets the criteria for reflection exclusion are excluded, and the retained segmented regions are identified as target anomaly regions. Based on the features of the target abnormal region extracted from the corrected skin image, the degree of color abnormality, texture abnormality and morphological abnormality of the target abnormal region are determined. The target abnormal region is then associated with the corresponding target abnormal region features to generate skin image analysis results.
