Electric field data storage method and device, equipment, storage medium and product
By converting the electric field simulation data from the text document format to the polygon file format and deleting the surface elements, the problem of excessive storage space demand for electric field simulation results is solved, and more efficient storage and cost reduction is achieved.
Patent Information
- Application Number
- CN202510352327.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-24
- Publication Date
- 2025-07-04
AI Technical Summary
In the prior art, the storage space demand for electric field simulation results has increased significantly, resulting in excessive storage cost and space demand.
Convert the electric field simulation data from the text document format to the polygon file format, and delete the face elements in the polygon file format to generate the target file.
It reduces the storage space requirements and costs of electric field simulation data and improves storage efficiency.
Smart Images

Figure CN120256398A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of data processing, and in particular, to a method, apparatus, device, storage medium, and product for storing electric field data. Background Art
[0002] In an implantable medical system, electric field simulation is a key technology that can help users understand the distribution and changes of the electric field.
[0003] In the prior art, for the results of electric field simulation, they are usually stored in the text document (txt) format. When it is necessary to obtain the results of electric field simulation, the text document corresponding to the required electric field simulation results can be directly called. However, due to the different combinations of the positive and negative polarities and voltage intensities of the electrode contacts, the diversity of the electric field shapes will be caused, resulting in a large amount of simulation result data, leading to a significant increase in the storage space requirement and increasing the storage cost and space requirement. Summary of the Invention
[0004] Embodiments of the present invention provide a method, apparatus, device, storage medium, and product for storing electric field data to achieve the purpose of reducing the storage cost and space requirement of electric field simulation data.
[0005] According to one aspect of the present invention, there is provided a method for storing electric field data, including:
[0006] Obtain an original file storing electric field simulation data; wherein, the format of the original file is a text document format;
[0007] Extract the electric field simulation data from the original file, and store the electric field simulation data in the polygon file format to obtain a file in the polygon file format;
[0008] Delete the face elements in the file in the polygon file format, and use the file in the polygon file format after deleting the face elements as the target file for storing the electric field simulation data.
[0009] According to another aspect of the present invention, there is provided an apparatus for storing electric field data, including:
[0010] An original file acquisition module, configured to obtain an original file storing electric field simulation data; wherein, the format of the original file is a text document format;
[0011] A data extraction module, configured to extract the electric field simulation data from the original file, and store the electric field simulation data in the polygon file format to obtain a file in the polygon file format;
[0012] A face element deletion module, configured to delete the face elements in the polygon file format file, and use the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data.
[0013] According to another aspect of the present invention, there is provided a storage device, which includes:
[0014] An input interface, configured to provide an interface for a user to input electrode configuration information;
[0015] A processor, configured to receive the original file storing the electric field simulation data, and execute the electric field data storage method according to any embodiment of the present invention to obtain the target file for storing the electric field simulation data;
[0016] A memory, configured to store the target file processed by the processor.
[0017] According to another aspect of the present invention, there is provided a programmable device, which includes a programming interface and a controller:
[0018] The programming interface at least includes a programming parameter input interface and a visualization interface;
[0019] The programming parameter input interface, configured to provide an interface for a doctor to input programming parameters;
[0020] The controller is communicatively connected to the storage device, and is configured to extract the electric field simulation data corresponding to the programming parameters from the storage device according to the programming parameters, and render the electric field simulation data to obtain an electric field distribution image;
[0021] The visualization interface, configured to display the electric field distribution image.
[0022] According to another aspect of the present invention, there is provided a computer-readable storage medium, which stores computer instructions, and the computer instructions are used to implement the electric field data storage method according to any embodiment of the present invention when executed by a processor.
[0023] According to another aspect of the present invention, there is provided a computer program product, including a computer program, and the computer program implements the electric field data storage method according to any embodiment of the present invention when executed by a processor.
[0024] The technical solution of the embodiment of the present invention obtains the original file storing the electric field simulation data; wherein, the format of the original file is a text document format; extracts the electric field simulation data in the original file, stores the electric field simulation data in the polygon file format, and obtains a file in the polygon file format; since compared with the text document format, the file in the polygon text format occupies less space, thus reducing the storage space requirement for the electric field simulation data; and deletes the face elements in the polygon file format file, and uses the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data. Using the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data further reduces the space occupancy of the target file, which is beneficial to reducing the storage cost and space requirement of the electric field simulation data.
[0025] It should be understood that the content described in this part is not intended to identify the key or important features of the embodiments of the present invention, nor is it used to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. Brief Description of the Drawings
[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.
[0027] Figure 1 is a flowchart of a method for storing electric field data provided according to an embodiment of the present invention;
[0028] Figure 2 is a flowchart of another method for storing electric field data provided according to an embodiment of the present invention;
[0029] Figure 3 is an interface display diagram after data rendering provided according to an embodiment of the present invention;
[0030] Figure 4 is a structural schematic diagram of an electric field data storage device provided according to an embodiment of the present invention. Detailed Embodiments
[0031] To enable those skilled in the art to better understand the solution of the present invention, the following will clearly and completely describe the technical solution in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0032] It should be noted that in the description and claims of the present invention and the above-mentioned accompanying drawings, the terms "first", "second", etc. are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including", "etc." and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device that includes a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0033] It should be noted that in the technical solution of the present disclosure, in terms of the collection, gathering, updating, analysis, processing, use, transmission, storage, etc. of user personal information, it complies with the provisions of relevant laws and regulations, is used for legal purposes, and does not violate public order and good customs. Necessary measures are taken for user personal information to prevent illegal access to user personal information data and to safeguard the security of user personal information and network security.
[0034] The following briefly describes the technical field and related terms of the embodiments of the present disclosure.
[0035] Implantable medical systems include implantable nerve stimulation systems, implantable cardiac electrical stimulation systems (also known as cardiac pacemakers), implantable drug delivery systems (Implantable Drug Delivery System, abbreviated as IDDS), and lead transfer systems, etc. Implantable nerve stimulation systems are, for example, deep brain stimulation systems (Deep Brain Stimulation, abbreviated as DBS), implantable cortical nerve stimulation systems (Cortical Nerve Stimulation, abbreviated as CNS), implantable spinal cord stimulation systems (Spinal Cord Stimulation, abbreviated as SCS), implantable sacral nerve stimulation systems (Sacral Nerve Stimulation, abbreviated as SNS), implantable vagus nerve stimulation systems (Vagus Nerve Stimulation, abbreviated as VNS), etc.
[0036] The implantable nerve electrical stimulation system includes a stimulator (i.e., implantable nerve stimulator) implanted in a patient's body and a programming device arranged outside the patient's body. That is to say, the stimulator is a medical device, or rather, the medical device includes the stimulator. The related nerve regulation technology mainly implants electrodes (the electrodes are in the form of electrode leads, for example) at specific parts (i.e., target points) of the tissue of an organism through stereotactic surgery, and sends electrical pulses to the target points through the electrodes to regulate the electrical activities and functions of the corresponding nerve structures and networks, thereby improving symptoms and relieving pain.
[0037] As an example, DBS includes an IPG (Implantable Pulse Generator, implantable pulse generator), an extension lead, and an electrode lead. The IPG is connected to the electrode lead through the extension lead. The IPG is implanted in the patient's body, for example, implanted in front of the patient's chest or other internal body parts.
[0038] As another example, DBS includes an IPG and an electrode lead, and the IPG is directly connected to the electrode lead. The IPG is implanted in the patient's head. For example, a slot is made in the patient's skull, and then the IPG is installed in the slot of the skull. In this case, the IPG may not protrude from the outer surface of the skull, or may partially protrude from the outer surface of the skull.
[0039] Among them, the IPG responds to the programming instructions sent by the programming device and provides controllable electrical stimulation therapy (or electrical stimulation energy) to the internal tissue by relying on a sealed battery and a circuit. The IPG delivers one or more channels of controllable specific electrical stimulation to a specific area of the internal tissue through the electrode lead.
[0040] In some embodiments, the extension lead is used in cooperation with the IPG as a transmission medium for electrical stimulation to transmit the electrical stimulation generated by the IPG to the electrode lead.
[0041] In some embodiments, the electrical stimulation can be delivered in the form of a pulsed signal or in the form of a non-pulsed signal. For example, the electrical stimulation can be delivered as a signal with various waveform shapes, frequencies, and amplitudes. Therefore, the electrical stimulation in the form of a non-pulsed signal can be a continuous signal, which can have a sine waveform or other continuous waveforms.
[0042] After receiving the electrical stimulation transmitted by the IPG or the extension wire, the electrode lead delivers the electrical stimulation to a specific area of the body tissue through multiple electrode contacts. The stimulator is provided with, for example, one or more electrode leads on one or both sides. Multiple electrode contacts are arranged on the electrode lead, and the electrode contacts can be evenly arranged or unevenly arranged in the circumferential direction of the electrode lead. As an example, the electrode contacts can be arranged in an array of 4 rows and 3 columns (a total of 12 electrode contacts) in the circumferential direction of the electrode lead. The electrode contacts can include stimulating electrode contacts and / or acquisition electrode contacts. The electrode contacts can be in the shape of, for example, flakes, rings, dots, etc.
[0043] In some embodiments, the stimulated body tissue can be the patient's brain tissue, and the stimulated site can be a specific site of the brain tissue. When the patient's disease types are different, the stimulated sites are generally different, and the number of stimulated contacts (single-source or multi-source), the application of one or more (single-channel or multi-channel) specific electrical stimulations, and the stimulation parameters (values) are also different.
[0044] The embodiments of the present disclosure do not limit the applicable disease types, which can be the disease types applicable to deep brain stimulation (DBS), spinal cord stimulation (SCS), sacral nerve stimulation, gastric stimulation, peripheral nerve stimulation, and functional electrical stimulation. Among them, the disease types that DBS can be used to treat or manage include but are not limited to: spastic diseases (such as epilepsy), pain, migraine, mental diseases (such as major depressive disorder (MDD)), bipolar disorder, anxiety disorder, post-traumatic stress disorder, dysthymia, obsessive-compulsive disorder (OCD), behavioral disorders, mood disorders, memory disorders, mental state disorders, movement disorders (such as essential tremor or Parkinson's disease), Huntington's disease, Alzheimer's disease, drug addiction, autism, or other neurological or psychiatric diseases and impairments.
[0045] In the embodiments of the present disclosure, when the programming device and the stimulator establish a programming connection, the programming device can be used to adjust one or more stimulation parameters of the stimulator (or one or more stimulation parameters of the pulse generator, and different stimulation parameters correspond to different electrical stimulations), and the stimulator can also sense the patient's electrophysiological activities to collect electrophysiological signals, and the stimulation parameters of the stimulator can be continuously adjusted through the collected electrophysiological signals to achieve closed-loop control (or adaptive adjustment) of the stimulation parameters.
[0046] Stimulation parameters may include at least one of the following: electrode contact identifiers for delivering electrical stimulation (e.g., electrode contact 2# and electrode contact 3#), frequency (e.g., the number of electrical stimulation pulse signals within a unit time of 1 s, with the unit of Hz), pulse width (the duration of each pulse, with the unit of μs), amplitude (generally expressed in voltage, i.e., the intensity of each pulse, with the unit of V), timing sequence (e.g., it can be continuous or bursty, and bursty refers to a discontinuous timing behavior composed of multiple processes), stimulation mode (including one or more of current mode, voltage mode, timed stimulation mode, and cyclic stimulation mode), upper and lower limits controlled by the doctor (the adjustable range by the doctor), and upper and lower limits controlled by the patient (the adjustable range by the patient).
[0047] In some embodiments, the stimulation parameters of the stimulator can be adjusted in current mode or voltage mode.
[0048] The programming device may include a doctor programming device (i.e., the programming device used by the doctor) and / or a patient programming device (i.e., the programming device used by the patient). The doctor programming device is, for example, an intelligent terminal device such as a tablet computer, a notebook computer, a desktop computer, a mobile phone, etc. equipped with programming software. The patient programming device is, for example, an intelligent terminal device such as a tablet computer, a notebook computer, a desktop computer, a mobile phone, etc. equipped with programming software. The patient programming device can also be other electronic devices with programming functions (e.g., a charger with programming functions, an electrophysiological acquisition device, etc.).
[0049] Figure 1 It is a flowchart of a method for storing electric field data according to an embodiment of the present invention. This embodiment is applicable to the situation of storing electric field simulation data and generating a target file in polygon file format. This method can be executed by an electric field data storage device, and the electric field data storage device can be implemented in the form of hardware and / or software.
[0050] As Figure 1 shown, the method of this embodiment may specifically include:
[0051] S110. Obtain an original file storing electric field simulation data; wherein, the format of the original file is text document format.
[0052] In this embodiment, the electric field simulation data may be simulation data of the electric field generated during the operation of an implantable medical system. The implantable medical system includes multiple electrodes. Correspondingly, the electric field simulation data may include the electrode contact coordinates of each electrode contact and the electric field intensity values corresponding to the electrode contact coordinates.
[0053] In specific implementation, after simulating the operation process of the implantable medical system through simulation software, the simulation data output by the simulation software is stored in text document format to generate an original file.
[0054] S120. Extract the electric field simulation data from the original file, store the electric field simulation data in the polygon file format, and obtain a file in the polygon file format.
[0055] In practical applications, as the number of electrode contacts increases, the storage space required for the electric field simulation data gradually increases. In order to reduce the space occupation while simplifying the operation process, the original file that meets the preset conditions can be determined and processed to effectively reduce the space occupation.
[0056] Specifically, the implementation method of extracting the electric field simulation data from the original file may include: when the storage space occupied by the original file meets the preset conditions, extract the electric field simulation data from the original file. Among them, the preset conditions may include at least one of the following: the current remaining space of the electric field data simulation system is less than the storage space; the storage space is greater than the preset space threshold.
[0057] It should be noted that the current remaining space is the space currently available for storing the electric field simulation data. When the current remaining space is less than the storage space occupied by the original file, the original file needs to be compressed to reduce the space occupation of the electric field simulation data, so as to store as much electric field simulation data as possible.
[0058] Or, when the storage space is greater than the preset space threshold, it means that the storage space is relatively large, and processing the original file has an obvious effect on reducing the space occupation. Therefore, the original file with a storage space greater than the preset space threshold can be processed. Among them, the preset space threshold can be the average value of the storage spaces of each stored file.
[0059] In a specific implementation, when the storage space occupied by the original file meets the preset conditions, the electric field simulation data in the original file can be extracted. It should be noted that the extraction operation of the electric field simulation data can be determined based on the file format of the original file. For example, if the file format of the original file is a text document format, the electric field simulation data in the original file can be extracted by reading line by line.
[0060] Further, the electric field simulation data is stored in accordance with the polygon file format. Among them, the polygon file format (Polygon File Format, abbreviated as PLY) is a three-dimensional file format for storing graphical objects described as a set of polygons. The file in the polygon file format includes point elements and face elements. Extract the electric field simulation data from the original file, and store the electric field simulation data in accordance with the polygon file format to obtain a polygon file format file, including: determining the electrode configuration information in the original file and the corresponding electric field strength distribution value of the electrode configuration information; creating an empty file in accordance with the polygon file format; writing the electrode configuration information and the electric field strength distribution value as point elements into the empty file to obtain a polygon file format file, and establishing a mapping relationship between the electrode configuration information and the polygon file format file.
[0061] Among them, the electrode configuration information includes at least one of the electrode contact combination and the configuration parameters of the electrode contacts. The configuration parameters include at least one of the polarity selection parameter and the pulse parameter of the electrode contacts. The pulse parameters include at least one of the amplitude, frequency, and pulse width; the empty file includes point elements and face elements.
[0062] In a specific implementation, the original file can be parsed to determine the electrode configuration information in the original file. Each electrode configuration information corresponds to an electric field strength distribution value. An empty file with the polygon file format can be created in advance. The empty file contains point elements and face elements. The electrode configuration information and the electric field strength distribution value are written into the empty file in the writing manner of point elements, so as to obtain a polygon file format file containing the electrode configuration information and the electric field strength distribution value. Through the point elements in the polygon file format file, a mapping relationship between the electrode configuration information and the polygon file format file can be established. In this embodiment, by writing the electrode configuration information and the electric field strength distribution value into the point elements in the created empty file, a polygon file format file can be generated quickly and accurately.
[0063] S130. Delete the face elements in the polygon file format file, and use the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data.
[0064] It should be noted that since the electric field simulation situation can be reflected by the electrode contact coordinates and the corresponding electric field strength values, the face elements are invalid information for the electric field simulation situation. In order to further reduce the space occupation, the face elements in the polygon file format file can be deleted, thereby reducing the space occupation of the file. Use the polygon file format after deleting the face elements as the target file for storing the electric field simulation data, so that the target file can not only comprehensively store the electric field simulation data, but also effectively reduce the space occupation compared with the original file.
[0065] In this embodiment, the specific implementation of using the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data is as follows: convert the file data in the polygon file format file after deleting the face elements into a binary format; use the polygon file format file obtained after the binary format conversion as the target file for storing the electric field simulation data.
[0066] For the file data in the polygon file format file, it can be saved in different formats to meet different data storage requirements. Specifically, the file data in the polygon file format after deleting the face elements can be converted into ASCII (American Standard Code for Information Interchange) code. Or, the file data in the polygon file format after deleting the face elements can be converted into a binary format for saving.
[0067] In this embodiment, since the binary format can save file volume compared with the ASCII code. To better meet the requirement of saving data storage space, the file data in the polygon file format file after deleting the face elements can be converted into a binary format, and the polygon file format file obtained after the binary format conversion is used as the target file.
[0068] In this embodiment, by converting the file data into a binary format, the file data is compressed, further reducing the occupation of data storage space and realizing file lightweight.
[0069] The technical solution of the embodiment of the present invention includes: obtaining an original file storing electric field simulation data, where the format of the original file is a text document format; extracting the electric field simulation data from the original file, storing the electric field simulation data in the polygon file format to obtain a polygon file format file; since the file in the polygon text format occupies less space than the text document format, the requirement for the storage space of the electric field simulation data is reduced; and deleting the face elements in the polygon file format file, using the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data, which further reduces the space occupation of the target file and is beneficial to reducing the storage cost and space requirement of the electric field simulation data.
[0070] Figure 2 It is a flowchart of another method for storing electric field data provided by the embodiment of the present invention. Based on the above embodiment, this embodiment can also render the electric field simulation data based on the target file to display the electric field distribution image. The explanations of the same or corresponding terms as those in the above embodiments are not repeated here. For exampleFigure 2 As shown, the method includes:
[0071] S210. Obtain the original file storing the electric field simulation data; wherein, the format of the original file is a text document format.
[0072] S220. Extract the electric field simulation data from the original file, and store the electric field simulation data in the polygon file format to obtain a polygon file format file.
[0073] S230. Delete the face elements in the polygon file format file, and use the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data.
[0074] S240. In the case of receiving an image rendering request sent by the display terminal, determine the target file corresponding to the image rendering request as the file to be rendered; read the data to be rendered stored in the file to be rendered, and send the data to be rendered to the display terminal, so that the display terminal renders the data to be rendered and displays the electric field distribution image corresponding to the data to be rendered on the display interface.
[0075] In practical applications, in order to better meet the actual needs of users and comprehensively and intuitively understand the electric field distribution corresponding to the electric field simulation data, the electric field simulation data can be rendered.
[0076] In specific implementation, the electric field simulation data can be the simulation data of the electric field generated during the operation of the implantable medical system. In order to facilitate users to understand the operation of the implantable medical system, it is usually necessary to render the electric field simulation data to display the rendered image.
[0077] Specifically, in response to the image rendering request sent by the display terminal, the target file corresponding to the image rendering request can be used as the file to be rendered to obtain the rendered image. Among them, the display terminal can be the doctor display terminal corresponding to the implantable medical system, and the image rendering request is generated by means of gesture control, voice control or touch screen control of the doctor display terminal. The image rendering request includes information such as the information of the file to which the electric field data to be rendered belongs, for example, file identification and file name, etc.
[0078] In the case of receiving an image rendering request sent by the display terminal, the file identification or file name requested by the image rendering request can be determined, and the target file matching the requested file identification or file name is obtained from the pre-established database as the file to be rendered.
[0079] In this embodiment, the file data in the file to be rendered can be read as the data to be rendered. Among them, the data to be rendered can be electric field simulation data, including electrode contact coordinates and the corresponding electric field strength values of the electrode contact coordinates. By sending the data to be rendered to the display terminal, the display terminal performs a rendering operation on the data to be rendered, thereby generating an image corresponding to the data to be rendered. In order to reflect the working effect of the implantable medical system, through the rendering operation, an electric field distribution image corresponding to the data to be rendered can be displayed on the display interface of the display terminal. Figure 3 is an interface display diagram after data rendering provided according to an embodiment of the present invention; as Figure 3 shown, it shows an electric field distribution image corresponding to the electric field simulation data, which can effectively display the distribution of the electric field information corresponding to the electric field simulation data.
[0080] In this embodiment, through the received image rendering instruction, the electric field simulation data of the target file that the user needs to understand can be rendered to more clearly and intuitively reflect the electric field distribution of the electric field simulation data, and display the electric field distribution image.
[0081] In this embodiment, the implementation method of reading the data to be rendered stored in the file to be rendered can be: calling a format parser for parsing the file content according to the reading rules of the polygon file format, so as to parse the file content of the file to be rendered through the format parser, and using the parsed data as the data to be rendered.
[0082] In a specific implementation, a format parser for reading content according to the reading rules of the polygon file format can be pre-encapsulated. When the file to be rendered is detected, the format parser can be called to read the file content of the file to be rendered according to the reading rules, without reading line by line, improving the reading efficiency, and using the parsed data as the data to be rendered.
[0083] In this embodiment, the file content of the polygon file format is read through the pre-encapsulated format parser, so that the reading operation can be completed conveniently and quickly, so as to improve the accuracy and convenience of reading the file content of the polygon file format.
[0084] Figure 4 is a schematic structural diagram of an electric field data storage device provided according to an embodiment of the present invention. The device is used to execute the electric field data storage method provided in any of the above embodiments. The device and the electric field data storage methods of the above embodiments belong to the same inventive concept. For the details not described in detail in the embodiment of the electric field data storage device, reference can be made to the embodiments of the above electric field data storage method. As Figure 4 shown, the device includes:
[0085] The original file acquisition module 10 is used to acquire the original file storing the electric field simulation data; wherein, the format of the original file is a text document format;
[0086] The data extraction module 11 is used to extract the electric field simulation data from the original file, store the electric field simulation data in the polygon file format to obtain a polygon file format file;
[0087] The face element deletion module 12 is used to delete the face elements in the polygon file format file, and use the polygon file format file after deleting the face elements as the target file storing the electric field simulation data.
[0088] Based on any optional technical solution in the embodiment of the present invention, optionally, the face element deletion module 12 includes:
[0089] The data format conversion unit is used to convert the file data in the polygon file format file after deleting the face elements into the binary format;
[0090] The target file determination unit is used to use the polygon file format file obtained after the binary format conversion as the target file storing the electric field simulation data.
[0091] Based on any optional technical solution in the embodiment of the present invention, optionally, the data extraction module 11 includes an extraction unit, which is used to extract the electric field simulation data in the original file when the storage space occupied by the original file meets a preset condition; wherein, the preset condition includes at least one of the following:
[0092] The current remaining space of the electric field data simulation system is less than the storage space;
[0093] The storage space is greater than the preset space threshold.
[0094] Based on any optional technical solution in the embodiment of the present invention, optionally, the device further includes:
[0095] The to-be-rendered file determination module is used to, after using the polygon file format file after deleting the face elements as the target file storing the electric field simulation data, determine the target file corresponding to the image rendering request as the to-be-rendered file when receiving an image rendering request sent by the display terminal;
[0096] The data reading module is used to read the to-be-rendered data stored in the to-be-rendered file, send the to-be-rendered data to the display terminal, so that the display terminal renders the to-be-rendered data and displays the electric field distribution image corresponding to the to-be-rendered data on the display interface.
[0097] Based on any optional technical solution in the embodiment of the present invention, optionally, the data reading module includes:
[0098] A parser calling unit, configured to call a format parser for parsing a file according to the reading rules of a polygon file format, so as to parse the file content of the file to be rendered through the format parser, and use the parsed data as the data to be rendered.
[0099] Optionally, based on any optional technical solution in the embodiment of the present invention, the data extraction module 11 includes:
[0100] A data determination unit, configured to determine the electrode configuration information in the original file and the corresponding electric field strength distribution value of the electrode configuration information; wherein, the electrode configuration information includes at least one of an electrode contact combination and configuration parameters of the electrode contact, and the configuration parameters include at least one of a polarity selection parameter and a pulse parameter of the electrode contact, and the pulse parameter includes at least one of an amplitude, a frequency, and a pulse width;
[0101] An empty file creation unit, configured to create an empty file according to the polygon file format; wherein, the empty file includes point elements and face elements;
[0102] A point element writing unit, configured to write the electrode configuration information and the electric field strength distribution value as the point elements into the empty file to obtain the polygon file format file, and establish a mapping relationship between the electrode configuration information and the polygon file format file.
[0103] The technical solution of the embodiment of the present invention obtains an original file storing electric field simulation data; wherein, the format of the original file is a text document format; extracts the electric field simulation data in the original file, stores the electric field simulation data according to the polygon file format to obtain a polygon file format file; since the file with the polygon text format occupies less space compared to the text document format, the storage space requirement for the electric field simulation data is reduced; and, deletes the face elements in the polygon file format file, and uses the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data, and using the polygon file format file with the face elements deleted as the target file for storing the electric field simulation data further reduces the space occupation of the target file, which is beneficial to reducing the storage cost and space requirement of the electric field simulation data.
[0104] It should be noted that in the embodiment of the above electric field data storage device, the included units and modules are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, the specific names of the functional units are only for the convenience of mutual distinction and do not limit the protection scope of the present invention.
[0105] In some embodiments, the electric field data storage method of the embodiments of the present invention can be implemented by a storage device, and the storage device includes:
[0106] An input interface configured to provide an interface for a user to input electrode configuration information;
[0107] A processor configured to receive an original file storing electric field simulation data and execute the electric field data storage method of any embodiment of the present invention to obtain a target file storing the electric field simulation data;
[0108] A memory configured to store the target file processed by the processor.
[0109] Specifically, the storage device can be disposed outside the patient and connected to a medical device. The storage device provides an input interface, and an input box is displayed in the interface so that the user can input the electrode configuration information of the medical device through the input box. Through the processor in the storage device, the original file storing the electric field simulation data sent by the medical device can be received, and the electric field data storage method of any embodiment of the present invention can be executed to obtain a target file storing the electric field simulation data, and the target file is stored by the memory.
[0110] In addition, the rendering and display operation of the electric field simulation data can be implemented by a programming device, and the programming device includes a programming interface and a controller:
[0111] The programming interface at least includes a programming parameter input interface and a visualization interface;
[0112] A programming parameter input interface configured to provide an interface for a doctor to input programming parameters;
[0113] The controller is communicatively connected to the storage device and is configured to extract the electric field simulation data corresponding to the programming parameters in the storage device according to the programming parameters and render the electric field simulation data to obtain an electric field distribution image;
[0114] A visualization interface configured to display the electric field distribution image.
[0115] In some embodiments, the electric field data storage method can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as storage unit 28. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 20 via the ROM 22 and / or the communication unit 29. When the computer program is loaded into the RAM 23 and executed by the processor 21, one or more steps of the electric field data storage method described above can be executed. Alternatively, in other embodiments, the processor 21 can be configured to execute the electric field data storage method by any other suitable means (for example, by means of firmware).
[0116] The various embodiments of the systems and techniques described above in this specification can be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems-on-chip (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include: being implemented in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be a special-purpose or general-purpose programmable processor that receives data and instructions from, and transmits data and instructions to, a storage system, at least one input device, and at least one output device.
[0117] The computer programs for implementing the methods of the present invention can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions / operations specified in the flowchart and / or block diagram to be implemented. The computer programs can be executed entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
[0118] In the context of the present invention, a computer-readable storage medium can be a tangible medium that can contain or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer-readable storage medium can include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. Alternatively, the computer-readable storage medium can be a machine-readable signal medium. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0119] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which the user can provide input to the electronic device. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0120] The systems and techniques described herein can be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer having a graphical user interface or a web browser through which the user can interact with an implementation of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system can be interconnected to each other by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local area network (LAN), wide area network (WAN), blockchain network, and the Internet.
[0121] The computing system can include a client and a server. The client and the server are generally far from each other and typically interact through a communication network. The relationship between the client and the server is created by computer programs that run on the respective computers and have a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or a cloud host, which is a host product in the cloud computing service system, and solves the defects of difficult management and weak business scalability existing in traditional physical hosts and VPS services.
[0122] This embodiment also provides a computer program product, including a computer program which, when executed by a processor, implements the electric field data storage method provided in any embodiment of this application.
[0123] In the process of implementing the computer program product, computer program code for performing the operations of the present invention can be written in one or more programming languages or combinations thereof. The programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and also include conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN) - or, alternatively, can be connected to an external computer (e.g., by connecting through the Internet using an Internet service provider).
[0124] It should be understood that various forms of the processes shown above can be used, steps can be reordered, added, or deleted. For example, the steps recited in the present invention can be executed in parallel, sequentially, or in a different order, as long as the desired results of the technical solution of the present invention can be achieved, and no limitation is made herein.
[0125] The above specific embodiments do not constitute a limitation on the protection scope of the present invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for storing electric field data, characterized in that, Including: Obtain the original file storing the electric field simulation data; wherein, the format of the original file is a text document format; Extract the electric field simulation data from the original file, and store the electric field simulation data in the polygon file format to obtain a polygon file format file; Delete the face elements in the polygon file format file, and use the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data.
2. The method according to claim 1, wherein The step of using the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data includes: Convert the file data in the polygon file format file after deleting the face elements into a binary format; Use the polygon file format file obtained after the binary format conversion as the target file for storing the electric field simulation data.
3. The method according to claim 1, characterized in that, The step of extracting the electric field simulation data from the original file includes: When the storage space occupied by the original file meets a preset condition, extract the electric field simulation data from the original file; wherein, The preset condition includes at least one of the following: The current remaining space of the electric field data simulation system is less than the storage space; The storage space is greater than a preset space threshold.
4. The method according to claim 1, wherein After using the polygon file format file after deleting the face elements as the target file for storing the electric field simulation data, it further includes: When receiving an image rendering request sent by a display terminal, determine the target file corresponding to the image rendering request as the file to be rendered; Read the data to be rendered stored in the file to be rendered, and send the data to be rendered to the display terminal, so that the display terminal renders the data to be rendered and displays the electric field distribution image corresponding to the data to be rendered on the display interface.
5. The method according to claim 4, wherein The step of reading the data to be rendered stored in the file to be rendered includes: Call a format parser for parsing the file content according to the reading rules of the polygon file format, and use the data obtained by parsing the file content of the file to be rendered as the data to be rendered.
6. The method according to claim 1, wherein The step of extracting the electric field simulation data from the original file, storing the electric field simulation data in the polygon file format to obtain a polygon file format file includes: Determine the electrode configuration information in the original file and the corresponding electric field intensity distribution value; wherein, the electrode configuration information includes at least one of the electrode contact combination and the configuration parameters of the electrode contacts, and the configuration parameters include at least one of the polarity selection parameter and the pulse parameter of the electrode contacts, and the pulse parameter includes at least one of amplitude, frequency and pulse width; Create an empty file according to the polygon file format; wherein, the empty file includes point elements and face elements; Write the electrode configuration information and the electric field intensity distribution value as the point elements into the empty file to obtain the polygon file format file, and establish a mapping relationship between the electrode configuration information and the polygon file format file.
7. An electric field data storage device, characterized in that, Including: An original file acquisition module for acquiring an original file storing electric field simulation data; wherein, the format of the original file is a text document format; A data extraction module for extracting the electric field simulation data from the original file and storing the electric field simulation data in a polygon file format to obtain a polygon file format file; A face element deletion module for deleting the face elements in the polygon file format file and using the polygon file format file after deleting the face elements as a target file for storing the electric field simulation data.
8. A storage device, characterized in that, The storage device includes: An input interface configured to provide an interface for a user to input electrode configuration information; A processor configured to receive an original file storing electric field simulation data and execute the electric field data storage method according to any one of claims 1 to 6 to obtain a target file for storing the electric field simulation data; A memory configured to store the target file processed by the processor.
9. A programmed device, characterized in that, The programmable device includes a programmable interface and a controller: The programmable interface includes at least a programmable parameter input interface and a visualization interface; The programmable parameter input interface is configured to provide an interface for a doctor to input programmable parameters; The controller is communicatively connected to the storage device according to claim 8, and is configured to extract the electric field simulation data corresponding to the programmable parameters in the storage device according to the programmable parameters and render the electric field simulation data to obtain an electric field distribution image; The visualization interface is configured to display the electric field distribution image.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a processor to implement the electric field data storage method according to any one of claims 1-6 when executed.
11. A computer program product comprising a computer program which, when executed by a processor, implements the electric field data storage method according to any one of claims 1-6.