Visual cerebral hemorrhage neurological function transcranial magnetic stimulation detection method and system

By constructing a three-dimensional head anatomical model and screening safe stimulation targets, combined with real-time monitoring and adjustment, the problem of inaccurate positioning in transcranial magnetic stimulation technology was solved, and safe and reliable cerebral hemorrhage detection was achieved.

CN120695358AInactive Publication Date: 2025-09-26BEIJING TEBOWO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510890356.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-26
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing transcranial magnetic stimulation technology is difficult to achieve accurate positioning in cerebral hemorrhage detection, resulting in the stimulation position deviating from the safe area, posing safety hazards such as hematoma expansion and increased intracranial pressure, which limits its scope of application.

Method used

By obtaining CT images of the head of the user to be tested, a three-dimensional head anatomical model and dangerous stimulation areas are constructed, a set of safe stimulation targets are screened out, and the hematoma area and safe stimulation targets are displayed in real time. The transcranial magnetic stimulation coil is controlled to apply magnetic stimulation to the target safe targets, combined with real-time monitoring and adjustment of stimulation parameters.

Benefits of technology

The safety and accuracy of the detection are improved, adverse effects on the hematoma area are avoided, the stimulation position is ensured to be in a safe area, and the reliability and stability of the detection are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120695358A_ABST
    Figure CN120695358A_ABST
Patent Text Reader

Abstract

The invention provides a visual cerebral hemorrhage neurological function transcranial magnetic stimulation detection method and system, and relates to the technical field of medical system control, and the method comprises the steps: obtaining a head CT image of a hematoma region of a to-be-detected user, and determining a three-dimensional head anatomical model and a dangerous stimulation region according to the CT image; and screening out a safe stimulation target set from a preset stimulation target set based on the dangerous stimulation area. The three-dimensional head anatomical model marked with the hematoma area, the dangerous stimulation area and the safe stimulation target spot is displayed on a preset interface, and magnetic stimulation is applied to the target safe stimulation target spot in response to the selected operation to obtain a detection result. According to the method provided by the invention, by accurately determining the dangerous area and the safe stimulation target and combining visual display, adverse effects on dangerous parts such as a hematoma area and the like in the transcranial magnetic stimulation detection process can be effectively avoided, and the detection safety is remarkably improved; the method provided by the invention can improve the accuracy and reliability of the detection result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical system control technology, and in particular to a visual transcranial magnetic stimulation detection method and system for cerebral hemorrhage neural function. Background Art

[0002] Currently, transcranial magnetic stimulation (TMS) technology is widely used for functional testing of the corticospinal tract (CST) in patients undergoing intracerebral hemorrhage testing due to its non-invasive neuromodulation advantages. However, there is a significant conflict between the dynamic characteristics of intracerebral hemorrhage lesions and the precise positioning requirements of TMS stimulation. How to achieve accurate detection of patients undergoing intracerebral hemorrhage testing while ensuring treatment safety has become a critical issue in this field.

[0003] In related technologies, the corresponding stimulation points are usually selected based on the operator's personal experience. However, this method cannot accurately capture the spatiotemporal dynamic changes of cerebral hemorrhage lesions, resulting in the risk of the stimulation position deviating from the safe area during TMS detection, which may cause safety hazards such as hematoma expansion and increased intracranial pressure in the user to be detected, seriously limiting the scope of application of TMS technology.

[0004] Therefore, there is an urgent need for a visual transcranial magnetic stimulation detection method and system for cerebral hemorrhage neurological function, which can display the hematoma area in real time during TMS detection, so that the stimulation position is within the safe area, thereby improving the applicability and safety of TMS technology. Summary of the Invention

[0005] The embodiments of the present invention provide a visual transcranial magnetic stimulation method and system for detecting neurological function in cerebral hemorrhage, which can display the hematoma area in real time during the TMS detection process, so that the stimulation position is located within the safe area, thereby improving the applicability and safety of TMS technology.

[0006] To achieve the above objectives, the embodiments of the present invention adopt the following technical solutions: In a first aspect, a visualized transcranial magnetic stimulation detection method for neurological function of cerebral hemorrhage is provided, the method comprising: obtaining a head CT image of a user to be detected, wherein a hematoma area exists in the head of the user to be detected; determining a three-dimensional head anatomical model and a dangerous stimulation area of ​​the user to be detected based on the head CT image of the user to be detected, wherein the dangerous stimulation area includes a hematoma area and a buffer area corresponding to a first preset distance extending along the boundary of the hematoma area; based on the dangerous stimulation area, determining a safe stimulation target set from a preset stimulation target set for corticospinal tract function detection, wherein the minimum Euclidean distance between each safe stimulation target included in the safe stimulation target set and the boundary of the dangerous stimulation area is greater than a preset threshold; displaying a three-dimensional head anatomical model of the user to be detected on a preset interface, wherein the three-dimensional head anatomical model is marked with a hematoma area, a dangerous stimulation area, and each safe stimulation target included in the safe stimulation target set; in response to a selection operation of a target safe stimulation target, controlling the transcranial magnetic stimulation coil to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target, thereby obtaining a transcranial magnetic stimulation detection result of the user to be detected.

[0007] The method provided by the present invention first obtains a head CT image of a user to be tested with a hematoma area, determines a three-dimensional head anatomical model and a dangerous stimulation area based on the CT image, and filters a safe stimulation target set from a preset stimulation target set based on the dangerous stimulation area. A three-dimensional head anatomical model marked with a hematoma area, a dangerous stimulation area, and a safe stimulation target is displayed on a preset interface, and magnetic stimulation is applied to the target safe stimulation target in response to the selected operation to obtain a detection result. The method provided by the present invention can effectively avoid adverse effects on dangerous areas such as hematoma areas during transcranial magnetic stimulation detection by accurately determining dangerous areas and safe stimulation targets and combining them with visual display, thereby significantly improving the safety of detection. The method provided by the present invention can improve the accuracy and reliability of detection results, and is also convenient for operators to operate and judge.

[0008] In a possible implementation of the first aspect, determining a safe stimulation target set from a preset stimulation target set for corticospinal tract function testing based on the dangerous stimulation area includes: Acquire a preset stimulation target set, where the preset stimulation target set includes a plurality of preset stimulation targets; Determine the coordinate value of each preset stimulation target in the spatial rectangular coordinate system corresponding to the three-dimensional head anatomical model; based on the coordinate value of the boundary of the dangerous stimulation area in the spatial rectangular coordinate system corresponding to the three-dimensional head anatomical model, determine the minimum Euclidean distance between each preset stimulation target and the boundary of the dangerous stimulation area; determine the preset stimulation target whose minimum Euclidean distance is greater than a preset threshold as a safe stimulation target to obtain a set of safe stimulation targets.

[0009] The method provided by this invention can quickly and accurately screen safe stimulation targets away from dangerous stimulation areas. Compared with ambiguous judgment methods, this method greatly improves the accuracy and scientificity of screening, thereby ensuring the safety of the selected targets during subsequent transcranial magnetic stimulation procedures, avoiding accidental harm to the user being tested due to improper target selection, and providing a strong guarantee for safe and reliable transcranial magnetic stimulation testing.

[0010] In a possible implementation of the first aspect, the above method also includes: obtaining real-time position information of the head of the user to be detected, as well as the real-time position information and input current intensity of the transcranial magnetic stimulation coil; generating an equipotential surface cloud map of the stimulation field based on the real-time position information and input current intensity; based on the equipotential surface cloud map, marking the stimulation area corresponding to the transcranial magnetic stimulation coil in real time in the three-dimensional head anatomical model displayed on a preset interface according to the real-time position information of the head of the user to be detected and the real-time position information of the transcranial magnetic stimulation coil.

[0011] The method provided by the present invention obtains the real-time position information of the head of the user to be detected and the transcranial magnetic stimulation coil, as well as the function of the input current intensity. Based on this real-time information, an equipotential surface cloud map of the stimulation field is generated, and the stimulation area corresponding to the transcranial magnetic stimulation coil is marked in real time in the three-dimensional head anatomical model of the preset interface. By obtaining the position and current information in real time, the actual situation during the transcranial magnetic stimulation process can be dynamically reflected, and the generated equipotential surface cloud map intuitively shows the distribution characteristics of the stimulation field. The real-time marking of the stimulation area allows the operator to clearly see the specific range and position of the current stimulation, which helps the operator to adjust the position and parameters of the stimulation coil in time, ensure that the stimulation can accurately act on the target area, and improve the accuracy and effectiveness of transcranial magnetic stimulation.

[0012] In a possible implementation of the first aspect, the above method also includes: determining in real time the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area; when the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area is less than a preset alarm threshold, controlling the transcranial magnetic stimulation coil to stop the stimulation output, and generating a first alarm message, the first alarm message being used to prompt that the current stimulation area is close to the dangerous stimulation area.

[0013] The method provided by the present invention determines the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area in real time, and when the distance is less than a preset alarm threshold, controls the transcranial magnetic stimulation coil to stop the stimulation output and generates a first alarm message at the same time. It can quickly respond when the stimulation area approaches the dangerous stimulation area and stop the stimulation in time to avoid harm to the user due to the stimulation area accidentally touching the dangerous area. Compared with manual judgment, real-time distance monitoring and automatic triggering of the protection mechanism are more timely and accurate, effectively reducing the risks caused by human negligence or misjudgment, providing more reliable protection for the user's safety, and further improving the safety and stability of the transcranial magnetic stimulation detection process.

[0014] In a possible implementation of the first aspect, the above method also includes: obtaining head posture change information of the user to be detected through an inertial measurement unit, the head posture change information including head offset and offset angle; when the head offset is greater than or equal to a preset offset threshold or the offset angle is greater than or equal to a preset offset angle, controlling the transcranial magnetic stimulation coil to stop stimulation output.

[0015] The method provided by the present invention utilizes an inertial measurement unit to obtain head posture change information of the user to be detected, and when the head offset is greater than or equal to a preset offset threshold or the offset angle is greater than or equal to a preset offset angle, the transcranial magnetic stimulation coil is controlled to stop the stimulation output. During the transcranial magnetic stimulation process, unexpected movement of the head of the user to be detected may cause deviation in the stimulation position, affect the detection effect and even bring safety risks. By monitoring the changes in head posture in real time, the present invention can promptly detect abnormal movement of the head of the user to be detected and quickly stop stimulation to avoid inaccurate stimulation or stimulation of dangerous areas due to head movement. This automatic protection mechanism based on posture changes improves the stability and safety of transcranial magnetic stimulation detection, ensures that the detection process can be carried out while the head of the user to be detected remains relatively stable, thereby improving the reliability of the detection results.

[0016] In a possible implementation of the first aspect, the method further includes: determining a distance between a target safe stimulation target and a boundary of a dangerous stimulation area; and adjusting an input current intensity of the transcranial magnetic stimulation coil according to the distance between the target safe stimulation target and the boundary of the dangerous stimulation area; wherein the input current intensity I is determined by a formula: I = A × L + B; L is the distance between the target safe stimulation point and the boundary of the dangerous stimulation area, and A and B are preset coefficients.

[0017] The method provided by the present invention can achieve refined control of the stimulation intensity by adjusting the input current intensity of the transcranial magnetic stimulation coil according to the distance between the target safe stimulation target and the boundary of the dangerous stimulation area. When the target safe stimulation target is close to the dangerous stimulation area, the input current intensity is appropriately reduced to reduce the potential impact of the stimulation on the dangerous area; when the distance is far, the current intensity can be appropriately increased to ensure the stimulation effect. Compared with the stimulation method with a fixed current intensity, the present invention can effectively balance the stimulation effect and safety, while ensuring the detection effect, minimizing the adverse effects on the dangerous area, improving the safety and effectiveness of transcranial magnetic stimulation detection, making the detection process more scientific and reasonable, and meeting the use requirements in different usage scenarios.

[0018] In a possible implementation of the first aspect, the above method also includes: obtaining head CT images corresponding to the user to be detected at different times at a preset frequency; determining the hematoma volume change rate of the user to be detected based on the head CT images corresponding to the user to be detected at different times; when the hematoma volume change rate is greater than or equal to a preset change rate threshold, determining the hematoma area and the buffer area corresponding to the second preset distance along the boundary of the hematoma area as a dangerous stimulation area, wherein the second preset distance is greater than the first preset distance.

[0019] The method provided by the present invention obtains head CT images of the user to be detected at different times at a preset frequency, determines the hematoma volume change rate based on these images, and redefines the dangerous stimulation area when the hematoma volume change rate is greater than or equal to the preset change rate threshold. Since the hematoma volume of the user to be detected may change over time, this function can timely adjust the scope of the dangerous stimulation area by monitoring the hematoma volume change in real time. When the hematoma has an increasing trend or changes significantly, the dangerous stimulation area is expanded and the safe stimulation targets are re-screened to ensure that the transcranial magnetic stimulation detection can remain safe and effective when the hematoma area changes. This dynamic adjustment mechanism improves the adaptability of the detection method to changes in the condition of the user to be detected, enables the detection process to better fit the actual situation of the user to be detected, ensures the safety and effectiveness of the detection, and provides a more reliable detection service for the user to be detected.

[0020] In a possible implementation of the first aspect, when, in response to a selection operation of a target safe stimulation target, the transcranial magnetic stimulation coil is controlled to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target, the method further includes: obtaining an electromyographic signal amplitude of the user to be detected; determining, based on the electromyographic signal amplitude of the user to be detected, an amplitude attenuation rate of the user to be detected under multiple consecutive transcranial magnetic stimulations; when the amplitude attenuation rate is less than or equal to 15%, maintaining a current stimulation frequency of the transcranial magnetic stimulation coil unchanged; when the amplitude attenuation rate is greater than 15% and less than or equal to 30%, reducing the stimulation frequency of the transcranial magnetic stimulation coil from the current stimulation frequency to a target frequency; when the amplitude attenuation rate is greater than 30%, controlling the transcranial magnetic stimulation coil to stop stimulation output, and generating a second alarm message, the second alarm message being used to prompt that the electromyographic signal of the user to be detected is abnormal; Among them, the formula for determining the amplitude attenuation rate R is: R=(A max -A min ) / A max ; A max A is the maximum value of the myoelectric signal amplitude corresponding to multiple consecutive transcranial magnetic stimulations, min is the minimum value of the myoelectric signal amplitude corresponding to multiple consecutive transcranial magnetic stimulations; The formula for determining the target frequency f1 is: f1=f0×[1-(R-15%) / 30]; f0 is the current stimulation frequency.

[0021] The method provided by the present invention obtains the amplitude of the electromyographic signal of the user to be detected when applying magnetic stimulation to the target safety stimulation target, calculates the amplitude attenuation rate under multiple consecutive transcranial magnetic stimulations based on the amplitude, and promptly adjusts the stimulation frequency according to the different amplitude attenuation rates. Since the electromyographic signal amplitude attenuation rate can reflect the reaction of the user to be detected to transcranial magnetic stimulation, by monitoring this indicator in real time and adjusting the stimulation frequency or stopping the stimulation according to its changes, it is possible to promptly detect abnormal reactions of the user to be detected and avoid harm to the user to be detected due to excessive stimulation or improper stimulation. This dynamic adjustment mechanism based on the physiological reactions of the user to be detected improves the safety and effectiveness of transcranial magnetic stimulation detection, ensures that the stimulation process can be optimized according to the actual tolerance of the user to be detected, and provides a more personalized and safer detection solution for the user to be detected.

[0022] In a second aspect, the present invention provides a visualized transcranial magnetic stimulation detection system for neurological function of cerebral hemorrhage, the system comprising: an image acquisition module for acquiring a head CT image of a user to be detected, wherein a hematoma area exists in the head of the user to be detected; a model construction module for determining a three-dimensional head anatomical model of the user to be detected and a dangerous stimulation area based on the head CT image of the user to be detected, wherein the dangerous stimulation area includes a hematoma area and a buffer area corresponding to a first preset distance extending along the boundary of the hematoma area; a target determination module for determining a safe stimulation target set from a preset stimulation target set for corticospinal tract function detection based on the dangerous stimulation area, wherein the minimum Euclidean distance between each safe stimulation target included in the safe stimulation target set and the boundary of the dangerous stimulation area is greater than a preset threshold; a display module for displaying a three-dimensional head anatomical model of the user to be detected on a preset interface, wherein the three-dimensional head anatomical model is marked with a hematoma area, a dangerous stimulation area, and each safe stimulation target included in the safe stimulation target set; and a detection module for controlling the transcranial magnetic stimulation coil to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target in response to a selection operation of the target safe stimulation target, thereby obtaining a transcranial magnetic stimulation detection result for the user to be detected.

[0023] In a third aspect, an electronic device is provided, comprising a memory and one or more processors; the memory is coupled to the processor; wherein computer program code is stored in the memory, and the computer program code comprises computer instructions, and when the computer instructions are executed by the processor, the electronic device executes a method as in any implementation of the first aspect.

[0024] In a fourth aspect, a computer-readable storage medium is provided, comprising computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method in any implementation of the first aspect.

[0025] According to a fifth aspect, a computer program product is provided. When the computer program product is run on a computer, the computer is caused to execute the method in any implementation of the first aspect.

[0026] It can be understood that the beneficial effects that can be achieved by the system of the second aspect, the electronic device of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect provided above can be referred to the beneficial effects in the first aspect and any possible design method thereof, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 A schematic structural diagram of an electronic device provided by an embodiment of the present invention; Figure 2 A flowchart of a method for visualizing transcranial magnetic stimulation of neural function in cerebral hemorrhage provided by an embodiment of the present invention; Figure 3 A schematic structural diagram of a detection system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0028] The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention. In the description of the present invention, unless otherwise specified, " / " indicates that the objects associated before and after are in an "or" relationship. For example, A / B can represent A or B. The "or" in the present invention is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A 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, in the description of the present invention, unless otherwise specified, "multiple" refers to two or more than two. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items.

[0029] In addition, to facilitate a clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, the words "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. Those skilled in the art will understand that the words "first" and "second" do not limit the quantity or execution order, and the words "first" and "second" do not necessarily mean different.

[0030] In the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present invention should not be construed as superior or more advantageous than other embodiments or designs. Rather, the use of words such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner to facilitate understanding.

[0031] Currently, transcranial magnetic stimulation (TMS) technology is widely used for functional testing of the corticospinal tract (CST) in patients undergoing intracerebral hemorrhage testing due to its non-invasive neuromodulation advantages. However, there is a significant conflict between the dynamic characteristics of intracerebral hemorrhage lesions and the precise positioning requirements of TMS stimulation. How to achieve accurate detection of patients undergoing intracerebral hemorrhage testing while ensuring treatment safety has become a critical issue in this field.

[0032] In related technologies, the corresponding stimulation points are usually selected based on the operator's personal experience. However, this method cannot accurately capture the spatiotemporal dynamic changes of cerebral hemorrhage lesions, resulting in the risk of the stimulation position deviating from the safe area during TMS detection, which may cause safety hazards such as hematoma expansion and increased intracranial pressure in the user to be detected, seriously limiting the scope of application of TMS technology.

[0033] Therefore, there is an urgent need for a visual transcranial magnetic stimulation detection method and system for cerebral hemorrhage neurological function, which can display the hematoma area in real time during TMS detection, so that the stimulation position is within the safe area, thereby improving the applicability and safety of TMS technology.

[0034] In view of this, an embodiment of the present invention provides a visualized transcranial magnetic stimulation detection method and system for cerebral hemorrhage neurological function, the method comprising: obtaining a head CT image of a user to be detected, wherein a hematoma area exists in the head of the user to be detected; determining a three-dimensional head anatomical model and a dangerous stimulation area of ​​the user to be detected based on the head CT image of the user to be detected, wherein the dangerous stimulation area includes a hematoma area and a buffer area corresponding to a first preset distance extending along the boundary of the hematoma area; based on the dangerous stimulation area, determining a safe stimulation target set from a preset stimulation target set for corticospinal tract function detection, wherein the minimum Euclidean distance between each safe stimulation target included in the safe stimulation target set and the boundary of the dangerous stimulation area is greater than a preset threshold; displaying a three-dimensional head anatomical model of the user to be detected on a preset interface, wherein the three-dimensional head anatomical model is marked with a hematoma area, a dangerous stimulation area, and each safe stimulation target included in the safe stimulation target set; in response to a selection operation of a target safe stimulation target, controlling the transcranial magnetic stimulation coil to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target, thereby obtaining a transcranial magnetic stimulation detection result of the user to be detected.

[0035] The method provided by the present invention first obtains a head CT image of a user to be tested with a hematoma area, determines a three-dimensional head anatomical model and a dangerous stimulation area based on the CT image, and filters a safe stimulation target set from a preset stimulation target set based on the dangerous stimulation area. A three-dimensional head anatomical model marked with a hematoma area, a dangerous stimulation area, and a safe stimulation target is displayed on a preset interface, and magnetic stimulation is applied to the target safe stimulation target in response to the selected operation to obtain a detection result. The method provided by the present invention can effectively avoid adverse effects on dangerous areas such as hematoma areas during transcranial magnetic stimulation detection by accurately determining dangerous areas and safe stimulation targets and combining them with visual display, thereby significantly improving the safety of detection. The method provided by the present invention can improve the accuracy and reliability of detection results, and is also convenient for operators to operate and judge.

[0036] In some embodiments, a visualized transcranial magnetic stimulation detection method for neural function of cerebral hemorrhage provided by an embodiment of the present invention can be performed by a visualized transcranial magnetic stimulation detection system 100 for neural function of cerebral hemorrhage (hereinafter referred to as detection system 100 ).

[0037] As an example, the detection system 100 can be any electronic device 200 with data processing capabilities, such as a general-purpose computer, a personal computer, a laptop computer, a switch or a tablet computer, etc. The specific implementation method of the detection system 100 is not limited here.

[0038] Figure 1 The electronic device 200 includes a processor 210 , a memory 220 , and a communication interface 230 .

[0039] The processor 210 may include one or more processing cores. The processor 210 uses various interfaces and lines to connect various parts of the electronic device 200, and executes various functions of the electronic device 200 and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory 220, and calling data stored in the memory 220. Optionally, the processor 210 can be implemented in the form of at least one hardware of a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processing (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA).

[0040] The memory 220 may include a random access memory (RAl) or a read-only memory (ROL). Optionally, the memory 220 includes a non-transitory computer-readable storage medium (NMT). The memory 220 may be used to store instructions, programs, codes, code sets, or instruction sets. The memory 220 may include a program storage area. The program storage area may store instructions for implementing an operating system, instructions for implementing at least one function (such as an image acquisition function, a model building function, a display function, and a detection function), instructions for implementing the above-mentioned various method embodiments, etc.

[0041] The communication interface 230 is used to communicate with other devices, equipment or communication networks, such as data storage devices, image processing equipment or Ethernet, radio access network (RAN), wireless local area network (WLAN), etc.

[0042] In physical implementation, the aforementioned components (e.g., processor 210, memory 220, and communication interface 230) may be components within the same device (e.g., a laptop). Alternatively, at least two of the components may be provided within the same device, i.e., as different components within a single device, similar to the deployment of devices or components in a distributed system.

[0043] It should be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 200. In other embodiments of the present invention, the electronic device 200 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.

[0044] The following describes a visualized transcranial magnetic stimulation detection method for neural function of cerebral hemorrhage provided by an embodiment of the present invention in conjunction with the accompanying drawings.

[0045] Figure 2 A flowchart of a visual transcranial magnetic stimulation method for detecting neural function in cerebral hemorrhage provided by an embodiment of the present invention. Optionally, the method can be Figure 1 The electronic device 200 shown in FIG. 10 is executed. The method may include the following steps: S1. Obtain a CT image of the head of the user to be detected, where a hematoma area exists in the head of the user to be detected.

[0046] Specifically, a head CT image is an image obtained by scanning the human head using computed tomography (CT). It uses an X-ray beam to sweep around a certain thickness of the head. The detector receives the X-rays that pass through the layer, converts them into visible light, and then converts them into electrical signals by a photoelectric converter. This signal is then converted to a digital signal by an analog / digital converter and fed into a computer for processing, ultimately presenting a cross-sectional image of the head's internal structure.

[0047] S2. Determine a three-dimensional head anatomical model and a dangerous stimulation area of ​​the user to be detected based on a CT image of the user's head to be detected.

[0048] The dangerous stimulation area includes a hematoma area and a buffer area corresponding to a first preset distance extending along the boundary of the hematoma area.

[0049] In one possible implementation, the head CT image includes grayscale image information and scanning parameter information corresponding to different sections of the user's head to be tested. The detection system removes noise from the grayscale image using a noise reduction algorithm and then enhances the image contrast to clearly define the boundaries of the skull, brain tissue, and hematoma regions in the image, thereby obtaining a preprocessed head CT image. The detection system then segments the skull, brain tissue, and hematoma regions in the image using a threshold segmentation algorithm to obtain a binary image sequence corresponding to each region. The detection system 100 constructs a triangular mesh surface model based on the binary image sequence corresponding to each region using a surface rendering algorithm and then determines a preliminary three-dimensional head anatomical model using a volume rendering algorithm. Finally, the detection system 100 smoothes the preliminary three-dimensional head anatomical model to obtain a three-dimensional head anatomical model of the user to be tested. The detection system then generates a corresponding risk stimulus region based on the hematoma region and a buffer region corresponding to a first preset distance extending from the boundary of the hematoma region.

[0050] It should be noted that the above process of generating the three-dimensional head anatomical model and dangerous stimulation area is only an example. The detection system can also use other methods to construct the three-dimensional head anatomical model and dangerous stimulation area of ​​the user to be detected. The embodiment of the present invention does not impose any special restrictions on this.

[0051] In one possible implementation, the detection system also obtains a DTI image of the user to be detected and determines a 3D head anatomical model and a risk stimulation area based on the user's head CT image and DTI image. This allows accurate identification of the sulci and gyri on the user's brain surface, effectively improving the precision of the 3D head anatomical model and risk stimulation area, thereby enhancing detection accuracy.

[0052] S3. Based on the dangerous stimulation area, determine a safe stimulation target set from a preset stimulation target set for corticospinal tract function testing.

[0053] Specifically, the minimum Euclidean distance between each safe stimulation target point included in the safe stimulation target point set and the boundary of the dangerous stimulation area is greater than a preset threshold.

[0054] In a possible implementation, the above S3 includes: Obtain a preset stimulation target set, which includes multiple preset stimulation targets; determine the coordinate value of each preset stimulation target in the spatial rectangular coordinate system corresponding to the three-dimensional head anatomical model; based on the coordinate value of the boundary of the dangerous stimulation area in the spatial rectangular coordinate system corresponding to the three-dimensional head anatomical model, determine the minimum Euclidean distance between each preset stimulation target and the boundary of the dangerous stimulation area; determine the preset stimulation target whose minimum Euclidean distance is greater than a preset threshold as a safe stimulation target to obtain a safe stimulation target set.

[0055] In one example, the preset threshold is 15 mm.

[0056] The method provided by the embodiments of the present invention can quickly and accurately screen safe stimulation targets away from dangerous stimulation areas. Compared with ambiguous judgment methods, the method provided by the embodiments of the present invention greatly improves the accuracy and scientificity of screening, thereby ensuring the safety of the selected targets for subsequent transcranial magnetic stimulation operations, avoiding accidental harm to the user being tested due to improper target selection, and providing a strong guarantee for safe and reliable transcranial magnetic stimulation testing.

[0057] S4. Displaying a three-dimensional head anatomical model of the user to be detected on a preset interface, wherein the three-dimensional head anatomical model is marked with a hematoma area, a dangerous stimulation area, and each safe stimulation target included in the safe stimulation target set.

[0058] S5. In response to the selection operation of the target safe stimulation target, the transcranial magnetic stimulation coil is controlled to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target, and a transcranial magnetic stimulation detection result of the user to be detected is obtained.

[0059] It should be noted that the transcranial magnetic stimulation test results are used to perform functional testing of the corticospinal tract of the user to be tested.

[0060] In some embodiments, when the detection system executes the above S5, the method provided by the embodiment of the present invention further includes: obtaining the amplitude of the electromyographic signal of the user to be detected; determining the amplitude attenuation rate of the user to be detected under multiple consecutive transcranial magnetic stimulations based on the amplitude of the electromyographic signal of the user to be detected; When the amplitude attenuation rate is less than or equal to 15%, the current stimulation frequency of the transcranial magnetic stimulation coil is maintained unchanged; when the amplitude attenuation rate is greater than 15% and less than or equal to 30%, the stimulation frequency of the transcranial magnetic stimulation coil is reduced from the current stimulation frequency to the target frequency; when the amplitude attenuation rate is greater than 30%, the transcranial magnetic stimulation coil is controlled to stop the stimulation output and generate a second alarm message, which is used to prompt that the electromyographic signal of the user to be detected is abnormal; Among them, the formula for determining the amplitude attenuation rate R is: R=(A max -A min ) / Amax ; A max Amin is the minimum value of the myoelectric signal amplitude corresponding to multiple consecutive transcranial magnetic stimulations; The formula for determining the target frequency f1 is: f1=f0×[1-(R-15%) / 30]; f0 is the current stimulation frequency.

[0061] In one example, the amplitude of the electromyographic signal collected by the user under 10 consecutive transcranial magnetic stimulations is 2.5, 2.3, 2.2, 2.0, 1.9, 1.8, 1.7, 1.6, 1.5, and 1.4, respectively, in mV. max 2.5mV, A min =1.4mV, so R = 44%. Since R is greater than 30%, the transcranial magnetic stimulation coil is controlled to stop the stimulation output and a second alarm message is generated.

[0062] In another example, the amplitude of the electromyographic signal collected by the user under 10 consecutive transcranial magnetic stimulations is 3.0, 2.8, 2.7, 2.6, 2.7, 2.8, 2.8, 2.8, 2.8, and 2.6, respectively, in mV. max 3.0mV, A min =2.6mV, which means R = 13.3%. Since R is less than 15%, the current stimulation frequency of the transcranial magnetic stimulation coil is kept unchanged.

[0063] The method provided by the present invention obtains the amplitude of the electromyographic signal of the user to be detected when applying magnetic stimulation to the target safety stimulation target, calculates the amplitude attenuation rate under multiple consecutive transcranial magnetic stimulations based on the amplitude, and promptly adjusts the stimulation frequency according to the different amplitude attenuation rates. Since the electromyographic signal amplitude attenuation rate can reflect the reaction of the user to be detected to transcranial magnetic stimulation, by monitoring this indicator in real time and adjusting the stimulation frequency or stopping the stimulation according to its changes, it is possible to promptly detect abnormal reactions of the user to be detected and avoid harm to the user to be detected due to excessive stimulation or improper stimulation. This dynamic adjustment mechanism based on the physiological reactions of the user to be detected improves the safety and effectiveness of transcranial magnetic stimulation detection, ensures that the stimulation process can be optimized according to the actual tolerance of the user to be detected, and provides a more personalized and safer detection solution for the user to be detected.

[0064] As can be seen from the above S1-S5, the method provided by the embodiment of the present invention first obtains a head CT image of the user to be detected with a hematoma area, determines a three-dimensional head anatomical model and a dangerous stimulation area based on the CT image, and filters out a safe stimulation target set from a preset stimulation target set based on the dangerous stimulation area. A three-dimensional head anatomical model marked with a hematoma area, a dangerous stimulation area, and a safe stimulation target is displayed on a preset interface, and magnetic stimulation is applied to the target safe stimulation target in response to the selected operation to obtain a detection result. The method provided by the present invention can effectively avoid adverse effects on dangerous areas such as hematoma areas during transcranial magnetic stimulation detection by accurately determining dangerous areas and safe stimulation targets, and combining them with visual display, thereby significantly improving the safety of detection; the method provided by the present invention can improve the accuracy and reliability of detection results, and is also convenient for operators to operate and judge.

[0065] In some embodiments, the method provided by the present invention further comprises: The real-time position information of the head of the user to be detected, as well as the real-time position information and input current intensity of the transcranial magnetic stimulation coil are obtained; an equipotential surface cloud map of the stimulation field is generated based on the real-time position information and input current intensity; based on the equipotential surface cloud map, the stimulation area corresponding to the transcranial magnetic stimulation coil is marked in real time in the three-dimensional head anatomical model displayed on the preset interface according to the real-time position information of the head of the user to be detected and the real-time position information of the transcranial magnetic stimulation coil.

[0066] In one example, the transcranial magnetic stimulation coil is provided with a plurality of electromagnetic transmitters, and the detection system 100 further includes a plurality of electromagnetic receivers, wherein the plurality of electromagnetic receivers are provided around the transcranial magnetic stimulation coil.

[0067] The electromagnetic transmitter is used to continuously transmit electromagnetic signals of a preset frequency, and the electromagnetic receiver is used to receive the electromagnetic signals transmitted by the electromagnetic transmitter. The detection system 100 then determines the coordinates of each electromagnetic transmitter in the spatial coordinate system corresponding to the three-dimensional head anatomical model based on the arrival time and intensity of the electromagnetic signals. The detection system then determines the real-time position of the transcranial magnetic stimulation coil based on the coordinates of each electromagnetic transmitter in the spatial coordinate system corresponding to the three-dimensional head anatomical model.

[0068] As can be seen from the above, the method provided by the embodiment of the present invention obtains the real-time position information of the head of the user to be detected and the transcranial magnetic stimulation coil, as well as the function of the input current intensity. Based on these real-time information, an equipotential surface cloud map of the stimulation field is generated, and the stimulation area corresponding to the transcranial magnetic stimulation coil is marked in real time in the three-dimensional head anatomical model of the preset interface. By obtaining the position and current information in real time, the actual situation during the transcranial magnetic stimulation process can be dynamically reflected, and the generated equipotential surface cloud map intuitively shows the distribution characteristics of the stimulation field. The real-time marking of the stimulation area enables the operator to clearly see the specific range and position of the current stimulation, which helps the operator to adjust the position and parameters of the stimulation coil in time, ensure that the stimulation can accurately act on the target area, and improve the accuracy and effectiveness of transcranial magnetic stimulation.

[0069] In other embodiments, the method provided by the present invention further comprises: Determine in real time the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area; when the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area is less than a preset alarm threshold, control the transcranial magnetic stimulation coil to stop the stimulation output and generate a first alarm message, which is used to prompt that the current stimulation area is close to the dangerous stimulation area.

[0070] By determining the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area in real time, and when the distance is less than the preset alarm threshold, the transcranial magnetic stimulation coil is controlled to stop the stimulation output and generate the first alarm information at the same time. It can react quickly when the stimulation area approaches the dangerous stimulation area and stop the stimulation in time to avoid harm to the user due to the stimulation area accidentally touching the dangerous area. Compared with manual judgment, real-time distance monitoring and automatic triggering of the protection mechanism are more timely and accurate, effectively reducing the risks caused by human negligence or misjudgment, providing more reliable protection for the user's safety, and further improving the safety and stability of the transcranial magnetic stimulation detection process.

[0071] In a possible implementation, the method further includes: The head posture change information of the user to be detected is obtained through the inertial measurement unit, and the head posture change information includes the head offset and offset angle; when the head offset is greater than or equal to the preset offset threshold or the offset angle is greater than or equal to the preset offset angle, the transcranial magnetic stimulation coil is controlled to stop stimulation output.

[0072] Specifically, an Inertial Measurement Unit (IMU) is a sensor that integrates an accelerometer, gyroscope, and magnetometer. It is used to measure the three-axis acceleration, angular velocity, and absolute orientation of the user's head. This enables high-precision head tracking. It should be noted that the head offset is the linear displacement of the user in any direction, and the offset angle is the rotational offset of the user's head.

[0073] Exemplarily, the offset angle is 1.5° and the head offset is 0.8 mm.

[0074] As can be seen from the above, the method provided by the embodiment of the present invention utilizes an inertial measurement unit to obtain the head posture change information of the user to be detected, and when the head offset is greater than or equal to the preset offset threshold or the offset angle is greater than or equal to the preset offset angle, the transcranial magnetic stimulation coil is controlled to stop the stimulation output. During the transcranial magnetic stimulation process, the unexpected movement of the head of the user to be detected may cause the stimulation position deviation, affect the detection effect and even bring safety risks. The present invention can promptly detect abnormal movement of the head of the user to be detected by real-time monitoring of head posture changes, and quickly stop stimulation to avoid inaccurate stimulation or stimulation of dangerous areas due to head movement. This automatic protection mechanism based on posture changes improves the stability and safety of transcranial magnetic stimulation detection, ensures that the detection process can be carried out while the head of the user to be detected remains relatively stable, thereby improving the reliability of the detection results.

[0075] In one possible implementation, the method provided by the embodiment of the present invention further includes: Determine the distance between the target safe stimulation target and the boundary of the dangerous stimulation area; and adjust the input current intensity of the transcranial magnetic stimulation coil according to the distance between the target safe stimulation target and the boundary of the dangerous stimulation area.

[0076] Optionally, the formula for determining the input current intensity I is: I = A × L + B; L is the distance between the target safe stimulation point and the boundary of the dangerous stimulation area, and A and B are preset coefficients.

[0077] In one example, A = 0.2, B = 3. When the distance L between the target safe stimulation target and the boundary of the dangerous stimulation area is 10 mm, I = 5 A. When the distance L between the target safe stimulation target and the boundary of the dangerous stimulation area is 15 mm, I = 6 A.

[0078] In this way, as the distance between the target safety stimulation target and the boundary of the dangerous stimulation area increases, increasing the input current intensity while ensuring that it is far away from the dangerous stimulation area can effectively enhance the stimulation effect, thereby realizing dynamic adjustment of the stimulation intensity and effectively improving the safety and reliability of the detection process.

[0079] From the above, it can be seen that the method provided by the embodiment of the present invention can achieve refined control of the stimulation intensity by adjusting the input current intensity of the transcranial magnetic stimulation coil according to the distance between the target safe stimulation target and the boundary of the dangerous stimulation area. When the target safe stimulation target is close to the dangerous stimulation area, the input current intensity is appropriately reduced to reduce the potential impact of the stimulation on the dangerous area; when the distance is far, the current intensity can be appropriately increased to ensure the stimulation effect. Compared with the stimulation method with fixed current intensity, the present invention can effectively balance the stimulation effect and safety, while ensuring the detection effect, minimizing the adverse effects on the dangerous area, improving the safety and effectiveness of transcranial magnetic stimulation detection, making the detection process more scientific and reasonable, and meeting the usage requirements in different usage scenarios.

[0080] In some embodiments, the method provided by the embodiment of the present invention further includes: Acquire head CT images corresponding to the user to be detected at different times at a preset frequency; determine the hematoma volume change rate of the user to be detected based on the head CT images corresponding to the user to be detected at different times; when the hematoma volume change rate is greater than or equal to a preset change rate threshold, determine the hematoma area and a buffer area corresponding to a second preset distance along the boundary of the hematoma area as a dangerous stimulation area, wherein the second preset distance is greater than the first preset distance.

[0081] The method provided by the embodiment of the present invention obtains head CT images of the user to be detected at different times at a preset frequency, determines the hematoma volume change rate based on these images, and redefines the dangerous stimulation area when the hematoma volume change rate is greater than or equal to the preset change rate threshold. Since the hematoma volume of the user to be detected may change over time, this function can timely adjust the range of the dangerous stimulation area by monitoring the hematoma volume change in real time. When the hematoma has an increasing trend or changes significantly, the dangerous stimulation area is expanded and the safe stimulation targets are re-screened to ensure that the transcranial magnetic stimulation detection can remain safe and effective when the hematoma area changes. This dynamic adjustment mechanism improves the adaptability of the detection method to changes in the condition of the user to be detected, enables the detection process to better fit the actual situation of the user to be detected, ensures the safety and effectiveness of the detection, and provides a more reliable detection service for the user to be detected.

[0082] The above mainly introduces the solution of the embodiment of the present invention from the perspective of method. It can be understood that in order to realize the above functions, the detection system 100 includes at least one of the hardware structure and software modules corresponding to the execution of each function. It should be easy for those skilled in the art to realize that, in combination with the units and algorithm steps of each example described in the embodiment disclosed herein, the embodiment of the present invention can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware 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 exceed the scope of the embodiment of the present invention.

[0083] In an embodiment of the present invention, the detection system 100 can be divided into functional units according to the above-described method example. For example, the detection system 100 can be divided into functional units corresponding to various functions, or two or more functions can be integrated into a single processing unit. The above-mentioned integrated units can be implemented in the form of hardware or software functional units. It should be noted that the division of units in the embodiment of the present invention is schematic and is merely a logical functional division. In actual implementation, other division methods may be used.

[0084] For example, Figure 3 A schematic diagram of the hardware structure of a detection system provided by an embodiment of the present invention is shown. The detection system 100 includes: an image acquisition module 110 for acquiring a head CT image of a user to be detected, wherein the head of the user to be detected has a hematoma area; a model construction module 120 for determining a three-dimensional head anatomical model of the user to be detected and a dangerous stimulation area based on the head CT image of the user to be detected, wherein the dangerous stimulation area includes a hematoma area and a buffer area corresponding to a first preset distance extending from the boundary of the hematoma area; a target determination module 130 for determining a safe stimulation target set from a preset stimulation target set for corticospinal tract function testing based on the dangerous stimulation area, wherein the minimum Euclidean distance between each safe stimulation target in the safe stimulation target set and the boundary of the dangerous stimulation area is greater than a preset threshold; a display module 140 for displaying a three-dimensional head anatomical model of the user to be detected on a preset interface, wherein the three-dimensional head anatomical model is marked with the hematoma area, the dangerous stimulation area, and each safe stimulation target in the safe stimulation target set; and a detection module 150 for controlling the transcranial magnetic stimulation coil to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target in response to a selection operation of the target safe stimulation target, thereby obtaining a transcranial magnetic stimulation detection result for the user to be detected.

[0085] It should be understood that the specific description of the above optional methods can refer to the above method embodiments, which will not be repeated here. In addition, the explanation of any detection system 100 provided above and the description of the beneficial effects can refer to the above corresponding method embodiments, which will not be repeated here.

[0086] An embodiment of the present invention further provides a computer-readable storage medium storing at least one computer instruction, which is loaded and executed by a processor to implement the methods of each of the above embodiments. For explanations of the relevant contents and descriptions of the beneficial effects of any of the above-mentioned computer-readable storage media, reference can be made to the corresponding embodiments described above and will not be repeated here.

[0087] The embodiment of the present invention further provides a chip. The chip integrates a control circuit and one or more ports for implementing the functions of the above-mentioned detection system 100. Optionally, the functions supported by the chip can be referred to above and will not be repeated here.

[0088] Those skilled in the art will appreciate that all or part of the steps of the above-mentioned embodiments can be implemented by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium. The above-mentioned storage medium can be a read-only memory, a random access memory, etc. The above-mentioned processing unit or processor can be a central processing unit, a general-purpose processor, a specific circuit structure (application specific integrated circuit, ASIC), a microprocessor (digital signal processor, DSP), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof.

[0089] An embodiment of the present invention further provides a computer program product comprising instructions that, when executed on a computer, cause the computer to perform any of the methods described in the above embodiments. The computer program product comprises one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the embodiments of the present invention are fully or partially generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium may be any available medium accessible by a computer or a data storage device such as a server or data center that includes one or more available media. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state drives).

[0090] It should be noted that the above-mentioned devices for storing computer instructions or computer programs provided in the embodiments of the present invention, such as but not limited to the above-mentioned memories, computer-readable storage media and communication chips, etc., all have non-transitory properties. Those skilled in the art should be aware that in one or more of the above examples, the functions described in the embodiments of the present invention can be implemented using hardware, software, firmware or any combination thereof. When implemented using software, these functions can be stored in a computer-readable storage medium or transmitted as one or more instructions or codes on a computer-readable storage medium. Computer-readable storage media include computer storage media and communication media, wherein the communication medium includes any medium that facilitates the transmission of a computer program from one place to another. The storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer.

[0091] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A visual transcranial magnetic stimulation method for detecting neural function in cerebral hemorrhage, characterized in that: The method comprises: Acquire a CT image of the head of a user to be detected, where a hematoma area exists in the head of the user to be detected; Determining a three-dimensional head anatomical model and a dangerous stimulation area of ​​the user to be detected based on a head CT image of the user to be detected, wherein the dangerous stimulation area includes a hematoma area and a buffer area corresponding to a first preset distance extending from a boundary of the hematoma area; Based on the dangerous stimulation area, determining a safe stimulation target set from a preset stimulation target set for corticospinal tract function testing, wherein a minimum Euclidean distance between each safe stimulation target included in the safe stimulation target set and a boundary of the dangerous stimulation area is greater than a preset threshold; Displaying a three-dimensional head anatomical model of the user to be detected on a preset interface, wherein the three-dimensional head anatomical model is marked with a hematoma area, a dangerous stimulation area, and each safe stimulation target included in the safe stimulation target set; In response to the selection operation of the target safe stimulation target, the transcranial magnetic stimulation coil is controlled to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target, and the transcranial magnetic stimulation detection result of the user to be detected is obtained.

2. The method according to claim 1, characterized in that Based on the dangerous stimulation area, determining a safe stimulation target set from a preset stimulation target set for corticospinal tract function testing includes: Acquire the preset stimulation target point set, wherein the preset stimulation target point set includes a plurality of preset stimulation target points; Determining the coordinate value of each preset stimulation target point in the spatial rectangular coordinate system corresponding to the three-dimensional head anatomical model; determining a minimum Euclidean distance between each of the preset stimulation targets and the boundary of the dangerous stimulation area based on a coordinate value of the boundary of the dangerous stimulation area in a spatial rectangular coordinate system corresponding to the three-dimensional head anatomical model; The preset stimulation target points whose minimum Euclidean distance is greater than a preset threshold are determined as safe stimulation target points to obtain the safe stimulation target point set.

3. The method according to claim 2, characterized in that The method further comprises: Acquiring real-time position information of the head of the user to be detected, as well as real-time position information and input current intensity of the transcranial magnetic stimulation coil; generating an equipotential surface cloud map of the stimulation field according to the real-time position information and the input current intensity; Based on the equipotential surface cloud map, the stimulation area corresponding to the transcranial magnetic stimulation coil is marked in real time in the three-dimensional head anatomical model displayed on the preset interface according to the real-time position information of the head of the user to be detected and the real-time position information of the transcranial magnetic stimulation coil.

4. The method according to claim 3, characterized in that The method further comprises: Determine in real time the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area; when the distance between the center point of the stimulation area and the boundary of the dangerous stimulation area is less than a preset alarm threshold, control the transcranial magnetic stimulation coil to stop the stimulation output and generate a first alarm message, wherein the first alarm message is used to prompt that the current stimulation area is close to the dangerous stimulation area.

5. The method according to claim 4, characterized in that The method further comprises: Acquiring head posture change information of the user to be detected through an inertial measurement unit, wherein the head posture change information includes a head offset and an offset angle; When the head offset is greater than or equal to a preset offset threshold or the offset angle is greater than or equal to a preset offset angle, the transcranial magnetic stimulation coil is controlled to stop stimulating.

6. The method according to claim 5, characterized in that The method further comprises: Determining the distance between the target safe stimulation point and the boundary of the dangerous stimulation area; adjusting the input current intensity of the transcranial magnetic stimulation coil according to the distance between the target safe stimulation point and the boundary of the dangerous stimulation area; The formula for determining the input current intensity I is: I = A × L + B; L is the distance between the target safe stimulation point and the boundary of the dangerous stimulation area, and A and B are preset coefficients.

7. The method according to claim 6, characterized in that The method further comprises: Acquire head CT images corresponding to the user to be detected at different times at a preset frequency; The hematoma volume change rate of the user to be detected is determined based on the head CT images corresponding to the user to be detected at different times; when the hematoma volume change rate is greater than or equal to a preset change rate threshold, the hematoma area and a buffer area corresponding to a second preset distance along the boundary of the hematoma area are determined as dangerous stimulation areas, wherein the second preset distance is greater than the first preset distance.

8. The method according to claim 7, characterized in that When, in response to the operation of selecting the target safe stimulation target, the transcranial magnetic stimulation coil is controlled to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target, the method further includes: obtaining the amplitude of the electromyographic signal of the user to be detected; determining an amplitude attenuation rate of the user to be detected under multiple consecutive transcranial magnetic stimulations according to the amplitude of the electromyographic signal of the user to be detected; When the amplitude attenuation rate is less than or equal to 15%, the current stimulation frequency of the transcranial magnetic stimulation coil is maintained unchanged; when the amplitude attenuation rate is greater than 15% and less than or equal to 30%, the stimulation frequency of the transcranial magnetic stimulation coil is reduced from the current stimulation frequency to the target frequency; When the amplitude attenuation rate is greater than 30%, controlling the transcranial magnetic stimulation coil to stop stimulating output and generating a second alarm message, wherein the second alarm message is used to prompt that the electromyographic signal of the user to be detected is abnormal; The formula for determining the amplitude attenuation rate R is: R=(A max -A min ) / A max ; A max A is the maximum value of the myoelectric signal amplitude corresponding to multiple consecutive transcranial magnetic stimulations, min is the minimum value of the myoelectric signal amplitude corresponding to multiple consecutive transcranial magnetic stimulations; The formula for determining the target frequency f1 is: f1=f0×[1-(R-15%) / 30]; f0 is the current stimulation frequency.

9. A visual transcranial magnetic stimulation detection system for cerebral hemorrhage neural function, characterized in that: The system comprises: an image acquisition module configured to acquire a CT image of the head of a user to be detected, wherein the head of the user to be detected has a hematoma area; and a model construction module configured to determine, based on the CT image of the head of the user to be detected, a three-dimensional anatomical model of the head of the user to be detected and a dangerous stimulation area, wherein the dangerous stimulation area includes the hematoma area and a buffer area corresponding to a first preset distance extending from the boundary of the hematoma area. a target determination module, configured to determine, based on the dangerous stimulation area, a safe stimulation target set from a preset stimulation target set for corticospinal tract function testing, wherein a minimum Euclidean distance between each safe stimulation target included in the safe stimulation target set and a boundary of the dangerous stimulation area is greater than a preset threshold; A display module is used to display a three-dimensional head anatomical model of the user to be detected on a preset interface, wherein the three-dimensional head anatomical model is marked with a hematoma area, a dangerous stimulation area, and each safe stimulation target included in the safe stimulation target set; a detection module is used to control the transcranial magnetic stimulation coil to apply magnetic stimulation to the brain area corresponding to the target safe stimulation target in response to the selection operation of the target safe stimulation target, so as to obtain the transcranial magnetic stimulation detection result of the user to be detected.

10. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the visualized transcranial magnetic stimulation detection method for cerebral hemorrhage neural function as described in any one of claims 1 to 8.