# US 2021/0148693 A1 · Filtering device, sensor device, filtering method and program

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

- Number: US 2021/0148693 A1
- Document ID: US20210148693A1
- Status: Published application
- Kind: A1
- Application number: 17/252,281
- Filed: 2018-07-06
- Published: 2021-05-20
- Earliest claimed: 2018-07-06
- Assignees: Mitsubishi Electric Corporation
- Applicants: Mitsubishi Electric Corporation
- Inventors: Daiki ATA; Kazuhiko NAKAMURA
- Web page: https://patentgrep.com/patent/US20210148693A1

## CPC

- G01B 11/026: {by measuring distance between sensor and object (G01B11/0608 takes precedence)}
- G01B 21/045: {Correction of measurements (G01B9/02055 takes precedence)}
- H03H 17/026: {Averaging filters}
- G01B: MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- H03H: IMPEDANCE NETWORKS, e.g. RESONANT CIRCUITS; RESONATORS (waveguides, resonators, lines or other devices of the waveguide type H01P)

## Abstract

A filtering device (20) includes an acquirer (21) and a filtering unit (22). The acquirer (21) acquires an input value that is repeatedly input. The filtering unit (22) obtains an output value by filtering for reduction of noise included in the input value. When a difference between the current input value and the past output value exceeds a first threshold, the filtering unit (22) obtains a new output value by weighting the current input value with a weight greater than a weight for obtaining the past output value.

## Claims

### Claim 1

A filtering device comprising:
an acquirer to acquire an input value that is repeatedly input; and
a filter to obtain an output value by filtering for reduction of noise included in the input value, wherein
when a difference between a current input value acquired by the acquirer and a past output value obtained by the filter exceeds a first threshold, the filter obtains a new output value by weighting the current input value with a weight greater than a weight for obtaining the past output value.

### Claim 2 (depends on 1)

The filtering device according to claim 1, wherein when the difference falls below a second threshold, the filter obtains a new output value by weighting the current input value with a weight smaller than the weight for obtaining the past output value.

### Claim 3 (depends on 1)

The filtering device according to claim 1, wherein the filter
calculates the output value by a moving average, and
when the difference exceeds the first threshold, increases the weight on the current input value by decreasing a count of the input values that are subjected to the moving average, and then calculates the new output value.

### Claim 4 (depends on 3)

The filtering device according to claim 3, wherein the weight of the current input value equals an inverse of the count of the input values that are subjected to the moving average.

### Claim 5 (depends on 1)

The filtering device according to claim 1, wherein the filter calculates the new output value as a weighted average of the current input value and the past output value.

### Claim 6 (depends on 1)

The filtering device according to claim 1, wherein the filter sets an initial value of the weight of the current input value to 1.

### Claim 7 (depends on 1)

The filtering device according to claim 1, wherein
the weight of the current input value is a value in a range of from 0 to 1, and
the filter sets the weight of the current input value to 1 when the difference exceeds the first threshold.

### Claim 8 (depends on 1)

The filtering device according to claim 1, wherein the filter increases the weight of the current input value when the difference consecutively exceeds the first threshold.

### Claim 9 (depends on 1)

The filtering device according to claim 1, wherein the first threshold value is defined based on a statistical value relating to the past input value.

### Claim 10 (depends on 1)

A sensor device comprising:
a measurer to repeatedly output a measurement value; and
the filtering device according to claim 1, that applies filtering for reduction of noise to the measurement value.

### Claim 11

A filtering method comprising:
acquiring an input value that is repeatedly input; and
applying filtering to reduce noise included in the input value to obtain an output value, wherein
in the applying, when a difference between a current input value acquired in the acquiring and a past output value obtained in the applying exceeds a first threshold, obtaining a new output value by weighting the current input value with a weight different from a weight for obtaining the past output value.

### Claim 12

A non-transitory computer-readable recording medium storing a program causing a computer to:
acquire an input value that is repeatedly input; and
apply filtering to reduce noise included in the input value to obtain an output value, wherein
when a difference between a current input value acquired in the acquiring and a past output value obtained in the applying exceeds a first threshold, the filtering includes obtaining a new output value by weighting the current input value with a weight different from a weight for obtaining the past output value.
