CN117398626A - Equipment power output control method and related device based on pressure movement detection - Google Patents
Equipment power output control method and related device based on pressure movement detection Download PDFInfo
- Publication number
- CN117398626A CN117398626A CN202311591068.7A CN202311591068A CN117398626A CN 117398626 A CN117398626 A CN 117398626A CN 202311591068 A CN202311591068 A CN 202311591068A CN 117398626 A CN117398626 A CN 117398626A
- Authority
- CN
- China
- Prior art keywords
- pressure
- data
- peak
- treatment head
- pressure data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000001514 detection method Methods 0.000 title claims abstract description 46
- 238000004364 calculation method Methods 0.000 claims abstract description 48
- 239000011159 matrix material Substances 0.000 claims description 38
- 238000001356 surgical procedure Methods 0.000 claims description 35
- 230000015654 memory Effects 0.000 claims description 29
- 238000004422 calculation algorithm Methods 0.000 claims description 22
- 230000006870 function Effects 0.000 claims description 16
- 230000009466 transformation Effects 0.000 claims description 14
- 241000607479 Yersinia pestis Species 0.000 claims description 6
- 238000002560 therapeutic procedure Methods 0.000 claims description 6
- 238000004590 computer program Methods 0.000 claims description 5
- 238000013500 data storage Methods 0.000 claims description 5
- 238000000605 extraction Methods 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 16
- 238000009825 accumulation Methods 0.000 description 5
- UXFQFBNBSPQBJW-UHFFFAOYSA-N 2-amino-2-methylpropane-1,3-diol Chemical compound OCC(N)(C)CO UXFQFBNBSPQBJW-UHFFFAOYSA-N 0.000 description 4
- 101150035093 AMPD gene Proteins 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 3
- 238000009210 therapy by ultrasound Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 2
- 230000005291 magnetic effect Effects 0.000 description 2
- 230000000737 periodic effect Effects 0.000 description 2
- 230000000750 progressive effect Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61N—ELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
- A61N7/00—Ultrasound therapy
- A61N7/02—Localised ultrasound hyperthermia
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61N—ELECTROTHERAPY; MAGNETOTHERAPY; RADIATION THERAPY; ULTRASOUND THERAPY
- A61N7/00—Ultrasound therapy
-
- G—PHYSICS
- G05—CONTROLLING; REGULATING
- G05B—CONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
- G05B19/00—Programme-control systems
- G05B19/02—Programme-control systems electric
- G05B19/04—Programme control other than numerical control, i.e. in sequence controllers or logic controllers
- G05B19/042—Programme control other than numerical control, i.e. in sequence controllers or logic controllers using digital processors
- G05B19/0423—Input/output
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F5/00—Methods or arrangements for data conversion without changing the order or content of the data handled
- G06F5/06—Methods or arrangements for data conversion without changing the order or content of the data handled for changing the speed of data flow, i.e. speed regularising or timing, e.g. delay lines, FIFO buffers; over- or underrun control therefor
Landscapes
- Engineering & Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Radiology & Medical Imaging (AREA)
- Life Sciences & Earth Sciences (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Automation & Control Theory (AREA)
- Surgical Instruments (AREA)
Abstract
The invention discloses a device power output control method and a related device based on pressure movement detection, wherein the method comprises the following steps: storing pressure data acquired by at least three pressure sensors arranged on the treatment head into at least three FIFOs respectively; carrying out peak searching calculation on all pressure data in the FIFO with all pressure data larger than a first preset value, and storing all found pressure peak value data in the corresponding FIFO in an overlaying manner; obtaining the distance between two adjacent pressure peak data in all the pressure peak data; and controlling the output power of the treatment head based on the distance between two adjacent pressure peak data in all the pressure peak data. In the embodiment of the invention, the contact condition and the moving speed of the treatment head relative to the skin can be calculated according to the pressure data acquired by the treatment head, and the corresponding power output is carried out, so that the treatment effect is improved.
Description
Technical Field
The invention relates to the technical field of power output control, in particular to a device power output control method based on pressure movement detection and a related device.
Background
The existing surgical treatment equipment (ultrasonic treatment equipment) of the same type does not detect the contact function of the treatment head and the skin, and does not detect the relative movement function of the treatment head and the skin, mainly judges whether the contact of the treatment head and the skin is good according to experience of doctors or related practitioners, and judges whether the treatment head moves in the treatment process according to naked eyes and hand feeling, so that the treatment effect can be known mainly according to the operation experience of the doctors or related practitioners, the doctor or related practitioners with low operation experience can easily repeatedly output ultrasonic energy at the same skin position, heat accumulation is caused, and then the treatment effect is seriously influenced by the tissue due to overhigh temperature, and meanwhile, the safety is difficult to ensure.
Disclosure of Invention
The invention aims to overcome the defects of the prior art, and provides a device power output control method and a related device based on pressure movement detection, which can calculate the contact condition and movement speed of a treatment head relative to skin according to pressure data acquired by the treatment head, and perform corresponding power output to improve the treatment effect.
In order to solve the technical problems, the embodiment of the invention provides a device power output control method based on pressure movement detection,
the pressure sensors are applied to the surgical treatment equipment, at least three pressure sensors are arranged on the circumference of a treatment head of the surgical treatment equipment, and at least three pressure sensors are uniformly distributed on the circumference of the treatment head; the method comprises the following steps:
when the treatment head is contacted with skin, respectively storing pressure data acquired by at least three pressure sensors arranged on the treatment head into at least three corresponding FIFOs;
when the pressure data in at least three corresponding FIFOs are stored fully and all the pressure data in any one of the at least three corresponding FIFOs are larger than or equal to a first preset value, carrying out peak searching calculation on all the pressure data in the FIFO with all the pressure data larger than the first preset value, and storing all the found pressure peak value data in the corresponding FIFO in an overlapping manner;
when the number of all the pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data in all the pressure peak data;
and controlling the output power of the treatment head based on the distance between two adjacent pressure peak data in all the pressure peak data.
Alternatively to this, the method may comprise,
the step of storing the pressure data collected by at least three pressure sensors arranged on the treatment head into at least three corresponding FIFOs respectively comprises the following steps:
an ADC circuit in an MCU on the surgical treatment equipment converts pressure data acquired by at least three corresponding pressure sensors on the treatment head from analog signal data to digital signal data;
at least three sets of corresponding pressure data converted to digital signal data are stored in at least three corresponding FIFOs of U16 type depth, respectively.
Optionally, the peak searching calculation is performed on all pressure data in the FIFO with all pressure data larger than the first preset value, and all found pressure peak data are stored in the corresponding FIFO in an overlapping manner, including:
and carrying out peak searching calculation on all pressure data in the FIFO with all pressure data larger than a first preset value based on a peak detection algorithm, and storing all found pressure peak data in the corresponding FIFO in an overlaying manner.
Optionally, the peak-finding calculation is performed on all pressure data in the FIFO, where all pressure data is greater than a first preset value, based on a peak detection algorithm, including:
all pressure data in the FIFO with all pressure data larger than a first preset value are taken out, all the taken pressure data are sequentially input into a local maximum scale graph algorithm for calculation processing, and an operation matrix is output;
detecting peaks of all the pressure data based on the line-by-line standard deviation of the operation matrix to obtain a peak detection result;
and carrying out peak extraction processing on the pressure data based on the peak detection result to obtain peak data in all the pressure data.
Optionally, the detecting the peak value of all the pressure data based on the line-by-line standard deviation of the operation matrix to obtain a peak value detection result includes:
carrying out summation calculation processing on each determinant in the operation matrix to obtain a summation operation result of each determinant in the operation matrix;
performing scale transformation processing based on the summation operation result of each determinant in the operation matrix to obtain a scale transformation result;
and detecting the peak values of all the pressure data based on the scale transformation result to obtain a peak value detection result.
Optionally, the method further comprises:
when all pressure data in all of the at least three corresponding FIFOs are smaller than a first preset value, judging that the contact between the treatment head and the skin is not good, and carrying out peak searching calculation on all the pressure data in any one of the at least three corresponding FIFOs.
Optionally, the controlling the output power of the treatment head based on the distance between two adjacent pressure peak data in the all pressure peak data includes:
controlling the output power of the treatment head by using a mobile power output relation function based on the distance between two adjacent pressure peak data in all the pressure peak data;
the mobile power output relationship function is as follows:
wherein P represents the power controlling the therapy head output; k represents a power correction factor; s represents the distance between two adjacent pressure peak data in all the pressure peak data; pest represents the set power data.
In addition, the embodiment of the invention also provides a device power output control device based on pressure movement detection, which is applied to surgical treatment equipment, wherein at least three pressure sensors are arranged on the circumference of a treatment head of the surgical treatment equipment, and at least three pressure sensors are uniformly distributed on the circumference of the treatment head; the device comprises:
and a data storage module: the pressure data acquired by at least three pressure sensors arranged on the treatment head are respectively stored into at least three corresponding FIFOs when the treatment head is contacted with the skin;
and a peak searching calculation module: when the pressure data in at least three FIFOs are full and all the pressure data in any one of the at least three FIFOs are greater than or equal to a first preset value, performing peak searching calculation on all the pressure data in the FIFOs with all the pressure data greater than the first preset value, and storing all the found pressure peak data in the corresponding FIFOs in an overlapping manner;
the obtaining module is as follows: when the number of all the pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data in all the pressure peak data;
and a power output control module: for controlling the output power of the treatment head based on the distance between two adjacent pressure peak data of the all pressure peak data.
In addition, the embodiment of the invention also provides a surgical treatment device, which comprises a processor and a memory, wherein the processor runs a computer program or codes stored in the memory to realize the device power output control method according to any one of the above.
In addition, an embodiment of the present invention further provides a computer readable storage medium storing a computer program or code, which when executed by a processor, implements a device power output control method as set forth in any one of the above.
In the embodiment of the invention, the pressure sensor is arranged on the treatment head, the pressure sensor is used for collecting the pressure data when the treatment head is contacted with the skin, the contact condition and the movement condition of the treatment head and the skin can be obtained through the calculation, analysis and treatment of the pressure data, and then the output power is controlled according to the contact condition and the movement condition, so that the treatment effect can be effectively improved; meanwhile, a doctor or a practitioner with related experience is not required to operate, and the corresponding treatment effect can be effectively ensured; and simultaneously, ultrasonic energy can not be repeatedly output at the same skin position, so that heat accumulation is caused to influence the treatment effect.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings which are required in the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the description below are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a method for controlling power output of a device based on pressure movement detection in an embodiment of the invention;
FIG. 2 is a schematic structural diagram of a power output control device of an apparatus based on pressure movement detection in an embodiment of the present invention;
fig. 3 is a schematic structural view of a surgical treatment apparatus in an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a power output control method of a device based on pressure movement detection according to an embodiment of the invention.
As shown in fig. 1, a device power output control method based on pressure movement detection is applied to a surgical treatment device, wherein at least three pressure sensors are arranged on the circumference of a treatment head of the surgical treatment device, and at least three pressure sensors are uniformly distributed on the circumference of the treatment head;
in the specific implementation process of the invention, the surgical treatment equipment is ultrasonic treatment equipment and comprises a control end and a treatment head connected with the control end, the more the number of pressure sensors arranged on the treatment head is, the higher the accuracy of data acquired subsequently is, so that at least three pressure sensors are arranged in the application, in the implementation, four pressure sensors are arranged on the circumference of the treatment head as a specific implementation mode, the four pressure sensors are equally divided into four equal parts on the circumference, and pressure strain gauges are respectively arranged on the four pressure sensors, so that the resolution of the surgical treatment equipment can be improved, and meanwhile, the periphery of the treatment head can be ensured to keep good contact with skin according to the four pressure sensors; and the four pressure sensors are respectively connected with the microprocessor on the control end through an ADC circuit (analog-to-digital converter) (MCU). The method comprises the following steps:
s11: when the treatment head is contacted with skin, respectively storing pressure data acquired by at least three pressure sensors arranged on the treatment head into at least three corresponding FIFOs;
in the implementation process of the present invention, the storing the pressure data collected by at least three pressure sensors disposed on the treatment head into at least three corresponding FIFOs respectively includes: an ADC circuit in an MCU on the surgical treatment equipment converts pressure data acquired by at least three corresponding pressure sensors on the treatment head from analog signal data to digital signal data; at least three sets of corresponding pressure data converted to digital signal data are stored in at least three corresponding FIFOs of U16 type depth, respectively.
Specifically, after the surgical treatment device is started, when a treatment head of the surgical treatment device contacts with the skin of a patient, pressure data are acquired according to pressure changes through at least three pressure sensors arranged on the treatment head, the acquired data are uploaded to the MCU through the ADC circuit, and then the MCU stores the acquired four groups of pressure data.
That is, the ADC circuit in the MCU on the surgical treatment equipment converts the pressure data acquired by the pressure sensors of at least three on the treatment head from analog signal data to digital signal data; then respectively storing at least three groups of pressure data converted into digital signal data into at least three corresponding U16-type FIFOs with fifty depths; wherein the FIFO is a first-in first-out data storage stack; the depth is fifty, i.e., the amount of data stored is fifty data.
S12: when the pressure data in at least three corresponding FIFOs are stored fully and all the pressure data in any one of the at least three corresponding FIFOs are larger than or equal to a first preset value, carrying out peak searching calculation on all the pressure data in the FIFO with all the pressure data larger than the first preset value, and storing all the found pressure peak value data in the corresponding FIFO in an overlapping manner;
in the implementation process of the present invention, the peak searching calculation is performed on all pressure data in the FIFO where all pressure data is greater than the first preset value, and all the found pressure peak data are stored in the corresponding FIFO in an overlapping manner, including: and carrying out peak searching calculation on all pressure data in the FIFO with all pressure data larger than a first preset value based on a peak detection algorithm, and storing all found pressure peak data in the corresponding FIFO in an overlaying manner.
Further, the peak-finding calculation is performed on all pressure data in the FIFO, where all pressure data are greater than a first preset value, based on the peak detection algorithm, including: all pressure data in the FIFO with all pressure data larger than a first preset value are taken out, all the taken pressure data are sequentially input into a local maximum scale graph algorithm for calculation processing, and an operation matrix is output; detecting peaks of all the pressure data based on the line-by-line standard deviation of the operation matrix to obtain a peak detection result; and carrying out peak extraction processing on the pressure data based on the peak detection result to obtain peak data in all the pressure data.
Further, the detecting the peak value of all the pressure data based on the progressive standard deviation of the operation matrix to obtain a peak value detection result includes: carrying out summation calculation processing on each determinant in the operation matrix to obtain a summation operation result of each determinant in the operation matrix; performing scale transformation processing based on the summation operation result of each determinant in the operation matrix to obtain a scale transformation result; and detecting the peak values of all the pressure data based on the scale transformation result to obtain a peak value detection result.
Further, the method further comprises: when all pressure data in all of the at least three FIFOs are smaller than a first preset value, judging that the contact between the treatment head and the skin is not good, and carrying out peak searching calculation on all the pressure data in any one of the at least three FIFOs.
Specifically, after the pressure data in at least three corresponding FIFOs are stored fully, it is required to determine that all the pressure data in any one of the at least three corresponding FIFOs is greater than or equal to a first preset value to determine whether the contact between the treatment head and the skin is good, where the first preset value is 2g, when all the pressure data in any one of the at least three FIFOs is greater than or equal to the first preset value, it is determined that the contact between the treatment head and the skin is good, peak searching calculation is required, and when all the pressure data in all the FIFOs in the at least three FIFOs is less than the first preset value, it is determined that the contact between the treatment head and the skin is not good, and peak searching calculation is not required.
In this application, the peak-finding calculation is implemented by using an AMPD peak-detecting algorithm, where the AMPD is automatic multiscale-based peak detection english abbreviation, which is a simple and effective peak-detecting algorithm, to find the real peak values of the periodic and quasi-periodic signals by using a local maximum of a multi-scale sliding window detection signal, and by automatically analyzing the result of applying the multi-scale window technique, which is described in detail as follows:
respectively taking out all pressure data in the FIFO with all pressure data larger than a first preset value to form a data signal set such as: x= [ x ] 1 ,x 2 ,…,x i ,…,x N ]Then, calculating through a local maximum scale graph algorithm to obtain an operation matrix, namely, a data signal set x= [ x ] 1 ,x 2 ,…,x i ,…,x N ]The local maximum scale map algorithm is input for calculation processing, the matrix M is output, and the calculation process is as follows:
wherein r is represented by [0,1 ]]Random numbers of the same respectively;representing constraint factors; i=1, …, b-1, m b,i Factors representing a local maximum scale graph algorithm; the matrix M is as follows:
where N represents the length of the number of data to be input.
After the operation matrix is obtained, the peak values of all the pressure data are detected according to the line-by-line standard deviation of the operation matrix, and the detection processing is concretely as follows:
the summation process is first performed for each determinant of the operation matrix M as follows:
and then performing scale transformation processing according to the summation operation result of each determinant in the operation matrix as follows:
at sigma i When=0, then all pressure data x= [ x ] 1 ,x 2 ,…,x i ,…,x N ]X in (2) i For peak data, all x i The data is stored in another array, and then the data in the array is respectively stored in corresponding FIFOs in an overlapping mode.
S13: when the number of all the pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data in all the pressure peak data;
in the implementation process of the invention, whether the treatment head moves is judged by judging whether the number of all pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value; in the present application, the number of pressure data stored in the FIFO is 50, and therefore the second preset value is set to 40, that is, the ratio of the number of all pressure peak data to the number of all pressure data is required to be 80% or more, so that it is judged that the treatment head has moved with good contact with the skin; if the movement speed is smaller than the second preset value, judging that the treatment head does not move or the movement speed does not reach the requirement; and when the number of all the pressure peak data stored in the corresponding FIFO in a covering way is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data.
S14: and controlling the output power of the treatment head based on the distance between two adjacent pressure peak data in all the pressure peak data.
In the implementation process of the present invention, the controlling the output power of the treatment head based on the distance between two adjacent pressure peak data in the all pressure peak data includes: controlling the output power of the treatment head by using a mobile power output relation function based on the distance between two adjacent pressure peak data in all the pressure peak data; the mobile power output relationship function is as follows:
wherein P represents the power controlling the therapy head output; k represents a power correction factor; s represents the distance between two adjacent pressure peak data in the pressure peak data; pest represents the set power data.
Specifically, the output power of the treatment head can be controlled and processed by using a mobile power output relation function according to the distance between two adjacent pressure peak values in all the pressure peak values; the mobile power output relationship function is as follows:
wherein P represents the power controlling the therapy head output; k represents a power correction factor; s represents the distance between two adjacent pressure peak data in the pressure peak data; pest represents the set power data.
In the embodiment of the invention, the pressure sensor is arranged on the treatment head, the pressure sensor is used for collecting the pressure data when the treatment head is contacted with the skin, the contact condition and the movement condition of the treatment head and the skin can be obtained through the calculation, analysis and treatment of the pressure data, and then the output power is controlled according to the contact condition and the movement condition, so that the treatment effect can be effectively improved; meanwhile, a doctor or a practitioner with related experience is not required to operate, and the corresponding treatment effect can be effectively ensured; and simultaneously, ultrasonic energy can not be repeatedly output at the same skin position, so that heat accumulation is caused to influence the treatment effect.
Referring to fig. 2, fig. 2 is a schematic structural diagram of a power output control device of an apparatus based on pressure movement detection according to an embodiment of the invention.
As shown in fig. 2, a device power output control device based on pressure movement detection is applied to a surgical treatment device, wherein at least three pressure sensors are arranged on the circumference of a treatment head of the surgical treatment device, and at least three pressure sensors are uniformly distributed on the circumference of the treatment head;
in the specific implementation process of the invention, the surgical treatment equipment is ultrasonic treatment equipment and comprises a control end and a treatment head connected with the control end, the more the number of pressure sensors arranged on the treatment head is, the higher the accuracy of data acquired subsequently is, so that at least three pressure sensors are arranged in the application, in the implementation, four pressure sensors are arranged on the circumference of the treatment head as a specific implementation mode, the four pressure sensors are equally divided into four equal parts on the circumference, and pressure strain gauges are respectively arranged on the four pressure sensors, so that the resolution of the surgical treatment equipment can be improved, and meanwhile, the periphery of the treatment head can be ensured to keep good contact with skin according to the four pressure sensors; and the four pressure sensors are respectively connected with the microprocessor on the control end through an ADC circuit (analog-to-digital converter) (MCU). The device comprises:
the data storage module 21: the pressure data acquired by at least three pressure sensors arranged on the treatment head are respectively stored into at least three corresponding FIFOs when the treatment head is contacted with the skin;
in the implementation process of the present invention, the storing the pressure data collected by at least three pressure sensors disposed on the treatment head into at least three corresponding FIFOs respectively includes: an ADC circuit in an MCU on the surgical treatment equipment converts pressure data acquired by at least three corresponding pressure sensors on the treatment head from analog signal data to digital signal data; at least three sets of corresponding pressure data converted to digital signal data are stored in at least three corresponding FIFOs of U16 type depth, respectively.
Specifically, after the surgical treatment device is started, when a treatment head of the surgical treatment device contacts with the skin of a patient, pressure data are acquired according to pressure changes through at least three pressure sensors arranged on the treatment head, the acquired data are uploaded to the MCU through the ADC circuit, and then the MCU stores the acquired four groups of pressure data.
That is, the ADC circuit in the MCU on the surgical treatment equipment converts the pressure data acquired by the pressure sensors of at least three on the treatment head from analog signal data to digital signal data; then respectively storing at least three groups of pressure data converted into digital signal data into at least three corresponding U16-type FIFOs with fifty depths; wherein the FIFO is a first-in first-out data storage stack; the depth is fifty, i.e., the amount of data stored is fifty data.
Peak finding calculation module 22: when the pressure data in at least three corresponding FIFOs are full and all the pressure data in any one of the at least three corresponding FIFOs are greater than or equal to a first preset value, performing peak searching calculation on all the pressure data in the FIFOs with all the pressure data greater than the first preset value, and storing all the found pressure peak value data in the corresponding FIFOs in an overlapping manner;
in the implementation process of the present invention, the peak searching calculation is performed on all pressure data in the FIFO where all pressure data is greater than the first preset value, and all the found pressure peak data are stored in the corresponding FIFO in an overlapping manner, including: and carrying out peak searching calculation on all pressure data in the FIFO with all pressure data larger than a first preset value based on a peak detection algorithm, and storing all found pressure peak data in the corresponding FIFO in an overlaying manner.
Further, the peak-finding calculation is performed on all pressure data in the FIFO, where all pressure data are greater than a first preset value, based on the peak detection algorithm, including: all pressure data in the FIFO with all pressure data larger than a first preset value are taken out, all the taken pressure data are sequentially input into a local maximum scale graph algorithm for calculation processing, and an operation matrix is output; detecting peaks of all the pressure data based on the line-by-line standard deviation of the operation matrix to obtain a peak detection result; and carrying out peak extraction processing on the pressure data based on the peak detection result to obtain peak data in all the pressure data.
Further, the detecting the peak value of all the pressure data based on the progressive standard deviation of the operation matrix to obtain a peak value detection result includes: carrying out summation calculation processing on each determinant in the operation matrix to obtain a summation operation result of each determinant in the operation matrix; performing scale transformation processing based on the summation operation result of each determinant in the operation matrix to obtain a scale transformation result; and detecting the peak values of all the pressure data based on the scale transformation result to obtain a peak value detection result.
Further, when all pressure data in all FIFOs of the at least three FIFOs are smaller than the first preset value, the treatment head is judged to be in poor contact with the skin, and peak searching calculation is not performed on all pressure data in any FIFO of the at least three FIFOs.
Specifically, after the pressure data in at least three corresponding FIFOs are stored fully, it is required to determine that all the pressure data in any one of the at least three corresponding FIFOs is greater than or equal to a first preset value to determine whether the contact between the treatment head and the skin is good, where the first preset value is 2g, when all the pressure data in any one of the at least three FIFOs is greater than or equal to the first preset value, it is determined that the contact between the treatment head and the skin is good, peak searching calculation is required, and when all the pressure data in all the FIFOs in the at least three FIFOs is less than the first preset value, it is determined that the contact between the treatment head and the skin is not good, and peak searching calculation is not required.
In this application, the peak-finding calculation is implemented by using an AMPD peak-detecting algorithm, where the AMPD is automatic multiscale-basedpeak detection english abbreviation, which is a simple and effective peak-detecting algorithm, to find the real peak values of the periodic and quasi-periodic signals by using a local maximum of a multi-scale sliding window detection signal, and by automatically analyzing the result of applying the multi-scale window technique, which is described in detail as follows:
respectively taking out all pressure data in the FIFO with all pressure data larger than a first preset value to form a data signal set such as: x= [ x ] 1 ,x 2 ,…,x i ,…,x N ]Then, calculating through a local maximum scale graph algorithm to obtain an operation matrix, namely, a data signal set x= [ x ] 1 ,x 2 ,…,x i ,…,x N ]The local maximum scale map algorithm is input for calculation processing, the matrix M is output, and the calculation process is as follows:
wherein r is represented by [0,1 ]]Random numbers of the same respectively;representing constraint factors; i=1, …, b-1, m b,i Factors representing a local maximum scale graph algorithm; the matrix M is as follows:
where N represents the length of the number of data to be input.
After the operation matrix is obtained, the peak values of all the pressure data are detected according to the line-by-line standard deviation of the operation matrix, and the detection processing is concretely as follows:
the summation process is first performed for each determinant of the operation matrix M as follows:
and then performing scale transformation processing according to the summation operation result of each determinant in the operation matrix as follows:
at sigma i When=0, then all pressure data x= [ x ] 1 ,x 2 ,…,x i ,…,x N ]X in (2) i For peak data, all x i The data is stored in another array, and then the data in the array is respectively stored in corresponding FIFOs in an overlapping mode.
The obtaining module 23: when the number of all the pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data in all the pressure peak data;
in the implementation process of the invention, whether the treatment head moves is judged by judging whether the number of all pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value; in the present application, the number of pressure data stored in the FIFO is 50, and therefore the second preset value is set to 40, that is, the ratio of the number of all pressure peak data to the number of all pressure data is required to be 80% or more, so that it is judged that the treatment head has moved with good contact with the skin; if the movement speed is smaller than the second preset value, judging that the treatment head does not move or the movement speed does not reach the requirement; and when the number of all the pressure peak data stored in the corresponding FIFO in a covering way is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data.
Power output control module 24: for controlling the output power of the treatment head based on the distance between two adjacent pressure peak data of the all pressure peak data.
In the implementation process of the present invention, the controlling the output power of the treatment head based on the distance between two adjacent pressure peak data in the all pressure peak data includes: controlling the output power of the treatment head by using a mobile power output relation function based on the distance between two adjacent pressure peak data in all the pressure peak data; the mobile power output relationship function is as follows:
wherein P represents the power controlling the therapy head output; k represents a power correction factor; s represents the distance between two adjacent pressure peak data in the pressure peak data; pest represents the set power data.
Specifically, the output power of the treatment head can be controlled and processed by using a mobile power output relation function according to the distance between two adjacent pressure peak data in the pressure peak data; the mobile power output relationship function is as follows:
wherein P represents the power controlling the therapy head output; k represents a power correction factor; s represents the distance between two adjacent pressure peak data in the pressure peak data; pest represents the set power data.
In the embodiment of the invention, the pressure sensor is arranged on the treatment head, the pressure sensor is used for collecting the pressure data when the treatment head is contacted with the skin, the contact condition and the movement condition of the treatment head and the skin can be obtained through the calculation, analysis and treatment of the pressure data, and then the output power is controlled according to the contact condition and the movement condition, so that the treatment effect can be effectively improved; meanwhile, a doctor or a practitioner with related experience is not required to operate, and the corresponding treatment effect can be effectively ensured; and simultaneously, ultrasonic energy can not be repeatedly output at the same skin position, so that heat accumulation is caused to influence the treatment effect.
An embodiment of the present invention provides a computer readable storage medium having a computer program stored thereon, which when executed by a processor, implements the device power output control method of any one of the above embodiments. The computer readable storage medium includes, but is not limited to, any type of disk including floppy disks, hard disks, optical disks, CD-ROMs, and magneto-optical disks, ROMs (Read-Only memories), RAMs (Random AcceSS Memory, random access memories), EPROMs (EraSable Programmable Read-Only memories), EEPROMs (Electrically EraSable ProgrammableRead-Only memories), flash memories, magnetic cards, or optical cards. That is, a storage device includes any medium that stores or transmits information in a form readable by a device (e.g., computer, cell phone), and may be read-only memory, magnetic or optical disk, etc.
The embodiment of the invention also provides a computer application program which runs on a computer and is used for executing the device power output control method of any one of the embodiments.
Further, fig. 3 is a schematic structural composition of a surgical treatment apparatus in the embodiment of the present invention.
The embodiment of the invention also provides surgical treatment equipment, as shown in figure 3. The surgical treatment apparatus includes a processor 302, a memory 303, an input unit 304, a display unit 305, and the like. Those skilled in the art will appreciate that the surgical treatment device structural elements shown in fig. 3 do not constitute a limitation on all devices, and may include more or fewer components than shown, or may combine certain components. The memory 303 may be used to store an application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby performing various functional applications of the device and data processing. The memory may be internal memory or external memory, or include both internal memory and external memory. The internal memory may include read-only memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), flash memory, or random access memory. The external memory may include a hard disk, floppy disk, ZIP disk, U-disk, tape, etc. The disclosed memory includes, but is not limited to, these types of memory. The memory disclosed herein is by way of example only and not by way of limitation.
The input unit 304 is used for receiving input of a signal and receiving keywords input by a user. The input unit 304 may include a touch panel and other input devices. The touch panel may collect touch operations on or near the user (e.g., the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a preset program; other input devices may include, but are not limited to, one or more of a physical keyboard, function keys (e.g., play control keys, switch keys, etc.), a trackball, mouse, joystick, etc. The display unit 305 may be used to display information input by a user or information provided to the user and various menus of the terminal device. The display unit 305 may take the form of a liquid crystal display, an organic light emitting diode, or the like. The processor 302 is a control center of the terminal device, connects various parts of the entire device using various interfaces and lines, performs various functions and processes data by running or executing software programs and/or modules stored in the memory 303, and invoking data stored in the memory.
As one embodiment, the surgical treatment apparatus includes: the device power output control system comprises one or more processors 302, a memory 303, and one or more application programs 301, wherein the one or more application programs 301 are stored in the memory 303 and configured to be executed by the one or more processors 302, and the one or more application programs 301 are configured to perform the device power output control method of any of the above embodiments.
In the embodiment of the invention, the pressure sensor is arranged on the treatment head, the pressure sensor is used for collecting the pressure data when the treatment head is contacted with the skin, the contact condition and the movement condition of the treatment head and the skin can be obtained through the calculation, analysis and treatment of the pressure data, and then the output power is controlled according to the contact condition and the movement condition, so that the treatment effect can be effectively improved; meanwhile, a doctor or a practitioner with related experience is not required to operate, and the corresponding treatment effect can be effectively ensured; and simultaneously, ultrasonic energy can not be repeatedly output at the same skin position, so that heat accumulation is caused to influence the treatment effect.
In addition, the foregoing describes in detail a method for controlling power output of a device based on pressure movement detection and related devices according to the embodiments of the present invention, and specific examples should be adopted herein to illustrate the principles and embodiments of the present invention, where the foregoing description of the embodiments is only for helping to understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.
Claims (10)
1. The device power output control method based on pressure movement detection is characterized by being applied to surgical treatment equipment, wherein at least three pressure sensors are arranged on the circumference of a treatment head of the surgical treatment equipment, and at least three pressure sensors are uniformly distributed on the circumference of the treatment head; the method comprises the following steps:
when the treatment head is contacted with skin, respectively storing pressure data acquired by at least three pressure sensors arranged on the treatment head into at least three corresponding FIFOs;
when the pressure data in at least three corresponding FIFOs are stored fully and all the pressure data in any one of the at least three corresponding FIFOs are larger than or equal to a first preset value, carrying out peak searching calculation on all the pressure data in the FIFO with all the pressure data larger than the first preset value, and storing all the found pressure peak value data in the corresponding FIFO in an overlapping manner;
when the number of all the pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data in all the pressure peak data;
and controlling the output power of the treatment head based on the distance between two adjacent pressure peak data in all the pressure peak data.
2. The apparatus energy output control method according to claim 1, wherein the storing the pressure data collected by the at least three pressure sensors provided on the treatment head in at least three corresponding FIFOs, respectively, comprises:
an ADC circuit in an MCU on the surgical treatment equipment converts pressure data acquired by at least three corresponding pressure sensors on the treatment head from analog signal data to digital signal data;
at least three sets of corresponding pressure data converted to digital signal data are stored in at least three corresponding FIFOs of U16 type depth, respectively.
3. The apparatus energy output control method according to claim 1, wherein the peak searching calculation is performed on all pressure data in the FIFO where all pressure data is greater than the first preset value, and the covering storage of all the found pressure peak data in the corresponding FIFO includes:
and carrying out peak searching calculation on all pressure data in the FIFO with all pressure data larger than a first preset value based on a peak detection algorithm, and storing all found pressure peak data in the corresponding FIFO in an overlaying manner.
4. The apparatus energy output control method according to claim 3, wherein the peak-finding calculation is performed on all pressure data in the FIFO, for which all pressure data is greater than the first preset value, based on the peak detection algorithm, comprising:
all pressure data in the FIFO with all pressure data larger than a first preset value are taken out, all the taken pressure data are sequentially input into a local maximum scale graph algorithm for calculation processing, and an operation matrix is output;
detecting peaks of all the pressure data based on the line-by-line standard deviation of the operation matrix to obtain a peak detection result;
and carrying out peak extraction processing on the pressure data based on the peak detection result to obtain peak data in all the pressure data.
5. The apparatus energy output control method according to claim 4, wherein the detecting the peak values of all the pressure data based on the line-by-line standard deviation of the operation matrix to obtain a peak detection result includes:
carrying out summation calculation processing on each determinant in the operation matrix to obtain a summation operation result of each determinant in the operation matrix;
performing scale transformation processing based on the summation operation result of each determinant in the operation matrix to obtain a scale transformation result;
and detecting the peak values of all the pressure data based on the scale transformation result to obtain a peak value detection result.
6. The apparatus energy output control method according to claim 1, characterized in that the method further comprises:
when all pressure data in all of the at least three corresponding FIFOs are smaller than a first preset value, judging that the contact between the treatment head and the skin is not good, and carrying out peak searching calculation on all the pressure data in any one of the at least three corresponding FIFOs.
7. The apparatus power output control method according to claim 1, wherein the control processing of the output power of the treatment head based on the distance between adjacent two pressure peak data among the all pressure peak data includes:
controlling the output power of the treatment head by using a mobile power output relation function based on the distance between two adjacent pressure peak data in all the pressure peak data;
the mobile power output relationship function is as follows:
wherein P represents the power controlling the therapy head output; k represents a power correction factor; s represents the distance between two adjacent pressure peak data in all the pressure peak data; pest represents the set power data.
8. The device power output control device based on pressure movement detection is characterized by being applied to surgical treatment equipment, wherein at least three pressure sensors are arranged on the circumference of a treatment head of the surgical treatment equipment, and at least three pressure sensors are uniformly distributed on the circumference of the treatment head; the device comprises:
and a data storage module: the pressure data acquired by at least three pressure sensors arranged on the treatment head are respectively stored into at least three corresponding FIFOs when the treatment head is contacted with the skin;
and a peak searching calculation module: when the pressure data in at least three FIFOs are full and all the pressure data in any one of the at least three FIFOs are greater than or equal to a first preset value, performing peak searching calculation on all the pressure data in the FIFOs with all the pressure data greater than the first preset value, and storing all the found pressure peak data in the corresponding FIFOs in an overlapping manner;
the obtaining module is as follows: when the number of all the pressure peak data stored in the corresponding FIFO is larger than or equal to a second preset value, obtaining the distance between two adjacent pressure peak data in all the pressure peak data;
and a power output control module: for controlling the output power of the treatment head based on the distance between two adjacent pressure peak data of the all pressure peak data.
9. A surgical treatment device comprising a processor and a memory, wherein the processor runs a computer program or code stored in the memory implementing the device power output control method of any one of claims 1 to 7.
10. A computer readable storage medium storing a computer program or code which, when executed by a processor, implements the device power output control method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311591068.7A CN117398626A (en) | 2023-11-27 | 2023-11-27 | Equipment power output control method and related device based on pressure movement detection |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202311591068.7A CN117398626A (en) | 2023-11-27 | 2023-11-27 | Equipment power output control method and related device based on pressure movement detection |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117398626A true CN117398626A (en) | 2024-01-16 |
Family
ID=89498136
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202311591068.7A Pending CN117398626A (en) | 2023-11-27 | 2023-11-27 | Equipment power output control method and related device based on pressure movement detection |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117398626A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117906946A (en) * | 2024-03-20 | 2024-04-19 | 江苏金恒信息科技股份有限公司 | Gear fault alarm method based on multi-scale peak searching |
CN117906946B (en) * | 2024-03-20 | 2024-05-31 | 江苏金恒信息科技股份有限公司 | Gear fault alarm method based on multi-scale peak searching |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160270733A1 (en) * | 2013-03-20 | 2016-09-22 | Gambro Lundia Ab | Monitoring of cardiac arrest in a patient connected to an extracorporeal blood processing apparatus |
US20200038567A1 (en) * | 2016-10-19 | 2020-02-06 | Abiomed Europe Gmbh | Ventricular assist device control |
CN111437507A (en) * | 2020-04-24 | 2020-07-24 | 深圳半岛医疗有限公司 | Therapeutic apparatus and control method thereof |
CN112245677A (en) * | 2020-11-05 | 2021-01-22 | 武汉维斯第医用科技股份有限公司 | Negative pressure drainage equipment capable of realizing wound surface temperature control |
US20230145353A1 (en) * | 2020-04-23 | 2023-05-11 | T.J.Smith And Nephew,Limited | Dual mode negative pressure source operation for provision of negative pressure wound therapy |
-
2023
- 2023-11-27 CN CN202311591068.7A patent/CN117398626A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20160270733A1 (en) * | 2013-03-20 | 2016-09-22 | Gambro Lundia Ab | Monitoring of cardiac arrest in a patient connected to an extracorporeal blood processing apparatus |
US20200038567A1 (en) * | 2016-10-19 | 2020-02-06 | Abiomed Europe Gmbh | Ventricular assist device control |
US20230145353A1 (en) * | 2020-04-23 | 2023-05-11 | T.J.Smith And Nephew,Limited | Dual mode negative pressure source operation for provision of negative pressure wound therapy |
CN111437507A (en) * | 2020-04-24 | 2020-07-24 | 深圳半岛医疗有限公司 | Therapeutic apparatus and control method thereof |
CN112245677A (en) * | 2020-11-05 | 2021-01-22 | 武汉维斯第医用科技股份有限公司 | Negative pressure drainage equipment capable of realizing wound surface temperature control |
Non-Patent Citations (1)
Title |
---|
潘奇: "基于压电传感器的肘关节控制肌群运动信息采集研究", 《中国优秀硕士学位论文全文数据库》, 15 February 2017 (2017-02-15), pages 1 - 80 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117906946A (en) * | 2024-03-20 | 2024-04-19 | 江苏金恒信息科技股份有限公司 | Gear fault alarm method based on multi-scale peak searching |
CN117906946B (en) * | 2024-03-20 | 2024-05-31 | 江苏金恒信息科技股份有限公司 | Gear fault alarm method based on multi-scale peak searching |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR101502659B1 (en) | Gesture recognition method and touch system incorporating the same | |
CN107669295B (en) | Apparatus and method for medical image search | |
CN110209273B (en) | Gesture recognition method, interaction control method, device, medium and electronic equipment | |
CN104216642B (en) | A kind of terminal control method | |
CN104360734B (en) | A kind of method of terminal operation | |
JP3135747B2 (en) | I / O device | |
US8816964B2 (en) | Sensor-augmented, gesture-enabled keyboard and associated apparatus and computer-readable storage medium | |
US20120069056A1 (en) | Information display apparatus and information display program | |
US20090027351A1 (en) | Finger id based actions in interactive user interface | |
CN104216516B (en) | A kind of terminal | |
EP1533742A2 (en) | Information processing apparatus and signature data input program | |
WO2012068950A1 (en) | Touch screen triggering method and touch device | |
WO2013009335A1 (en) | Multi-finger detection and component resolution | |
EP0383304B1 (en) | Coordinate input apparatus | |
CN107087075B (en) | Prompting method based on screen fingerprint identification and mobile terminal | |
CN111766995A (en) | Numerical value adjustment control method and device, electronic equipment and storage medium | |
CN107865655A (en) | Ecg wave form figure display methods and device | |
WO2011146503A1 (en) | Control system and method using an ultrasonic area array | |
CN113901881B (en) | Myoelectricity data automatic labeling method | |
CN117398626A (en) | Equipment power output control method and related device based on pressure movement detection | |
JP4891879B2 (en) | Input device | |
CN106873836A (en) | The control method and device of terminal | |
JP2000010720A (en) | Coordinate input device | |
CN114187281A (en) | Image processing method and device, electronic equipment and storage medium | |
CN113204305A (en) | Holding mode detection method and device of mobile terminal, medium and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |