Spinal cord injury point positioning method and system based on image processing

Through adaptive threshold segmentation and particle swarm optimization algorithm screening features, combined with support vector machine classification, the problem of low accuracy in spinal cord injury detection is solved, and the detection accuracy of spinal cord injury areas is significantly improved.

CN118967639AInactive Publication Date: 2024-11-15THE PEOPLES HOSPITAL SHAANXI PROV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411095999.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-12
Publication Date
2024-11-15
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing spinal cord injury detection algorithm is difficult to accurately segment the spinal cord area from medical images, which is affected by the noise background, and too many image features lead to irrelevant features participating in the detection, reducing the accuracy of the detection.

Method used

Adaptive threshold segmentation technology is used to segment spinal cord images, image features are screened with particle swarm optimization algorithm, and support vector machines are used to classify spinal cord areas to determine the damage area.

Benefits of technology

It improves the accuracy of spinal cord injury detection, reduces the impact of noise background, avoids the participation of irrelevant features in the detection, and significantly improves the accurate positioning and classification effect of spinal cord injury areas.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118967639A_ABST
    Figure CN118967639A_ABST
Patent Text Reader

Abstract

The invention provides a spinal cord injury point positioning method and system based on image processing, and relates to the technical field of image processing, and the method comprises the steps: obtaining a spinal cord image; segmenting the spinal cord image into a plurality of spinal cord regions through an adaptive threshold segmentation technology; extracting image features of each spinal cord region; screening the image features through a particle swarm optimization algorithm, and screening out an optimal feature combination from the image features; classifying each spinal cord region through a support vector machine by utilizing the optimal feature combination, and determining whether each spinal cord region is a spinal cord injury region; the spinal cord injury area is highlighted, and position information of the spinal cord injury area is output. According to the method, the spinal cord image is segmented through an adaptive threshold segmentation technology, the spinal cord image is accurately segmented into a plurality of spinal cord areas, the noise background in the detection process is reduced, and the spinal cord injury detection accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to a method and system for locating spinal cord injury points based on image processing. Background Art

[0002] Spinal cord injury (SCI) refers to damage to spinal cord function due to trauma or disease, which may cause partial or complete loss of sensory and motor functions.

[0003] Currently, spinal cord injury detection is mainly carried out through imaging examinations such as X-rays, computed tomography (CT) and magnetic resonance imaging (MRI). The regional structure, size, gray matter and white matter of the spinal cord are important factors in spinal cord injury and its severity.

[0004] With the rapid development of technologies such as pattern recognition, machine vision, and deep learning, as well as the urgent need for spinal cord injury detection, more and more modern technologies are being applied to spinal cord injury detection. For example, the random forest algorithm is used to detect spinal cord injury areas.

[0005] However, current spinal cord injury algorithms have difficulty accurately segmenting the spinal cord area from medical images, and the detection process is affected by the noise background, resulting in low accuracy of spinal cord injury detection.

[0006] At the same time, the current spinal cord injury algorithm relies on too many image features during the spinal cord injury detection process, resulting in many image features that are not related to spinal cord injury detection being involved in the detection, resulting in low accuracy of spinal cord injury detection. Summary of the invention

[0007] In order to solve the technical problems that the current spinal cord injury algorithm is difficult to accurately segment the spinal cord area from medical images, the detection process is affected by the noise background, and there are too many image features based on the spinal cord injury detection process, resulting in many image features that are not related to spinal cord injury detection being involved in the detection, resulting in low accuracy of spinal cord injury detection, the present invention provides a spinal cord injury point positioning method and system based on image processing.

[0008] The technical solution provided by the embodiment of the present invention is as follows:

[0009] First aspect:

[0010] An embodiment of the present invention provides a method for locating a spinal cord injury point based on image processing, comprising:

[0011] S1: Acquire spinal cord images;

[0012] S2: segmenting the spinal cord image into multiple spinal cord regions by using an adaptive threshold segmentation technique;

[0013] S3: extracting image features of each spinal cord region;

[0014] S4: screening the image features by using a particle swarm optimization algorithm, and screening out the best feature combination from the image features;

[0015] S5: using the optimal feature combination and a support vector machine to classify each spinal cord region to determine whether each spinal cord region is a spinal cord injury region;

[0016] S6: Highlight the spinal cord injury area and output the position information of the spinal cord injury area.

[0017] Second aspect:

[0018] An embodiment of the present invention provides a spinal cord injury point positioning system based on image processing, comprising:

[0019] processor;

[0020] A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method for locating a spinal cord injury point based on image processing as described in the first aspect is implemented.

[0021] The third aspect:

[0022] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the method for locating a spinal cord injury point based on image processing as described in the first aspect is implemented.

[0023] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0024] (1) In the present invention, the spinal cord image is segmented by adaptive threshold segmentation technology, accurately segmented into multiple spinal cord regions, reducing the noise background during the detection process and improving the accuracy of spinal cord injury detection.

[0025] (2) In the present invention, the image features are screened by a particle swarm optimization algorithm, and the best feature combination is selected from the image features. The best feature combination is then used for spinal cord detection to avoid image features that are not related to spinal cord injury detection from participating in the detection, thereby improving the accuracy of spinal cord injury detection.

[0026] (3) In the present invention, the optimal feature combination is used to accurately classify each spinal cord region through a support vector machine to detect whether each spinal cord region is a spinal cord injury region, thereby improving the accuracy of spinal cord injury detection. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0028] Figure 1 A schematic diagram of a flow chart of a spinal cord injury point location method based on image processing provided by an embodiment of the present invention;

[0029] Figure 2 A schematic structural diagram of a spinal cord injury point localization system based on image processing provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0030] The technical solution of the present invention is described below in conjunction with the accompanying drawings.

[0031] In the embodiments of the present invention, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "example" in the present invention should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present the concept in a specific way. In addition, in the embodiments of the present invention, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0032] In the embodiments of the present invention, "image" and "picture" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same. "of", "corresponding, relevant" and "corresponding" can sometimes be used interchangeably. It should be noted that when the difference between them is not emphasized, the meanings they intend to express are the same.

[0033] In the embodiments of the present invention, sometimes the subscripts such as W 1 It may be mistakenly written as a non-subscript form such as W1. When the difference is not emphasized, the meanings they express are the same.

[0034] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0035] Reference Manual Attached Figure 1 , shows a flow chart of a spinal cord injury point positioning method based on image processing provided by an embodiment of the present invention.

[0036] The embodiment of the present invention provides a method for locating a spinal cord injury point based on image processing, which can be implemented by a spinal cord injury point locating device based on image processing, and the spinal cord injury point locating device based on image processing can be a terminal or a server. The processing flow of the method for locating a spinal cord injury point based on image processing may include the following steps:

[0037] S1: Acquire spinal cord images.

[0038] Optionally, the spinal cord image may be an X-ray image, a CT image, an MRI image, or the like.

[0039] S2: The spinal cord image is segmented into multiple spinal cord regions using adaptive threshold segmentation technology.

[0040] It should be noted that the adaptive threshold segmentation technology adaptively determines the segmentation threshold according to the grayscale histogram and pixel distribution of the image, and can more accurately segment the spinal cord areas of different grayscale levels.

[0041] In the present invention, the spinal cord image is segmented by adaptive threshold segmentation technology, accurately segmented into multiple spinal cord regions, reducing the noise background in the detection process and improving the accuracy of spinal cord injury detection.

[0042] In a possible implementation, S2 specifically includes sub-steps S201 to S210:

[0043] S201: Determine the grayscale histogram of the spinal cord image:

[0044] F={f 1 ,f 2 ,…,f K}

[0045] Among them, F represents the grayscale histogram, f k Represents the number of pixels belonging to the kth gray level, k = 1, 2, …, K, K represents the total gray level.

[0046] S202: Determine the probability that the pixel points in the spinal cord image belong to each gray level:

[0047]

[0048] Among them, P k represents the probability that a pixel in the spinal cord image belongs to the kth gray level, and N represents the total number of pixels in the spinal cord image.

[0049] S203: Obtain segmentation threshold set:

[0050] G = {g 1 ,g 2 ,…,g M}

[0051] Among them, G represents the segmentation threshold set, g m represents the mth grayscale segmentation threshold, and M represents the total number of grayscale segmentation thresholds.

[0052] S204: Segment the spinal cord image into M+1 spinal cord regions using M grayscale segmentation thresholds in the segmentation threshold set.

[0053] S205: Calculate the weighted probability of each spinal cord region:

[0054]

[0055] Among them, ws j represents the weighted probability of the jth spinal cord region, s j represents the jth spinal cord region, j = 1, 2, ..., M + 1, k ∈ s j represents the kth gray level contained in the jth spinal cord region.

[0056] It should be noted that by calculating the weighted probability of each spinal cord region, the relative importance of each segmented region can be determined, providing a basis for subsequent calculations.

[0057] S206: Calculate the weighted gray level mean of each spinal cord region:

[0058]

[0059] Among them, η j represents the weighted gray level mean of the jth spinal cord region, r represents the chaos coefficient, and max represents the maximum value.

[0060] It should be noted that the weighted gray level mean reflects the gray level distribution characteristics of each region. The introduction of the chaotic coefficient r and the logarithmic function log(k) can describe the gray level distribution characteristics in more detail.

[0061] Furthermore, the gray level k directly reflects the brightness of the pixel, with higher gray values ​​representing brighter pixels. In some cases, areas with high brightness may contain more critical information. By using k directly, the impact of these high gray values ​​can be amplified, making these areas have a greater weight in feature calculations. Using rlog(k) is a nonlinear transformation that can introduce some complexity, especially for areas with low gray values. The logarithmic function log(k) grows slowly, which can suppress the weight of low gray values ​​and prevent them from occupying too large a proportion in the overall calculation.

[0062] S207: Calculate the weighted gray intensity mean of the spinal cord image:

[0063]

[0064] Among them, μ w Represents the weighted grayscale intensity mean.

[0065] It should be noted that the weighted gray intensity mean provides the overall average value of the gray level intensity of the entire image, providing a global reference for comparing various regions.

[0066] S208: Calculate the weighted inter-class variance of each spinal cord region:

[0067]

[0068] in, represents the weighted between-class variance.

[0069] It should be noted that the inter-class variance is an indicator to measure the difference between different classes (regions). By maximizing the inter-class variance, the difference between different regions can be maximized, making the segmentation effect more significant and clear. The weighted processing can assign different weights to different regions according to their importance, ensuring that key regions are more fully considered in segmentation and analysis.

[0070] S209: Determine the best segmentation threshold set with the goal of maximizing the weighted inter-class variance.

[0071] It should be noted that maximizing the inter-class variance can improve the discrimination of each segmented area, making the grayscale level difference between different areas greater, which helps to segment the various parts of the spinal cord more clearly.

[0072] S210: Segment the spinal cord image into M+1 spinal cord regions using M grayscale segmentation thresholds in the optimal segmentation threshold set.

[0073] In the present invention, the spinal cord image is processed meticulously by using the adaptive threshold segmentation technology, which can significantly improve the accuracy of segmentation and the effectiveness of subsequent processing, and provide a solid foundation for the accurate positioning and classification of spinal cord injury points.

[0074] S3: Extract image features of each spinal cord region.

[0075] Optionally, the image features include: connection features, statistical features, distribution features, shape features, HOG features and LGP features.

[0076] Optionally, a connection feature is used to indicate whether the edges of the intervertebral disc are connected.

[0077] Optionally, the statistical characteristics include variance, mean, and kurtosis.

[0078] Optionally, the distribution feature includes a grayscale histogram, and the grayscale distribution of the image is determined by the grayscale histogram.

[0079] Alternatively, shape features can be performed on a grid basis, with the shape feature value set to 1 if a cell of the grid is partially or fully covered by the shape, and set to 0 if the cell is outside the boundaries.

[0080] Alternatively, the HOG feature is a feature descriptor widely used in image processing and computer vision, mainly used for object detection and recognition. It describes the texture and shape characteristics of an image by statistically analyzing the distribution of gradient directions in a local area of ​​the image.

[0081] Optionally, the LGP feature is a local gradient-based texture feature descriptor that describes the detailed features of an image by capturing changes in gradient directions within a local area of ​​the image.

[0082] S4: The image features are screened through the particle swarm optimization algorithm, and the best feature combination is selected from the image features.

[0083] Among them, Particle Swarm Optimization (PSO) is an optimization algorithm based on swarm intelligence. It simulates the collaborative behavior of groups such as bird flocks and fish schools when looking for food, and uses information sharing between individuals in the group to find the optimal solution.

[0084] In a possible implementation, S4 specifically includes sub-steps S401 to S405:

[0085] S401: Initialize a particle swarm, the particle swarm includes multiple particles, and each particle represents a feature combination.

[0086] S402: Calculate the fitness value of each particle.

[0087] S403: Determine the position of the particle with the highest fitness value as the global optimal position.

[0088] S404: Update the position of each particle according to the following formula:

[0089]

[0090] Among them, P i t+1 represents the particle position of the i-th particle at the t+1-th iteration, represents the displacement vector of the ith particle at the tth iteration, exp represents the exponential function with the natural constant as the base, s represents the shape parameter, which is a random number between -1 and 1, r represents the logarithmic spiral constant, P best represents the global optimal position, λ represents the attraction factor, represents the global optimal position at the tth iteration.

[0091] In the present invention, the spiral mechanism is introduced to make the search path of particles more complex and diversified. Such a complex search path helps the particle swarm to conduct a more comprehensive exploration in the search space and avoid falling into a local optimum.

[0092] In the present invention, an attraction factor is introduced to ensure that particles are always guided by the global optimal position, thus guaranteeing the convergence of the search.

[0093] The distance vector is specifically:

[0094]

[0095] Among them, MMI represents mutual information and sim represents Euclidean distance similarity.

[0096] In the present invention, by judging whether the similarity (sim) between the particle and the global optimal position is less than 0.5, the search direction and strength of the particle can be dynamically adjusted. When the similarity is less than 0.5, the particle will move directly to the global optimal position to ensure rapid convergence. When the similarity is greater than or equal to 0.5, the particle will adjust its position according to the mutual information, which can capture the complex relationship between features, promote fine-grained search and optimization of particles in high-similarity areas, enhance local development capabilities, and increase the diversity of search.

[0097] The mutual information is specifically:

[0098]

[0099] Among them, H represents information entropy, H(P i t ) represents the information entropy of the particle position of the i-th particle at the t-th iteration, represents the information entropy of the global optimal position at the tth iteration, represents the joint information entropy of the i-th particle and the global optimal position at the t-th iteration.

[0100] It should be noted that the introduction of mutual information can effectively measure the correlation between features. Using mutual information to adjust the position of particles helps to reduce redundancy in feature selection and improve the independence and information content of the selected features.

[0101] S405: Determine whether the maximum number of iterations has been reached. If so, output the feature combination represented by the particle with the highest fitness value as the best feature combination; otherwise, return to S402 to continue iterating.

[0102] In the present invention, the image features are screened by a particle swarm optimization algorithm, and the best feature combination is selected from the image features. The best feature combination is then used for spinal cord detection to avoid image features irrelevant to spinal cord injury detection from participating in the detection, thereby improving the accuracy of spinal cord injury detection.

[0103] S5: Using the best feature combination, each spinal cord region is classified through a support vector machine to determine whether each spinal cord region is a spinal cord injury region.

[0104] Among them, support vector machine is a supervised learning model widely used in classification and regression analysis. SVM classifies samples of different categories by constructing one or more optimal hyperplanes, and its goal is to find a decision boundary that maximizes the interval between classes.

[0105] In a possible implementation, the hyperplane of the support vector machine is specifically:

[0106] f(X)=sgn[ξωX+b]

[0107] Among them, f() represents the optimal hyperplane, sgn() represents the sign function used to return the positivity of the independent variable, ξ represents the slack variable, ω represents the normal vector of the hyperplane, X represents the optimal feature combination of the input spinal cord area, and b represents the offset of the hyperplane.

[0108] Specifically, the optimal hyperplane that maximizes the inter-class interval can be found through optimization algorithms such as particle swarm optimization algorithm and genetic algorithm.

[0109] In a possible implementation, S5 specifically includes sub-steps S501 to S503:

[0110] S501: Projecting the feature vector of the spinal cord region constructed by the best feature combination onto the optimal hyperplane.

[0111] S502: When the projection of the feature vector on the optimal hyperplane is located on the first side of the optimal hyperplane, f(X)=1, and the spinal cord region is determined to be a spinal cord injury region.

[0112] S503: When the projection of the feature vector on the optimal hyperplane is located on the second side of the optimal hyperplane, f(X)=-1, and the spinal cord region is determined to be a healthy region.

[0113] In the present invention, the optimal feature combination is utilized to accurately classify each spinal cord region through a support vector machine, and to detect whether each spinal cord region is a spinal cord injury region, thereby improving the accuracy of spinal cord injury detection.

[0114] S6: Highlight the spinal cord injury area and output the position information of the spinal cord injury area.

[0115] Specifically, the damaged areas in the spinal cord image are marked. These areas can be highlighted using different colors, borders, or transparencies. The marked spinal cord image is displayed so that doctors or researchers can intuitively see which parts are damaged.

[0116] For example, use a red border or a semi-transparent overlay to mark the damaged area to make it stand out in the image.

[0117] In a possible implementation manner, after S5, the method further includes:

[0118] S7: In the presence of spinal cord injury areas, the optimal feature combination is used to classify the spinal cord injury areas through a recurrent neural network.

[0119] Among them, the RNN network (Recurrent Neural Network) is a type of neural network model that can process sequence data. Its characteristic is that there are cyclic connections in the network, which can remember and use past information to affect the current output.

[0120] Among them, the injury categories of the spinal cord injury area included mild deformation, biconcave, wedge-shaped and compression.

[0121] Alternatively, a mild deformity refers to a slight change in the shape of the spinal cord without significant structural damage or dysfunction.

[0122] Alternatively, a biconcave deformation refers to a concavity of the spinal cord in two symmetrical directions, forming a biconcave shape.

[0123] Alternatively, wedge-shaped deformity refers to a pronounced wedge-shaped change in the spinal cord in one direction, usually with a significant decrease in height on one side, forming a wedge shape.

[0124] Optionally, compression deformation refers to the spinal cord being subjected to external force, resulting in compression of a part of the spinal cord and causing significant deformation.

[0125] In a possible implementation, S7 specifically includes sub-steps S701 to S703:

[0126] S701: In the input layer of the recurrent neural network, a feature sequence constructed by the optimal feature combination of each spinal cord injury area is input.

[0127] S702: In the state layer of the recurrent neural network, calculate the hidden state:

[0128]

[0129]

[0130]

[0131] Among them, h t represents the hidden state at time t, represents the previous state of the forward loop, represents the previous state of the backward loop, GRU() represents the nonlinear calculation after the recurrent neural network, x t represents the characteristics at time t, u t express The weight coefficient, v t express The weight coefficient, b t Represents the bias term of the hidden state at time t.

[0132] S703: In the output layer of the recurrent neural network, the probability that the spinal cord injury area belongs to each injury category is calculated:

[0133] P t =Softmax(w f h t +b f )

[0134] P t =[p t1 ,p t2 ,p t3 ,p t4 ]

[0135] Among them, P t represents the probability vector of the spinal cord injury area input at time t belonging to each injury category, Softmax() represents the Softmax activation function, and w f represents the weight between the hidden layer and the output layer, b f represents the bias between the hidden layer and the output layer, p t1 represents the probability value that the spinal cord injury area input at time t is slightly deformed, p t2 represents the probability value of the spinal cord injury area input at time t belonging to the biconcave region, p t3 represents the probability value that the spinal cord injury area input at time t belongs to the wedge shape, p t4 It indicates the probability value that the spinal cord injury area input at time t belongs to compression.

[0136] In the present invention, the spinal cord injury area is classified by using the RNN network using the optimal feature combination, which can fully utilize the advantages of RNN in processing sequence data and improve the accuracy and robustness of classification. RNN can capture complex patterns and time dependencies in features, adapt to different types of injury classification requirements, and provide strong support for the accurate diagnosis and analysis of spinal cord injuries.

[0137] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0138] (1) In the present invention, the spinal cord image is segmented by adaptive threshold segmentation technology, accurately segmented into multiple spinal cord regions, reducing the noise background during the detection process and improving the accuracy of spinal cord injury detection.

[0139] (2) In the present invention, the image features are screened by a particle swarm optimization algorithm, and the best feature combination is selected from the image features. The best feature combination is then used for spinal cord detection to avoid image features that are not related to spinal cord injury detection from participating in the detection, thereby improving the accuracy of spinal cord injury detection.

[0140] (3) In the present invention, the optimal feature combination is used to accurately classify each spinal cord region through a support vector machine to detect whether each spinal cord region is a spinal cord injury region, thereby improving the accuracy of spinal cord injury detection.

[0141] Reference Manual Attached Figure 2 , showing a structural schematic diagram of a spinal cord injury point positioning system based on image processing provided by the present invention.

[0142] The present invention further provides a spinal cord injury point positioning system 20 based on image processing, which is applied to the above-mentioned spinal cord injury point positioning method based on image processing, comprising:

[0143] Processor 201;

[0144] The memory 202 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 201, the spinal cord injury point positioning method based on image processing as described in the method embodiment is implemented.

[0145] The spinal cord injury point localization system 20 based on image processing provided by the present invention can execute the above-mentioned spinal cord injury point localization method based on image processing and achieve the same or similar technical effects. To avoid repetition, the present invention will not elaborate on them.

[0146] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0147] (1) In the present invention, the spinal cord image is segmented by adaptive threshold segmentation technology, accurately segmented into multiple spinal cord regions, reducing the noise background during the detection process and improving the accuracy of spinal cord injury detection.

[0148] (2) In the present invention, the image features are screened by a particle swarm optimization algorithm, and the best feature combination is selected from the image features. The best feature combination is then used for spinal cord detection to avoid image features that are not related to spinal cord injury detection from participating in the detection, thereby improving the accuracy of spinal cord injury detection.

[0149] (3) In the present invention, the optimal feature combination is used to accurately classify each spinal cord region through a support vector machine to detect whether each spinal cord region is a spinal cord injury region, thereby improving the accuracy of spinal cord injury detection.

[0150] It should be understood that the processor in the embodiment of the present invention may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0151] It should also be understood that the memory in the embodiments of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).

[0152] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.

[0153] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0154] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0155] It should be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0156] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0157] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described equipment, devices and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0158] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0159] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0160] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0161] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0162] An embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method for locating a spinal cord injury point based on image processing as described in the method embodiment is implemented.

[0163] A computer-readable storage medium provided by the present invention can implement the steps and effects of the spinal cord injury point positioning method based on image processing in the above method embodiment. To avoid repetition, the present invention will not go into details.

[0164] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:

[0165] (1) In the present invention, the spinal cord image is segmented by adaptive threshold segmentation technology, accurately segmented into multiple spinal cord regions, reducing the noise background during the detection process and improving the accuracy of spinal cord injury detection.

[0166] (2) In the present invention, the image features are screened by a particle swarm optimization algorithm, and the best feature combination is selected from the image features. The best feature combination is then used for spinal cord detection to avoid image features that are not related to spinal cord injury detection from participating in the detection, thereby improving the accuracy of spinal cord injury detection.

[0167] (3) In the present invention, the optimal feature combination is used to accurately classify each spinal cord region through a support vector machine to detect whether each spinal cord region is a spinal cord injury region, thereby improving the accuracy of spinal cord injury detection.

[0168] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

[0169] There are a few points to note:

[0170] (1) The drawings of the embodiments of the present invention only relate to the structures related to the embodiments of the present invention, and other structures may refer to the general design.

[0171] (2) For the sake of clarity, the thickness of a film or region in the drawings used to describe the embodiments of the present invention is enlarged or reduced, that is, these drawings are not drawn according to the actual scale. It is understood that when an element such as a film, a region or a substrate is referred to as being "on" or "under" another element, the element may be "directly" "on" or "under" the other element or there may be intermediate elements.

[0172] (3) In the absence of conflict, the embodiments of the present invention and the features therein may be combined with each other to obtain new embodiments.

[0173] The above are only specific embodiments of the present invention, but the protection scope of the present invention is not limited thereto. The protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A method for locating spinal cord injury points based on image processing, characterized in that: include: S1: Acquire spinal cord images; S2: segmenting the spinal cord image into multiple spinal cord regions by using an adaptive threshold segmentation technique; S3: extracting image features of each spinal cord region; S4: screening the image features by using a particle swarm optimization algorithm, and screening out the best feature combination from the image features; S5: using the optimal feature combination and a support vector machine to classify each spinal cord region to determine whether each spinal cord region is a spinal cord injury region; S6: Highlight the spinal cord injury area and output the position information of the spinal cord injury area.

2. The method for locating spinal cord injury points based on image processing according to claim 1, characterized in that: The S2 specifically includes: S201: Determine the grayscale histogram of the spinal cord image: F={f1,f2,…,f K } Among them, F represents the grayscale histogram, f k represents the number of pixels belonging to the kth gray level, k = 1, 2, ..., K, K represents the total gray level; S202: Determine the probability that the pixel points in the spinal cord image belong to each gray level: Among them, P k represents the probability that a pixel in the spinal cord image belongs to the kth gray level, and N represents the total number of pixels in the spinal cord image; S203: Obtain segmentation threshold set: G={g1,g2,…,g M } Among them, G represents the segmentation threshold set, g m represents the mth grayscale segmentation threshold, and M represents the total number of grayscale segmentation thresholds; S204: Segmenting the spinal cord image into M+1 spinal cord regions using M grayscale segmentation thresholds in the segmentation threshold set; S205: Calculate the weighted probability of each spinal cord region: Among them, ws j represents the weighted probability of the jth spinal cord region, s j represents the jth spinal cord region, j = 1, 2, ..., M + 1, k ∈ s j represents the kth gray level contained in the jth spinal cord region; S206: Calculate the weighted gray level mean of each spinal cord region: Among them, η j represents the weighted gray level mean of the jth spinal cord region, r represents the chaos coefficient, and max represents the maximum value; S207: Calculate the weighted gray intensity mean of the spinal cord image: Among them, μ w represents the weighted gray intensity mean; S208: Calculate the weighted inter-class variance of each spinal cord region: in, represents the weighted between-class variance; S209: determining an optimal segmentation threshold set with the goal of maximizing the weighted inter-class variance; S210: Segment the spinal cord image into M+1 spinal cord regions using M grayscale segmentation thresholds in the optimal segmentation threshold set.

3. The method for locating spinal cord injury points based on image processing according to claim 1, characterized in that: The image features include: connection features, statistical features, distribution features, shape features, HOG features and LGP features.

4. The method for locating spinal cord injury points based on image processing according to claim 1, characterized in that: The S4 specifically includes: S401: Initializing a particle swarm, wherein the particle swarm includes a plurality of particles, each particle representing a feature combination; S402: Calculate the fitness value of each particle; S403: Determine the position of the particle with the highest fitness value as the global optimal position; S404: Update the position of each particle according to the following formula: in, represents the particle position of the i-th particle at the t+1-th iteration, represents the displacement vector of the ith particle at the tth iteration, exp represents an exponential function with a natural constant as the base, s represents a shape parameter, which is a random number between -1 and 1, r represents a logarithmic spiral constant, P best represents the global optimal position, λ represents the attraction factor, represents the global optimal position at the tth iteration; S405: Determine whether the maximum number of iterations has been reached; if so, output the feature combination represented by the particle with the highest fitness value as the optimal feature combination; otherwise, return to S402 to continue iterating.

5. The method for locating spinal cord injury points based on image processing according to claim 1, characterized in that: The hyperplane of the support vector machine is specifically: f(X)=sgn[ξωX+b] Among them, f() represents the optimal hyperplane, sgn() represents the sign function used to return the positivity of the independent variable, ξ represents the slack variable, ω represents the normal vector of the hyperplane, X represents the optimal feature combination of the input spinal cord area, and b represents the offset of the hyperplane.

6. The method for locating spinal cord injury points based on image processing according to claim 5, characterized in that: The S5 specifically includes: S501: Projecting the feature vector of the spinal cord region constructed by the optimal feature combination onto the optimal hyperplane; S502: When the projection of the feature vector on the optimal hyperplane is located on the first side of the optimal hyperplane, f(X)=1, and the spinal cord region is determined to be a spinal cord injury region; S503: When the projection of the feature vector on the optimal hyperplane is located on the second side of the optimal hyperplane, f(X)=-1, and the spinal cord region is determined to be a healthy region.

7. The method for locating spinal cord injury points based on image processing according to claim 1, characterized in that: After S5, the method further includes: S7: In the case where the spinal cord injury area exists, the optimal feature combination is used to classify the spinal cord injury area through a recurrent neural network.

8. The method for locating spinal cord injury points based on image processing according to claim 7, characterized in that: The injury categories of the spinal cord injury areas included mild deformation, biconcave, wedge-shaped, and compression.

9. The method for locating spinal cord injury points based on image processing according to claim 8, characterized in that: The S7 specifically includes: S701: Inputting a feature sequence constructed by an optimal feature combination for each spinal cord injury region into the input layer of the recurrent neural network; S702: In the state layer of the recurrent neural network, calculate the hidden state: Among them, h t represents the hidden state at time t, represents the previous state of the forward loop, represents the previous state of the backward loop, GRU() represents the nonlinear calculation after the recurrent neural network, x t represents the characteristics at time t, u t express The weight coefficient, v t express The weight coefficient, b t Represents the bias term of the hidden state at time t; S703: In the output layer of the recurrent neural network, the probability that the spinal cord injury area belongs to each injury category is calculated: P t =Softmax(w f h t +b f ) P t =[p t1 ,p t2 ,p t3 ,p t4 ] Among them, P t represents the probability vector of the spinal cord injury area input at time t belonging to each injury category, Softmax() represents the Softmax activation function, and w f represents the weight between the hidden layer and the output layer, b f represents the bias between the hidden layer and the output layer, p t1 represents the probability value that the spinal cord injury area input at time t is slightly deformed, p t2 represents the probability value of the spinal cord injury area input at time t belonging to the biconcave area, p t3 represents the probability value that the spinal cord injury area input at time t belongs to the wedge shape, p t4 It indicates the probability value that the spinal cord injury area input at time t belongs to compression.

10. A spinal cord injury point positioning system based on image processing, characterized in that: include: processor; A memory having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executed by the processor, the method for locating a spinal cord injury point based on image processing as claimed in any one of claims 1 to 9 is implemented.

Citation Information

Cited By

  • Hand peripheral nerve injury positioning method based on medical image

    CN120411525A