Monitor, body temperature detection method thereof and computer storage medium
By designing a body temperature detection circuit and a microcontroller in the monitor, using dynamic filtering, ambient temperature compensation and temperature calibration models, the problem of insufficient body temperature detection error and fault detection capabilities is solved, and more accurate and reliable body temperature measurement is achieved.
Patent Information
- Application Number
- CN202411048322.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-11-22
AI Technical Summary
The existing temperature detection technology has problems such as large measurement errors, lack of self-detection and correction mechanisms, and insufficient fault detection capabilities, which affect the accuracy and reliability of measurement results.
A monitor is designed, including a body temperature detection circuit and a microcontroller. The circuit state is determined through the body temperature detection normal circuit and abnormal circuit. Dynamic filtering, ambient temperature compensation and temperature calibration models are used to ensure the accuracy and reliability of the measurement temperature.
It improves the accuracy and reliability of body temperature detection, can promptly identify and correct temperature probe faults, reduce errors, and enhance the system's self-correction function.
Smart Images

Figure CN118986294A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of medical equipment, and in particular to a monitor and a body temperature detection method thereof, and a computer storage medium. Background Art
[0002] There are usually several significant problems in temperature detection. The first is the large error in measuring temperature. This error can be caused by a variety of reasons, including the quality of the temperature probe, interference from environmental factors, and inaccurate measurement methods. This large measurement error can lead to inaccurate temperature readings, which in turn affects the judgment of health status and subsequent treatment decisions.
[0003] Secondly, current temperature detection technologies often lack a mechanism to determine whether their own measurement circuits are effective. This means that if there is a problem with the measurement circuit itself, such as circuit aging, poor connections, or electronic component failure, the system is often unable to self-detect and correct. This defect may cause erroneous temperature readings without being noticed, thus affecting the reliability of the measurement results.
[0004] In addition, when a temperature probe fails, existing temperature detection technology sometimes fails to detect the failure in time. Temperature probe failures may manifest as abnormal readings, slow response, or complete failure. If the system fails to identify and indicate probe failures in time, users may mistakenly believe that the temperature measurement results are normal, delaying the discovery and treatment of actual health problems. Therefore, improving the fault detection capability and self-correction function of the temperature detection system is crucial to ensure the accuracy and reliability of measurement results. Summary of the invention
[0005] The main technical problem solved by the present invention is to provide a body temperature monitor and a body temperature detection method thereof with more accurate measurement.
[0006] According to the first aspect, an embodiment provides a monitor, comprising:
[0007] A body temperature detection circuit, comprising a normal body temperature detection circuit and an abnormal body temperature detection circuit, wherein the normal body temperature detection circuit is used to output a normal temperature signal value, and the abnormal body temperature detection circuit is used to output a detected temperature signal value; and determining that the body temperature detection circuit is operating normally according to the normal temperature signal value and the detected temperature signal value;
[0008] The single-chip microcomputer obtains the normal temperature signal value and dynamically filters the normal temperature signal value to determine a first temperature signal value; the single-chip microcomputer also compensates the first temperature signal value using the ambient temperature to determine a second temperature signal value, and calibrates the second temperature signal value according to a temperature calibration model to determine a third temperature signal value; and determines a final measured temperature value according to the third temperature signal value.
[0009] In one embodiment, the normal body temperature detection circuit includes a resistor R1, a resistor R2, a thermistor R3, a thermistor R4, a switch S1, and a switch S3;
[0010] The first end of the resistor R1 is used to connect to the single-chip microcomputer, and the first end of the resistor R1 is also connected to the working power supply. The second end of the resistor R1 is used to connect to the single-chip microcomputer, and the second end of the resistor R1 is also connected to the first end of the thermistor R3. The second end of the thermistor R3 is connected to the first end of the switch S1, and the second end of the switch S1 is used to connect to the single-chip microcomputer, and the second end of the switch S1 is grounded; the first end of the resistor R2 is used to connect to the single-chip microcomputer, and the first end of the resistor R2 is also connected to the working power supply. The second end of the resistor R2 is used to connect to the single-chip microcomputer, and the second end of the resistor R2 is also connected to the first end of the thermistor R4. The second end of the thermistor R4 is connected to the first end of the switch S3, and the second end of the switch S3 is connected to the single-chip microcomputer, and the second end of the switch S3 is grounded; the first ends of the thermistor R3 and the thermistor are both connected to the single-chip microcomputer.
[0011] In one embodiment, the abnormal body temperature detection circuit includes a resistor R1, a resistor R2, a resistor R5, a resistor R6, a switch S2, and a switch S3;
[0012] The first end of the resistor R1 is used to connect to the single-chip microcomputer, and the first end of the resistor R1 is also connected to the working power supply. The second end of the resistor R1 is used to connect to the single-chip microcomputer, and the second end of the resistor R1 is also connected to the first end of the resistor R6. The second end of the resistor R6 is connected to the first end of the switch S2, and the second end of the switch S2 is connected to the single-chip microcomputer, and the second end of the switch S2 is grounded; the first end of the resistor R2 is used to connect to the single-chip microcomputer, and the first end of the resistor R2 is also connected to the working power supply. The second end of the resistor R2 is used to connect to the single-chip microcomputer, and the second end of the resistor R2 is also connected to the first end of the resistor R5, and the second end of the resistor R5 is connected to the first end of the switch S4, and the second end of the switch S4 is connected to the single-chip microcomputer, and the second end of the switch S4 is grounded; the first ends of the resistor R5 and the resistor R6 are both connected to the single-chip microcomputer.
[0013] In one embodiment, the single chip microcomputer dynamically filters the normal temperature signal value, including:
[0014] The single chip microcomputer uses a sliding average filter to dynamically filter the normal temperature signal value;
[0015] Obtaining a window size set by the sliding average filter, filtering the normal temperature signal value according to the window size, and updating the window size in real time, including:
[0016] Calculate the standard deviation of the normal temperature signal value corresponding to the window size;
[0017] If the standard deviation exceeds a set threshold, the window size is increased to update the window size; if the standard deviation is lower than the set threshold, the window size is reduced to update the window size.
[0018] In one embodiment, the single chip microcomputer uses the ambient temperature to compensate the first temperature signal value to determine the second temperature signal value, including:
[0019] The first temperature signal value is compensated using the following formula:
[0020]
[0021] Among them, T comp Represents the second temperature signal value, T measured Represents the first temperature signal value, T env represents the ambient temperature, and a, b and c represent the first compensation coefficient, the second compensation coefficient and the third compensation coefficient respectively.
[0022] In one embodiment, the single chip microcomputer calibrates the second temperature signal value according to a temperature calibration model to determine a third temperature signal value, including:
[0023] Acquire a known standard temperature point and a second temperature signal value corresponding to the known standard temperature point to form a data pair;
[0024] Fitting the temperature calibration model using the data pairs, and calculating the coefficients of the temperature calibration model using a least squares method to determine the temperature calibration model;
[0025] The second temperature signal value is input into the temperature calibration model to determine the third temperature signal value.
[0026] In one embodiment, fitting the temperature calibration model using the data and calculating the coefficients of the temperature calibration model using the least squares method to determine the temperature calibration model includes:
[0027] The temperature calibration model is a second-order polynomial model and is expressed using the following formula:
[0028] y=a0+a1x+a2x 2
[0029] Wherein, y represents the third temperature signal value, x represents the second temperature signal value, a0 represents the first calibration coefficient, a1 represents the second calibration coefficient, and a2 represents the third calibration coefficient.
[0030] In one embodiment, an NTC temperature table is consulted according to the third temperature signal value to determine the final measured temperature value.
[0031] According to the second aspect, an embodiment provides a body temperature detection method of a monitor, including:
[0032] Acquire a normal temperature signal value, and dynamically filter the normal temperature signal value to obtain a first temperature signal value;
[0033] Compensating the first temperature signal value using the ambient temperature to determine a second temperature signal value;
[0034] calibrating the second temperature signal value according to a temperature calibration model to determine a third temperature signal value;
[0035] A final measured temperature value is determined according to the third temperature signal value.
[0036] According to a third aspect, an embodiment provides a computer-readable storage medium, on which a program is stored. The program can be executed by a processor to implement the method described in the above embodiment.
[0037] According to a monitor and a body temperature detection method and a computer storage medium of the above-mentioned embodiment, the monitor includes a body temperature detection circuit and a single-chip microcomputer, the body temperature detection circuit includes a normal body temperature detection circuit and an abnormal body temperature detection circuit, and the body temperature detection circuit is determined to be normal according to the abnormal body temperature detection circuit. After determining that the body temperature detection circuit is working normally, the single-chip microcomputer is used to obtain a normal temperature signal value, and the normal temperature signal value is dynamically filtered to ensure that the filtering effect is always optimal. After determining the first temperature signal value, the first temperature signal value is compensated by the ambient temperature to determine the second temperature signal value, and then the second temperature signal value is input into the temperature calibration model to determine the third temperature signal value, thereby obtaining a more accurate third temperature signal value, and finally determining the final measured temperature value according to the third temperature signal value. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A schematic diagram of the structure of a monitor in an embodiment;
[0039] Figure 2 A circuit diagram of a body temperature detection circuit in an embodiment;
[0040] Figure 3 It is a flow chart of a method for detecting body temperature of a monitor executed by a single chip microcomputer in an embodiment;
[0041] Figure 4 A flowchart of real-time updating of window size in an embodiment;
[0042] Figure 5 A flowchart of calibrating the second temperature signal value according to the temperature calibration model in an embodiment to determine the third temperature signal value;
[0043] Figure 6 The figure is a flow chart of a body temperature detection method of a monitor in another embodiment. DETAILED DESCRIPTION
[0044] The present invention is further described in detail below by specific embodiments in conjunction with the accompanying drawings. Wherein similar elements in different embodiments adopt associated similar element numbers. In the following embodiments, many detailed descriptions are for making the present application better understood. However, those skilled in the art can easily recognize that some features can be omitted in different situations, or can be replaced by other elements, materials, methods. In some cases, some operations related to the present application are not shown or described in the specification, this is to avoid the core part of the present application being overwhelmed by too much description, and for those skilled in the art, it is not necessary to describe these related operations in detail, and they can fully understand the related operations according to the description in the specification and the general technical knowledge in the art.
[0045] In addition, the features, operations or characteristics described in the specification can be combined in any appropriate manner to form various implementations. At the same time, the steps or actions in the method description can also be interchanged or adjusted in a manner that is obvious to those skilled in the art. Therefore, the various sequences in the specification and the drawings are only for the purpose of clearly describing a certain embodiment and are not meant to be a required sequence, unless otherwise specified that a certain sequence must be followed.
[0046] The serial numbers of the components in this document, such as "first", "second", etc., are only used to distinguish the objects described and do not have any order or technical meaning. The "connection" and "coupling" mentioned in this application, unless otherwise specified, include direct and indirect connections (couplings).
[0047] Please refer to Figure 1 In one embodiment, a monitor 10 is provided, including a single chip computer 11 equipped with a body temperature detection method of the monitor and a body temperature detection circuit 12.
[0048] In one embodiment, the body temperature detection circuit 12 includes a normal body temperature detection circuit and an abnormal body temperature detection circuit. The normal body temperature detection circuit is used to output a normal temperature signal value, and the abnormal body temperature detection circuit is used to output a detected temperature signal value.
[0049] Please refer to Figure 2 In one embodiment, the normal circuit for body temperature detection includes a resistor R1, a resistor R2, a thermistor R3, a thermistor R4, a switch S1 and a switch S3. The first end of the resistor R1 is used to connect to the single-chip computer 11, the first end of the resistor R1 is also connected to the working power supply, the second end of the resistor R1 is used to connect to the single-chip computer 11, the second end of the resistor R1 is also connected to the first end of the thermistor R3, the second end of the thermistor R3 is connected to the first end of the switch S1, the second end of the switch S1 is used to connect to the single-chip computer 11, and the second end of the switch S1 is grounded. The first end of the resistor R2 is used to connect to the single-chip computer 11, the first end of the resistor R2 is also connected to the working power supply, the second end of the resistor R2 is used to connect to the single-chip computer 11, the second end of the resistor R2 is also connected to the first end of the thermistor R4, the second end of the thermistor R4 is connected to the first end of the switch S3, the second end of the switch S3 is connected to the single-chip computer 11, and the second end of the switch S3 is grounded. The first ends of the thermistor R3 and the thermistor are both connected to the single-chip computer 11.
[0050] In one embodiment, the abnormal body temperature detection circuit includes a resistor R1, a resistor R2, a resistor R5, a resistor R6, a switch S2, and a switch S3. The first end of the resistor R1 is used to connect to the single-chip computer 11, the first end of the resistor R1 is also connected to the working power supply, the second end of the resistor R1 is used to connect to the single-chip computer 11, the second end of the resistor R1 is also connected to the first end of the resistor R6, the second end of the resistor R6 is connected to the first end of the switch S2, the second end of the switch S2 is connected to the single-chip computer 11, and the second end of the switch S2 is grounded. The first end of the resistor R2 is used to connect to the single-chip computer 11, the first end of the resistor R2 is also connected to the working power supply, the second end of the resistor R2 is used to connect to the single-chip computer 11, the second end of the resistor R2 is also connected to the first end of the resistor R5, the second end of the resistor R5 is connected to the first end of the switch S4, the second end of the switch S4 is connected to the single-chip computer 11, and the second end of the switch S4 is grounded. The first ends of the resistors R5 and R6 are both connected to the single-chip computer 11.
[0051] In one embodiment, Figure 2 In the example, the switch S1 and the switch S3 are closed, and the switch S2 and the switch S4 are opened. This is a normal circuit for body temperature detection. The switch S1 and the switch S3 are opened, and the switch S2 and the switch S4 are closed. This is an abnormal circuit for body temperature detection. Since the resistors R1, R2, R5, and R6 are all fixed resistors, the detected temperature signal value is fixed. If the detected temperature signal value is abnormal, it means that the body temperature detection circuit 12 is abnormal.
[0052] Please refer to Figure 3 In one embodiment, after the single-chip microcomputer 11 and the body temperature acquisition circuit in the monitor are initialized and powered on, the single-chip microcomputer 11 obtains the normal temperature signal value and the detection temperature signal value of the body temperature detection circuit 12 to determine whether the body temperature acquisition circuit can work normally. After the body temperature acquisition circuit works normally, the single-chip microcomputer 11 executes the body temperature detection method of the monitor, which specifically includes the following steps.
[0053] Step S110: acquiring a normal temperature signal value, and dynamically filtering the normal temperature signal value to determine a first temperature signal value.
[0054] In one embodiment, in order to prevent the body temperature collection circuit in the monitor from being disturbed by external factors and other environmental factors, the filtering parameters are dynamically adjusted according to the real-time noise level to dynamically filter the normal temperature signal value.
[0055] In one embodiment, the single chip computer 11 uses a sliding average filter to dynamically filter the normal temperature signal value, sets the window size to 10 samples, filters the normal temperature signal value using the set window size, and updates the window size in real time.
[0056] Please refer to Figure 4 In one embodiment, real-time updating of the window size includes the following steps.
[0057] Step S111: Calculate the standard deviation of the normal temperature signal value corresponding to the window size.
[0058] In one embodiment, the standard deviation of the temperature signal value corresponding to the currently collected window size is calculated once per second.
[0059] Step S112: Update the window size.
[0060] In one embodiment, if the standard deviation exceeds a set threshold, the window size is increased, for example, the window size is increased by 1; if the standard deviation is lower than the set threshold, the window size is decreased, for example, the window size is decreased by 1. The temperature signal value is subjected to sliding average filtering using the window size updated in real time, and continuous detection and adjustment are performed to ensure that the filtering effect is always optimal.
[0061] It should be noted that the sliding average filter is a low-pass filter used to smooth time series data and remove high-frequency noise. It smoothes the data by calculating the average of a fixed number of consecutive data points. The 10 samples initially set refer to the number of samples used by the sliding average filter to calculate the average at the beginning, that is, the window size is 10. This means that during the sliding average filtering process, each time the average is calculated, the most recent 10 normal temperature signal values are averaged.
[0062] Step S120: compensating the first temperature signal value using the ambient temperature to determine the second temperature signal value.
[0063] In one embodiment, in order to improve the accuracy of temperature collection by the temperature detection circuit 12, the single chip computer 11 is also connected to an independent ambient temperature sensor for real-time measurement of ambient temperature. At each temperature measurement, data from the ambient temperature sensor is collected, and the first temperature signal value is compensated using the ambient temperature data to determine the second temperature signal value.
[0064] In one embodiment, the first temperature signal value is corrected using the following formula:
[0065]
[0066] Among them, T comp Represents the second temperature signal value, T measured Represents the first temperature signal value, T env represents the ambient temperature, a, b and c represent the first compensation coefficient, the second compensation coefficient and the third compensation coefficient respectively, which are obtained by fitting the experimental data.
[0067] In one embodiment, in order to determine the first compensation coefficient, the second compensation coefficient and the third compensation coefficient, experimental data fitting is required. Under different ambient temperatures, the actual body temperature and the first temperature signal value are collected, and the relationship between the error of the first temperature signal value and the ambient temperature is analyzed, and then a data fitting tool (such as Excel, Python's SciPy library, etc.) is used to fit the model to determine the first compensation coefficient, the second compensation coefficient and the third compensation coefficient.
[0068] Step S130: calibrating the second temperature signal value according to the temperature calibration model to determine the third temperature signal value.
[0069] Please refer to Figure 5 In one embodiment, when executing step S130 to calibrate the second temperature signal value according to the temperature calibration model to determine the third temperature signal value, the following steps are also included.
[0070] Step S131: Collect calibration data.
[0071] In one embodiment, a known standard temperature point and a second temperature signal value corresponding to the known standard temperature point are obtained, and the temperature signal value is collected at the known standard temperature point. For example, a series of known standard temperature points such as 0°C, 10°C, 20°C, 30°C, and 40°C are selected, and the second temperature signal value is recorded at each standard temperature point.
[0072] Step S132: Establish a temperature calibration model.
[0073] In one embodiment, a known standard temperature point and a second temperature signal value corresponding to the known standard temperature point are paired to form a data pair, a second-order polynomial model is selected as a temperature calibration model for fitting, and the coefficients of the polynomial model are calculated using the least squares method, so that the temperature calibration model describes the relationship between the temperature signal value and the actual temperature as accurately as possible. The calculation formula of the second-order polynomial model is:
[0074] y=a0+a1x+a2x 2
[0075] Wherein, y represents the calibrated temperature signal value, x represents the temperature signal value, a0 represents the first calibration coefficient, a1 represents the second calibration coefficient, and a2 represents the third calibration coefficient.
[0076] It should be noted that using least squares and other algorithms to fit polynomials to data is a statistical method used to build a mathematical model to describe the relationship between variables. Specifically, it is to select a polynomial function to approximate the actual data points and minimize the error between this function and the data points.
[0077] Step S133: inputting the second temperature signal value into the temperature calibration model to determine the third temperature signal value.
[0078] In one embodiment, the second temperature signal value is input into a temperature calibration model, so that a calibrated third temperature signal value is output according to the temperature calibration model.
[0079] Step S140: determining a final measured temperature value according to the third temperature signal value.
[0080] In one embodiment, the third temperature signal value is generally a resistance value or a voltage value. If the third temperature signal value after calibration is a resistance value, the corresponding final measured temperature value is directly found in the NTC temperature table; if the third temperature signal value after calibration is a voltage value, the voltage value needs to be converted into a resistance value, and then the corresponding final measured temperature value is found in the NTC temperature table.
[0081] Please refer to Figure 6 In another embodiment, a body temperature detection method of a monitor is provided, and the method includes the following steps.
[0082] Step S11: acquiring a normal temperature signal value, and dynamically filtering the normal temperature signal value to determine a first temperature signal value.
[0083] In one embodiment, in order to prevent the body temperature collection circuit in the monitor from being disturbed by external factors and other environmental factors, the filtering parameters are dynamically adjusted according to the real-time noise level to dynamically filter the normal temperature signal value.
[0084] Step S12: compensating the first temperature signal value by using the ambient temperature to determine the second temperature signal value.
[0085] In one embodiment, in order to improve the accuracy of temperature collection by the temperature detection circuit 12, the single chip computer 11 is also connected to an independent ambient temperature sensor for real-time measurement of ambient temperature. At each temperature measurement, data from the ambient temperature sensor is collected, and the first temperature signal value is compensated using the ambient temperature data to determine the second temperature signal value.
[0086] Step S13: calibrating the second temperature signal value according to the temperature calibration model to determine the third temperature signal value.
[0087] Step S14: determining a final measured temperature value according to the third temperature signal value.
[0088] In one embodiment, the third temperature signal value is generally a resistance value or a voltage value. If the third temperature signal value after calibration is a resistance value, the corresponding final measured temperature value is directly found in the NTC temperature table; if the third temperature signal value after calibration is a voltage value, the voltage value needs to be converted into a resistance value, and then the corresponding final measured temperature value is found in the NTC temperature table.
[0089] It should be noted that, since the body temperature detection method of the monitor has been clearly explained in the embodiments of the monitor, it will not be repeated here.
[0090] Those skilled in the art will appreciate that all or part of the functions of the various methods in the above-mentioned embodiments can be implemented by hardware or by computer programs. When all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can be stored in a computer-readable storage medium, and the storage medium can include: read-only memory, random access memory, disk, optical disk, hard disk, etc., and the program is executed by a computer to implement the above-mentioned functions. For example, the program is stored in the memory of the device, and when the program in the memory is executed by the processor, all or part of the above-mentioned functions can be implemented. In addition, when all or part of the functions in the above-mentioned embodiments are implemented by computer programs, the program can also be stored in a storage medium such as a server, another computer, disk, optical disk, flash disk or mobile hard disk, and can be downloaded or copied and saved in the memory of the local device, or the system of the local device is updated, and when the program in the memory is executed by the processor, all or part of the functions in the above-mentioned embodiments can be implemented.
[0091] The above specific examples are used to illustrate the present invention, which is only used to help understand the present invention and is not intended to limit the present invention. For those skilled in the art, according to the concept of the present invention, some simple deductions, modifications or substitutions can be made.
Claims
1. A monitor, It is characterized in that include: A body temperature detection circuit, comprising a normal body temperature detection circuit and an abnormal body temperature detection circuit, wherein the normal body temperature detection circuit is used to output a normal temperature signal value, and the abnormal body temperature detection circuit is used to output a detected temperature signal value; and determining that the body temperature detection circuit is operating normally according to the normal temperature signal value and the detected temperature signal value; A single chip microcomputer, acquiring the normal temperature signal value, and dynamically filtering the normal temperature signal value to determine a first temperature signal value; The single chip microcomputer also compensates the first temperature signal value by using the ambient temperature to determine the second temperature signal value, and calibrates the second temperature signal value according to the temperature calibration model to determine the third temperature signal value; A final measured temperature value is determined according to the third temperature signal value.
2. The monitor as claimed in claim 1, It is characterized in that The normal body temperature detection circuit includes a resistor R1, a resistor R2, a thermistor R3, a thermistor R4, a switch S1 and a switch S3; The first end of the resistor R1 is used to connect to the single-chip microcomputer, and the first end of the resistor R1 is also connected to the working power supply. The second end of the resistor R1 is used to connect to the single-chip microcomputer, and the second end of the resistor R1 is also connected to the first end of the thermistor R3. The second end of the thermistor R3 is connected to the first end of the switch S1, and the second end of the switch S1 is used to connect to the single-chip microcomputer, and the second end of the switch S1 is grounded; the first end of the resistor R2 is used to connect to the single-chip microcomputer, and the first end of the resistor R2 is also connected to the working power supply. The second end of the resistor R2 is used to connect to the single-chip microcomputer, and the second end of the resistor R2 is also connected to the first end of the thermistor R4. The second end of the thermistor R4 is connected to the first end of the switch S3, and the second end of the switch S3 is connected to the single-chip microcomputer, and the second end of the switch S3 is grounded; the first ends of the thermistor R3 and the thermistor are both connected to the single-chip microcomputer.
3. The monitor as claimed in claim 1, It is characterized in that The abnormal body temperature detection circuit includes a resistor R1, a resistor R2, a resistor R5, a resistor R6, a switch S2 and a switch S3; The first end of the resistor R1 is used to connect to the single-chip microcomputer, and the first end of the resistor R1 is also connected to the working power supply. The second end of the resistor R1 is used to connect to the single-chip microcomputer, and the second end of the resistor R1 is also connected to the first end of the resistor R6. The second end of the resistor R6 is connected to the first end of the switch S2, and the second end of the switch S2 is connected to the single-chip microcomputer, and the second end of the switch S2 is grounded; the first end of the resistor R2 is used to connect to the single-chip microcomputer, and the first end of the resistor R2 is also connected to the working power supply. The second end of the resistor R2 is used to connect to the single-chip microcomputer, and the second end of the resistor R2 is also connected to the first end of the resistor R5, and the second end of the resistor R5 is connected to the first end of the switch S4, and the second end of the switch S4 is connected to the single-chip microcomputer, and the second end of the switch S4 is grounded; the first ends of the resistor R5 and the resistor R6 are both connected to the single-chip microcomputer.
4. The monitor as claimed in claim 1, It is characterized in that The single chip microcomputer dynamically filters the normal temperature signal value, including: The single chip microcomputer uses a sliding average filter to dynamically filter the normal temperature signal value; Obtaining a window size set by the sliding average filter, filtering the normal temperature signal value according to the window size, and updating the window size in real time, including: Calculate the standard deviation of the normal temperature signal value corresponding to the window size; If the standard deviation exceeds a set threshold, the window size is increased to update the window size; if the standard deviation is lower than the set threshold, the window size is reduced to update the window size.
5. The monitor as claimed in claim 4, It is characterized in that The single chip microcomputer compensates the first temperature signal value by using the ambient temperature to determine the second temperature signal value, including: The first temperature signal value is compensated using the following formula: Among them, T comp Represents the second temperature signal value, T measured Represents the first temperature signal value, T env represents the ambient temperature, and a, b and c represent the first compensation coefficient, the second compensation coefficient and the third compensation coefficient respectively.
6. The monitor as claimed in claim 5, It is characterized in that The single chip microcomputer calibrates the second temperature signal value according to the temperature calibration model to determine the third temperature signal value, including: Acquire a known standard temperature point and a second temperature signal value corresponding to the known standard temperature point to form a data pair; Fitting the temperature calibration model using the data pairs, and calculating the coefficients of the temperature calibration model using a least squares method to determine the temperature calibration model; The second temperature signal value is input into the temperature calibration model to determine the third temperature signal value.
7. The monitor as claimed in claim 6, It is characterized in that The step of fitting the temperature calibration model using the data and calculating the coefficients of the temperature calibration model using the least square method to determine the temperature calibration model includes: The temperature calibration model is a second-order polynomial model and is expressed using the following formula: and now 0 +a 1 x+a 2 x 2 Wherein, y represents the third temperature signal value, x represents the second temperature signal value, and a 0 represents the first calibration coefficient, a 1 represents the second calibration coefficient, a 2 Represents the third calibration coefficient.
8. The monitor as claimed in claim 1, It is characterized in that The NTC temperature table is consulted according to the third temperature signal value to determine the final measured temperature value.
9. A body temperature detection method for a monitor, It is characterized in that include: Acquire a normal temperature signal value, and dynamically filter the normal temperature signal value to obtain a first temperature signal value; Compensating the first temperature signal value using the ambient temperature to determine a second temperature signal value; calibrating the second temperature signal value according to a temperature calibration model to determine a third temperature signal value; A final measured temperature value is determined according to the third temperature signal value.
10. A computer-readable storage medium, It is characterized in that The medium stores a program, which can be executed by a processor to implement the method according to claim 9.
Citation Information
Cited By
Intelligent closestool suitable for old people
CN120391900A
