Disclosure of Invention
The invention mainly aims to provide a control method of detection equipment, and aims to solve the problem that intelligent clothes cannot detect the breathing frequency of a wearer at positions other than the mouth and nose.
In order to achieve the above object, the present invention provides a method for controlling a detection apparatus, including:
acquiring the resistance value of the fabric strain sensor, and determining an output signal according to the resistance value;
determining a time interval between rising and falling edges of the output signal;
and determining a breathing parameter according to the time interval.
Optionally, the step of obtaining a resistance value of the fabric strain sensor and determining an output signal according to the resistance value includes:
determining the resistance value change rate according to the resistance value;
and carrying out average filtering processing on the resistance value change rate, and determining the output signal according to the resistance value change rate after the average filtering processing is carried out.
Optionally, before the step of determining the time interval between the rising edge and the falling edge of the output signal, the method further includes:
determining a judgment threshold value according to the resistance value;
the step of determining a time interval between a rising edge and a falling edge of the output signal comprises:
determining the rising edge and the falling edge of the output signal according to the judgment threshold;
determining the time interval based on the rising edge and the falling edge.
Optionally, the step of determining a judgment threshold according to the resistance value includes:
determining a resistance value of the fabric strain sensor according to a deformation amount of the fabric strain sensor, wherein the resistance value is inversely related to the deformation amount;
determining the maximum value and the minimum value of the resistance value, wherein the maximum value is the acquired maximum resistance value of the fabric strain sensor, and the minimum value is the acquired minimum resistance value of the fabric strain sensor;
and determining the judgment threshold according to the maximum value and the minimum value.
Optionally, the step of determining the rising edge and the falling edge of the output signal according to the judgment threshold includes:
acquiring a time point corresponding to each resistance value in the output signal, and acquiring a time point increment, wherein the time point increment is a positive value;
when the resistance value corresponding to the time point is smaller than the judgment threshold value and the resistance value corresponding to the sum of the time point and the time point increment is larger than the judgment threshold value, judging that the time point is a rising edge;
and when the resistance value corresponding to the time point is greater than the judgment threshold value and the resistance value corresponding to the sum of the time point and the time point increment is less than the judgment threshold value, judging that the time point is a falling edge.
Optionally, the step of determining a breathing parameter from the time interval comprises:
when the time interval is larger than a preset interval threshold value, determining a hopping position and a hopping interval of the time interval;
determining the breathing parameter according to the transition position and the transition interval.
In addition, to achieve the above object, the present invention also provides an intelligent garment, including: the control method comprises the steps of a sensing device, a circuit acquisition device, a memory, a processor and a control program of the detection equipment, wherein the control program of the detection equipment is stored on the memory and can run on the processor, and when the control program of the detection equipment is executed by the processor, any step of the control method of the detection equipment is realized.
Optionally, the detection device includes a fabric strain sensor, a fabric electrode, a photo-volume sensor, a photoelectric sensor and/or an electrical impedance imaging electrode, and the function of the circuit acquisition device includes: determining the breathing parameters according to the resistance value of the fabric strain sensor; determining electrocardio parameters according to the potential of the fabric electrode; determining a blood oxygen content parameter according to the light signal intensity and the light wave wavelength of the photoplethysmography sensor; determining blood pressure parameters according to the pulse wave of the photoelectric sensor and the potential of the fabric electrode; and determining a cardiac stroke parameter according to the conductivity of the electrical impedance imaging electrode.
Optionally, the circuit acquisition device determines corresponding human physiological parameters according to detection signals sent by the sensing device, the sensing device includes a fabric strain sensor, and the fabric strain sensor includes:
the flexible substrate is arranged at the chest of the intelligent clothes and used for generating deformation according to expansion and contraction of the chest during breathing;
the sensing area is arranged on the flexible substrate and used for acquiring the deformation quantity of the flexible substrate;
and the connecting area is arranged between the circuit acquisition modules at the chest and the shoulders of the intelligent clothes, is composed of silver-plated conductive fibers and is used for connecting the fabric strain sensor with the circuit acquisition device.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a control program of a detection apparatus, which when executed by a processor, implements any one of the steps of the control method of the detection apparatus as described above.
The embodiment of the invention provides a control method of detection equipment, intelligent clothes and a readable storage medium, wherein a fabric strain sensor is arranged at the chest of the intelligent clothes, when the resistance value of the fabric strain sensor is obtained, an output signal is determined according to the resistance value, then the time interval between the rising edge and the falling edge of the output signal is determined, and finally the breathing parameter is determined according to the time interval, so that the intelligent clothes can realize the breathing parameter detection of a wearer according to the resistance value of the fabric strain sensor at the chest, and the problem that the intelligent clothes cannot detect the breathing frequency of a human body at positions other than the mouth and nose is solved.
Detailed Description
It is to be understood that the appended drawings illustrate exemplary embodiments of the invention, which may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
As an implementation, the control means of the detection device may be as shown in fig. 1.
The embodiment of the invention relates to a control device of detection equipment, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (e.g., a disk memory). As shown in fig. 1, a program for detecting control of the apparatus may be included in a memory 102 as a computer-readable storage medium; and the processor 101 may be adapted to invoke a program of control of the detection device stored in the memory 102 and perform the following operations:
acquiring the resistance value of the fabric strain sensor, and determining an output signal according to the resistance value;
determining a time interval between rising and falling edges of the output signal;
and determining a breathing parameter according to the time interval.
In one embodiment, the processor 101 may be configured to call a control program of the detection device stored in the memory 102 and perform the following operations:
determining the resistance value change rate according to the resistance value;
and carrying out average filtering processing on the resistance value change rate, and determining the output signal according to the resistance value change rate after the average filtering processing is carried out.
In one embodiment, the processor 101 may be configured to call a control program of the detection device stored in the memory 102 and perform the following operations:
determining a judgment threshold value according to the resistance value;
the step of determining a time interval between a rising edge and a falling edge of the output signal comprises:
determining the rising edge and the falling edge of the output signal according to the judgment threshold;
determining the time interval based on the rising edge and the falling edge.
In one embodiment, the processor 101 may be configured to call a control program of the detection device stored in the memory 102 and perform the following operations:
determining a resistance value of the fabric strain sensor according to a deformation amount of the fabric strain sensor, wherein the resistance value is inversely related to the deformation amount;
determining the maximum value and the minimum value of the resistance value, wherein the maximum value is the acquired maximum resistance value of the fabric strain sensor, and the minimum value is the acquired minimum resistance value of the fabric strain sensor;
and determining the judgment threshold according to the maximum value and the minimum value.
In one embodiment, the processor 101 may be configured to call a control program of the detection device stored in the memory 102 and perform the following operations:
acquiring a time point corresponding to each resistance value in the output signal, and acquiring a time point increment, wherein the time point increment is a positive value;
when the resistance value corresponding to the time point is smaller than the judgment threshold value and the resistance value corresponding to the sum of the time point and the time point increment is larger than the judgment threshold value, judging that the time point is a rising edge;
and when the resistance value corresponding to the time point is greater than the judgment threshold value and the resistance value corresponding to the sum of the time point and the time point increment is less than the judgment threshold value, judging that the time point is a falling edge.
In one embodiment, the processor 101 may be configured to call a control program of the detection device stored in the memory 102 and perform the following operations:
when the time interval is larger than a preset interval threshold value, determining a hopping position and a hopping interval of the time interval;
and determining a breathing parameter according to the jump position and the jump interval.
Based on the above hardware architecture of the control device of the detection device based on the medical device technology, an embodiment of the control method of the detection device of the invention is provided.
Referring to fig. 2, in a first embodiment, the control method of the detection apparatus includes the steps of:
step S10: acquiring the resistance value of the fabric strain sensor, and determining an output signal according to the resistance value;
in this embodiment, the fabric strain sensor is disposed at the chest of the smart garment, and the fabric strain sensor includes four portions, namely, a flexible substrate, a sensing region, a connecting region, and an encapsulation layer. Illustratively, the flexible substrate may be used for printing the sensing area and the connecting area on the chest of the intelligent clothes by screen printing, and the sensing area and the connecting area are used for generating deformation according to expansion and contraction of the chest during breathing; the effective length of the sensing area is 435mm, and the width of the sensing area is 3mm, so that the deformation amount of the flexible substrate can be obtained; the effective length of the connecting area is 30mm, the width is 30mm, the connecting area is positioned on a lead woven by silver-plated conductive fiber fabric, and the lead is communicated between the fabric strain sensor and the circuit acquisition module at the shoulder position and is used for connecting the fabric strain sensor with the circuit acquisition device. The fabric strain sensor has high strain sensitivity. Along with the movement of breathing, the thoracic cavity of the human body can move up and down, when the human body inhales, the external intercostal muscles relax, the diaphragm descends, and the thorax is enlarged; during expiration, the external intercostal muscles contract, the diaphragm ascends, and the thoracic cavity contracts; when the respiration is suspended, the thoracic motion disappears. Thus, a fabric strain sensor is attached to the chest, and the sensor monitors respiration by detecting this motion, along with the rhythmic motion of the chest.
Step S20: determining a time interval between rising and falling edges of the output signal;
in the embodiment, after the output signals are determined according to the resistance values to obtain a discrete digital signal, the rising edge and the falling edge of the digital signal are determined, and the time interval of two adjacent output signals is determined according to the rising edge and the adjacent falling edge.
Step S30: and determining a breathing parameter according to the time interval.
In this embodiment, after the time interval is determined, the breathing parameters of the wearer are determined from the time intervals between the digital signal functions in the time domain.
In the technical scheme provided by the embodiment, the breathing parameter of the wearer can be detected according to the resistance value of the fabric strain sensor at the chest by the intelligent clothes in a mode of acquiring the resistance value of the fabric strain sensor, determining the output signal according to the resistance value and determining the breathing parameter according to the time interval between the rising edge and the falling edge of the output signal.
Referring to fig. 3, in the second embodiment, based on the first embodiment, the step S10 includes:
step S11: determining the resistance value change rate according to the resistance value;
step S12: and carrying out average filtering processing on the resistance value change rate, and determining the output signal according to the resistance value change rate after the average filtering processing is carried out.
Optionally, the present embodiments provide a way to determine the output signal from the fabric strain sensor. The circuit acquisition module acquires resistance data of the fabric strain sensor according to a certain frequency (which can be 50Hz), and divides the acquired resistance variation delta R by the initial resistance R0Obtaining a resistance change rate DeltaR/R0And carrying out average filtering processing on the resistance change rate to obtain an output signal:
wherein X (i) is the output signal, xiFor the resistance values collected by the fabric strain sensor, it is emphasized that the output signal is determined jointly from a plurality of resistance value change rates, rather than a single resistance value change rate.
In the technical scheme provided by this embodiment, the resistance change rate is obtained through the acquired resistance, and then the resistance change rates are subjected to average filtering processing to obtain an output signal, so that the resistance in the fabric strain sensor is processed into a digital signal, and the resistance change monitoring of the fabric strain sensor is completed according to the digital signal.
Referring to fig. 4, in the third embodiment, based on the above embodiment, before the step S20, the method further includes:
step S40: determining a judgment threshold value according to the resistance value;
the step S20 includes:
step S21: determining the rising edge and the falling edge of the output signal according to the judgment threshold;
step S22: determining the time interval based on the rising edge and the falling edge.
Optionally, the present embodiment provides a way of determining the time interval of the output signal. After the resistance value of the fabric strain sensor is obtained, a judgment threshold value used for judging the rising edge and the falling edge of the output signal is determined according to the resistance value, and after the rising edge and the falling edge of the output signal are judged, the time interval between the rising edge and the adjacent falling edge is determined.
In the technical scheme provided by the embodiment, a judgment threshold is set through the resistance value of the fabric strain sensor, the signal jump time point meeting the judgment threshold is used as the rising edge or the falling edge of the output signal, the time interval of the output signal is determined according to the rising edge and the falling edge, and a prerequisite condition is provided for the step of obtaining the corresponding breathing parameter according to the time interval.
Referring to fig. 5, in the fourth embodiment, based on the above embodiment, the step S40 includes:
step S41: determining a resistance value of the fabric strain sensor according to a deformation amount of the fabric strain sensor, wherein the resistance value is inversely related to the deformation amount;
step S42: determining the maximum value and the minimum value of the resistance value, wherein the maximum value is the acquired maximum resistance value of the fabric strain sensor, and the minimum value is the acquired minimum resistance value of the fabric strain sensor;
step S43: and determining the judgment threshold according to the maximum value and the minimum value.
Optionally, this embodiment provides a method for determining a judgment threshold. The fabric strain sensor can change the resistance value according to the rhythmic motion of the chest, in the embodiment, the chest expands during inspiration, and the resistance value of the fabric strain sensor is reduced; the chest contracts during expiration and the resistance of the fabric strain sensor decreases. In a section of continuous breathing process, the fabric strain sensor acquires the change of the chest according to a preset acquisition frequency and determines the resistance value change of the fabric strain sensor according to the change degree, because the expansion and contraction degree of the chest of a person is in positive correlation with the strength of the person in breathing, if the one-time inspiration of the wearer is the strongest one in the section of continuous breathing process, the chest of the wearer is expanded to the maximum expansion degree in the breathing process, and the input resistance value is the minimum value; and otherwise, when the one-time expiration of the wearer is the strongest in the continuous respiration process, the chest contraction degree of the wearer is the minimum, the input resistance value is the maximum value at the moment, and the maximum value and the minimum value are substituted into a preset judgment formula to obtain a judgment threshold value. Wherein, the judgment threshold T is:
in the technical scheme provided by the embodiment, the maximum value and the minimum value of the resistance values of the fabric strain sensor are determined according to the deformation amount of the fabric strain sensor, and the maximum resistance value and the minimum resistance value are averaged to obtain a judgment threshold value, so that a prerequisite condition is provided for utilizing the judgment threshold value to really signal the upper edge and the lower edge.
Referring to fig. 6, in a fifth embodiment, based on the above embodiment, the step S21 includes:
step S211: acquiring a time point corresponding to each resistance value in the output signal, and acquiring a time point increment, wherein the time point increment is a positive value;
step S212: when the resistance value corresponding to the time point is smaller than the judgment threshold value and the resistance value corresponding to the sum of the time point and the time point increment is larger than the judgment threshold value, judging that the time point is a rising edge;
step S213: and when the resistance value corresponding to the time point is greater than the judgment threshold value and the resistance value corresponding to the sum of the time point and the time point increment is less than the judgment threshold value, judging that the time point is a falling edge.
Alternatively, the present embodiment provides a method of determining a rising edge and a falling edge of an output signal according to a determination threshold. After the judgment threshold is determined, acquiring a time point and a preset step length (i.e. time point increment) corresponding to each resistance value in the output signal, and determining whether the time point is a rising edge or a falling edge of the output signal by judging whether the resistance value corresponding to the time point and the resistance value corresponding to the time point after the sum of the time point and the step length meet the judgment threshold condition.
Illustratively, the determination conditions for setting the rising edge are:
x (i) < T and X (i + l) > T
That is, when the resistance value X (i) corresponding to the time point i is smaller than the determination threshold value T and the resistance value X (i + l) corresponding to the sum i + l of the time point i and the time point increment is larger than the determination threshold value T, determining that the time point i is a rising edge
After the rising edge occurs, determining a falling edge, wherein the judgment condition of the falling edge is as follows:
x (i) > T and X (i + l) < T
That is, when the resistance value X (i) corresponding to the time point i is greater than the determination threshold T and the resistance value X (i + l) corresponding to the sum i + l of the time point i and the time point increment is less than the determination threshold T, the time point i is determined as a falling edge.
In the technical solution provided in this embodiment, by determining the time point and the time point increment corresponding to each resistance value in the output signal, the resistance value corresponding to the time point and the resistance value corresponding to the sum of the time point and the step length are substituted into the determination threshold, so as to determine the rising edge and the falling edge of the output signal.
Referring to fig. 7, in the sixth embodiment, based on the above embodiment, the step S30 includes:
step S31: when the time interval is larger than a preset interval threshold value, determining a jumping position and a jumping interval between the time intervals;
step S32: determining the breathing parameter according to the transition position and the transition interval.
Optionally, the present embodiment provides a method of determining a breathing parameter as a function of a time interval. After the time interval between the rising edge and the falling edge of the output signal is determined, a preset interval threshold value is set to filter out unnecessary interval values, when the time interval is larger than the preset interval threshold value, the jump position and the jump interval corresponding to the time interval are determined, the time interval can be understood as the interval between the rising edge of one signal and the falling edge adjacent to the signal, and the time interval can reflect the specific time point of jumping between two signals and the time length of the interval between the two time points. The number of times of breathing of the wearer is determined by determining specific time points, namely, a jump point corresponding to each time interval meeting an interval threshold value is a breath (a rising edge is used as inspiration, a falling edge is used as expiration), the time points corresponding to each expiration and inspiration of the wearer are obtained in this way, then the time span of the interval between the time points is used as the interval time between each breath, and then the breathing rate of the wearer is determined through a simple function.
Illustratively, the rising edge t is calculated1Adjacent falling edge t2A time interval Δ t therebetween, wherein Δ t ═ t2-t1When is coming into contact with
I Δ t I>t0=2.5
When, let Δ t be a breath, t2As one exhalation, t1As a one timeInhalation, determination of the time point of the breath, calculation of the breath rate per minute v0。v0The formula is as follows:
v0=Δt/60
in the technical scheme provided by the embodiment, an interval threshold is added to filter breathing intervals unsuitable for one-time breathing, and the hopping position and the hopping interval of the time interval larger than the interval threshold are used for determining the breathing rate, so that the circuit acquisition module in the intelligent clothes can determine the breathing rate according to the hopping time point of the output signal, and the intelligent clothes can detect the breathing parameters of a wearer according to the resistance value of the fabric strain sensor at the chest.
Further, exemplary. Referring to fig. 8, fig. 8 is a schematic structural diagram of an intelligent garment of the present invention, the intelligent garment is provided with a detachable flexible sensor and a shoulder circuit acquisition module (provided with a charging interface). The sensor is in full close contact with the body, and can detect physiological electric signals such as respiration, electrocardio, blood oxygen saturation, blood pressure, cardiac stroke volume and the like in a non-inductive real-time manner. In fig. 8, 1, 2, 3, 4, and 5 are respectively a fabric strain sensor, a fabric electrode, a photo-volume sensor, an electrical impedance imaging electrode array, and a circuit acquisition module. The fabric strain sensor is printed on the clothes and is subjected to waterproof packaging treatment, and other sensors and the circuit acquisition module are connected with the clothes through detachable snap fasteners.
Further, exemplarily, referring to fig. 9, fig. 9 is a block diagram of an intelligent laundry system.
In the intelligent clothes, two fabric electrodes are respectively placed at the left wrist and the right wrist of the intelligent clothes and respectively serve as a working electrode and a reference electrode, and another electrode is placed at the elbow of the left hand and serves as a ground electrode. The bioelectricity signals generated by human heartbeat are transmitted to the surface of a human body through body fluid and interstitial fluid, the fabric electrodes convert the bioelectricity signals into electric signals, the electric signals are transmitted to the circuit acquisition module through the conductive fabric, 1-40Hz band-pass filtering is carried out, and signal baselines are removed so as to obtain the human electrocardiogram through conversion.
Illustratively, the intelligent clothing is also providedDetection method of blood oxygen saturation parameter, blood oxygen saturation SaO2Is an important physiological parameter reflecting the oxygen content in blood, has important significance for carrying out life activities and maintaining body health, and is expressed as that oxygenated hemoglobin in human blood accounts for oxygenated hemoglobin HbO2And the percentage of reduced hemoglobin Hb, which is determined by the formula:
the optical volume sensor is arranged at the wrist of the intelligent clothes, consists of a light emitting diode and a photoelectric detector, and adopts PPG (photoplethysmography) to measure the blood oxygen saturation.
Illustratively, the intelligent garment also provides a blood pressure monitoring method, and the blood pressure value is calculated by combining an ECG (Electrocardiogram) signal of the wrist acquired by the electrocardio-electrode and a PPG (PPG) of the wrist acquired by the photoelectric sensor. The peak Time difference between PPG and ECG is called PTT (Pulse Transit Time), i.e. the Time difference between the flow of blood from the heart to the wrist from the start of the heart beat, which has a strong correlation with PTT, and the blood pressure BP can be expressed as a linear function:
BP=a+b*PTT
and a and b are undetermined coefficients, two groups of different blood pressures BP and pulse wave conduction time PTT of the same individual can be acquired by the electrocardio-electrode and determined, and after the undetermined coefficients are determined, the blood pressure value of the human body can be determined by measuring the pulse wave conduction time PTT.
Illustratively, the smart garment also provides a method of monitoring cardiac stroke volume. Cardiac stroke volume is the volume of blood pumped by the left ventricle of the heart per stroke and can be defined as the difference in left ventricular volume at the end of diastole and at the end of systole. Measuring the stroke volume of the heart by EIT (Electrical Impedance Tomography), forming an electrode array by adopting 32 electrode patches, uniformly enclosing a circle between a third intercostal space and a fourth intercostal space, placing the electrode array on intelligent clothes through a snap fastener, injecting current with the frequency of 43kHz and the amplitude of 3mA into the electrode array by a circuit acquisition module on the intelligent clothes in a 4-hop injection mode, reconstructing the conductivity distribution in the thoracic cavity by using the current and the voltage recorded on an Impedance imaging electrode, and obtaining image characteristics related to the stroke volume of the heart by using a standard method of conventional cardiac gating averaging.
Furthermore, the present invention also provides a computer-readable storage medium storing a control program of a detection apparatus, which when executed by a processor, implements the respective steps of the control method of the detection apparatus as described in the above embodiments.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a computer-readable storage medium (such as ROM/RAM, magnetic disk, optical disk) as described above, and includes several instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.