Calibration method and device for reported data of sensor, equipment and storage medium
By receiving and counting environmental information and sensor data of terminal equipment, it automatically calibrates abnormal data, solving the problem of sensor data accuracy drift, improving accuracy and user experience, and reducing the cost of replacing sensors.
Patent Information
- Application Number
- CN202310363497.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-06
- Publication Date
- 2024-10-15
AI Technical Summary
The accuracy of the data reported by the sensor will drift due to various factors during use, making subsequent calibration impossible, affecting the user experience and increasing the cost of replacing the sensor.
By receiving environmental information and sensor data reported by multiple terminal devices, statistics of data with the same environmental information are determined, abnormal and normal data are determined, calibration is performed based on normal data, calibration coefficients are calculated to automatically calibrate abnormal data, and non-sensory calibration is achieved.
It improves the accuracy of data reported by sensors, improves user experience, avoids the need for sensor replacement, and reduces costs.
Smart Images

Figure CN118784662A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a calibration method, device and storage medium for sensor reported data. Background Art
[0002] With the development of the Internet era and the popularization of smart devices, the development of sensor technology has been greatly promoted, and higher and higher requirements have been placed on the accuracy and intelligence of sensors.
[0003] In the related technology, in order to improve the accuracy of the data reported by the sensor, the data reported by the sensor is usually calibrated before leaving the factory. However, during subsequent use, the accuracy of the data reported by the sensor may drift due to various factors. During use, the sensor will not be calibrated again, but the accuracy of the data reported by the sensor will be improved by replacing the sensor, which not only affects the user experience, but also increases the cost accordingly. Summary of the invention
[0004] The embodiments of the present application provide a method, device and storage medium for calibrating sensor reported data, which solve the problem in the related art that the sensor reported data is inaccurate and the sensor reported data cannot be calibrated during use, which affects the user experience, improves the accuracy of the sensor reported data, and enhances the user experience.
[0005] In a first aspect, an embodiment of the present application provides a method for calibrating sensor reported data, including:
[0006] Receiving environmental information and sensor data reported by multiple terminal devices, wherein the environmental information includes location data and time data;
[0007] Collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data based on the statistical results;
[0008] The abnormal data is calibrated according to the normal data to obtain calibration data.
[0009] Furthermore, the method of performing statistics on sensor data of terminal devices having the same environmental information and determining abnormal data and normal data according to the statistical results includes:
[0010] Perform difference calculation on sensor data of terminal devices with the same environmental information;
[0011] Abnormal data and normal data are determined based on the result of the difference calculation and a preset error range.
[0012] Further, calibrating the abnormal data according to the normal data to obtain calibration data includes:
[0013] Calculate the mean value corresponding to the normal data;
[0014] The mean value is determined as calibration data corresponding to the abnormal data.
[0015] Further, after calibrating the abnormal data according to the normal data to obtain calibration data, the method further includes:
[0016] Grouping sensor data of terminal devices having the same environmental information to obtain a plurality of grouped data;
[0017] A calibration coefficient is determined based on normal data in each group of data and a preset formula, and is used for subsequent calibration based on the calibration coefficient after abnormal data is determined.
[0018] Further, the determining of the calibration coefficient based on the normal data in each group of data and a preset formula includes:
[0019] Based on the normal data in the first grouped data and the second grouped data, respectively, a first data mean and a second data mean are calculated;
[0020] Determine a sensor parameter value corresponding to each normal data in the first grouped data and the second grouped data, and respectively calculate a first sensor mean value and a second sensor mean value;
[0021] The first data mean, the second data mean, the first sensor mean and the second sensor mean are substituted into a preset formula to determine a calibration coefficient.
[0022] Further, determining abnormal data and normal data according to the statistical results includes:
[0023] Determine abnormal data and normal data according to the statistical results, and determine the factory time of the sensor of the terminal device when normal data does not exist;
[0024] The sensor data with the most recent factory date is determined as normal data.
[0025] Furthermore, the environmental information also includes at least one of temperature data, humidity data and concentration data.
[0026] In a second aspect, an embodiment of the present application provides a sensor reporting data calibration device, including:
[0027] Data receiving module: configured to receive environmental information and sensor data reported by multiple terminal devices, wherein the environmental information includes location data and time data;
[0028] Data statistics module: configured to collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data according to the statistical results;
[0029] Data calibration module: configured to calibrate the abnormal data according to the normal data to obtain calibration data.
[0030] In a third aspect, embodiments of the present application provide a sensor calibration device, a memory, and one or more processors;
[0031] The memory is used to store one or more programs;
[0032] When the one or more programs are executed by the one or more processors, the one or more processors implement the image display method as described in the first aspect.
[0033] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the image display method as described in the first aspect.
[0034] In one embodiment, environmental information and sensor data reported by multiple terminal devices are received, wherein the environmental information includes location data and time data; the sensor data of the terminal devices having the same environmental information are counted, and abnormal data and normal data are determined according to the statistical results; the abnormal data is calibrated according to the normal data to obtain calibration data, and the abnormal data is determined by counting the sensor data under the same environmental information and performing comparative calculations on the sensor data. The abnormal data is automatically calibrated during use, which does not affect the normal use of the user, is conducive to realizing the senseless calibration of the sensor reported data, improves the user experience, and improves the reporting accuracy of the sensor data. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 is a flow chart of a method for calibrating sensor reported data provided in an embodiment of the present application;
[0036] Figure 2 It is a flow chart of a method for determining abnormal data and normal data according to statistical results provided by an embodiment of the present application;
[0037] Figure 3 A flowchart of a calibration data determination method provided in an embodiment of the present application;
[0038] Figure 4 is a flow chart of another method for calibrating sensor reported data provided in an embodiment of the present application;
[0039] Figure 5A flowchart of a method for determining a calibration coefficient based on normal data and a preset formula provided in an embodiment of the present application;
[0040] Figure 6 A module structure diagram of a sensor data reporting calibration device provided by an embodiment of the present invention;
[0041] Figure 7 A schematic diagram of the structure of a calibration device for sensor data reporting provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0043] The application scenario of this application is that the background receives data collected by multiple terminal devices in the same environment, determines whether there is abnormal sensor data, and calibrates the abnormal data reported by the sensor, so as to realize non-sensing calibration of sensor data to improve the accuracy of sensor reported data. The multiple terminal devices can be multiple mobile portable devices, such as smart phones, smart watches, etc., and the sensors are integrated in the terminal devices. The background communicates with the terminal devices through wireless communication technologies such as WiFi and cellular data.
[0044] Figure 1 is a flow chart of a method for calibrating sensor data reporting provided in an embodiment of the present application. Figure 1 As shown, the specific steps include:
[0045] Step S101: Receive environmental information and sensor data reported by multiple terminal devices, where the environmental information includes location data and time data.
[0046] In one embodiment, environmental data may be used to represent the state of the environment, such as weather conditions, air quality, etc. within a specific time range and in a specific area. Environmental information may include location data and time data. Location data may be used to represent a specified area, or may refer to a specific location. Time data may be used to represent a specified time range, such as 2:00-2:30, or may be a specified time point. Sensor data may be data measured or transmitted by a sensor, and the sensor data may be different for different sensor types. In one embodiment, multiple terminal devices report environmental information and sensor data to the background at preset intervals, and the background further processes the data based on the data reported by the received terminal devices.
[0047] Step S102: collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data according to the statistical results.
[0048] In one embodiment, the same environmental information may refer to data at the same time and data at the same location. Abnormal data may refer to data uploaded by a terminal device having a large error with data uploaded by other terminal devices under the same environmental information. Normal data may refer to data uploaded by a terminal device under the same environment with an error within a reasonable range. In one embodiment, after the background receives sensor data reported by multiple terminal devices, the sensor data of the terminal devices with the same environmental information are counted. Further compare the sensor data, if there is data with a large difference from most of the data as abnormal data, the data with a small difference from most of the data is determined as normal data. In one embodiment, if the abnormal data is sensor data uploaded by the same terminal device multiple times, it may be caused by reasons such as the external structure of the terminal device, such as foreign matter in the vent, or it may be due to the presence of interfering substances in the surrounding environment. At this time, there is no need to calibrate the abnormal data, and the staff is required to check other factors.
[0049] Step S103: calibrate the abnormal data according to the normal data to obtain calibration data.
[0050] In one embodiment, the calibration data may be data for calibrating the error of the sensor reported data under specified conditions. In one embodiment, when the data detects that the sensor data is abnormal data, it means that the calibration data of the sensor data has changed compared with the calibration data before leaving the factory, so the calibration data of the abnormal data needs to be recalibrated based on the normal data in the environment.
[0051] As can be seen from the above, in one embodiment, environmental information and sensor data reported by multiple terminal devices are received, and the environmental information includes location data and time data; the sensor data of terminal devices with the same environmental information are counted, and abnormal data and normal data are determined according to the statistical results; the abnormal data is calibrated according to the normal data to obtain calibration data, and the abnormal data is determined by counting the sensor data under the same environmental information and comparing and calculating the sensor data. The abnormal data is automatically calibrated during use, which will not affect the normal use of the user, and is conducive to the realization of senseless calibration of the sensor reported data, thereby improving the user experience and the reporting accuracy of the sensor data.
[0052] Optionally, determining abnormal data and normal data according to statistical results includes:
[0053] Determine abnormal data and normal data according to the statistical results, and determine the factory time of the sensor of the terminal device when normal data does not exist;
[0054] The sensor data with the most recent factory date is determined as normal data.
[0055] In one embodiment, the situation where normal data does not exist may be that the difference between each sensor data exceeds a preset error range. The factory time of the sensor of the terminal device may be the time when the sensor starts to be used. The sensor with the most recent factory time may refer to the sensor with the shortest usage time. In one embodiment, when it is determined according to the statistical results that normal data does not exist in each sensor data, the sensor data with the most recent factory time may be determined as normal data.
[0056] From the above, it can be seen that in one embodiment, abnormal data and normal data are determined based on statistical results. When normal data does not exist, the factory time of the sensor of the terminal device is determined, and the sensor data with the most recent factory time is determined as normal data. Since data calibration is performed before the sensor leaves the factory, the closer the factory time is, the more accurate the sensor data is. Therefore, determining the sensor data with the most recent factory time as normal data is beneficial to improving the calibration accuracy of the sensor data.
[0057] Optionally, the environmental information also includes at least one of temperature data, humidity data and concentration data.
[0058] In one embodiment, temperature data may be used to indicate the degree of hotness or coldness of gas in a certain environment. Humidity data may be used to indicate the content of water vapor in the air, and the greater the humidity data, the higher the water vapor content in the air. Concentration data may indicate the mass number of gaseous substances contained in each cubic meter of air in a certain environment. In one embodiment, statistics are collected for sensor data acquired in an environment with the same temperature data, humidity data, or concentration data in the same time period and the same area, and sensor data of a preset number of terminal devices with the same environmental information may be collected as a group.
[0059] From the above, it can be seen that in one embodiment, the environmental information also includes at least one of temperature data, humidity data and concentration data, which is conducive to calibrating abnormal data of sensor data obtained in the same environment and improving the reporting accuracy of sensor data.
[0060] Figure 2 is a flowchart of a method for determining abnormal data and normal data according to statistical results provided by an embodiment of the present application, such as Figure 2 As shown, the specific steps include:
[0061] Step S201: Receive environmental information and sensor data reported by multiple terminal devices, where the environmental information includes location data and time data.
[0062] Step S202: performing difference calculation on sensor data of terminal devices having the same environmental information.
[0063] In one embodiment, performing difference calculation on sensor data of terminal devices may be performing difference calculation on sensor data of two terminal devices in a group with the same environmental information. For example, if a group of sensor data with the same environmental information is a1, a2, and a3, then performing difference calculation on a1 and a2, a2 and a3, and a1 and a3, respectively, obtains corresponding calculation results of A1, A2, and A3.
[0064] Step S203: determining abnormal data and normal data based on the result of the difference calculation and a preset error range.
[0065] In one embodiment, the preset error range can be an error value interval, which is a standard for measuring whether the sensor data is abnormal. The preset error range is determined according to the actual environment in which the sensor data is obtained. In one embodiment, the difference calculation result is compared with the preset error range. If the difference calculation result is within the preset error range, it is determined that the two sensor data corresponding to the difference calculation result are normal data. If the difference calculation result exceeds the preset error range, there may be abnormal data in the two sensor data corresponding to the difference calculation result. The possible abnormal data is respectively subjected to difference calculation with the normal data, and the difference calculation result is compared with the preset error range. The sensor data corresponding to the difference calculation result exceeding the preset error range is determined as abnormal data. Exemplarily, if the preset error range is 40%, A1, A2, and A3 are compared with 40% respectively. If A1 is greater than 40%, it is determined that the sensor data a1 and a2 corresponding to A1 may be abnormal data. Then, the difference calculation results of a2 and a3 and a1 and a3 are further compared with the preset range, that is, A2 and A3 are compared with 40% respectively. If A2 and A3 are both greater than 40%, it is determined that a1, a2, and a3 are all abnormal data; if A2 is greater than 40% and A3 is less than 40%, it is determined that a2 is abnormal data; if A2 is less than 40% and A3 is greater than 40%, it is determined that a1 is abnormal data; if A2 is less than 40% and A3 is greater than 40%, it is determined that a1 is abnormal data; if A2 and A3 are both less than 40%, it is determined that a1, a2, and a3 are all normal data.
[0066] Step S204: calibrate the abnormal data according to the normal data to obtain calibration data.
[0067] From the above, it can be seen that in one embodiment, difference calculation is performed on the sensor data of the terminal device with the same environmental information, and abnormal data and normal data are determined based on the result of the difference calculation and a preset error range, which is conducive to quickly and accurately determining abnormal data according to the error value, thereby improving the efficiency of judging abnormal data.
[0068] Figure 3 A flowchart of a calibration data determination method provided in an embodiment of the present application is shown in FIG. Figure 3 As shown, the specific steps include:
[0069] Step S301: Receive environmental information and sensor data reported by multiple terminal devices, where the environmental information includes location data and time data.
[0070] Step S302: collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data based on the statistical results.
[0071] Step S303: Calculate the mean corresponding to the normal data.
[0072] The mean value may be the average value of a group of sensor data having the same environmental information. In one embodiment, the average value corresponding to normal data having the same environmental information is calculated. Exemplarily, a group of sensor data is {a1, a2, a3, a4, a5, a6}, where a6 is abnormal data, and the mean value of a1, a2, a3, a4, a5 is calculated, and the mean value is (a1+a2+a3+a4+a5) / 5.
[0073] Step S304: determine the mean value as calibration data corresponding to the abnormal data.
[0074] In one embodiment, the calibration data may be final data obtained after calibration of the abnormal data, and the final data is normal data. In one embodiment, the mean of the abnormal data is determined according to the calculation result of step S303, and the mean (a1+a2+a3+a4+a5) / 5 is determined as the calibration data corresponding to the abnormal data a6.
[0075] From the above, it can be seen that in one embodiment, the mean corresponding to the normal data is calculated, and the mean is determined as the calibration data corresponding to the abnormal data, which is conducive to quickly calibrating the abnormal data, avoiding affecting the normal use of the user, and optimizing the user's experience.
[0076] Figure 4 is a flow chart of another method for calibrating sensor reported data provided in an embodiment of the present application. Figure 4 As shown, the specific steps include:
[0077] Step S401: Receive environmental information and sensor data reported by multiple terminal devices, where the environmental information includes location data and time data.
[0078] Step S402: collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data based on the statistical results.
[0079] Step S403: calibrate the abnormal data according to the normal data to obtain calibration data.
[0080] Step S404: grouping the sensor data of the terminal devices having the same environmental information to obtain a plurality of grouped data.
[0081] In one embodiment, the number of groups is determined according to the number of preset sensor data. For example, if the number of sensor data of terminal devices with the same environmental information obtained by statistics is 50, and the number of preset sensor data in each group is 10, 5 group data can be obtained.
[0082] Step S405: determining a calibration coefficient based on normal data in each group of data and a preset formula, for subsequent calibration based on the calibration coefficient after abnormal data is determined.
[0083] In one embodiment, the preset formula may be a calculation formula for automatically calibrating abnormal data, and the calibration coefficient may be a correction coefficient set to reduce sensor data errors. In one embodiment, the average value of normal data in each group of data is calculated respectively, and the sensor parameter value corresponding to each sensor data is determined. The calibration coefficient is calculated based on the calculated average value and sensor parameter value. When data appears again in this environment, the sensor parameter value corresponding to the abnormal data can be brought into the preset formula to calibrate the abnormal data.
[0084] From the above, it can be seen that in one embodiment, the sensor data of the terminal device with the same environmental information is grouped to obtain multiple group data, and the calibration coefficient is determined based on the normal data in each group data and a preset formula, which is used for calibration based on the calibration coefficient after the abnormal data is subsequently determined. By dividing the sensor data with the same environmental information into multiple groups, it is beneficial to the accurate calculation of the calibration coefficient. Furthermore, it can improve the rapid and imperceptible calibration of abnormal data.
[0085] Figure 5 A flowchart of a method for determining a calibration coefficient based on normal data and a preset formula provided in an embodiment of the present application, such as Figure 5 As shown, the specific steps include:
[0086] Step S501: Receive environmental information and sensor data reported by multiple terminal devices, where the environmental information includes location data and time data.
[0087] Step S502: collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data based on the statistical results.
[0088] Step S503: calibrate the abnormal data according to the normal data to obtain calibration data.
[0089] Step S504: grouping the sensor data of the terminal devices having the same environmental information to obtain a plurality of grouped data.
[0090] Step S505: Calculate the first data mean and the second data mean based on the normal data in the first grouped data and the second grouped data respectively.
[0091] In one embodiment, the first grouped data may be each sensor data in the first group. The second grouped data may be each sensor data in the second group. The first data mean may be the average value of normal data in the first grouped data. The second data mean may be the average value of normal data in the second grouped data. In one embodiment, two groups of data are determined according to the statistical results, namely the first grouped data and the second grouped data, and each sensor data in the first grouped data and the second grouped data is judged to be normal data or abnormal data, and the first data mean is calculated according to the normal data in the first grouped data, and the second data mean is calculated according to the normal data in the second grouped data. Exemplarily, if the first grouped data are {a1, a2, a3, a4, a5}, a1, a2, a3, a4 are all normal data, and a5 is abnormal data. The second grouped data are {b1, b2, b3, b4, b5}, b1, b2, b4, b5 are all normal data, and b3 is abnormal data. Then the mean value of the first data is (a1+a2+a3+a4) / 4, and the mean value of the second data is (b1+b2+b4+b5) / 4.
[0092] Step S506: Determine the sensor parameter value corresponding to each normal data in the first grouped data and the second grouped data, and calculate the first sensor mean value and the second sensor mean value respectively.
[0093] In one embodiment, the sensor parameter value may be a voltage value of the sensor or a current value of the sensor. First sensor mean. Different sensor data correspond to different sensor parameter values. The first sensor mean may be the average value of the sensor parameter values corresponding to the normal data in the first grouped data. The second sensor mean may be the average value of the sensor parameter values corresponding to the normal data in the second grouped data. In one embodiment, after respectively determining the normal data and the abnormal data in the first grouped data and the second grouped data, the sensor parameter values corresponding to each normal data in the first grouped data and the sensor parameter values corresponding to the abnormal data are determined. Exemplarily, if the sensor parameter values corresponding to each sensor data in the first grouped data are {a11, a22, a33, a44, a55}, respectively, a11, a22, a33, a44 are all sensor parameter values corresponding to the normal data, and a55 is the sensor parameter value corresponding to the abnormal data. If the sensor parameter values corresponding to the sensor data in the second grouped data are {b11, b22, b33, b44, b55}, where b11, b22, b44, b55 are sensor parameter values corresponding to normal data, and b33 is the sensor parameter value corresponding to abnormal data, then the first sensor mean is (a11+a22+a33+a44) / 4, and the second sensor mean is (b11+b22+b44+b55) / 4.
[0094] Step S507: Substitute the first data mean, the second data mean, the first sensor mean and the second sensor mean into a preset formula to determine a calibration coefficient, which is used for subsequent calibration based on the calibration coefficient after abnormal data is determined.
[0095] In one embodiment, after respectively determining the first data mean, the second data mean, the first sensor mean, and the second sensor mean, they are respectively substituted into a preset formula, such as Y=kx+b, where Y is the first data mean or the second data mean, x is the first sensor mean, the second sensor mean, and the sensor parameter value for the abnormal data, and k and b are calibration coefficients. For example, if the first data mean is Y1, the second data mean is Y2, the first sensor mean is x1, and the second sensor mean is x2, Y1, Y2, x1, and x2 are respectively substituted into formula (1) and formula (2), and formulas Y1=kx1+b(1) and Y2=kx2+b(2) are obtained. The calibration coefficients k and b are calculated according to formula (1) and formula (2), and are used for subsequent calibration based on the calibration coefficients after the abnormal data is determined.
[0096] From the above, it can be seen that in one embodiment, the first data mean and the second data mean are respectively calculated based on the normal data in the first grouped data and the second grouped data, the sensor parameter value corresponding to each normal data in the first grouped data and the second grouped data is determined, and the first sensor mean and the second sensor mean are respectively calculated, and the first data mean, the second data mean, the first sensor mean and the second sensor mean are substituted into a preset formula to determine the calibration coefficient. The calibration coefficient is determined by the normal book data and the sensor parameter value corresponding to the normal data, which is beneficial to improve the accuracy of the sensor data during use and avoid sensor data errors affecting the user's usage experience.
[0097] Figure 6 This is a module structure diagram of a sensor reporting data calibration device provided by an embodiment of the present invention. The calibration device is used to execute the sensor reporting data calibration method provided by the above embodiment, and has the corresponding functional modules and beneficial effects of the execution method. Figure 6 As shown, the device specifically includes:
[0098] Data receiving module 61: configured to receive environmental information and sensor data reported by multiple terminal devices, wherein the environmental information includes location data and time data;
[0099] Data statistics module 62: configured to collect statistics on sensor data of terminal devices having the same environmental information, and determine abnormal data and normal data according to the statistical results;
[0100] The data calibration module 63 is configured to calibrate the abnormal data according to the normal data to obtain calibration data.
[0101] As can be seen from the above, in one embodiment, environmental information and sensor data reported by multiple terminal devices are received, and the environmental information includes location data and time data; the sensor data of terminal devices with the same environmental information are counted, and abnormal data and normal data are determined according to the statistical results; the abnormal data is calibrated according to the normal data to obtain calibration data, and the abnormal data is determined by counting the sensor data under the same environmental information and comparing and calculating the sensor data. The abnormal data is automatically calibrated during use, which will not affect the normal use of the user, and is conducive to the realization of senseless calibration of the sensor reported data, thereby improving the user experience and the reporting accuracy of the sensor data.
[0102] In a possible embodiment, the data statistics module 62 further includes a first calculation unit and a first data determination unit.
[0103] A first calculation unit: configured to perform difference calculation on sensor data of terminal devices having the same environmental information;
[0104] A first data determination unit is configured to determine abnormal data and normal data based on the result of the difference calculation and a preset error range.
[0105] In a possible embodiment, the data calibration module 63 further includes a second calculation unit and a second data determination unit.
[0106] A second calculation unit: configured to calculate the mean value corresponding to the normal data;
[0107] A second data determination unit is configured to determine the mean value as calibration data corresponding to the abnormal data.
[0108] In a possible embodiment, the device further includes a grouping module.
[0109] Grouping module: configured to group sensor data of terminal devices having the same environmental information to obtain a plurality of grouped data.
[0110] The grouping unit further includes a third calculating unit and a third data determining unit,
[0111] The third data determination unit is configured to determine a calibration coefficient based on normal data in each group of data and a preset formula, so as to perform calibration based on the calibration coefficient after abnormal data is subsequently determined.
[0112] A third calculation unit: configured to calculate the first data mean and the second data mean based on the normal data in the first grouped data and the second grouped data respectively;
[0113] Determine a sensor parameter value corresponding to each normal data in the first grouped data and the second grouped data, and respectively calculate a first sensor mean value and a second sensor mean value;
[0114] The third data determination unit is further configured to bring the first data mean, the second data mean, the first sensor mean, and the second sensor mean into a preset formula to determine a calibration coefficient.
[0115] In a possible embodiment, the first data determination unit is further configured to:
[0116] Determine abnormal data and normal data according to the statistical results, and determine the factory time of the sensor of the terminal device when normal data does not exist;
[0117] The sensor data with the most recent factory date is determined as normal data.
[0118] Figure 7 A schematic diagram of a calibration device for sensor data reporting provided by an embodiment of the present invention, such as Figure 7 As shown, the device includes a processor 701, a memory 702, an input device 703 and an output device 704; the number of processors 701 in the device can be one or more. Figure 7 A processor 701 is taken as an example; the processor 701, the memory 702, the input device 703 and the output device 704 in the device can be connected by a bus or other means. Figure 7 The example of connection via bus is taken. The memory 702, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the calibration method of sensor reported data in the embodiment of the present invention. The processor 701 executes various functional applications and data processing of the device by running the software programs, instructions and modules stored in the memory 702, that is, implements the above-mentioned calibration method of sensor reported data. The input device 703 can be used to receive input digital or character information, and generate key signal input related to user settings and function control of the device. The output device 704 may include a display device such as a display screen.
[0119] An embodiment of the present invention also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a method for calibrating sensor reported data, the method comprising: receiving environmental information and sensor data reported by multiple terminal devices, the environmental information comprising location data and time data; performing statistics on the sensor data of terminal devices having the same environmental information, and determining abnormal data and normal data based on the statistical results; and calibrating the abnormal data based on the normal data to obtain calibration data.
[0120] It is worth noting that in the embodiment of the calibration device for sensor reporting data, the various units and modules included are divided only according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific name of each functional unit is only for the convenience of distinguishing each other, and is not used to limit the protection scope of the embodiment of the present invention.
[0121] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention are described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.
Claims
1. A method for calibrating sensor reported data, characterized in that: include: Receiving environmental information and sensor data reported by multiple terminal devices, wherein the environmental information includes location data and time data; Collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data based on the statistical results; The abnormal data is calibrated according to the normal data to obtain calibration data.
2. The method for calibrating sensor reported data according to claim 1, characterized in that: The method of collecting statistics on sensor data of terminal devices having the same environmental information and determining abnormal data and normal data according to the statistical results includes: Perform difference calculation on sensor data of terminal devices with the same environmental information; Abnormal data and normal data are determined based on the result of the difference calculation and a preset error range.
3. The method for calibrating sensor reported data according to claim 1, characterized in that: The step of calibrating the abnormal data according to the normal data to obtain calibration data includes: Calculate the mean value corresponding to the normal data; The mean value is determined as calibration data corresponding to the abnormal data.
4. The method for calibrating sensor reported data according to any one of claims 1 to 3, characterized in that: After calibrating the abnormal data according to the normal data to obtain calibration data, the method further includes: Grouping sensor data of terminal devices having the same environmental information to obtain a plurality of grouped data; A calibration coefficient is determined based on normal data in each group of data and a preset formula, and is used for subsequent calibration based on the calibration coefficient after abnormal data is determined.
5. The method for calibrating sensor reported data according to claim 4, characterized in that: The step of determining the calibration coefficient based on the normal data in each group of data and a preset formula includes: Based on the normal data in the first grouped data and the second grouped data, respectively, a first data mean and a second data mean are calculated; Determine a sensor parameter value corresponding to each normal data in the first grouped data and the second grouped data, and respectively calculate a first sensor mean value and a second sensor mean value; The first data mean, the second data mean, the first sensor mean and the second sensor mean are substituted into a preset formula to determine a calibration coefficient.
6. The method for calibrating sensor reported data according to any one of claims 1 to 3, characterized in that: Determining abnormal data and normal data according to statistical results includes: Determine abnormal data and normal data according to the statistical results, and determine the factory time of the sensor of the terminal device when normal data does not exist; The sensor data with the most recent factory date is determined as normal data.
7. The method for calibrating sensor reported data according to claim 1, characterized in that: The environmental information also includes at least one of temperature data, humidity data and concentration data.
8. A calibration device for sensor reporting data, characterized in that: include: Data receiving module: configured to receive environmental information and sensor data reported by multiple terminal devices, wherein the environmental information includes location data and time data; Data statistics module: configured to collect statistics on sensor data of terminal devices with the same environmental information, and determine abnormal data and normal data according to the statistical results; Data calibration module: configured to calibrate the abnormal data according to the normal data to obtain calibration data.
9. A calibration device for sensor reporting data, the device comprising: 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 one or more processors to implement the sensor reporting data calibration method described in any one of claims 1-7.
10. A non-volatile storage medium storing computer executable instructions, wherein the computer executable instructions are used to execute the sensor reporting data calibration method according to any one of claims 1 to 7 when executed by a computer processor.
