Sensor calibration method, device, electronic device and storage medium

Through automated sensor data processing and calibration methods, the problems of high sensor false alarm rate and cumbersome traditional calibration methods are solved, efficient automatic calibration of sensors is achieved, and user experience and equipment performance are improved.

CN118464095BActive Publication Date: 2024-11-19SHANGHAI INNOVATECH INFORMATION TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410919653.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-11-19
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

The sensor has a high false alarm rate in modern mobile phone devices, which affects the user experience. Traditional calibration methods require manual operation by users or additional hardware support. Frequent calibration is not good for the device's battery life.

Method used

By acquiring multiple sensor data of electronic devices, processing and determining a collection of abnormal data, the sensor is automatically calibrated according to the calibration type, avoiding manual operation of users and improving sensor performance and accuracy.

Benefits of technology

Automatic calibration of sensors is achieved, user experience is improved, false alarms are reduced, device battery life is extended, and is suitable for a variety of sensors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118464095B_ABST
    Figure CN118464095B_ABST
Patent Text Reader

Abstract

The present application proposes a sensor calibration method, device, electronic device and storage medium. The method includes: obtaining first sensor data of multiple sensors of an electronic device, and processing the first sensor data to obtain a data set corresponding to each sensor; determining an abnormal data set with deviations from multiple data sets; using the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determining the calibration type of the sensor to be calibrated; and calibrating the first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated. Therefore, this solution calibrates the sensor to be calibrated according to the calibration type of the sensor to be calibrated, and can realize automatic calibration of the sensor, thereby improving the user experience and avoiding manual calibration by the user, further improving the performance and accuracy of the sensor, and reducing false alarms.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing and data correction, and in particular to a sensor calibration method, device, electronic equipment and storage medium. Background Art

[0002] In modern mobile devices, multiple sensors play an important role, such as accelerometers, light sensors, magnetic sensors, light sensors, gyroscopes, etc. However, the accuracy and stability of sensors is a challenge. Due to slight deviations, the false alarm rate of sensors may increase, affecting the user experience.

[0003] Traditional sensor calibration generally requires manual operation by the user, such as restarting the device, placing the device in a specific mode, etc. Or additional hardware equipment is required for calibration. The automatic calibration technology built into some devices often requires additional hardware support, and frequent calibration may have a negative impact on the battery life of the device. Summary of the invention

[0004] The present application aims to solve one of the technical problems in the related art at least to some extent.

[0005] To this end, the first objective of the present application is to propose a sensor calibration method to automatically calibrate the sensor of an electronic device.

[0006] The second objective of the present application is to provide a sensor calibration device.

[0007] The third objective of the present application is to provide an electronic device.

[0008] A fourth objective of the present application is to provide a computer-readable storage medium.

[0009] A fifth object of the present application is to provide a computer program product.

[0010] To achieve the above-mentioned purpose, the first aspect embodiment of the present application proposes a sensor calibration method, including: acquiring first sensor data of multiple sensors of an electronic device, and processing the first sensor data to obtain a data set corresponding to each sensor; determining an abnormal data set with deviations from multiple data sets; using the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determining the calibration type of the sensor to be calibrated; and calibrating the first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated.

[0011] To achieve the above-mentioned purpose, the second aspect embodiment of the present application proposes a sensor calibration device, including: a processing module, used to obtain first sensor data of multiple sensors of an electronic device, and process the first sensor data to obtain a data set corresponding to each sensor; a first determination module, used to determine an abnormal data set with deviations from multiple data sets; a second determination module, used to take the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determine the calibration type of the sensor to be calibrated; a calibration module, used to calibrate the first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated.

[0012] To achieve the above-mentioned purpose, the third aspect embodiment of the present application proposes an electronic device, comprising: a processor; and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the processor can execute the sensor calibration method described in the first aspect embodiment above.

[0013] To achieve the above-mentioned purpose, a fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer instructions are used to enable the computer to execute the sensor calibration method described in the above-mentioned first aspect of the embodiment.

[0014] To achieve the above-mentioned purpose, a fifth aspect of the present application proposes a computer program product, including a computer program, which, when executed by a processor, implements the sensor calibration method described in the first aspect of the embodiment.

[0015] The sensor calibration method, device, electronic device and storage medium provided in the present application obtain the first sensor data of each sensor in the electronic device and determine the data set corresponding to the sensor. Then, an abnormal data set with deviations is determined from multiple data sets, and the sensor to be calibrated is calibrated according to the calibration type of the sensor to be calibrated corresponding to the abnormal data set. The sensor can be automatically calibrated, thereby improving the user experience and avoiding manual calibration by the user, further improving the performance and accuracy of the sensor and reducing false alarms. The method provided in the present application can be applied to a variety of sensors and has a wide range of applicability.

[0016] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0018] Figure 1 A schematic diagram of a flow chart of a sensor calibration method provided in an embodiment of the present application;

[0019] Figure 2 A schematic flow chart of another sensor calibration method provided in an embodiment of the present application;

[0020] Figure 3 A schematic flow chart of another sensor calibration method provided in an embodiment of the present application;

[0021] Figure 4 A schematic diagram of a flow chart for calibrating a sensor provided in an embodiment of the present application;

[0022] Figure 5 A schematic diagram of the structure of a sensor calibration device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] Embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0024] The following describes the sensor calibration method and device according to the embodiments of the present application with reference to the accompanying drawings.

[0025] Figure 1 is a flow chart of a sensor calibration method according to an exemplary embodiment. Figure 1 As shown, the sensor calibration method of the embodiment of the present application includes but is not limited to the following steps:

[0026] S101, acquiring first sensor data of multiple sensors of an electronic device, and processing the first sensor data to obtain a data set corresponding to each sensor.

[0027] It should be noted that the execution subject of the sensor calibration method provided in the embodiment of the present application is an electronic device, which may be a mobile phone device. Optionally, the mobile phone device may be a smart phone, a non-smart phone, etc. Optionally, the electronic device may also be a terminal device. For example, the terminal device may be a laptop computer, a PDA, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA). The embodiment of the present application does not specifically limit this.

[0028] In some implementations, first sensor data of multiple sensors may be obtained based on a sensor manager of the electronic device. The first sensor data of multiple sensors may be obtained by determining interface information of the sensor manager, accessing a sensor list based on the interface information, and monitoring the sensor list. The sensor list includes all available sensors on the electronic device.

[0029] Furthermore, the data features of the sensor data can be obtained by preprocessing the first sensor data and performing feature extraction on the preprocessed data, and then the data set corresponding to each sensor can be obtained based on the data features.

[0030] Optionally, data preprocessing can be completed by performing data cleaning, normalization, etc. on the first sensor data. Further, statistical features, trend features, motion features, abnormal features, etc. of the sensor data can be extracted as data features of the sensor data.

[0031] S102, determining an abnormal data set with deviation from multiple data sets.

[0032] In some implementations, for each sensor, a reference data set corresponding to the sensor may be obtained, and then by comparing each data set with its corresponding reference data set, an abnormal data set with deviations may be determined from multiple data sets.

[0033] Optionally, based on any reference data set, the reference data features of the reference data set can be obtained, and then the difference between the reference data features and the data features of the data set can be obtained, and it can be determined whether the difference is within a preset threshold range. If it is within the threshold range, it is determined that there is no deviation in the data set; if it is not within the threshold range, it is determined that there is a deviation in the data set and it is determined to be an abnormal data set.

[0034] Optionally, multiple reference data features of the reference data set can be obtained and compared with the data features of the data set to determine the difference between each data feature and the reference data feature. If each difference is outside a threshold range, the data set is determined to be an abnormal data set.

[0035] S103: taking the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determining the calibration type of the sensor to be calibrated.

[0036] In some implementations, the calibration type of the sensor to be calibrated may be determined based on whether the sensor to be calibrated provides a calibration function. Optionally, the calibration type may be divided into a first calibration type that uses a calibration function for calibration and a second calibration type that does not use a calibration function for calibration.

[0037] S104: Calibrate first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated.

[0038] Optionally, if the calibration type of the sensor to be calibrated is the first calibration type, the first sensor data of the sensor to be calibrated may be calibrated based on the calibration function of the sensor to be calibrated itself to obtain calibrated sensor data.

[0039] Optionally, if the calibration type of the sensor to be calibrated is the second calibration type, the data set and the reference data set corresponding to the sensor to be calibrated are obtained, and the deviation value between the data set and the reference data set is determined, and then the first sensor data is calibrated according to the deviation value to obtain the calibrated sensor data.

[0040] Optionally, the calibrated sensor data may be obtained by subtracting the deviation value from the first sensor data. That is, when reading the sensor data, the calibrated sensor data may be obtained by subtracting the deviation value from the sensor data.

[0041] In the sensor calibration method provided in the embodiment of the present application, the first sensor data of each sensor in the electronic device is obtained, and the data set corresponding to the sensor is determined. Then, an abnormal data set with deviations is determined from multiple data sets, and the sensor to be calibrated is calibrated according to the calibration type of the sensor to be calibrated corresponding to the abnormal data set. The sensor can be automatically calibrated, thereby improving the user experience and avoiding manual calibration by the user, further improving the performance and accuracy of the sensor and reducing false alarms. The method provided in the present application can be applied to a variety of sensors and has a wide range of applicability.

[0042] Figure 2 is a flow chart of a sensor calibration method according to an exemplary embodiment. Figure 2 As shown, the sensor calibration method of the embodiment of the present application includes but is not limited to the following steps:

[0043] S201, acquiring first sensor data of multiple sensors of an electronic device, and processing the first sensor data to obtain a data set corresponding to each sensor.

[0044] In the embodiment of the present application, the implementation method of step S201 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0045] S202, determining an abnormal data set with deviation from multiple data sets.

[0046] In the embodiment of the present application, the implementation method of step S202 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0047] S203: taking the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determining the calibration type of the sensor to be calibrated.

[0048] In the embodiment of the present application, the implementation method of step S203 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0049] S204 : In response to the calibration type being the first type, calibrate first sensor data of the sensor to be calibrated based on the calibration function.

[0050] In some implementations, when the sensor to be calibrated provides a calibration function, it is determined that the calibration type of the sensor to be calibrated is the first type, and the sensor to be calibrated is calibrated using the calibration function. In other words, the calibration function of the sensor to be calibrated can be obtained, and the calibration function can be used to calibrate the first sensor data of the sensor to be calibrated.

[0051] It can be understood that the calibration function of the first type of sensor to be calibrated is provided by the sensor itself, and the calibration function of the sensor to be calibrated can be obtained based on a sensor calibrator, and then the calibration function is used for calibration.

[0052] S205 , in response to the calibration type being the second type, obtaining deviation information of the sensor to be calibrated, and calibrating the first sensor data of the sensor to be calibrated based on the deviation information.

[0053] In some implementations, when the sensor to be calibrated does not provide a calibration function, it is determined that the calibration type of the sensor to be calibrated is the second type, and the sensor to be calibrated is calibrated based on the deviation information. That is, the deviation value between the first sensor data of the sensor to be calibrated and the reference sensor data can be obtained as the deviation information, and the first sensor data is calibrated based on the deviation value.

[0054] Optionally, calibrated sensor data may be obtained by subtracting the deviation value from the first sensor data.

[0055] In the sensor calibration method provided in the embodiment of the present application, the first sensor data of each sensor in the electronic device is obtained, and the data set corresponding to the sensor is determined. Then, an abnormal data set with deviations is determined from multiple data sets, and the sensor to be calibrated is calibrated according to the calibration type of the sensor to be calibrated corresponding to the abnormal data set, and the sensor to be calibrated is calibrated according to different calibration types, so that the sensor can be automatically calibrated, thereby improving the user experience, and avoiding manual calibration by the user, further improving the performance and accuracy of the sensor, and reducing false alarms. The method provided in the present application can be applied to a variety of sensors and has a wide range of applicability.

[0056] Figure 3 is a flow chart of a sensor calibration method according to an exemplary embodiment. Figure 3 As shown, the sensor calibration method of the embodiment of the present application includes but is not limited to the following steps:

[0057] S301, obtaining first sensor data of multiple sensors of an electronic device.

[0058] In the embodiment of the present application, the implementation method of step S301 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0059] S302 : Preprocess the first sensor data of each sensor to obtain second sensor data.

[0060] In some implementations, the first sensor data may be pre-processed by performing data cleaning and normalization on the first sensor data to obtain the second sensor data. For example, first sensor data with obvious errors may be deleted. For another example, interpolation may be used to fill in missing data in the first sensor data, and interpolation may be performed by averaging adjacent data.

[0061] As an example, the first sensor data after data cleaning may be normalized so as to linearly change to the range of [0,1]. The normalization process may be achieved by calculating (original data - minimum value) / (maximum value - minimum value).

[0062] S303: extract at least one type of feature data among statistical features, trend features, motion features and abnormal features from the second sensor data.

[0063] In some implementations, the feature data of the sensor data includes: statistical features, trend features, motion features, and abnormal features. The statistical features can be determined by obtaining statistical information of the second sensor data and based on the statistical information. For example, the statistical quantities such as the mean, median, maximum, minimum, standard deviation, and quartile of the second sensor data can be obtained as statistical features.

[0064] Optionally, the trend characteristics can be obtained by performing trend analysis on the second sensor data. For example, the moving average or exponential smoothing of the second sensor data can be calculated to determine the trend characteristics. The temperature change trend can be determined by calculating the moving average temperature within 10 minutes.

[0065] Optionally, acceleration data may be obtained from the second sensor data, and the acceleration data may be analyzed in the frequency domain to obtain motion features. For example, the acceleration data may be Fourier transformed to analyze the main features of the acceleration data in the frequency domain, such as the main frequency point, to obtain motion features.

[0066] Optionally, an abnormal threshold corresponding to each sensor may be determined, and based on the abnormal threshold, an abnormal feature of the second sensor data may be determined. Sensor data greater than the abnormal threshold may be used as an abnormal feature of the second sensor data. For example, the highest temperature abnormal threshold and the lowest temperature abnormal threshold of the temperature sensor may be used, and when the temperature exceeds the range, it may be used as an abnormal feature.

[0067] S304: Based on at least one type of characteristic data, obtain a data set corresponding to the sensor.

[0068] In some implementations, the characteristic data corresponding to different types of sensors may be determined, and then the data set corresponding to the sensor may be determined. For example, if the sensor is a temperature sensor, it is determined that the characteristic data includes statistical characteristics, trend characteristics, and abnormal characteristics, then based on the above characteristics, the data set corresponding to the temperature sensor is obtained. For another example, if the sensor is an acceleration sensor, it is determined that the characteristic data includes statistical characteristics, trend characteristics, motion characteristics, and abnormal characteristics, then based on the above characteristics, the data set corresponding to the acceleration sensor is obtained.

[0069] S305, determining an abnormal data set with deviation from multiple data sets.

[0070] In some implementations, by comparing the difference between the feature data of the data set and the reference feature data, and whether the data in the data set is within a threshold range, an abnormal data set with deviations can be determined from multiple data sets. That is, for any data set, a reference data set of a sensor corresponding to the data set is determined, and then based on the reference data set and the feature data, an abnormal data set with deviations can be determined from multiple data sets.

[0071] Optionally, the data error between the feature data and the reference feature data may be determined by determining a data threshold range and reference feature data corresponding to the reference data set, and comparing the difference between the feature data and the reference feature data.

[0072] Further, it is determined whether the data in the data set is within the data threshold range, and whether the data error is within the preset error range. If the data in the data set is outside the data threshold range, and the data error is outside the error range, the data set is determined to be an abnormal data set.

[0073] For example, for an acceleration sensor, if the electronic device is in a stationary state at this moment, the sensor data of the acceleration sensor should be close to 0. If the data in the data set is greater than 0, it is determined to be outside the data threshold range, and the data error between the characteristic data of the acceleration sensor and the reference characteristic data is obtained. If the data error is outside the error range, it can be determined that the data set of the acceleration sensor is an abnormal data set.

[0074] S306: The sensor corresponding to the abnormal data set is used as a sensor to be calibrated, and the calibration type of the sensor to be calibrated is determined.

[0075] In the embodiment of the present application, the implementation method of step S306 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0076] S307 , calibrating first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated.

[0077] In the embodiment of the present application, the implementation method of step S307 can be implemented by any method in the embodiments of the present application, which is not limited here and will not be repeated.

[0078] In some implementations, after the sensor to be calibrated is calibrated, the sensor data of the sensor may be reacquired to verify the calibration result of the sensor to be calibrated. Optionally, by acquiring third sensor data of the sensor to be calibrated after calibration, and determining the calibration data set and calibration feature data of the sensor to be calibrated after calibration based on the third sensor data, and verifying whether the calibration is successful based on the calibration data set and the calibration feature data.

[0079] That is, it is possible to determine whether the data in the calibration data set is within the data threshold range, and whether the data error between the calibration feature data and the reference feature data is within the preset error range. If the data in the calibration data set is within the data threshold range, and the data error is within the error range, it is determined that the calibration is successful; otherwise, it is determined that the calibration has failed, and the sensor to be calibrated can be recalibrated.

[0080] It is understandable that due to changes in environmental factors and usage conditions, sensors may need to be calibrated from time to time. That is, after determining that the sensor has completed a successful calibration, the sensor can be continuously monitored to obtain real-time sensor data and determine whether the sensor needs to be calibrated, thereby achieving automatic calibration of the sensor in different environments.

[0081] In the sensor calibration method provided in the embodiment of the present application, the first sensor data of each sensor in the electronic device is obtained, and the first sensor data is preprocessed and feature extracted to determine the data set corresponding to the sensor. Then, according to the error between the feature data and the reference feature data, an abnormal data set with deviations can be determined from multiple data sets, and the sensor to be calibrated can be calibrated according to the calibration type of the sensor to be calibrated corresponding to the abnormal data set. Automatic calibration of the sensor can be achieved, thereby improving the user experience and avoiding manual calibration by the user, further improving the performance and accuracy of the sensor and reducing false alarms. The method provided in the present application can be applied to a variety of sensors and has a wide range of applicability.

[0082] Figure 4 The figure shows a schematic diagram of the process of calibrating the sensor. Figure 4 The main steps include: obtaining sensor data, processing sensor data, identifying deviations, and calibrating sensors. Among them, based on the sensor manager of the electronic device, a sensor list containing all sensors on the electronic device can be obtained, and then by registering a sensor listener, the sensor list can be monitored to obtain the first sensor data of the sensor. Then, the first sensor data is cleaned and normalized to achieve data preprocessing, and after preprocessing, the statistical features, trend features, motion features and abnormal features of the sensor data are extracted, and then based on the above feature data, the data set corresponding to the sensor is obtained.

[0083] Furthermore, an abnormal data set with deviation is identified from multiple data sets, and the data threshold range and reference feature data are determined, and based on the data threshold range and reference feature data, the data in the data set is analyzed to determine whether the data set has deviation. If there is a deviation, it is determined to be an abnormal data set, and then the sensor corresponding to the abnormal data set is used as a sensor to be calibrated, and the sensor is calibrated according to the calibration type of the sensor to be calibrated. The sensor to be calibrated can be calibrated based on the calibration interface of the sensor to be calibrated, and the calibration result can be verified after calibration, and recalibration can be performed after calibration fails, so as to realize continuous monitoring and calibration of sensors on electronic devices.

[0084] In order to implement the above embodiment, the present application also proposes a sensor calibration device.

[0085] Figure 5 A schematic diagram of the structure of a sensor calibration device provided in an embodiment of the present application.

[0086] like Figure 5 As shown, the sensor calibration device 500 includes:

[0087] The processing module 501 is used to obtain first sensor data of multiple sensors of the electronic device, and process the first sensor data to obtain a data set corresponding to each sensor;

[0088] A first determination module 502 is used to determine an abnormal data set with deviation from multiple data sets;

[0089] A second determination module 503 is used to take the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determine the calibration type of the sensor to be calibrated;

[0090] The calibration module 504 is configured to calibrate the first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated.

[0091] In a possible implementation of an embodiment of the present application, the calibration module 504 is further used to: in response to the calibration type being the first type, calibrate the first sensor data of the sensor to be calibrated based on the calibration function; in response to the calibration type being the second type, obtain the deviation information of the sensor to be calibrated, and calibrate the first sensor data of the sensor to be calibrated based on the deviation information.

[0092] In a possible implementation of an embodiment of the present application, the processing module 501 is also used to: pre-process the first sensor data of each sensor to obtain second sensor data; extract at least one type of feature data among statistical features, trend features, motion features and abnormal features from the second sensor data; and obtain a data set corresponding to the sensor based on the at least one type of feature data.

[0093] In a possible implementation of an embodiment of the present application, the processing module 501 is also used to: obtain statistical information of the second sensor data, and determine the statistical characteristics based on the statistical information; perform trend analysis on the second sensor data to obtain the trend characteristics; obtain acceleration data from the second sensor data, and perform frequency domain analysis on the acceleration data to obtain the motion characteristics; determine the abnormal threshold corresponding to each sensor, and determine the abnormal characteristics of the second sensor data based on the abnormal threshold.

[0094] In a possible implementation of an embodiment of the present application, the first determination module 502 is further used to: determine, for any data set, a reference data set of the sensor corresponding to the data set; and determine, based on the reference data set and the feature data, an abnormal data set with deviations from multiple data sets.

[0095] In a possible implementation of an embodiment of the present application, the first determination module 502 is also used to: determine the data threshold range and reference feature data corresponding to the reference data set; determine the data error between the feature data and the reference feature data; determine whether the data in the data set is within the data threshold range, and determine whether the data error is within a preset error range; if the data in the data set is outside the data threshold range and the data error is outside the error range, determine that the data set is the abnormal data set.

[0096] In a possible implementation of an embodiment of the present application, the calibration module 504 is also used to: obtain third sensor data of the sensor to be calibrated after calibration, and based on the third sensor data, determine the calibration data set and calibration feature data after calibration of the sensor to be calibrated, and based on the calibration data set and the calibration feature data, verify whether the calibration is successful.

[0097] In a possible implementation of an embodiment of the present application, the calibration module 504 is further used to: determine whether the data in the calibration data set is within a data threshold range, and determine whether the data error between the calibration feature data and the reference feature data is within a preset error range; if the data in the calibration data set is within the data threshold range, and the data error is within the error range, determine that the calibration is successful.

[0098] In the sensor calibration device provided in the embodiment of the present application, the first sensor data of each sensor in the electronic device is obtained, and the first sensor data is preprocessed and feature extracted to determine the data set corresponding to the sensor. Then, according to the error between the feature data and the reference feature data, an abnormal data set with deviations can be determined from multiple data sets, and the sensor to be calibrated can be calibrated according to the calibration type of the sensor to be calibrated corresponding to the abnormal data set. Automatic calibration of the sensor can be achieved, thereby improving the user experience and avoiding manual calibration by the user, further improving the performance and accuracy of the sensor and reducing false alarms. The method provided in the present application can be applied to a variety of sensors and has a wide range of applicability.

[0099] It should be noted that the above explanation of the sensor calibration method embodiment is also applicable to the sensor calibration device of this embodiment, which will not be repeated here.

[0100] In order to implement the above embodiments, the present application also proposes an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement the method provided by the above embodiments.

[0101] In order to implement the above embodiments, the present application also proposes a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the above embodiments.

[0102] In order to implement the above embodiments, the present application also proposes a computer program product, including a computer program, which implements the methods provided by the above embodiments when executed by a processor.

[0103] The collection, storage, use, processing, transmission, provision and application of user personal information involved in this application are in compliance with relevant laws and regulations and do not violate public order and good morals.

[0104] It should be noted that personal information from users should be collected for legitimate and reasonable purposes and should not be shared or sold outside of these legitimate uses. In addition, such collection / sharing should be carried out after receiving the user's informed consent, including but not limited to notifying the user to read the user agreement / user notice and sign the agreement / authorization including authorization of relevant user information before the user uses the function. In addition, any necessary steps should be taken to protect and safeguard access to such personal information data and ensure that others who have access to personal information data comply with its privacy policy and procedures.

[0105] This application is expected to provide an implementation scheme for users to selectively block the use or access of personal information data. That is, this application is expected to provide hardware and / or software to prevent or block access to such personal information data. Once the personal information data is no longer needed, risks can be minimized by limiting data collection and deleting data. In addition, when applicable, personal identifiers are removed from such personal information to protect the privacy of users.

[0106] In the description of the aforementioned embodiments, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they contradict each other.

[0107] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of this application, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0108] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

[0109] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples (non-exhaustive list) of computer-readable media include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0110] It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0111] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0112] In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0113] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A sensor calibration method, characterized in that: Applied to a mobile phone device, the method comprises: Acquire first sensor data of multiple sensors of an electronic device, pre-process the first sensor data of each sensor to obtain second sensor data, extract feature data among statistical features, trend features, motion features and abnormal features from the second sensor data, and obtain a data set corresponding to each sensor based on the feature data, wherein: extracting feature data among statistical features, trend features, motion features and abnormal features from the second sensor data includes: acquiring statistical information of the second sensor data, and determining the statistical features based on the statistical information, performing trend analysis on the second sensor data to obtain the trend features, acquiring acceleration data from the second sensor data, and performing frequency domain analysis on the acceleration data to obtain the motion features, determining an abnormal threshold corresponding to each sensor, and determining the abnormal features of the second sensor data based on the abnormal threshold; Determine a deviant data set from multiple data sets; Taking the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determining the calibration type of the sensor to be calibrated; calibrating first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated; The step of determining a deviation-existing abnormal data set from a plurality of data sets comprises: For any data set, determining a reference data set of a sensor corresponding to the data set; Determining a data threshold range and reference feature data corresponding to the reference data set; determining a data error between the feature data and the reference feature data; Determining whether the data in the data set is within the data threshold range, and determining whether the data error is within a preset error range; If the data in the data set is outside the data threshold range and the data error is outside the error range, the data set is determined to be the abnormal data set.

2. The method according to claim 1, characterized in that The step of calibrating the first sensor data of the sensor to be calibrated according to the calibration type of the sensor to be calibrated includes: In response to the calibration type being a first type, calibrating first sensor data of the sensor to be calibrated based on a calibration function; In response to the calibration type being the second type, deviation information of the sensor to be calibrated is acquired, and the first sensor data of the sensor to be calibrated is calibrated based on the deviation information.

3. The method according to any one of claims 1 to 2, characterized in that: After calibrating the first sensor data of the sensor to be calibrated, the method further includes: Acquire third sensor data of the sensor to be calibrated after calibration, and determine a calibration data set and calibration feature data of the sensor to be calibrated after calibration based on the third sensor data, and verify whether the calibration is successful based on the calibration data set and the calibration feature data.

4. The method according to claim 3, characterized in that The verifying whether the calibration is successful based on the calibration data set and the calibration feature data comprises: Determining whether the data in the calibration data set is within a data threshold range, and determining whether the data error between the calibration feature data and the reference feature data is within a preset error range; If the data in the calibration data set is within the data threshold range and the data error is within the error range, it is determined that the calibration is successful.

5. A sensor calibration device, characterized in that: Applied to mobile phone equipment, the device comprises: A processing module, used to obtain first sensor data of multiple sensors of an electronic device, pre-process the first sensor data of each sensor to obtain second sensor data, extract feature data among statistical features, trend features, motion features and abnormal features from the second sensor data, and obtain a data set corresponding to each sensor based on the feature data, wherein: the extracting feature data among statistical features, trend features, motion features and abnormal features from the second sensor data includes: obtaining statistical information of the second sensor data, and determining the statistical features based on the statistical information, performing trend analysis on the second sensor data to obtain the trend features, obtaining acceleration data from the second sensor data, and performing frequency domain analysis on the acceleration data to obtain the motion features, determining an abnormal threshold corresponding to each sensor, and determining the abnormal features of the second sensor data based on the abnormal threshold; A first determination module is used to determine an abnormal data set with deviation from multiple data sets; A second determination module, configured to use the sensor corresponding to the abnormal data set as a sensor to be calibrated, and determine a calibration type of the sensor to be calibrated; A calibration module, configured to calibrate first sensor data of the sensor to be calibrated according to a calibration type of the sensor to be calibrated; The step of determining a deviation-existing abnormal data set from a plurality of data sets comprises: For any data set, determining a reference data set of a sensor corresponding to the data set; Determining a data threshold range and reference feature data corresponding to the reference data set; determining a data error between the feature data and the reference feature data; Determining whether the data in the data set is within the data threshold range, and determining whether the data error is within a preset error range; If the data in the data set is outside the data threshold range and the data error is outside the error range, the data set is determined to be the abnormal data set.

6. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 4 when executed by a processor.

8. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 4 when being executed by a processor.