Reliable virtual sensor
By applying machine learning and neural network technology in virtual sensors to detect and handle hardware sensor failures, the problem of equipment failure caused by hardware sensor errors in virtual sensors is solved, and the robustness and accuracy of the equipment are achieved.
Patent Information
- Application Number
- CN202280087365.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2022-01-03
- Filing Date
- 2022-12-19
- Publication Date
- 2024-09-06
AI Technical Summary
Intermittent or permanent errors in virtual sensors due to hardware sensor failures may produce incorrect sensor event output, leading to equipment failure. It is difficult for existing technologies to effectively detect and compensate for these errors.
Using methods based on machine learning and neural networks, by storing and analyzing normal use sensor data, detecting deviations in sensor inputs, and designing processing processes in virtual sensors to identify and report faulty sensor inputs, dynamically update the model to adapt to changes, ensuring Device robustness and accuracy.
Effectively detect and process faulty sensor inputs in virtual sensors to ensure the accuracy and stability of device output, reducing device performance degradation and user safety risks due to faults.
Smart Images

Figure CN118613698A
Abstract
Description
Technical Field
[0001] The present invention relates to an electronic device with at least one virtual sensor, in particular an electronic device comprising an activity sensor for measuring user activities associated with the device, such as acoustic and inertial sensors, as well as gesture recognition, presence detection, activity detection, positioning. Background Art
[0002] Electronic devices are largely equipped with physical sensors in order to provide desirable functionality to their users. Some devices also use virtual sensors, i.e., software sensors that combine information from at least one physical sensor (e.g., sensor events, time series data) and create new sensors based on customer requirements, providing potentially new or improved sensor outputs. In most cases, virtual sensors use sensor fusion techniques, such as those discussed in US2018 / 0306609, which combines individual sensors of different types into a "smart home" configuration, or as discussed in WO2020 / 246897, which combines information from multiple core sensors to create entirely new sensors, providing a cost-effective alternative to dedicated hardware sensors in electronic devices, combining the use of acoustic transducers and other sensors to improve the operation of the device. In most cases, the core sensor will be a hardware sensor, but it can also be a virtual sensor that provides core functionality primarily based on software (e.g., a virtual gyroscope based on accelerometer data). In some cases, the sensor fusion aspect of virtual sensors can be used to create sensors that are not available or even feasible as hardware sensors due to design complexity, size, weight, or cost.
[0003] Virtual sensors provide new options for electronic devices to simplify design, reduce costs, reduce dependence on hardware sensor supply chains, etc. Since virtual sensors are software sensors, software updates, including over-the-air updates, are possible options for enhancing virtual sensor performance after users purchase electronic devices.
[0004] One disadvantage of sensor fusion based virtual sensors is that at least one input sensor fails intermittently or permanently and produces incorrect sensor event outputs. This can lead to erroneous behavior and possibly to virtual sensor failure. It is therefore an object of the present invention to provide an apparatus and method suitable for handling failures or unexpected measurements of at least one sensor that is part of a virtual sensor. This is as described in the accompanying claims.
[0005] Therefore, in addition to being able to monitor the use of the device and possibly the environment surrounding the device, the present invention is also able to detect and compensate for erroneous behavior of hardware sensors in the device. Since the virtual sensor is a software sensor, the faulty sensor input of the sensor fusion part of the sensor can be detected in software by validating all sensor inputs based on the above principles. The prior art can use different mechanisms based on machine learning and specific neural networks to detect faulty sensors in, for example, autonomous driving systems, such as described by Saeid Safavi et al.: "Multi-sensor Fault Detection, Identification, Isolation and Health forecasting for Autonomous Vehicles", Sensors 2021, 21, 2547, https: / / doi.org / 10.3390 / s21072547, where the impact of a faulty sensor can be serious.
[0006] Virtual sensors can use software- or hardware-based neural networks to identify faulty sensors to enhance their own robustness or other machine learning techniques.
[0007] Machine learning can be performed in several ways, for example based on storing and analyzing normal usage, possibly with feedback from the user through a suitable user interface. An example is discussed in Norwegian patent application NO20210589. Thus, machine learning can detect deviations from typical usage, for example based on correlations between different sensor inputs during usage, and report the deviation, allowing the user to investigate or adjust the analysis, letting the device know that the detected deviation should be considered within the expected normal usage range. Summary of the invention
[0008] The invention is based on an electronic device in which a virtual sensor will be able to detect the use of the device based on different hardware sensors and provide a high-performance sensor that can be used to control, for example, the output and energy consumption of the device and the information presented to the user, for example as described in Norwegian patent NO345005, where the information displayed on the device depends on the usage, or on the proximity of the user using ultrasonic signals in combination with an inertial measurement unit as described in NO345509. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] The present invention will now be described in more detail with reference to the accompanying drawings in which the present invention will be illustrated by way of example.
[0010] Figure 1 An embodiment in which the present invention is applied to a mobile phone is shown.
[0011] Figure 2A virtual sensor system comprising a plurality of sensors is shown.
[0012] Figure 3 A preferred embodiment of the process according to the invention is shown. DETAILED DESCRIPTION
[0013] Figure 1 An example of a device 3, such as a mobile phone, comprising the present invention is shown, wherein the device comprises a sound generator 6, which is connected to an acoustic output device, such as a speaker 2, an ultrasonic transducer, a piezoelectric element, etc., via a speaker interface 5. The speaker 2 may be connected to a processing module 9. The processing module 9 is also connected to other sensors, such as one or more microphones 1 or ultrasonic transducers, via an acoustic interface 4, and the processing module 9 is connected to additional sensors 8, such as inertial (IMU) sensors, cameras, radars, UWB sensors, pressure, light, touch controllers, etc. The processing module 9 further comprises a virtual sensor unit 11, which utilizes signals from different sensors for providing a virtual sensor.
[0014] The device may communicate using acoustic signals via a speaker and microphone like a mobile phone, but the device may also be configured as a virtual sensor for detecting the presence of a user 10 .
[0015] Figure 2 A virtual sensor unit 11 is shown, which shows a first virtual sensor 11a connected to a plurality of hardware sensors 1, 2, 8, 12a-12c. In addition, a secondary virtual sensor 11b is connected to additional hardware sensors 12d, 12e, where the secondary virtual sensor can report to the primary virtual sensor as an independent sensor. For example, this can use two ultrasonic sensors, where the secondary virtual sensor reports the direction of the received ultrasonic wave.
[0016] As described above, the virtual sensors 11a, 11b may be susceptible to errors in the hardware sensors 12a to 12e, which may cause equipment failure. If the virtual sensor does not detect any faulty sensor input, the sensor output of the virtual sensor may be incorrect unless the virtual sensor is designed to handle the faulty sensor input. If the virtual sensor output is critical and may cause personal injury, the robustness of the virtual sensor is also critical.
[0017] In more detail, the invention may provide a normal model of operation that is pre-programmed or stored during normal operation or during a learning sequence or learning. The device may be configured with an interface that enables a response to the device, for example, to confirm whether a recorded deviation is within normal usage, or to confirm whether it represents an error in operation. The learning sequence or pre-programmed data may include a simulation in which the transducer is turned off to record how the virtual sensor reacts to an error, thereby enabling the reaction to be identified.
[0018] Figure 3 A method for evaluating signals from sensors 12a, 12b etc. according to the invention is shown. The signals from the sensors 12a, 12b are sent to a processor for comparing the measurements 21 with a predetermined model 22 representing the typical behavior of the sensors. Since the sensors sample substantially simultaneously during use, there will be correlations and patterns in the corresponding measurements, e.g. an inertial sensor will register movement of a mobile phone towards a user's ear, while a proximity sensor will register that the ear is close to the phone.
[0019] Then, if the measurement matches the model, the device is configured to record it 23. If the measurement is within normal behavior, the system returns to wait for the next measurement 21, and the measurement can be fed back to the model 22 to update and improve the model based on the new measurement.
[0020] If a deviation from the model 22 is recorded 23, a fault or error 24 may be indicated. In order to detect the type of error, such as a blocked microphone, the deviation of the measurement result can be compared with additional models 25, 26 representing different types of errors, thereby improving the diagnosis indicated to the user and / or manufacturer 26.
[0021] Based on the stored model, the invention can therefore detect if, for example, an ultrasonic transmitter is defective when the received signal is different from the signal received according to other transducers (e.g. acoustic receiver, IMU, light sensor, etc.) in a situation corresponding to the current situation. For example, during proximity detection, if the transmitter is defective, the acoustic receiver will not detect any user presence, but if the IMU detects that the device is moved, it is likely that a user is present and that the transmitter and / or both receivers may be defective. In a similar way, if the device knows that the loudspeaker has sent an acoustic signal, but only one of the two microphones receives the reflected signal, the other microphone may be defective.
[0022] Acoustic virtual sensors can typically detect if the acoustic signal does not match expectations in terms of amplitude, pulse rate, frequency components, signal length, etc. This may be more difficult for other sensors (such as IMU sensors, touch screen sensors, SAR sensors, etc.). Fortunately, some sensors will contain internal error detection mechanisms to identify sensor operation problems and can report corresponding errors to the virtual sensor (such as startup failure, etc.). The virtual sensor may still repeatedly try to start the sensor to check whether the faulty behavior is intermittent. Other sensors can report specific error values (such as non-numeric values) that the virtual sensor can identify. If the sensor reports one or more values that are outside the specified value range (such as accelerometers, etc.), the virtual sensor can detect this. If the sensor reports one or more values that are outside the expected value range (such as expected acoustic amplitude, expected acoustic detection signal, etc.), the virtual sensor can detect this. If the sensor reports multiple values that are related in some way (such as accelerometers, gyroscopes, etc.) and at least one of the multiple values is faulty, the virtual sensor can detect this. If two or more sensors provide partially overlapping information (e.g., accelerometer and gyroscope, accelerometer, gyroscope, and acoustic signal), and at least one value in any sensor is inconsistent with the other values, the virtual sensor can detect this. If two or more sensors provide information that should be correlated, the virtual sensor can detect whether there is a situation where the information does not correlate.
[0023] If a faulty sensor is critical to the performance of the virtual sensor, the virtual sensor can report its own error to the system. The importance of a particular sensor will vary, and in some cases the virtual sensor will still provide useful sensor output to the system. If performance using the remaining set of sensors is acceptable, the virtual sensor should disable the sensor to reduce power consumption. If the faulty sensor does not detect any problems with its own output data, the sensor data in question may be faulty and skew the virtual sensor output. Even if the shift in the virtual sensor output is not easily detectable by the user, the performance of the virtual sensor may still be degraded and in some cases degrade the overall performance of the virtual sensor and all features that rely on the virtual sensor.
[0024] ML training can be used to establish rules for acceptable sensor values for a particular sensor. This information can be extracted from the ML model and used as semi-reliable information about when the value of a particular sensor appears to be faulty. If the information from at least two sensors (such as an accelerometer and a gyroscope) conflicts with each other, the system should discard both sensors or decide which sensor to trust. The user can do this through a calibration process provided by the device vendor. When this happens, the virtual sensor should immediately switch to using another neural network based on a seemingly working sensor for its own detection processing, or ensure that the sensor input of interest is modified to ensure that the neural network ignores the broken sensor for all practical purposes. Ignoring the sensor can be accomplished during the ML training process by manually training the neural network using input data from at least one broken sensor.
[0025] Machine learning or training of a neural network can be performed by identifying relevant measurements during normal operation, such as when a user has not indicated a problem through an interface. By continuously sampling and evaluating measurements, a model of typical usage patterns can be built. When new measurements are sampled, they can be implemented in the model through a machine learning algorithm if the new measurements are within the range defined by the existing model, or they can result in a fault indication if the new measurements deviate too much from the model. If an error is detected, the measurement can be compared to a model based on a different error to detect the cause of the error, such as a sensor failure.
[0026] In some cases, a group of sensors is part of the same hardware package, or a group of sensors is used in a group of different virtual sensors. If one sensor in a group fails, other sensors in the package may have problems.
[0027] The virtual sensor should automatically and periodically try to use a sensor that may be broken. At some point, the virtual sensor may give up on the sensor and prevent it from being enabled to reduce power consumption. If so, the virtual sensor should switch to a separate neural network or insert a tuned ML feature into the neural network to indicate the lack of valid input.
[0028] Virtual sensors based on acoustic data processing as described in the references cited above often utilize sensor fusion to improve overall performance. In these virtual sensors, there may even be issues with the audio component (e.g., speaker issues, damaged microphones, clogged microphones, etc.), which may have an impact on the virtual sensor. The core use case of the virtual sensor will usually determine which sensors will be used as inputs to the sensor fusion part of the virtual sensor. While in most cases, the sensor input will be time series data with a frequency above 1Hz, some sensors can be on-change sensors, in which case the sensor can change between different states when applicable and the sensor frequency is not actually meaningful. Some of the most popular sensors that use sensor fusion as part of acoustic virtual sensors are touch sensors, SAR sensors, ambient light sensors, Hall sensors, hinge sensors, accelerometer gyroscopes, 6DoF sensors, 3DoF sensors, rotation sensors, translation sensors, etc.
[0029] As mentioned before, there is an issue with sensor fusion in these acoustic sensors, where the loss of one of the sensor inputs, including acoustic data, due to a failure of at least one sensor or acoustic receiver and / or acoustic transmitter, can negatively impact the performance of the virtual sensor. This is especially true if the virtual sensor is actively using machine learning and neural networks, where the sensor information is used as machine learning features directly or after some pre-processing to extract key features of the input. The virtual sensor can use a processing chain with one or more neural networks, as well as additional processing steps before and after each neural network. The neural networks can run in parallel or serially, depending on the sensor inputs and the specific use case.
[0030] Proper handling of faulty sensor inputs requires that the virtual sensor include mechanisms to detect if any sensor input is faulty or suspect. At the detection stage, using software processing to validate sensor inputs (as described previously) or using more advanced schemes based on machine learning and neural networks to detect faulty sensors are both viable options. It is possible to identify faulty sensors by looking for contradictory combinations of sensor inputs using a suitable machine learning network. One option is for the virtual sensor to include pre-processing based on a separate neural network or software processing to detect faulty sensor inputs before feeding the sensor inputs of interest to the relevant set of neural networks used by the virtual sensor.
[0031] While it is possible to run the detection phase as a preprocessing step before the virtual sensor processing begins, it may not fit into the sensor framework in the platform. After all, it requires that all other inputs used by the virtual sensor are available to the detection process. For all practical purposes, it is not complex to include the detection phase in a separate preprocessing step as part of the virtual sensor processing. Integrating similar functionality into the core part of the neural network suite used by the virtual sensor itself would likely be more complex and would not provide any clear benefit.
[0032] If an input is marked as faulty, then that fault must be handled accordingly in the virtual sensor. There are several ways to handle faulty sensors. The sensor input of interest can be changed to provide neutral input values that the neural network can recognize and, for all practical purposes, are insignificant to the sensor output decision. If the virtual sensor and its underlying neural network are reliable enough to provide the correct sensor output even if one of the sensor inputs is faulty, then it may be possible to ignore the faulty sensor input. Another option is to exclude the input from the set of neural networks. Switching to another set of neural networks that do not use the sensor input of interest is another option for handling faulty sensors. Separate sets of neural networks for different combinations of valid sensor inputs are a reliable way to address this problem. Ideally, faulty sensor inputs can be handled during the training of the neural network. Faulty sensor inputs can be predicted and taken into account during the ML training process, thereby building a large model or multiple smaller models (i.e., one model for each faulty sensor or combination of faulty sensors) in which any number of faulty sensor inputs can be automatically handled by the neural network; multiple smaller models are used to exclude faulty sensors from neural network processing. Faulty sensor data can also be injected during ML training to enable the neural network to take the faulty sensor into account. Since using faulty sensor data in ML training and subsequent neural networks can be unpredictable, using a smaller set of models where the faulty sensor is not included in the neural network processing is another viable option for virtual sensors.
[0033] Simulating faulty sensors during ML training is straightforward by keeping only the sensor data of the sensors of interest out of the training process. The number of different models that need to be created to handle all possible sensor issues depends on the number of sensor inputs used in the sensor fusion portion of the virtual sensor.
[0034] If a virtual sensor detects that at least one of its core sensors is faulty, but the virtual sensor is still able to operate beyond a well-defined set of requirements, the virtual sensor should still report an error, preferably indicating the faulty sensor. If the virtual sensor is unable to provide any usable sensor output if the sensor of interest is faulty, the virtual sensor should report an error to the system itself when someone attempts to start the virtual sensor. This report should also indicate which sensor or sensors are faulty. Based on the error report, the system can initiate a replacement process for a component or electronic device, or initiate detailed instructions for a repair process that can be performed by the user or the equipment supplier or seller. For example, in some cases, a clogged microphone hole can be cleaned using special tools or a vacuuming device (such as a vacuum cleaner).
[0035] In summary, the present invention relates to an electronic device and a corresponding method thereof, wherein the electronic device comprises at least two sensors, wherein the at least two sensors communicate with a virtual sensor, for example, by wireless or electronic connection or as a software module, wherein the virtual sensor comprises a processing unit adapted to monitor device usage based on input from the sensors.
[0036] At least two sensors include activity sensors for sensing user activity associated with the device, such as proximity sensors and / or inertial (IMU) sensors, and the processing unit is configured to receive and analyze input from the sensors during use and provide and store a model representing typical use of the device. The device is also configured to compare new measurements received from the sensors with the model, so that a signal is provided if the new measurements from the sensors deviate by a predetermined limit from the measurements predicted by the model. The model can be redefined based on statistical information from previous use, factory settings, and / or based on user interaction and activity.
[0037] The model may include a typical situation in which at least one of the sensors fails, and the processor of the device is configured to recognize this situation and ignore the signal from the failed sensor.
[0038] The two sensors may include a proximity sensor for detecting whether a user is close to the device. Typically, the proximity sensor includes at least one acoustic transmitter and at least one acoustic receiver, the at least one acoustic transmitter and at least one acoustic receiver being configured to detect the presence of a user close to the device, including user activity (e.g., gestures), preferably within a threshold distance value, wherein the processing unit is configured to detect a failure of at least one of the sensor and the receiver if at least some of the measurement results deviate too much from the model.
[0039] Other types of sensors may be considered, such as inertial (IMU) sensors, cameras, radar, UWB sensors, pressure, light, touch controllers, etc.
[0040] Preferably, the device includes a user interface configured to: communicate detected faults to a user; and / or allow a user to indicate whether the signal from the virtual sensor is within normal use or device performance. The processing unit can then be configured to update the model according to the user's indication.
[0041] The model is generated based on a machine learning algorithm for detecting correlations between previous measurements of the sensors, and is dynamically updated with new measurements when they are within limits determined by the model. These limits may be the same as the limits defining the deviation, or they may be set separately. In the event that a new measurement from at least one of the sensors exceeds the determined limits, a fault may be reported.
[0042] The invention also relates to a method for evaluating the performance of an electronic device, wherein the device comprises at least two sensors, the at least two sensors providing measurements at a predetermined rate. The at least two sensors detect the presence of a user relative to the device, including activities such as gestures, for example, the at least two sensors are proximity sensors and inertial measurement sensors, and the at least two sensors are connected to or communicate with a virtual sensor, the virtual sensor comprising a processing unit adapted to monitor the use of the device based on input from the sensors.
[0043] The method comprises the following steps
[0044] - receiving measurement results from said sensor,
[0045] - comparing the measurements with a predetermined model representing typical use of the device, and
[0046] - providing a signal if a new measurement from the sensor deviates by a predetermined limit from the measurement predicted by the model.
[0047] The method may further comprise the step of: in the event that a measurement result of a sensor deviates from a measurement result predicted by the model in a corresponding situation, the processor ignoring the signal from the faulty sensor.
[0048] The method may further comprise the step of comparing the measurement result with a set of predetermined models, each predetermined model of the set of predetermined models being indicative of a selected sensor fault, in case the measurement result deviates from the predicted measurement result.
[0049] The model may be generated based on a machine learning algorithm for detecting correlations between previous measurements of the sensors, and the model may be dynamically updated with new measurements when they are within limits determined by the model. In the event that a new measurement from at least one of the sensors exceeds the determined limits, a fault may be reported, and the user or further analysis may consider whether the new measurement should be defined as within a normal usage model for the device.
Claims
1. An electronic device comprising at least two sensors, at least two of the sensors communicating with a virtual sensor, the virtual sensor comprising a processing unit adapted to monitor usage of the device based on input from the sensors, in, at least two of the sensors include activity sensors for sensing user activity associated with the device, wherein the processing unit is configured to receive and analyze input from the sensors during use and to provide and store a model representing typical use of the device, The device is further configured to compare new measurements received from the sensor with the model to provide a signal if the new measurements from the sensor deviate by a predetermined limit relative to the measurements predicted by the model.
2. The device according to claim 1, wherein: The model includes a condition where at least one of the sensors fails, and the device is configured to ignore signals from the failed sensor.
3. The electronic device according to claim 1, wherein: The two sensors include a proximity sensor for detecting whether a user is close to the device, wherein the proximity sensor includes at least one acoustic transmitter and at least one acoustic receiver, and the at least one acoustic transmitter and the at least one acoustic receiver are configured to detect the presence of a user close to the device, and the processing unit is configured to detect a fault in at least one of the transducer and the receiver.
4. The electronic device according to claim 1, wherein: The device also includes at least one of the following sensors: inertial (IMU) sensor, camera, radar, UWB sensor, pressure, light, touch controller.
5. The electronic device according to claim 1, wherein: The device comprises a user interface, wherein the user interface is configured to communicate a detected fault to a user or indicate whether a signal from the virtual sensor is within normal usage or device performance, and the processing unit is configured to update the model based on the indication from the user.
6. The electronic device according to claim 1, wherein: The model is generated based on a machine learning algorithm for detecting correlations between previous measurements of the sensor, and wherein the model is dynamically updated with new measurements when the new measurements are within limits determined by the model.
7. The electronic device according to claim 6, wherein: In the event that a new measurement from at least one of the sensors exceeds a determined limit, a fault is reported.
8. A method for evaluating the performance of an electronic device, the device comprising at least two sensors, at least two of the sensors providing measurements at a predetermined rate, at least two of the sensors detecting the presence of a user relative to the device, for example at least two of the sensors being a proximity sensor and an inertial measurement sensor, the sensors being connected to a virtual sensor, the virtual sensor comprising a processing unit adapted to monitor the use of the device based on input from the sensors, the method comprising the following steps: - receiving measurement results from said sensor, - comparing the measurements with a predetermined model representing typical use of the device, and - providing a signal if a new measurement from the sensor deviates by a predetermined limit from the measurement predicted by the model.
9. The method according to claim 8, comprising the steps of: If the measurement result of a sensor deviates from the measurement result predicted by the model in the respective case, the signal from the defective sensor is ignored.
10. The method according to claim 8, wherein: The method comprises the steps of comparing the measurement result with a set of predetermined models, each predetermined model of the set of predetermined models being indicative of a selected sensor fault, in case the measurement result deviates from a predicted measurement result.
11. The method according to claim 8, wherein: The apparatus comprises a user interface configured to receive an indication of a fault from the user, the method comprising the step of updating the model upon receipt of a fault report.
12. The method according to claim 8, wherein: The model is generated based on a machine learning algorithm for detecting correlations between previous measurements from the sensor, and wherein the model is dynamically updated with new measurements when the new measurements are within limits determined by the model.
13. The method according to claim 12, wherein: In the event that a new measurement from at least one of the sensors exceeds a determined limit, a fault is reported.
Citation Information
Patent Citations
Device performance monitoring system
NO20210589A
Signal processing
NO345005B1
Proximity detection
NO345509B1
Virtual sensor system
US20180306609A1
Sensor fusion
WO2020246897A1
Cited By
Robust virtual sensor
US12596185B2
