Pelvis measurement method, device, electronic device and storage medium
The three-dimensional pelvic measurement method through multi-sensor information fusion, using magnetic sensor arrays and neural network models, solves the problems of poor accuracy and impact on the fetus in existing pelvic measurement technology, achieving high-precision, real-time pelvic measurement to meet clinical needs.
Patent Information
- Application Number
- CN202211162875.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-23
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-09-23
AI Technical Summary
Existing pelvic measurement technology has poor accuracy and affects the fetus. It lacks high-precision, real-time and safe measurement methods and equipment.
The three-dimensional pelvis measurement method using multi-sensor information fusion is used to obtain the magnetic field information data collected by the magnetic sensor array, combined with the target positioning algorithm and neural network model, to calculate the three-dimensional coordinate position of the pelvis to achieve high-precision, real-time measurement of pelvic opening and closing information.
It achieves pelvic measurement that is not blocked by the line of sight, has no impact on the fetus, is convenient, fast and highly accurate, and provides accurate data support for obstetricians to judge the degree of pelvic opening and closing.
Smart Images

Figure CN115429247B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of pelvic data analysis, and in particular to a pelvic measurement method, device, electronic equipment and storage medium. Background Art
[0002] Pelvic measurement can reflect the size and shape of the pelvis, providing an important basis for doctors to diagnose cephalopelvic disproportion and decide on delivery. The traditional digital examination pelvic measurement method is simple, but the accuracy is poor, and there are large errors between different examiners. The most accurate is X-ray measurement, but it has a greater impact on the fetus; nuclear magnetic resonance has no ionizing radiation damage to the fetus, and has excellent advantages in accuracy and soft tissue imaging, but it has defects such as long imaging time, high price, and lack of real-time imaging function. Ultrasound operation is simple and has no effect on mother and child, but there are many imaging interference factors, and the technical requirements for equipment and operators are high. At present, there is no method and equipment dedicated to pelvic measurement. Therefore, a pelvic measurement method and equipment is urgently needed. Summary of the invention
[0003] The purpose of the present invention is to overcome the defects of the prior art and provide a pelvic measurement method, device, electronic device and storage medium, aiming to solve the technical problems of poor accuracy and insecurity in the existing pelvic measurement technology.
[0004] The present invention is achieved in that:
[0005] In a first aspect, an embodiment of the present application provides a pelvis measurement method, the method comprising:
[0006] Acquire first magnetic field information data collected by a first magnetic sensor array for the pelvis; and convert the first magnetic field information data from an analog state to a digital state;
[0007] Based on the first magnetic field information data converted into a digital state, a three-dimensional coordinate position of the pelvis is calculated by a target positioning algorithm as a first type of three-dimensional coordinate position;
[0008] Acquire second magnetic field information data collected by a second magnetic sensor array for the pelvis; and convert the second magnetic field information data from an analog state to a digital state;
[0009] Inputting the second magnetic field information data converted into a digital state into a pre-trained neural network model, and outputting the three-dimensional coordinate position of the pelvis through the neural network model as the second type of three-dimensional coordinate position;
[0010] The target three-dimensional coordinate position of the pelvis is determined according to the first three-dimensional coordinate position and the second three-dimensional coordinate position.
[0011] Optionally, the first magnetic sensor array includes at least two sensors, and the three-dimensional coordinate position of the pelvis is calculated by a target positioning algorithm based on the first magnetic field information data converted into a digital state, including:
[0012] Based on the least squares method, the first magnetic field information data converted into a digital state and collected by the at least two sensors is inverted and calculated to obtain the initial three-dimensional coordinate position of the magnetic dipole point;
[0013] Calculating the straight-line distance from the magnetic dipole point to each sensor;
[0014] Based on the straight-line distance from the magnetic dipole point to each sensor, the weight of each sensor is determined; and the initial three-dimensional coordinate position of the magnetic dipole point is corrected according to the weight of each sensor to obtain the three-dimensional coordinate position of the pelvis.
[0015] Optionally, the neural network model is a deep neural network.
[0016] Optionally, the second magnetic sensor array includes N magnetic sensors, the input layer of the neural network model includes N neurons, and the input data of each neuron corresponds to the second magnetic field information data collected by each magnetic sensor in the second magnetic sensor array.
[0017] Optionally, the activation function of the neural network model is a hyperbolic tangent function.
[0018] In a second aspect, an embodiment of the present application provides a pelvic measurement device, the device comprising:
[0019] A first magnetic sensor array, used for collecting first magnetic field information data for the pelvis;
[0020] A second magnetic sensor array, used for collecting second magnetic field information data for the pelvis;
[0021] a data acquisition circuit, configured to convert the first magnetic field information data acquired by the first magnetic sensor array from an analog state into a digital state; and to convert the second magnetic field information data acquired by the second magnetic sensor array from an analog state into a digital state;
[0022] The host computer is used to calculate the three-dimensional coordinate position of the pelvis as the first type of three-dimensional coordinate position through a target positioning algorithm based on the first magnetic field information data converted into a digital state; input the second magnetic field information data converted into a digital state into a pre-trained neural network model, and output the three-dimensional coordinate position of the pelvis through the neural network model as the second type of three-dimensional coordinate position; determine the target three-dimensional coordinate position of the pelvis according to the first type of three-dimensional coordinate position and the second type of three-dimensional coordinate position.
[0023] Optionally, the first magnetic sensor array is arranged in a matrix arrangement.
[0024] Optionally, the device further comprises:
[0025] The set / reset circuit is used to recalibrate and invert the magnetic sensitive elements of each sensor in the first magnetic sensor array and / or the second magnetic sensor array.
[0026] In a third aspect, an embodiment of the present application provides an electronic device, including a memory and a processor;
[0027] Wherein, the memory is connected to the processor and is used to store programs;
[0028] The processor is used to implement the steps of any of the above methods by running the program stored in the memory.
[0029] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute any of the methods described above.
[0030] The present invention has the following beneficial effects: the embodiment of the present application provides a pelvic measurement method, a pelvic measurement device, an electronic device and a storage medium, the method comprising obtaining first magnetic field information data collected by a first magnetic sensor array for the pelvis; and converting the first magnetic field information data from an analog state to a digital state; based on the first magnetic field information data converted into a digital state, calculating the three-dimensional coordinate position of the pelvis through a target positioning algorithm as a first type of three-dimensional coordinate position; obtaining second magnetic field information data collected by a second magnetic sensor array for the pelvis; and converting the second magnetic field information data from an analog state to a digital state; inputting the second magnetic field information data converted into a digital state into a pre-trained neural network model, outputting the three-dimensional coordinate position of the pelvis through the neural network model as a second type of three-dimensional coordinate position; and determining the target three-dimensional coordinate position of the pelvis according to the first type of three-dimensional coordinate position and the second type of three-dimensional coordinate position. This method can measure the opening and closing information of the pelvis with high precision and in real time. Unlike the traditional pelvic measurement method, the present invention is not blocked by sight, has no effect on the fetus, is convenient and fast, and has high accuracy.
[0031] It should be understood that the above general description and the following detailed description are merely exemplary and explanatory and cannot limit the disclosure of the embodiments of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A schematic diagram of a flow chart of a pelvis measurement method provided by an embodiment of the present invention;
[0034] Figure 2 A schematic diagram of the structure of a magnetic sensor array provided by an embodiment of the present invention;
[0035] Figure 3 A schematic diagram of the structure of a pelvis measuring device provided by an embodiment of the present invention;
[0036] Figure 4 Another schematic diagram of the structure of the pelvis measuring device provided by an embodiment of the present invention;
[0037] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0039] The flowcharts shown in the accompanying drawings are only examples and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps may also be decomposed, combined or partially merged, so the actual execution order may change according to actual conditions.
[0040] The technical solution proposed in the present disclosure is mainly applied to the field of pelvic measurement technology.
[0041] Through the study of existing pelvic measurement related technologies, the inventors found that there is currently no automated equipment dedicated to pelvic measurement. Traditional pelvic measurement methods have certain limitations, including: finger examination - inaccurate and highly subjective; X-ray - affects the fetus; ultrasound - poor imaging effect; nuclear magnetic resonance - long time and high cost, etc. Existing pelvic measurement solutions are difficult to quickly and accurately meet the requirements of obstetricians and gynecologists to measure the opening and closing of the pelvis. Permanent magnetic positioning technology is not blocked by vision, low cost, and easy to operate, but the magnetic field information collected by the sensor is seriously affected by the distance from the magnetic source and the magnetic field is complex and changeable in space.
[0042] Although magnetic positioning technology has been developed for a long time, the use of it for pelvic measurement is still in an exploratory stage. Magnetic positioning technology has the characteristics of high precision, low cost, no line of sight obstruction and no effect on the fetus in scenarios with small space and no magnetic interference. In medical equipment, compared with electromagnetic positioning technology, the advantage of permanent magnetic positioning technology is that it does not require power supply to generate a magnetic field. Therefore, in pelvic measurement technology, permanent magnetic positioning technology has obvious advantages. At present, the cost of a single high-precision integrated three-axis magnetic sensor of tens of thousands of yuan limits its development and makes it difficult to apply on a large scale. The earth's magnetic field and interfering magnetic field will affect the accuracy of the sensor signal. Technical difficulties such as sensor manufacturing errors, installation errors, and physical model accuracy all affect the final accuracy of pelvic measurement.
[0043] In order to resolve this contradiction, the present invention provides a pelvic measurement method. Different from the traditional pelvic measurement method, the present invention collects the magnetic field information in space with high precision by designing the arrangement position of the sensor array and the corresponding signal acquisition circuit, and then analyzes the collected data through the improved magnetic dipole model algorithm and the neural network fusion algorithm, and finally inverts and predicts the position information in the magnetic source space. The three-dimensional measurement unit array designed by the present invention makes up for the weak detection ability of the magnetic sensitive sensor and expands the distance range of three-dimensional positioning. The collaborative work of multiple measurement units greatly improves the robustness of the system and avoids the interference of abnormal values. The measurement range and stability can meet the clinical measurement needs of pelvic measurement.
[0044] In order to facilitate understanding of the technical solution provided by the embodiments of the present disclosure, before introducing the detailed solution of the embodiments of the present disclosure, an application scenario provided by the embodiments of the present disclosure is exemplarily introduced.
[0045] In a specific application scenario, the terminal device executes the pelvic measurement method provided by the embodiment of the present disclosure. It can be understood that the magnetic sensor array is an instrument that can detect the target object (such as the pelvis) at each detection point to generate magnetic field information data, and the specific acquisition of the collected magnetic field information data and subsequent processing can be performed by the terminal device. For example, the terminal device obtains the first magnetic field information data collected by the first magnetic sensor array for the pelvis; and converts the first magnetic field information data from an analog state to a digital state; based on the first magnetic field information data converted to a digital state, the three-dimensional coordinate position of the pelvis is calculated by a target positioning algorithm as a first type of three-dimensional coordinate position; obtains the second magnetic field information data collected by the second magnetic sensor array for the pelvis; and converts the second magnetic field information data from an analog state to a digital state; the second magnetic field information data converted to a digital state is input into a pre-trained neural network model, and the three-dimensional coordinate position of the pelvis is output through the neural network model as a second type of three-dimensional coordinate position; according to the first type of three-dimensional coordinate position and the second type of three-dimensional coordinate position, the target three-dimensional coordinate position of the pelvis is determined, thereby realizing the measurement of the pelvis to analyze the position, shape, and size of the pelvis.
[0046] In addition, in another specific application scenario, the present disclosure can also be completed by the cooperation of a server and a terminal device. For example, after the terminal device obtains the first magnetic field information data and the second magnetic field information data input by the user, the terminal device forwards the obtained first magnetic field information data and the second magnetic field information data to the server, so that the server obtains the target three-dimensional coordinate position by executing the method provided in the embodiment of the present disclosure, thereby achieving accurate measurement of the pelvis.
[0047] The terminal device mentioned above may include a mobile phone, a tablet computer, a laptop computer, a PDA, a mobile internet device (MID) or other terminal devices with a data processing function.
[0048] The server may be a computing device such as a rack server, a blade server, a tower server or a cabinet server, etc. The server may be an independent server or a server cluster composed of multiple servers.
[0049] In this embodiment, the terminal device can be connected to the server through a network. The network can be a wireless or wired network such as an intranet, the Internet, the Global System of Mobilecommunication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, or a call network.
[0050] It should be noted that the pelvis measurement method provided in the embodiment of the present disclosure can be applied not only to the above-mentioned application scenarios, but also to other application scenarios that require pelvic measurement, and the embodiment of the present disclosure does not specifically limit this.
[0051] The technical solutions of the embodiments of the present disclosure are described in detail below through some embodiments. The following embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0052] See also Figure 1 , Figure 1 : is a flow chart of a pelvic measurement method provided in an embodiment of the present application, the method comprising:
[0053] S101, obtaining first magnetic field information data collected by a first magnetic sensor array for the pelvis; and converting the first magnetic field information data from an analog state to a digital state;
[0054] S102, based on the first magnetic field information data converted into a digital state, calculating the three-dimensional coordinate position of the pelvis by a target positioning algorithm as a first type of three-dimensional coordinate position;
[0055] S103, obtaining second magnetic field information data collected by a second magnetic sensor array for the pelvis; and converting the second magnetic field information data from an analog state to a digital state;
[0056] S104, inputting the second magnetic field information data converted into a digital state into a pre-trained neural network model, and outputting the three-dimensional coordinate position of the pelvis through the neural network model as the second type of three-dimensional coordinate position;
[0057] S105: Determine a target three-dimensional coordinate position of the pelvis according to the first three-dimensional coordinate position and the second three-dimensional coordinate position.
[0058] The first magnetic sensor array and the second magnetic sensor array may be the same magnetic sensor array or different magnetic sensor arrays; the number of magnetic sensors contained in the two may be the same or different. Both the first magnetic sensor array and the second magnetic sensor array may collect magnetic field information data. If the collected magnetic field information data is used for a positioning algorithm, the magnetic field information data may be referred to as first magnetic field information data; if the collected magnetic field information data is used for a neural network model, the magnetic field information data may be referred to as second magnetic field information data. The first magnetic field information data and the second magnetic field information data may be the same data, or data collected by the same magnetic sensor array at different times, or data collected by different magnetic sensor arrays at different times. The present invention does not limit this.
[0059] The magnetic field information data may include the magnetic field components that each magnetic sensor in the sensor array can collect for the pelvis. The magnetic field components may include the components of the magnetic field intensity B in the three directions of the x-axis, y-axis, and z-axis, which may be expressed as B x , B y , B z .
[0060] The first magnetic sensor array and the second magnetic sensor array can be designed according to the characteristics of the magnetic sensor itself and the distribution law of the magnetic source in space. After specific calculations and actual measurements, the optimal measurement distance of the magnetic sensor designed by the present invention is 3-20cm. HMC1001 and HMC1002 can form a measurement unit with a three-dimensional measurement function. Due to the special clinical environment of pelvic measurement, the measurement unit array can only be arranged under the seat of the pregnant woman. According to the optimal measurement distance actually calibrated by the magnetic sensor, the spacing between the measurement units is 10cm. In order to facilitate subsequent inversion calculations, the three-dimensional measurement units are embedded in the recessed bottom space in a matrix arrangement, so the present invention is designed as follows Figure 2 The magnetic sensor array shown.
[0061] The acquisition circuit can convert the first magnetic field information data from an analog state to a digital state, and convert the second magnetic field information data from an analog state to a digital state; the analog state is the form of analog data (also called an analog signal), and the digital state is the form of digital data (also called a digital signal).
[0062] The acquisition circuit of the present invention can be used to convert the analog data collected by the magnetic sensor array, that is, the magnetic field information data in the analog state, into a digital signal, that is, the magnetic field information data in the digital state, through a signal acquisition card, and then upload it to the host computer, and then the host computer completes the calculation and fusion of the coordinate position to obtain the target three-dimensional coordinate position. The minimum voltage resolution of HMC1001 / 1002 at a working voltage of 5V is 0.432μV. In order to measure a weak common-mode signal, the analog quantity can be amplified 200 times by an amplifier. The maximum resolution of the amplified voltage is 86.4μV. Then, a 16-bit analog-to-digital converter is used. The maximum resolution of the 16-bit analog-to-digital converter is 2.5V / (2^16)=0.000038147V=38.147μV. The circuit design resolution is greater than the sensor resolution, so that the acquisition circuit meets the measurement requirements of the magnetic sensor array.
[0063] The first type of three-dimensional coordinate position and the second type of three-dimensional coordinate position are the three-dimensional coordinate positions of the pelvis obtained based on the target positioning algorithm and the neural network model respectively. The two are obtained by different means to reflect the three-dimensional coordinate position of the pelvis. Then, the target three-dimensional coordinate position of the pelvis is obtained by fusion calculation of the first type of three-dimensional coordinate position and the second type of three-dimensional coordinate position.
[0064] It can be seen that in response to the technical problems of poor accuracy and unsafety (such as impact on the fetus) in the existing pelvic measurement technology, the present invention provides a three-dimensional pelvic measurement solution based on multi-sensor information fusion to achieve high-precision three-dimensional measurement of the pelvis. The present invention can use low-cost single-axis and dual-axis magnetoresistive sensors to form a measurement unit to achieve the purpose of three-axis measurement. A magnetic sensor array is formed by placing multiple of the above-mentioned measurement units in space. After the pelvis enters the space, the changes in the measurement data of the magnetic sensor array are collected. The data of the magnetic sensor array is analyzed by fusing the target positioning algorithm and the neural network algorithm to determine the three-dimensional position information of the pelvis in space. This method can measure the opening and closing information of the pelvis with high precision and in real time. Unlike traditional pelvic measurement methods, the present invention is not blocked by sight, has no impact on the fetus, is convenient and fast, and has high accuracy.
[0065] The measurement method of the present invention integrates an optimized target positioning algorithm and a neural network algorithm, optimizes the confidence ratio of the two in different measurement areas, and fully utilizes the inversion prediction advantages of the two algorithms. Therefore, the method provided by the present invention not only effectively improves the three-dimensional positioning accuracy, but also further expands the effective measurement range.
[0066] Compared with the traditional pelvic measurement method, the present invention innovatively applies magnetic field positioning technology to clinical pelvic measurement, which is not blocked by vision, low cost, convenient and fast, and has high accuracy, and can provide accurate data support for obstetricians to judge the degree of pelvic opening and closing. In summary, the present invention has the ability to measure the pelvis in three dimensions with high precision, and has important application value in clinical practice.
[0067] In order to more accurately calculate the first type of three-dimensional coordinate position, in one implementation, the first magnetic sensor array may include at least two sensors, and the three-dimensional coordinate position of the pelvis is calculated by a target positioning algorithm based on the first magnetic field information data converted into a digital state, including:
[0068] Based on the least squares method, the first magnetic field information data converted into a digital state and collected by the at least two sensors is inverted and calculated to obtain the initial three-dimensional coordinate position of the magnetic dipole point;
[0069] Calculating the straight-line distance from the magnetic dipole point to each sensor;
[0070] Based on the straight-line distance from the magnetic dipole point to each sensor, the weight of each sensor is determined; and the initial three-dimensional coordinate position of the magnetic dipole point is corrected according to the weight of each sensor to obtain the three-dimensional coordinate position of the pelvis as the first type of three-dimensional coordinate position.
[0071] The magnetic dipole is a physical model re-established by analogy with the electric dipole. The permanent magnet positioning algorithm is based on the magnetic dipole model. When the size of the permanent magnet is much smaller than the distance from the permanent magnet to the sensor, the target permanent magnet can be modeled using the magnetic dipole model formula. This paper uses a cylindrical permanent magnet with a diameter of 5 mm and a height of 3 mm as the target magnetic source and models it with a magnetic dipole.
[0072] Since the magnetic field strength is a vector, it can be divided into three orthogonal vectors (B x ,B y ,B z ):
[0073]
[0074]
[0075]
[0076] The target positioning algorithm is to calculate the position coordinates of the magnet in space through the magnetic dipole model. The position coordinates of the sensor array (x pi ,y pi ,z pi ) is known data, the spatial position coordinate of the magnet (x k ,yk ,z k ), the attitude coordinates (a, b, c) are six unknown parameters. If the nonlinear equation is used to invert the spatial coordinates and attitude coordinates of the magnet, six nonlinear equations are required, i.e., the six sets of data returned by the two sensors. i represents the i-th magnetic sensor.
[0077] In order to make full use of the magnetic field information in the sensor array, the present invention improves the magnetic dipole model algorithm, and inverts the magnetic dipole point K by selecting the data processed by the combination of two sensors and bringing them into the least squares method (LM algorithm). j Coordinate position: (x kj ,y kj ,z kj )j=1,2,3,…,n; j represents the jth magnetic sensor.
[0078] Calculate the magnetic dipole point K j (x kj ,y kj ,z kj ) The straight line distance between the two sensor combinations selected is d kj :
[0079]
[0080] in, is the magnetic dipole point K j To sensor O j , s is the direction vector of the straight line where the two sensors are located.
[0081] It can be seen that as the distance increases, the magnetic field strength decays in a cubic manner. Therefore, in order to make full use of more sensors, we give distance-related weights to the magnetic dipole coordinates inverted by different sensor combinations to obtain the corrected K j Coordinate (x kj ,y kj ,z kj ):
[0082]
[0083] By applying the embodiments of the present invention, the sensor array information is fully utilized to improve the positioning accuracy, while reducing the impact of abnormal values on the system.
[0084] In one implementation, in order to improve the accuracy of the collected magnetic field data and reduce interference and errors, the method may also include: recalibrating the magnetic sensitive element in the inverted sensor. Specifically, it can be implemented by a set / reset circuit. The output signal of the magnetic sensor will deteriorate when it is affected by a strong magnetic field (>5Guass). In order to reduce this influence and improve the output accuracy of the signal, the magnetic switch technology can be applied to the magnetoresistive bridge to reduce the adverse effects of the "historical" magnetic field. Unlike other magnetic sensors, the present invention does not require an external coil, but through the set / reset current belt installed inside the chip, a pulse current of 3.5A is added to recalibrate the magnetic sensitive element in the inverted sensor.
[0085] In order to further reduce the impact of magnetic field interference on data, the present invention takes into account the extremely high sensitivity of the HMC1001 / 1002 combination sensor, and the influence of the geomagnetic field on it cannot be ignored. The method of passing a fixed current into the sensor itself to eliminate the interference field is affected by the location of the device and the surrounding environment, so it is difficult to implement on a mobile device. Within a certain range of magnetic field strength, the combined sensor is linearly distributed. Therefore, the present invention adopts a method of program reset to eliminate the influence of the interference field. In the case where no permanent magnet is placed in the array, the sensor value is recorded multiple times as the collected magnetic field information data after stabilization. The collected magnetic field information data (including the first magnetic field information data and / or the second magnetic field information data) can be filtered. The present invention adopts the median average filtering method, sampling 200 groups of data each time, sorting them, removing the largest 20 data and the smallest 20 data, and performing mean processing on the remaining 160 groups of samples. In other implementations, other mean processing methods can be used, and the present invention does not limit the specific amount of data. When there is no magnetic source, the initial value B0 of the sensor, the value B after the magnetic source is placed, that is, the measurement target enters the measurement space q Subtract the initial value of the sensor, which is the magnetic field B generated by the permanent magnet (i.e. pelvis) i =B q -B0.
[0086] By using the embodiment of the present invention, the magnetic field information data of the pelvis can be obtained more accurately, and the interference of the magnetic field is reduced.
[0087] In order to obtain the second magnetic field information data more accurately, in one implementation, the neural network model is a deep neural network.
[0088] Due to the problems of physical model error, sensor installation error and different linearity of different sensors, the magnetic source position inverted by the traditional magnetic dipole model has certain limitations. The data collected by the sensor is required to be ideal data. When the dual-axis data of the sensor is not strictly orthogonal or the rate of change is inconsistent, the inverted position information will be invalid. The farther the distance, the greater the impact on the collected data, and the worse the inversion result. In order to solve this problem, the present invention proposes a method for magnetic source positioning using an artificial neural network algorithm. The specific artificial neural network algorithm can be a deep neural network. Of course, in other embodiments, it can also be a convolutional neural network or other types of neural networks, which is not limited by the present invention.
[0089] In order to improve the accuracy of the neural network model, in a specific implementation, the second magnetic sensor array includes N magnetic sensors, the input layer of the neural network model includes N neurons, and the input data of each neuron corresponds to the second magnetic field information data collected by each magnetic sensor in the second magnetic sensor array.
[0090] As known from prior knowledge, the change of magnetic field in space is nonlinear. Theoretically, the neural network model can fit any function and has multiple hidden neural network layers, which can be called a deep neural network. The present invention can use MLP (Multilayer Perceptron) neural network algorithm to measure pelvis. The first layer is called the input layer, the last layer is called the output layer, and the middle layer is called the hidden layer. The number of hidden layers and the number of output neurons can be determined according to the specific application scenario, and the present invention does not limit this.
[0091] In order to speed up the training of the neural network model, in another implementation, the activation function of the neural network model is a hyperbolic tangent function.
[0092] In order to train the neural network, magnets (such as pelvis) are placed in order throughout the pelvic test area. For the sensor data of 3N channels collected by N magnetic sensors, the output of the neural network model is the spatial position of the magnet. The data collected by each group of sensors are arranged in sequence as the input layer. The input layer has a total of N neurons, and its input is x1, x2, x3, ..., x 3N , the hidden layer is a multi-layer neuron, and its activation function can be selected as the zero-centered 'tanh' function:
[0093]
[0094] (Since the tanh function is a regression function, and the experimental comparison shows that it is better than the Logistics function and the ReLU piecewise function), the output layer of the neural network model designed by the present invention is y i , the loss function is: The loss function is used to characterize the difference between the predicted value and the true value of the output layer. In the formula, i represents the i-th round of training, P represents the total number of training rounds, k represents the k-th node of the input layer, and L represents the total number of nodes in the input layer. represents the true value of the data inputted by the kth node in the input layer in the i-th round of training, The predicted value in the i-th round of training based on the data input by the k-th node in the input layer.
[0095] The neural network model can be trained, and after training, it can be directly applied to obtain the second type of three-dimensional coordinate position. The specific training process may include: first, initialize the neural network model, including the initialization of the weights and thresholds in the neural network model; second, input the training sample, and calculate the output of the hidden layer neurons, calculate the output of the output layer neurons, calculate the error through the output layer neuron output and the loss function, and correct the parameters of the neural network model according to the error, including: adjusting the weights from the hidden layer to the output layer and the threshold of the output layer neurons, adjusting the weights from the input layer to the hidden layer and the threshold of the hidden layer neurons; update the input training sample, and retrain the neural network model according to the above process until the training sample test is completed. After the test is completed, update the training rounds to determine whether the training end condition is met. If so, end the training, otherwise retrain the neural network model according to the above process. The training end condition may be that the number of training times reaches a preset number of times or the error value is less than a preset value, etc.
[0096] After obtaining the first type of three-dimensional coordinate position calculated by the target positioning algorithm and the second type of three-dimensional coordinate position output by the neural network model, the two can be fused and calculated to obtain the three-dimensional coordinate position of the pelvis, which is called the target three-dimensional coordinate position.
[0097] The present invention takes into account that when the magnetic source (such as the pelvis) is about 15 cm away from the sensor array, the error of the target positioning algorithm will be much larger than the predicted output value of the neural network model. Therefore, this paper proposes a fusion algorithm to fuse the two algorithms.
[0098] If the position coordinates calculated by the target positioning algorithm are (x k1 ,y k1 ,z k1 ), the position coordinates predicted by the neural network are (x k2 ,y k2 ,z k2 ). The coordinates predicted by the fused algorithm are (x k ,y k ,z k ),but:
[0099]
[0100] Of course, in addition to the above formula, in actual applications, other weighted average methods can also be used to fuse the two and obtain the target three-dimensional coordinate position.
[0101] Combination of the above Figure 1 , describes in detail the method embodiment of the present disclosure, and the following is combined with Figure 4 , describe in detail the device embodiments of the present disclosure.
[0102] Figure 3 A schematic diagram of the structure of a pelvic measurement device provided in one embodiment of the present disclosure. The device may be a computing device or a component of a computing device (eg, an integrated circuit, a chip, etc.), and the computing device may be a server or a terminal device.
[0103] like Figure 3 As shown, the device 20 comprises:
[0104] A first magnetic sensor array 21, used for collecting first magnetic field information data for the pelvis;
[0105] A second magnetic sensor array 22, used for collecting second magnetic field information data for the pelvis;
[0106] The data acquisition circuit 23 is used to convert the first magnetic field information data collected by the first magnetic sensor array from an analog state to a digital state; and to convert the second magnetic field information data collected by the second magnetic sensor array from an analog state to a digital state;
[0107] The host computer 24 is used to calculate the three-dimensional coordinate position of the pelvis as the first type of three-dimensional coordinate position through a target positioning algorithm based on the first magnetic field information data converted into a digital state; input the second magnetic field information data converted into a digital state into a pre-trained neural network model, and output the three-dimensional coordinate position of the pelvis through the neural network model as the second type of three-dimensional coordinate position; determine the target three-dimensional coordinate position of the pelvis according to the first type of three-dimensional coordinate position and the second type of three-dimensional coordinate position.
[0108] The embodiment of the present invention fully considers the special clinical environment of pelvic measurement for pregnant women, adopts a three-dimensional magnetic field positioning method, and designs a three-dimensional measurement unit array (including a first magnetic sensor array and a second magnetic sensor array), a data acquisition, and a signal processing system (such as a host computer). The magnetic sensor array is used to collect magnetic field information changes in space after the magnetic source is placed; the data acquisition circuit is used to convert the analog quantity collected by the sensor array into a digital quantity for use; the host computer implements a three-dimensional fusion positioning algorithm. Through the automated high-precision three-dimensional pelvic measurement device of the present invention, the problem that clinicians cannot automatically measure the pelvis is solved, filling the gap in magnetic field positioning in the field of pelvic measurement.
[0109] The data acquisition circuit designed by the present invention can collect analog signals of magnetic sensitive elements with high precision and convert them into digital signals. The resolution of the data acquisition circuit is greater than the resolution of the magnetic sensitive elements, and the collected analog quantity can be converted into digital quantity with high precision. The magnetic sensitive elements are extremely sensitive, and the influence of geomagnetism and electromagnetic interference cannot be ignored.
[0110] In addition, the device may also include a calibration device component for obtaining the magnetic field spatial data required by the neural network and for use in neural network training.
[0111] In yet another implementation, the first magnetic sensor array is arranged in a matrix arrangement.
[0112] The present invention can arrange N low-cost measurement units on the same plane at intervals of 10 cm in a planar sensor array, and then use a data acquisition circuit to collect analog quantities of the sensors and convert them into digital quantities for use, thereby using a fusion algorithm to measure the spatial position information of the pelvis with high precision.
[0113] In one implementation, the device further includes:
[0114] The set / reset circuit is used to recalibrate and invert the magnetic sensitive elements of each sensor in the first magnetic sensor array and / or the second magnetic sensor array.
[0115] The present invention provides a set / reset circuit and can eliminate geomagnetic and abnormal disturbances through a filtering algorithm, thereby greatly improving the accuracy of data.
[0116] In addition, in a specific implementation scenario, the pelvis measurement device of the present invention can be as follows: Figure 4 As shown. The magnetic sensor array (referred to as the sensor array) is connected to a multiplexer, and the multiplexer is connected to an amplifier. After the amplifier amplifies the signal, it is output to the analog-to-digital converter, and then the data processed by the analog-to-digital converter is transmitted to the MCU (Microcontroller Unit). The microcontroller unit communicates with the host computer (PC) through serial port communication. The microcontroller unit can also be connected to the set / reset circuit to act on the sensor array through the set / reset circuit. The power supply can supply power to the microcontroller unit, and the power supply can supply power to the set / reset circuit after being converted by the power conversion circuit.
[0117] The above describes the device of the embodiment of the present disclosure from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present disclosure can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in conjunction with the embodiment of the present disclosure can be directly embodied as a hardware decoding processor to execute, or a combination of hardware and software modules in the decoding processor to execute. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps in the above method embodiment in conjunction with its hardware.
[0118] Figure 5 It is a schematic block diagram of an electronic device provided by an embodiment of the present disclosure, and the electronic device is used to execute the above method embodiment.
[0119] like Figure 5 As shown, the electronic device 300 may include:
[0120] Memory 301, processor 302, input / output (I / O) interface 303. The memory 301 is used to store instructions. The processor 302 is used to call the instructions stored in the memory 301 to execute the pelvic measurement method based on the magnetic sensor array of the embodiment of the present disclosure. The processor 302 is connected to the memory 301 and the I / O interface 303 respectively, for example, it can be connected through a bus system and / or other forms of connection mechanisms (not shown). The memory 301 can be used to store programs and data, including the program of the pelvic measurement method based on the magnetic sensor array involved in the embodiment of the present disclosure. The processor 302 executes various functional applications and data processing of the electronic device 300 by running the program stored in the memory 301.
[0121] In some embodiments of the present disclosure, the processor 302 may include but is not limited to:
[0122] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.
[0123] In some embodiments of the present disclosure, the memory 31 includes but is not limited to:
[0124] The processor 302 is implemented by at least one of the hardware forms of a digital signal processor (DSP), a field programmable gate array (FPGA), and a programmable logic array (PLA). The processor 302 may be a central processing unit (CPU) or one or a combination of other processing units with data processing capabilities and / or instruction execution capabilities.
[0125] The memory 301 in the embodiment of the present disclosure may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct memory bus random access memory (Direct Rambus RAM, DR RAM).
[0126] In the embodiment of the present disclosure, the I / O interface 303 may be used to receive input instructions (such as digital or character information, and key signal input related to user settings and function control of the electronic device 300), and may also output various information to the outside (such as images or sounds). In the embodiment of the present disclosure, the I / O interface 303 may include one or more of a physical keyboard, a function key (such as a volume control key, a switch key, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, and a touch panel.
[0127] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.
[0128] According to one aspect of the present disclosure, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present disclosure embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer performs the method of the above pelvic measurement method embodiment based on a magnetic sensor array.
[0129] According to another aspect of the present disclosure, a computer program product or computer program is provided, the computer program product or computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computing device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computing device executes the method of the embodiment of the pelvic measurement method based on a magnetic sensor array.
[0130] In other words, when implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function according to the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a digital video disc (digital video disc, DVD)), or a semiconductor medium (e.g., a solid state disk (solid state disk, SSD)), etc.
[0131] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this disclosure.
[0132] In the several embodiments provided in the present disclosure, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0133] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present disclosure may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0134] It is to be understood that, although the operations are described in a specific order in the drawings in the embodiments of the present disclosure, it should not be understood as requiring the operations to be performed in the specific order shown or in a serial order, or requiring the execution of all the operations shown to obtain the desired results. In certain environments, multitasking and parallel processing may be advantageous.
[0135] The methods and devices involved in the embodiments of the present disclosure can be implemented using standard programming techniques, using rule-based logic or other logic to implement various method steps. It should also be noted that the words "device" and "module" used herein and in the claims are intended to include implementations using one or more lines of software code and / or hardware implementations and / or devices for receiving input.
[0136] Any steps, operations or procedures described herein may be performed or implemented using one or more hardware or software modules, either alone or in combination with other devices. In one embodiment, the software module is implemented using a computer program product including a computer-readable medium containing computer program code, which can be executed by a computer processor to perform any or all of the described steps, operations or procedures.
[0137] The foregoing description of the implementation of the present disclosure has been given for the purpose of illustration and description. The foregoing description is not exhaustive nor is it intended to limit the present disclosure to the exact form disclosed, and various variations and modifications may exist in accordance with the above teachings or may be obtained from the practice of the present disclosure. These embodiments are selected and described in order to illustrate the principles of the present disclosure and its practical application, so that those skilled in the art can utilize the present disclosure in various embodiments and various modifications suitable for the specific purpose contemplated.
Claims
1. A pelvic measurement method, characterized in that: The method comprises: Acquire first magnetic field information data collected by a first magnetic sensor array for the pelvis; and convert the first magnetic field information data from an analog state to a digital state; Based on the first magnetic field information data converted into a digital state, a three-dimensional coordinate position of the pelvis is calculated by a target positioning algorithm as a first type of three-dimensional coordinate position; Acquire second magnetic field information data collected by a second magnetic sensor array for the pelvis; and convert the second magnetic field information data from an analog state to a digital state; Inputting the second magnetic field information data converted into a digital state into a pre-trained neural network model, and outputting the three-dimensional coordinate position of the pelvis through the neural network model as the second type of three-dimensional coordinate position; The target three-dimensional coordinate position of the pelvis is determined according to the first three-dimensional coordinate position and the second three-dimensional coordinate position.
2. The method according to claim 1, characterized in that The first magnetic sensor array includes at least two sensors, and the three-dimensional coordinate position of the pelvis is calculated by a target positioning algorithm based on the first magnetic field information data converted into a digital state, including: Based on the least squares method, the first magnetic field information data converted into a digital state and collected by the at least two sensors is inverted and calculated to obtain the initial three-dimensional coordinate position of the magnetic dipole point; Calculating the straight-line distance from the magnetic dipole point to each sensor; Based on the straight-line distance from the magnetic dipole point to each sensor, the weight of each sensor is determined; and the initial three-dimensional coordinate position of the magnetic dipole point is corrected according to the weight of each sensor to obtain the three-dimensional coordinate position of the pelvis as the first type of three-dimensional coordinate position.
3. The method according to claim 1, characterized in that: The neural network model is a deep neural network.
4. The method according to claim 3, characterized in that The second magnetic sensor array includes N magnetic sensors, the input layer of the neural network model includes N neurons, and the input data of each neuron corresponds to the second magnetic field information data collected by each magnetic sensor in the second magnetic sensor array.
5. The method according to claim 3, characterized in that: The activation function of the neural network model is a hyperbolic tangent function.
6. A pelvic measurement device, characterized in that: The device comprises: A first magnetic sensor array, used for collecting first magnetic field information data for the pelvis; A second magnetic sensor array, used for collecting second magnetic field information data for the pelvis; a data acquisition circuit, configured to convert the first magnetic field information data acquired by the first magnetic sensor array from an analog state into a digital state; and to convert the second magnetic field information data acquired by the second magnetic sensor array from an analog state into a digital state; The host computer is used to calculate the three-dimensional coordinate position of the pelvis as the first type of three-dimensional coordinate position through a target positioning algorithm based on the first magnetic field information data converted into a digital state; input the second magnetic field information data converted into a digital state into a pre-trained neural network model, and output the three-dimensional coordinate position of the pelvis through the neural network model as the second type of three-dimensional coordinate position; determine the target three-dimensional coordinate position of the pelvis according to the first type of three-dimensional coordinate position and the second type of three-dimensional coordinate position.
7. The device according to claim 6, characterized in that The first magnetic sensor array is arranged in a matrix arrangement.
8. The device according to claim 6, characterized in that The device also includes: The set / reset circuit is used to recalibrate and invert the magnetic sensitive elements of each sensor in the first magnetic sensor array and / or the second magnetic sensor array.
9. An electronic device, characterized in that: including memory and processor; Wherein, the memory is connected to the processor and is used to store programs; The processor is used to implement the steps of the method according to any one of claims 1 to 5 by running the program stored in the memory.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 5.
