# US 2021/0082212 A1 · Electronic device for efficiently saving historic data of ambient sensors and associated method

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0082212 A1
- Document ID: US20210082212A1
- Status: Published application
- Kind: A1
- Application number: 17/012,495
- Filed: 2020-09-04
- Published: 2021-03-18
- Earliest claimed: 2019-09-12
- Assignees: STMicroelectronics S.r.l.
- Applicants: STMICROELECTRONICS S.r.l.
- Inventors: Marco CASTELLANO; Marco LEO
- Web page: https://patentgrep.com/patent/US20210082212A1

## CPC

- G07C 5/085: {using electronic data carriers}
- H03M 7/3079: {Context modeling}
- B60W 50/06: Improving the dynamic response of the control system, e.g. improving the speed of regulation or avoiding hunting or overshoot
- G06N 20/00: Machine learning
- H03M 7/30: Compression (speech analysis-synthesis for redundancy reduction G10L19/00; for image communication H04N); Expansion; Suppression of unnecessary data, e.g. redundancy reduction
- G07C: TIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
- H03M: CODING; DECODING; CODE CONVERSION IN GENERAL (using fluidic means F15C4/00; optical analogue/digital converters G02F7/00; coding, decoding or code conversion, specially adapted for particular applications, see the relevant subclasses, e.g. G01D, G01R, G06F, G06T, G09G, G10L, G11B, G11C, H04B, H04L, H04M, H04N; ciphering or deciphering for cryptography or other purposes involving the need for secrecy G09C)
- B60W: CONJOINT CONTROL OF VEHICLE SUB-UNITS OF DIFFERENT TYPE OR DIFFERENT FUNCTION; CONTROL SYSTEMS SPECIALLY ADAPTED FOR HYBRID VEHICLES; ROAD VEHICLE DRIVE CONTROL SYSTEMS FOR PURPOSES NOT RELATED TO THE CONTROL OF A PARTICULAR SUB-UNIT
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A device includes sensing circuitry, compression circuitry, and a memory. The sensing circuitry, in operation, generates sensor data. The compression circuitry is coupled to the sensing circuitry, and, in operation, determines environmental contexts based on variation rates of sensor data and compresses sensor data based on determined environmental contexts. The compressed data is stored in the memory.

## Claims

### Claim 1

An electronic device, comprising:
data acquisition circuitry configured to receive sensor data;
context evaluation circuitry configured to determine an environmental context out of a plurality of environmental contexts based on a variation rate of the sensor data; and
data compression circuitry configured to apply compression to the received sensor data based on the determined environmental context.

### Claim 2 (depends on 1)

The electronic device according to claim 1, wherein the context evaluation circuitry is configured to extract data features of a statistical and/or geometrical type, compare extracted data features with feature thresholds, generate context information based on outcomes of the comparisons, and determine the environmental context based on the context information.

### Claim 3 (depends on 2)

The electronic device according to claim 2, wherein the data features and the feature thresholds are determined by a machine learning tool.

### Claim 4 (depends on 2)

The electronic device of claim 2, wherein the data features include mean, variance, energy, zero crossing and peak value.

### Claim 5 (depends on 1)

The electronic device according to claim 1, wherein the plurality of environmental contexts include a stationary device context, a device carried by a stationary user context, a device carried by a walking user context, a device carried by a bike riding user context, and a device in motion on a motor vehicle context.

### Claim 6 (depends on 1)

The electronic device according to claim 1, wherein the compression is based upon delta coding, delta-square coding, or combinations thereof.

### Claim 7 (depends on 1)

The electronic device according to claim 1, wherein the compression is based on a compression function f(x(i)):
f(x(i))=a·x(i)+b·x(i−1)+c·x(i−2)+d·x(i−3)+e·x(i−4),
where f(x(i)) is a compressed datum, a, b, c, d, and e are parameters depending upon the determined environmental context, and x(i−j), with j=1 . . . 4, is a previous datum acquired in a j-th previous iteration.

### Claim 8 (depends on 7)

The electronic device according to claim 7, wherein the data compression circuitry verifies whether the compressed datum (f(x(i))) and at least one previous compressed datum (f(x(i−j))) are lower than one or more thresholds and sends the compressed datum to the memory element, together with the context information.

### Claim 9 (depends on 1)

The electronic device according to claim 1, comprising a context dependent filter coupled to the data acquisition circuitry and to the context evaluation circuitry, the context dependent filter being configured to filter the data supplied by the data acquisition circuit based on the determined environmental context and generate filtered data supplied to the data compression circuitry.

### Claim 10 (depends on 9)

The electronic device according to claim 9, wherein the context dependent filter is a band-pass filter.

### Claim 11 (depends on 9)

The electronic device according to claim 9, comprising a data compressibility verification circuit, coupled to the context dependent filter and configured to compare the filtered data with a data filtering threshold and supply the filtered data to the data compression circuitry when the filtered data are lower than the data-filtering threshold.

### Claim 12 (depends on 1)

The electronic device according to claim 1, comprising:
stored data acquisition circuitry;
read context-identifying circuitry, coupled to the stored data acquisition circuitry;
decompression and defiltering circuitry, coupled to the stored data acquisition circuitry and to the read context-identifying circuitry; and
an output, coupled to the stored data acquisition circuitry and to the read context-identifying circuitry, wherein
the stored data acquisition circuitry is configured to acquire read compressed data;
the read context-identify circuitry is configured to search for a context tag in the stored data and send the acquired stored data and the context tag to the decompression and defiltering circuitry upon tag detection and send the stored data to the output, in absence of tag; and
the decompression and defiltering circuitry is configured to decompress and inverse filter the stored data based on the context tag and to supply decompressed and inverse-filtered data to the output.

### Claim 13 (depends on 1)

The electronic device according to claim 1, comprising at least one sensor integrated in the electronic device, wherein the at least one sensor is chosen among a group of sensors including a physical quantity sensor; a position sensor; a sensor of derived signals; a motion detector ; a sensor of environmental quantities; a MEMS sensor; and combinations thereof.

### Claim 14 (depends on 1)

The electronic device according to claim 1, comprising a memory integrated in the electronic device.

### Claim 15

A system, comprising:
sensing circuitry, which, in operation, generates sensor data; and
compression circuitry, coupled to the sensing circuitry, wherein the compression circuitry, in operation,
determines environmental contexts based on variation rates of sensor data; and
compresses sensor data based on determined environmental contexts.

### Claim 16 (depends on 15)

The system of claim 15, wherein the compression circuitry, in operation, extracts data features from sensor data, compares extracted data features with feature thresholds, generates context information based on the comparisons, and determines the environmental contexts based on the context information.

### Claim 17 (depends on 15)

The system of claim 15, comprising a memory, wherein the compression circuitry, in operation, stores sensor data in the memory, the storing including storing compressed data and uncompressed data in the memory.

### Claim 18 (depends on 17)

The system of claim 17, wherein storing compressed data includes storing tags indicative of environmental contexts associated with the compressed data and the compression circuitry, in operation reads stored sensor data, the reading including detecting context tags.

### Claim 19 (depends on 15)

The system of claim 15, comprising an application processor, which, in operation, implements one or more of a smartphone; a smartwatch; a PDA; a portable computer; a mobile phone; a tablet; a digital audio player; a photo or video camera, a palmtop, a portable or wearable electronic apparatus; or an inertial navigation apparatus.

### Claim 20

A method, comprising:
acquiring sensor data;
determining an environmental context of a plurality of environmental contexts based on a non-constant variation rate of the sensor data;
compressing the sensor data based on the determined environmental context; and
storing the compressed data in a memory.

### Claim 21 (depends on 20)

The method according to claim 20, wherein determining the environmental context comprises extracting statistical data features, geometrical data features, or statistical data features and geometrical data features, comparing the extracted data features with feature thresholds and generating context information based on the comparison between the extracted data features and the feature thresholds.

### Claim 22 (depends on 21)

The method according to claim 21, comprising:
acquiring a plurality of configuration data in the plurality of environmental contexts; and
determining features of the configuration data and feature thresholds based on the environmental context using a machine learning tool.

### Claim 23 (depends on 21)

The method according to claim 21, comprising:
filtering the acquired sensor data using a filter selected from a plurality of context dependent filters, the filter being selected based on the context information;
comparing the filtered data with one or more filtering thresholds;
compressing the filtered data based on the comparing of the filtered data to the one or more filtering thresholds.
