Abnormal processing device, equipment and storage medium for muscle stimulation device
By detecting the electrode impedance value of the muscle stimulation device and the user's sign parameters, determining abnormal parameters and formulating processing strategies, the problem of missing abnormal processing of the muscle stimulation device is solved, and safe and effective device operation is achieved.
Patent Information
- Application Number
- CN202410478959.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-20
- Publication Date
- 2025-06-17
- Estimated Expiration
- 2044-04-20
AI Technical Summary
The existing muscle stimulation devices lack effective treatment plans when abnormalities occur, which may cause harm to the human body.
By detecting the electrode impedance value of the muscle stimulation device and the user's sign parameters, determine the abnormal parameters, and formulate corresponding abnormality handling strategies based on these parameters, such as adjusting the current and stimulation frequency through a constant current source circuit or a PWM controller to handle the abnormality.
The abnormal identification and timely processing of muscle stimulation devices is realized, which avoids potential harm to the human body and ensures the safe and effective operation of the device.
Smart Images

Figure CN118490981B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wearable devices, and in particular to an abnormality processing device, equipment and storage medium for a muscle stimulation device. Background Art
[0002] In modern society, more and more people are experiencing weakening and dysfunction of their waist muscles due to long periods of sitting or long periods of sitting work. Weakening and dysfunction of waist muscles not only lead to the occurrence of diseases such as low back pain and lumbar disc herniation, but also affect the balance and stability of the body. Traditional waist muscle training methods mainly rely on manual strength and movements, which have limited effects and are prone to incorrect stimulation methods. Therefore, a muscle stimulation device has been developed that achieves precise stimulation and personalized adjustment of muscles through the cooperation of key components such as stimulation devices, sensors, controllers, and feedback systems to restore their functions and correct abnormalities. However, the muscle stimulation device acts directly on the human body. When an abnormality occurs, it is easy to cause harm to the human body. Therefore, a solution is needed to deal with abnormalities in the muscle stimulation device. Summary of the invention
[0003] The object of the present invention is to provide an abnormality handling device, equipment and storage medium for a muscle stimulation device, aiming to solve the lack of a solution for handling abnormalities occurring in a muscle stimulation device.
[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.
[0005] According to one aspect of an embodiment of the present application, a method for handling an abnormality of a muscle stimulation device is provided, comprising:
[0006] After detecting that the muscle stimulation device is powered on, detecting whether the muscle stimulation device is abnormal;
[0007] If it is detected that the muscle stimulation device is normal, detecting whether the muscle stimulation device stimulates abnormally during operation;
[0008] If it is detected that the muscle stimulation device stimulates abnormally during operation, determining abnormal parameters of the muscle stimulation device;
[0009] A corresponding abnormality handling strategy is determined according to the abnormal parameters, and the muscle stimulation device is processed according to the abnormality handling strategy.
[0010] Further, the muscle stimulation device includes at least one electrode, and the detecting whether the muscle stimulation device is abnormal includes:
[0011] Acquire a first impedance value of an electrode of the muscle stimulation device at a current moment, and calculate a first impedance ratio according to the first impedance value;
[0012] If it is determined according to the first impedance ratio that the impedance ratio of the muscle stimulation device is normal, obtaining a second impedance value of the electrode of the muscle stimulation device at the current moment;
[0013] A first impedance parameter is calculated according to the second impedance value, and whether the muscle stimulation device is abnormal is detected according to the first impedance parameter.
[0014] Furthermore, the detecting whether the muscle stimulation device stimulates abnormally during operation includes:
[0015] Acquiring a first physical sign parameter of a user who uses the muscle stimulation device at a current moment, and detecting whether the physical sign of the user is abnormal according to the first physical sign parameter;
[0016] If it is detected that the user's physical sign is normal, obtaining a second physical sign parameter of the user after the muscle stimulation device has been working for a preset time, and determining whether the user's emotion is a preset negative emotion according to the second physical sign parameter;
[0017] If the user's emotion is a preset negative emotion, it is determined that the muscle stimulation device stimulates abnormally during operation.
[0018] Further, after determining whether the user's emotion is a preset negative emotion according to the second physical sign parameter, the method further includes:
[0019] If the user's emotion is not a preset negative emotion, it is determined whether the muscle stimulation device stimulates abnormally during operation according to the first physical sign parameter and the second physical sign parameter.
[0020] Further, determining the abnormal parameters of the muscle stimulation device includes:
[0021] Acquire stimulation parameters of the muscle stimulation device at the current moment; wherein the stimulation parameters include at least one of a current value, a current pulse width value and a stimulation frequency;
[0022] If the stimulation parameter is detected to be abnormal, the abnormal stimulation parameter is used as the abnormal parameter.
[0023] Furthermore, before the stimulation parameter is detected to be abnormal, the method further includes:
[0024] If the stimulation parameter is the stimulation frequency, obtaining the first stimulation frequency of the muscle stimulation device at the current moment, and obtaining the second stimulation frequency of the muscle stimulation device after being adjusted by the first adjustment frequency;
[0025] calculating a second adjustment frequency according to the first stimulation frequency and the second stimulation frequency;
[0026] Whether the stimulation frequency is abnormal is determined according to the first adjustment frequency and the second adjustment frequency.
[0027] Further, determining a corresponding exception handling strategy according to the exception parameters includes:
[0028] If the abnormal parameter is the current value, determining that the abnormality handling strategy is a first abnormality handling strategy that changes the current current of the muscle stimulation device by a constant current source circuit;
[0029] If the abnormal parameter is the current pulse width value, determining that the abnormal processing strategy is a second abnormal processing strategy of adjusting the current circuit pulse width value of the muscle stimulation device by a PWM controller;
[0030] If the abnormal parameter is the stimulation frequency, the abnormal handling strategy is determined to be a third abnormal handling strategy of controlling the start of the LC oscillation circuit through the PWM controller and adjusting the current stimulation frequency of the muscle stimulation device through the LC oscillation circuit.
[0031] According to one aspect of an embodiment of the present application, there is provided an abnormality handling device for a muscle stimulation device, comprising:
[0032] A first detection module is configured to detect whether the muscle stimulation device is abnormal after detecting that the muscle stimulation device is powered on;
[0033] A second detection module is configured to detect whether the muscle stimulation device stimulates abnormally during operation if it is detected that the muscle stimulation device is normal;
[0034] A determination module, configured to determine abnormal parameters of the muscle stimulation device if abnormal stimulation of the muscle stimulation device is detected during operation;
[0035] The processing module is configured to determine a corresponding abnormality processing strategy according to the abnormal parameters, and process the muscle stimulation device according to the abnormality processing strategy.
[0036] According to one aspect of an embodiment of the present application, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the exception handling method for the muscle stimulation device as described above.
[0037] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions are executed by a processor of a computer, the computer executes the exception handling method for the muscle stimulation device as described above.
[0038] According to one aspect of the embodiments of the present application, a computer program product or a computer program is provided, the computer program product or the computer program including computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the abnormality handling method of the muscle stimulation device provided in the above-mentioned various optional embodiments.
[0039] In the technical solution provided in the embodiments of the present application, after detecting that the muscle stimulation device is powered on, it is detected whether the muscle stimulation device itself has any abnormality. When it is detected that the muscle stimulation device itself is normal, it is further detected whether the muscle stimulation device has any abnormal stimulation during operation. When it is detected that the muscle stimulation device has any abnormal stimulation during operation, the specific abnormal parameters of the muscle stimulation device are determined. Each abnormal parameter has a corresponding abnormal processing strategy. The muscle stimulation device is processed according to the determined specific abnormal parameters to realize abnormal identification of the muscle stimulation device. At the same time, the abnormality is promptly processed accordingly.
[0040] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work. In the drawings:
[0042] Figure 1 It is a flowchart of an abnormality handling method of a muscle stimulation device involved in the present application;
[0043] Figure 2 is a flow chart of step S110 in an embodiment of the present application;
[0044] Figure 3 is a flow chart of step S120 in an embodiment of the present application;
[0045] Figure 4 is a flow chart of step S130 in an embodiment of the present application;
[0046] Figure 5 is a flow chart of step S420 in an embodiment of the present application;
[0047] Figure 6 is a flow chart of step S140 in an embodiment of the present application;
[0048] Figure 7 is a block diagram of an abnormality handling device of a muscle stimulation device involved in the present application;
[0049] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION
[0050] 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.
[0051] Here, exemplary embodiments will be described in detail, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims.
[0052] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.
[0053] The flowcharts shown in the accompanying drawings are only exemplary 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 can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.
[0054] It should also be noted that the "multiple" mentioned in this application refers to two or more than two. "And / or" describes the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship.
[0055] The solution provided in the embodiment of the present application is based on multi-threading for processing. Multi-threading refers to the technology of implementing the concurrent execution of multiple threads from software or hardware. Computers with multi-threading capabilities can execute more than one thread at the same time due to hardware support, thereby improving overall processing performance. Systems with this capability include symmetric multiprocessors (symmetric multiprocessing is a multi-processor hardware architecture with two or more identical processors (processors) sharing the same main memory and controlled by an operating system), multi-core processors, and chip-level multiprocessing or simultaneous multi-threaded processors. In a program, these independently running program fragments are called "threads", and the concept of programming using them is called "multi-threading".
[0056] Figure 1 FIG. 1 is a flow chart of a method for handling an abnormality of a muscle stimulation device according to an exemplary embodiment. Figure 1 As shown, in an exemplary embodiment, the abnormality handling method of the muscle stimulation device may include steps S110 to S130, which are described in detail as follows:
[0057] Step 110, after detecting that the muscle stimulation device is powered on, detecting whether the muscle stimulation device is abnormal.
[0058] In the embodiment of the present application, after detecting that the muscle stimulation device is powered on, it is detected whether there is any abnormality in the muscle stimulation device itself.
[0059] Step 120: If it is detected that the muscle stimulation device is normal, then detect whether the muscle stimulation device stimulates abnormally during operation.
[0060] In the embodiment of the present application, when it is detected that the muscle stimulation device itself is normal, it is further detected whether the muscle stimulation device stimulates abnormally during operation.
[0061] Step 130: If it is detected that the muscle stimulation device stimulates abnormally during operation, determine the abnormal parameters of the muscle stimulation device.
[0062] In the embodiment of the present application, when abnormal stimulation of the muscle stimulation device is detected during operation, specific abnormal parameters of the muscle stimulation device are determined.
[0063] Step 140, determining a corresponding abnormality handling strategy according to the abnormal parameters, and processing the muscle stimulation device according to the abnormality handling strategy.
[0064] In the embodiment of the present application, each abnormal parameter has a corresponding abnormal processing strategy, and the muscle stimulation device is processed according to the determined specific abnormal parameters to realize abnormal identification of the muscle stimulation device. At the same time, the abnormality is processed accordingly in a timely manner.
[0065] In an exemplary embodiment of the present application, the muscle stimulation device comprises at least one electrode, see Figure 2 In step S110, the muscle stimulation device is detected to be abnormal, including steps S210 to S230, which are described in detail as follows:
[0066] Step S210, obtaining a first impedance value of the electrode of the muscle stimulation device at the current moment, and calculating a first impedance ratio according to the first impedance value.
[0067] In an embodiment of the present application, an impedance analyzer is used to obtain the first impedance value of the muscle stimulation device at the current moment. Specifically, the impedance values of the electrodes at the working point, the grounding point and the receiving end can be obtained as the first impedance value. The impedance analyzer is based on electrical principles, and mainly measures parameters such as impedance, capacitance or inductance of the object under test through alternating current signals. When the alternating current signal passes through the object under test, it will cause changes in current and voltage, and this change can be detected and analyzed by electrical testing instruments. Specifically, the impedance analyzer adopts a scanning measurement method, that is, within a certain frequency range, an alternating current signal is applied to the object under test at different frequencies, and the amplitude and phase difference of the current and voltage signals generated are measured, thereby calculating the impedance, capacitance or inductance and other parameters of the object under test.
[0068] The first impedance value is input into the central processing unit, and the average ratio of the impedance values at the working point, the grounding point and the receiving end is calculated respectively to determine the first impedance ratio.
[0069] Step S220: If it is determined that the impedance ratio of the muscle stimulation device is normal according to the first impedance ratio, a second impedance value of the electrode of the muscle stimulation device at the current moment is obtained.
[0070] In an embodiment of the present application, the impedance ratio of the current model of the muscle stimulation device under normal conditions is obtained from the cloud and determined as the second impedance ratio. The first impedance ratio is matched with the second impedance ratio. If the first impedance ratio is less than 74% of the second impedance ratio, or the first impedance ratio is greater than 136% of the second impedance ratio, the impedance ratio of the muscle stimulation device is judged to be abnormal, and the voice prompter is controlled to start. The voice prompter reminds the user by voice that there are abnormal electrodes in the electrodes of the muscle stimulation device, sends an abnormal message to the user, and vibrates to remind, and closes the abnormal electrodes to prevent harm to the user. If the first impedance ratios of the working point, the grounding point and the receiving end of each electrode are greater than or equal to 74% of the second impedance ratio, and are less than or equal to 136% of the second impedance ratio, it is judged that the impedance ratio of the muscle stimulation device is normal. Then obtain the second impedance value of each electrode at the current moment.
[0071] Step S230, calculating a first impedance parameter according to the second impedance value, and detecting whether the muscle stimulation device is abnormal according to the first impedance parameter.
[0072] In an embodiment of the present application, an average value is calculated by calculating the second impedance value for the working point in the second impedance value, and the obtained value is determined as the first impedance parameter to obtain the second impedance parameter for the working point under normal conditions. The first impedance parameter is matched with the second impedance parameter. If the first impedance parameter is less than 86% of the second impedance parameter, or the first impedance parameter is greater than 114% of the second impedance parameter, it is judged that there is an abnormality in the muscle stimulation device. The voice prompter is controlled to start, and the voice prompter reminds the user through voice that there are abnormal electrodes in the electrodes of the muscle stimulation device, sends an abnormal message to the user, and vibrates to remind, and turns off the abnormal electrodes to prevent harm to the user. If the first impedance parameters are greater than or equal to 86% of the second impedance parameter, and are less than or equal to 114% of the second impedance parameter, the muscle stimulation device is judged to be normal.
[0073] In an exemplary embodiment of the present application, see Figure 3 In step S120, the muscle stimulation device is detected to determine whether the muscle stimulation is abnormal during operation, including steps S310 to S330, which are described in detail as follows:
[0074] Step S310, obtaining a first physical sign parameter of a user who uses the muscle stimulation device at the current moment, and detecting whether the user's physical sign is abnormal based on the first physical sign parameter.
[0075] In the embodiment of the present application, the heart rate and breathing rate of the user using the muscle stimulation device at the current moment are detected by the emotion sensor and determined as the first vital sign parameter. The historical average heart rate and breathing rate of the user are obtained from the cloud as the baseline vital sign parameter, and the first vital sign parameter is matched with the corresponding baseline vital sign parameter. If the first vital sign parameter is greater than or equal to 125% of the baseline vital sign parameter, or the first vital sign parameter is less than or equal to 85% of the baseline vital sign parameter, it is judged that the user's vital sign may be abnormal, and the stimulation abnormality control command is saved as 1.
[0076] Step S320, if it is detected that the user's physical sign is normal, obtain the second physical sign parameter of the user after the muscle stimulation device has been working for a preset time, and determine whether the user's emotion is a preset negative emotion based on the second physical sign parameter.
[0077] In an embodiment of the present application, if the first vital sign parameter is less than 125% of the baseline vital sign parameter, and the first vital sign parameter is greater than 85% of the baseline vital sign parameter, it is determined that the user's vital sign is normal, and after controlling the muscle stimulation device to work for a preset time, the user's second vital sign parameter is reacquired.
[0078] The second physical sign parameters include heart rate, breathing rate and pitch. The second physical sign parameters are uploaded to the cloud and matched with the emotional database state to obtain the user's emotions. Depression, melancholy, tension, anxiety, depression, fear, and anger are preset as negative emotions. It is determined whether the obtained user's emotions are preset negative emotions.
[0079] Step S330: If the user's emotion is a preset negative emotion, it is determined that the muscle stimulation device stimulates abnormally during operation.
[0080] In the embodiment of the present application, if the user's emotion is a preset negative emotion, it can be directly determined that the muscle stimulation device has abnormal stimulation during operation, and the abnormal stimulation control command is saved as 1.
[0081] In an exemplary embodiment of the present application, after determining whether the user's emotion is a preset negative emotion according to the second physical sign parameter in step S320, the method further includes the following steps, which are described in detail as follows:
[0082] If the user's emotion is not a preset negative emotion, it is determined whether the muscle stimulation device stimulates abnormally during operation according to the first physical sign parameter and the second physical sign parameter.
[0083] In the embodiment of the present application, if the user's emotion is a preset negative emotion, the first physical sign parameter is matched with the second physical sign parameter, and if the second physical sign parameter is greater than or equal to 135% of the first physical sign parameter, it is judged that the stimulation of the muscle stimulation device may be abnormal, and the abnormal stimulation control command is saved as 1. If the second physical sign parameter is less than 135% of the first physical sign parameter, it is judged that the stimulation of the muscle stimulation device is normal, and the abnormal stimulation control command is saved as 0.
[0084] In an exemplary embodiment of the present application, see Figure 4 In step S130, determining the abnormal parameters of the muscle stimulation device includes steps S410 to S420, which are described in detail as follows:
[0085] Step S410, obtaining stimulation parameters of the muscle stimulation device at the current moment; wherein the stimulation parameters include at least one of a current value, a current pulse width value and a stimulation frequency.
[0086] In an embodiment of the present application, the current value of the muscle stimulation device at the current moment is obtained by a current sensor, the current pulse width value of the muscle stimulation device at the current moment is obtained by a pulse width identification circuit, and the stimulation frequency of the muscle stimulation device at the current moment is obtained by a frequency meter.
[0087] The frequency meter can measure the number of cycles N of the measured signal within a specific time period T, and then obtain the frequency f=N / T of the measured signal. During a measurement cycle, the measured periodic signal is amplified, shaped, and differentiated in the input circuit to form a narrow pulse of a specific period, which is sent to one input end of the main gate. The other input end of the main gate is the gate pulse generated by the timing circuit generation circuit. During the period when the gate pulse opens the main gate, the narrow pulse of a specific period can pass through the main gate and enter the counter for counting. The display circuit of the counter is used to display the frequency value of the measured signal, and the internal control circuit is used to complete the switching between various measurement functions and realize the measurement settings.
[0088] Step S420: If it is detected that the stimulation parameter is abnormal, the abnormal stimulation parameter is used as the abnormal parameter.
[0089] In the embodiment of the present application, the stimulation parameters are detected separately, and when abnormal stimulation parameters are detected, the abnormal stimulation parameters are directly used as abnormal parameters.
[0090] In an exemplary embodiment of the present application, see Figure 5 Before the stimulation parameter is detected to be abnormal in step S420, the method further includes steps S510 to S530, which are described in detail as follows:
[0091] Step S510, if the stimulation parameter is the stimulation frequency, obtain the first stimulation frequency of the muscle stimulation device at the current moment, and obtain the second stimulation frequency of the muscle stimulation device after being adjusted by the first adjustment frequency.
[0092] In the embodiment of the present application, the first stimulation frequency of the muscle stimulation device at the current moment is obtained by a frequency meter, and the stimulation frequency of the muscle stimulation device can be set at 1-2000 Hz, of which 1-400 Hz can be adjusted arbitrarily. A frequency adjustment control command is sent to the waist muscle stimulation device to adjust the stimulation frequency, and then the adjusted stimulation frequency is determined as the second stimulation frequency, and the value corresponding to the frequency adjustment control command is used as the first adjustment frequency.
[0093] Step S520: calculating a second adjustment frequency according to the first stimulation frequency and the second stimulation frequency.
[0094] In the embodiment of the present application, the actual value of the adjustment frequency is obtained by subtracting the first stimulation frequency from the second stimulation frequency, and is used as the second adjustment frequency.
[0095] Step S530: determining whether the stimulation frequency is abnormal according to the first adjustment frequency and the second adjustment frequency.
[0096] In the embodiment of the present application, the first adjustment frequency is matched with the second adjustment frequency. If the first adjustment frequency is greater than 120% of the second adjustment frequency, or the first adjustment frequency is less than 80% of the second adjustment frequency, the stimulation frequency is judged to be abnormal, and the stimulation abnormality weight is saved as 3. If the first adjustment frequency is less than or equal to 120% of the second adjustment frequency, and the first adjustment frequency is equal to or greater than 80% of the second adjustment frequency, the normal frequency value of the muscle stimulation device is obtained from the cloud and determined to be the third stimulation frequency. The first stimulation frequency is matched with the third stimulation frequency. If the first stimulation frequency is greater than 115% of the third stimulation frequency, or the first stimulation frequency is less than 85% of the third stimulation frequency, the stimulation frequency of the muscle stimulation device is judged to be abnormal, and the stimulation abnormality weight is saved as 3. If the first stimulation frequency is less than or equal to 115% of the third stimulation frequency, or the first stimulation frequency is greater than or equal to 85% of the third stimulation frequency, the stimulation frequency of the muscle stimulation device is judged to be normal, and the stimulation abnormality weight is saved as 0.
[0097] In an exemplary embodiment of the present application, if the stimulation parameter is a current value, the current sensor is controlled to start, the first current value of the muscle stimulation device at the current moment is obtained through the current sensor, the normal current value set for the muscle stimulation device is obtained from the cloud, determined as the second current value, and the first current value is matched with the second current value. If the first current value is less than or equal to 86% of the second current value, or the first current value is greater than or equal to 114% of the second current value, the current value of the muscle stimulation device is judged to be abnormal, and the stimulation abnormality weight is saved as 1. If the first current value is greater than 86% of the second current value, and the first current value is less than 114% of the second current value, the current value of the muscle stimulation device is judged to be normal, and the stimulation abnormality weight is saved as 0.
[0098] In an exemplary embodiment of the present application, if the stimulation parameter is a current pulse width value, the muscle stimulation device is controlled to access the pulse width identification circuit, and the current pulse width value of the muscle stimulation device at the current moment is obtained through the pulse width identification circuit, and determined as the first current pulse width value. The normal pulse width value set by the muscle stimulation device is obtained from the cloud and determined as the second current pulse width value. The first current pulse width value is matched with the second current pulse width value. If the first current pulse width value is less than or equal to 68% of the second current pulse width value, or the first current pulse width value is greater than or equal to 136% of the second current pulse width value, the current pulse width value of the muscle stimulation device is judged to be abnormal, and the stimulation abnormality weight is saved as 2. If the first current pulse width value is greater than 68% of the second current pulse width value, and the first current pulse width value is less than 136% of the second current pulse width value, the pulse width identification circuit obtains the current pulse width value of the muscle stimulation device in the current period and calculates the average value, which is determined as the third current pulse width value, where the current period can be selected as a pulse width value of n × 3S, where n is an integer. The second current pulse width value is matched with the third current pulse width value. If the second current pulse width value is less than or equal to 83% of the third current pulse width value, or the second current pulse width value is greater than or equal to 117% of the third current pulse width value, it is judged that the current pulse width value of the muscle stimulation device is abnormal, and the stimulation abnormality weight is saved as 2. If the second current pulse width value is greater than 83% of the third current pulse width value, and the second current pulse width value is less than 117% of the third current pulse width value, it is judged that the current pulse width value of the muscle stimulation device is normal, and the stimulation abnormality weight is saved as 0.
[0099] In an exemplary embodiment of the present application, see Figure 6 In step S140, the corresponding exception handling strategy is determined according to the exception parameters, including steps S610 to S630, which are described in detail as follows:
[0100] Step S610: If the abnormal parameter is the current value, determine that the abnormal processing strategy is a first abnormal processing strategy of changing the current current of the muscle stimulation device through a constant current source circuit.
[0101] In an embodiment of the present application, when the stimulation abnormality weight is 1, the abnormality handling strategy is determined to be the first abnormality handling strategy. In the first abnormality handling strategy, the constant current source circuit is controlled to start, the constant current source circuit reads the current value at the current moment, and changes it. After the constant current source circuit is changed, the current value is detected again to see if it is abnormal. If the stimulation abnormality weight corresponding to the current value is 0, it is determined that the current error correction of the muscle stimulation device is successful, the data is displayed on the user's mobile display screen, and the data is uploaded to the cloud for storage; if the stimulation abnormality weight is 1 again, it is determined that the current error correction of the muscle stimulation device has failed, the error correction failure message is sent to the user and a vibration reminder is performed, and the electrode that failed the error correction is turned off to prevent harm to the user.
[0102] The constant current source circuit controls the components in the circuit so that the current output by the circuit remains at a certain constant value. Among them, the core component is the current source, which can provide a stable current output. The current source can be implemented in different ways, such as a current source diode, which can achieve a stable current output by adjusting its current source resistance; or an operational amplifier can be used to achieve a stable current source through negative feedback.
[0103] Step S620: If the abnormal parameter is the current pulse width value, determine that the abnormal processing strategy is a second abnormal processing strategy of adjusting the current circuit pulse width value of the muscle stimulation device through a PWM controller.
[0104] In the embodiment of the present application, when the stimulation abnormality weight is 2, the abnormality handling strategy is determined to be the second abnormality handling strategy, in which the current pulse width value is adjusted by the PWM controller. Check again whether the current pulse width value is abnormal. If the stimulation abnormality weight corresponding to the current pulse width value is 0, it is judged that the current pulse width value of the muscle stimulation device is successfully corrected, the data is displayed on the user's mobile terminal display screen, and the data is uploaded to the cloud for storage; if the stimulation abnormality weight is 1 again, it is judged that the current pulse width value of the muscle stimulation device has failed to correct, the error correction failure message is sent to the user and a vibration reminder is performed, and the electrode that failed to correct is turned off to prevent harm to the user.
[0105] The PWM controller has the same effect when adding different narrow pulses to the inertial link. The PWM control principle divides the waveform into 6 equal parts, which can be replaced by 6 square waves. There are many classification methods for pulse width modulation, such as unipolar and bipolar, synchronous and asynchronous, rectangular wave modulation and sine wave modulation. The unipolar PWM control method means that the carrier changes in only one direction within half a cycle, and the resulting PWM waveform also changes in only one direction, while the bipolar PWM control method means that the carrier changes in two directions within half a cycle, and the resulting PWM waveform also changes in two directions. According to whether the carrier signal is synchronized with the modulation signal, PWM control can be divided into synchronous modulation and asynchronous modulation. The characteristic of rectangular wave pulse width modulation is that the output pulse width train is of equal width, and can only control a certain number of harmonics; the characteristic of sine wave pulse width modulation is that the output pulse width train is of unequal width, the width changes according to the sine law, and the output waveform is close to a sine wave. Sine wave pulse width modulation is also called SPWM.
[0106] Step S630, if the abnormal parameter is the stimulation frequency, determine that the abnormal handling strategy is a third abnormal handling strategy of controlling the start of the LC oscillation circuit through the PWM controller and adjusting the current stimulation frequency of the muscle stimulation device through the LC oscillation circuit.
[0107] In the embodiment of the present application, when the stimulation abnormal weight is 3, the abnormal handling strategy is determined to be the third abnormal handling strategy. In the third abnormal handling strategy, the LC oscillation circuit is started by controlling the PWM controller, and the LC oscillation circuit adjusts the stimulation frequency. According to the periodic formula of the LC oscillation circuit, the spacing between the two plates of the capacitor is increased, the capacitor capacitance is reduced, so that the stimulation frequency is increased, and the spacing between the two plates of the capacitor is reduced, the capacitor capacitance is increased, and the stimulation frequency is reduced. After the adjustment is completed, the stimulation frequency is detected again to see if it is abnormal. If the stimulation abnormal weight corresponding to the stimulation frequency is 0, it is judged that the stimulation frequency correction of the muscle stimulation device is successful, the data is displayed on the user's mobile terminal display, and the data is uploaded to the cloud for storage; if the stimulation abnormal weight is 1 again, it is judged that the stimulation frequency correction of the muscle stimulation device fails, the error correction failure message is sent to the user and a vibration reminder is performed, and the electrode that failed the error correction is closed to prevent harm to the user.
[0108] In an exemplary embodiment of the present application, see Figure 7 , Figure 7 The invention is a device for handling abnormalities of a muscle stimulation device according to an exemplary embodiment, comprising:
[0109] A first detection module 710 is configured to detect whether the muscle stimulation device is abnormal after detecting that the muscle stimulation device is powered on;
[0110] The second detection module 720 is configured to detect whether the muscle stimulation device stimulates abnormally during operation if the muscle stimulation device is detected to be normal;
[0111] A determination module 730 is configured to determine abnormal parameters of the muscle stimulation device if abnormal stimulation of the muscle stimulation device is detected during operation;
[0112] The processing module 740 is configured to determine a corresponding abnormality processing strategy according to the abnormal parameters, and process the muscle stimulation device according to the abnormality processing strategy.
[0113] In an exemplary embodiment of the present application, the muscle stimulation device includes at least one electrode, and the first detection module 710 includes:
[0114] A first acquisition submodule is configured to acquire a first impedance value of an electrode of the muscle stimulation device at a current moment, and calculate a first impedance ratio according to the first impedance value;
[0115] A second acquisition submodule is configured to acquire a second impedance value of the electrode of the muscle stimulation device at a current moment if it is determined that the impedance ratio of the muscle stimulation device is normal according to the first impedance ratio;
[0116] The detection submodule is configured to calculate a first impedance parameter according to the second impedance value, and detect whether the muscle stimulation device is abnormal according to the first impedance parameter.
[0117] In an exemplary embodiment of the present application, the second detection module 720 includes:
[0118] A third acquisition submodule is configured to acquire a first physical sign parameter of a user using the muscle stimulation device at a current moment, and detect whether the physical sign of the user is abnormal according to the first physical sign parameter;
[0119] a fourth acquisition submodule, configured to, if it is detected that the user's physical sign is normal, acquire a second physical sign parameter of the user after the muscle stimulation device has been working for a preset time, and determine whether the user's emotion is a preset negative emotion according to the second physical sign parameter;
[0120] The first determination submodule is configured to determine that the muscle stimulation device stimulates abnormally during operation if the emotion of the user is a preset negative emotion.
[0121] In an exemplary embodiment of the present application, the second detection module 720 further includes:
[0122] The second determination submodule is configured to determine whether the muscle stimulation device stimulates abnormally during operation according to the first physical sign parameter and the second physical sign parameter if the emotion of the user is not a preset negative emotion.
[0123] In an exemplary embodiment of the present application, the determination module 730 includes:
[0124] A fifth acquisition submodule is configured to acquire stimulation parameters of the muscle stimulation device at the current moment; wherein the stimulation parameters include at least one of a current value, a current pulse width value, and a stimulation frequency;
[0125] As a submodule, it is configured to use the abnormal stimulation parameter as the abnormal parameter if it is detected that the stimulation parameter is abnormal.
[0126] In an exemplary embodiment of the present application, the determination module 730 further includes:
[0127] a sixth acquisition submodule, configured to acquire, if the stimulation parameter is the stimulation frequency, a first stimulation frequency of the muscle stimulation device at a current moment, and acquire a second stimulation frequency of the muscle stimulation device after being adjusted by the first adjustment frequency;
[0128] a calculation submodule, configured to calculate a second adjustment frequency according to the first stimulation frequency and the second stimulation frequency;
[0129] The third determination submodule is configured to determine whether the stimulation frequency is abnormal according to the first adjustment frequency and the second adjustment frequency.
[0130] In an exemplary embodiment of the present application, the processing module 740 includes:
[0131] A fourth determination submodule is configured to determine, if the abnormal parameter is the current value, that the abnormality handling strategy is a first abnormality handling strategy of changing the current current of the muscle stimulation device through a constant current source circuit;
[0132] A fifth determination submodule is configured to determine that if the abnormal parameter is the current pulse width value, the abnormality handling strategy is a second abnormality handling strategy of adjusting the current circuit pulse width value of the muscle stimulation device through a PWM controller;
[0133] The sixth determination submodule is configured to determine that if the abnormal parameter is the stimulation frequency, the abnormal handling strategy is a third abnormal handling strategy of controlling the start of the LC oscillation circuit through the PWM controller and adjusting the current stimulation frequency of the muscle stimulation device through the LC oscillation circuit.
[0134] It should be noted that the device provided in the above embodiment and the method provided in the above embodiment belong to the same concept, wherein the specific manner in which each module and unit performs the operation has been described in detail in the method embodiment and will not be repeated here.
[0135] An embodiment of the present application also provides an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the electronic device implements the exception handling method for the muscle stimulation device provided in the above-mentioned embodiments.
[0136] Figure 8 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.
[0137] It should be noted that Figure 8 The computer system 800 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0138] like Figure 8 As shown, the computer system 800 includes a central processing unit (CPU) 801, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 802 or the program loaded from the storage part 808 to the random access memory (RAM) 803, such as executing the method described in the above embodiment. In the RAM 803, various programs and data required for system operation are also stored. The CPU 801, the ROM 802 and the RAM 803 are connected to each other through the bus 804. The input / output (I / O) interface 805 is also connected to the bus 804.
[0139] The following components are connected to the I / O interface 805: an input section 806 including a keyboard, a mouse, etc.; an output section 807 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 808 including a hard disk, etc.; and a communication section 809 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 810 as needed so that a computer program read therefrom is installed into the storage section 808 as needed.
[0140] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication part 809, and / or installed from a removable medium 811. When the computer program is executed by a central processing unit (CPU) 801, various functions defined in the system of the present application are executed.
[0141] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.
[0142] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0143] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.
[0144] Another aspect of the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the method described above is implemented. The computer-readable storage medium may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device.
[0145] Another aspect of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the method provided in each of the above embodiments.
[0146] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above and that the present invention can be implemented in other specific forms without departing from the spirit or essential features of the present invention. Therefore, the embodiments should be considered exemplary and non-restrictive in all respects, and the scope of the present invention is defined by the appended claims rather than the above description, and it is intended that all variations that fall within the meaning and scope of the equivalent elements of the claims be included in the present invention.
Claims
1. An abnormality handling device for a muscle stimulation device, characterized in that: include: A first detection module is configured to detect whether the muscle stimulation device is abnormal after detecting that the muscle stimulation device is powered on; A second detection module is configured to detect whether the muscle stimulation device stimulates abnormally during operation if it is detected that the muscle stimulation device is normal; A determination module, configured to determine abnormal parameters of the muscle stimulation device if abnormal stimulation of the muscle stimulation device is detected during operation; a processing module, configured to determine a corresponding abnormality processing strategy according to the abnormal parameters, and process the muscle stimulation device according to the abnormality processing strategy; The second detection module includes: A third acquisition submodule is configured to acquire a first physical sign parameter of a user using the muscle stimulation device at a current moment, and detect whether the physical sign of the user is abnormal according to the first physical sign parameter; a fourth acquisition submodule, configured to, if it is detected that the user's physical sign is normal, acquire a second physical sign parameter of the user after the muscle stimulation device has been working for a preset time, and determine whether the user's emotion is a preset negative emotion according to the second physical sign parameter; A first determination submodule is configured to determine that the muscle stimulation device stimulates abnormally during operation if the user's emotion is a preset negative emotion; Processing module, including: A fourth determination submodule is configured to determine, if the abnormal parameter is a current value, that the abnormality handling strategy is a first abnormality handling strategy of changing a current current of the muscle stimulation device through a constant current source circuit; A fifth determination submodule is configured to determine that if the abnormal parameter is a current pulse width value, the abnormality handling strategy is a second abnormality handling strategy of adjusting a current circuit pulse width value of the muscle stimulation device through a PWM controller; The sixth determination submodule is configured to determine that if the abnormal parameter is the stimulation frequency, the abnormal handling strategy is to control the start of the LC oscillation circuit through the PWM controller and adjust the current stimulation frequency of the muscle stimulation device through the LC oscillation circuit as a third abnormal handling strategy.
2. The abnormality handling device of the muscle stimulation device according to claim 1, characterized in that: The muscle stimulation device comprises at least one electrode, a first detection module, comprising: A first acquisition submodule is configured to acquire a first impedance value of an electrode of the muscle stimulation device at a current moment, and calculate a first impedance ratio according to the first impedance value; A second acquisition submodule is configured to acquire a second impedance value of the electrode of the muscle stimulation device at a current moment if it is determined that the impedance ratio of the muscle stimulation device is normal according to the first impedance ratio; The detection submodule is configured to calculate a first impedance parameter according to the second impedance value, and detect whether the muscle stimulation device is abnormal according to the first impedance parameter.
3. The abnormality handling device of the muscle stimulation device according to claim 1, characterized in that: The second detection module also includes: The second determination submodule is configured to determine whether the muscle stimulation device stimulates abnormally during operation according to the first physical sign parameter and the second physical sign parameter if the emotion of the user is not a preset negative emotion.
4. The abnormality handling device of the muscle stimulation device according to any one of claims 1 to 3, characterized in that: Identify modules, including: A fifth acquisition submodule is configured to acquire stimulation parameters of the muscle stimulation device at the current moment; wherein the stimulation parameters include at least one of a current value, a current pulse width value, and a stimulation frequency; As a submodule, it is configured to use the abnormal stimulation parameter as the abnormal parameter if it is detected that the stimulation parameter is abnormal.
5. The abnormality handling device of the muscle stimulation device according to claim 4, the determination module further comprising: a sixth acquisition submodule, configured to acquire, if the stimulation parameter is the stimulation frequency, a first stimulation frequency of the muscle stimulation device at a current moment, and acquire a second stimulation frequency of the muscle stimulation device after being adjusted by the first adjustment frequency; a calculation submodule, configured to calculate a second adjustment frequency according to the first stimulation frequency and the second stimulation frequency; The third determination submodule is configured to determine whether the stimulation frequency is abnormal according to the first adjustment frequency and the second adjustment frequency.
6. An electronic device, characterized in that: include: one or more processors; A storage device, used to store one or more programs, when the one or more programs are executed by the one or more processors, enables the electronic device to implement an abnormality handling method for a muscle stimulation device, the method comprising: After detecting that the muscle stimulation device is powered on, detecting whether the muscle stimulation device is abnormal; If it is detected that the muscle stimulation device is normal, detecting whether the muscle stimulation device stimulates abnormally during operation; If it is detected that the muscle stimulation device stimulates abnormally during operation, determining abnormal parameters of the muscle stimulation device; Determining a corresponding abnormality processing strategy according to the abnormal parameters, and processing the muscle stimulation device according to the abnormality processing strategy; The detecting whether the muscle stimulation device stimulates abnormally during operation includes: Acquiring a first physical sign parameter of a user who uses the muscle stimulation device at a current moment, and detecting whether the physical sign of the user is abnormal according to the first physical sign parameter; If it is detected that the user's physical sign is normal, obtaining a second physical sign parameter of the user after the muscle stimulation device has been working for a preset time, and determining whether the user's emotion is a preset negative emotion according to the second physical sign parameter; If the user's emotion is a preset negative emotion, determining that the muscle stimulation device stimulates abnormally during operation; The determining a corresponding exception handling strategy according to the exception parameter comprises: If the abnormal parameter is a current value, determining that the abnormality handling strategy is a first abnormality handling strategy that changes the current current of the muscle stimulation device by a constant current source circuit; If the abnormal parameter is a current pulse width value, determining that the abnormality handling strategy is a second abnormality handling strategy of adjusting a current circuit pulse width value of the muscle stimulation device by a PWM controller; If the abnormal parameter is the stimulation frequency, the abnormal processing strategy is determined to be a third abnormal processing strategy of controlling the start of the LC oscillation circuit through the PWM controller and adjusting the current stimulation frequency of the muscle stimulation device through the LC oscillation circuit.
7. A computer-readable storage medium, characterized in that: Computer-readable instructions are stored thereon, and when the computer-readable instructions are executed by a processor of a computer, the computer is caused to execute an abnormality handling method of a muscle stimulation device, the method comprising: After detecting that the muscle stimulation device is powered on, detecting whether the muscle stimulation device is abnormal; If it is detected that the muscle stimulation device is normal, detecting whether the muscle stimulation device stimulates abnormally during operation; If it is detected that the muscle stimulation device stimulates abnormally during operation, determining abnormal parameters of the muscle stimulation device; Determining a corresponding abnormality processing strategy according to the abnormal parameters, and processing the muscle stimulation device according to the abnormality processing strategy; The detecting whether the muscle stimulation device stimulates abnormally during operation includes: Acquiring a first physical sign parameter of a user who uses the muscle stimulation device at a current moment, and detecting whether the physical sign of the user is abnormal according to the first physical sign parameter; If it is detected that the user's physical sign is normal, obtaining a second physical sign parameter of the user after the muscle stimulation device has been working for a preset time, and determining whether the user's emotion is a preset negative emotion according to the second physical sign parameter; If the user's emotion is a preset negative emotion, determining that the muscle stimulation device stimulates abnormally during operation; The determining a corresponding exception handling strategy according to the exception parameter comprises: If the abnormal parameter is a current value, determining that the abnormality handling strategy is a first abnormality handling strategy that changes the current current of the muscle stimulation device by a constant current source circuit; If the abnormal parameter is a current pulse width value, determining that the abnormality handling strategy is a second abnormality handling strategy of adjusting a current circuit pulse width value of the muscle stimulation device by a PWM controller; If the abnormal parameter is the stimulation frequency, the abnormal processing strategy is determined to be a third abnormal processing strategy of controlling the start of the LC oscillation circuit through the PWM controller and adjusting the current stimulation frequency of the muscle stimulation device through the LC oscillation circuit.
Citation Information
Patent Citations
Muscle electrical stimulation method and device, and wearable device
CN108392732A
Acceleration muscle relaxation monitoring system and application method thereof
CN113827226A