This article provides a detailed explanation of a state observer that eliminates the influence of outliers in sensor outputs using a median-based selection from multiple estimation candidates. Related articles, related papers, and MATLAB links are placed at the bottom.
Author: Hiroshi Okajima, Associate Professor, Kumamoto University, Japan — 20 years of control engineering research
This article is based on the following paper.
- Okajima, Y. Kaneda and N. Matsunaga, State estimation method using median of multiple candidates for observation signals including outliers, SICE Journal of Control, Measurement, and System Integration, Vol. 14, No. 1, pp. 257–267 (2021) (Open Access)
This paper is co-work with Dr. Yasuaki Kaneda (Tokyo Metropolitan Industrial Technology Research Institute) and Prof. Nobutomo Matsunaga (Professor, Kumamoto University).
Contents
- Why Outlier-Robust State Estimation Matters
- Plant Model and Outlier Formulation
- Observation Frequency of Outliers
- Median of Candidate Vectors (MCV) Observer
- Evaluating Outlier Contamination via ye(i)
- MCV Observer Algorithm
- Observer Gain Design via LMI (Theorem 4.2)
- Weighted Median Extension
- Numerical Examples
- Connections to Related Research
- MATLAB Code
- Related Articles and Videos
- Paper Information
Why Outlier-Robust State Estimation Matters
In control systems, state observers estimate internal states from measured inputs and outputs. However, in practice, sensor outputs may contain outliers — values that are drastically different from the true signal. Outliers arise from various sources:
- In visual sensors, dramatic changes in luminance or communication obstruction by moving objects can cause temporary anomalous readings.
- In networked control systems, packet loss causes missing data, which can be regarded as a type of outlier.
- In cyber-physical systems, data tampering due to security breaches can introduce arbitrary erroneous values.
When outliers enter a conventional state observer (e.g., a Luenberger observer), the estimation accuracy degrades dramatically, because the observer directly uses the corrupted measurement for correction. Even if the outlier is temporary, its influence propagates through the observer dynamics and can persist over time.
This paper proposes the MCV (Median of Candidate Vectors) observer, a novel state observer that eliminates the influence of outliers by creating multiple candidates of the estimated state along the time axis and selecting the appropriate one via a median operation. The observer gains are designed using LMI (Linear Matrix Inequality) optimization based on a robust invariant set analysis.
Plant Model and Outlier Formulation
Plant
Consider the discrete-time LTI system:
where is the state of order
,
is the control input,
is the observed output,
and
are the process noise and sensing noise, respectively. The observability of the pair
is assumed.
The disturbances are assumed to be peak-bounded: the maximum absolute values of each element in and
are less than or equal to 1.
Outlier Signal
The term characterizes the outliers. Under normal conditions,
. When an outlier occurs at time
, the magnitude of
has no size limit — it can be arbitrarily large. This formulation also covers packet loss by setting
, which makes
.
Observation Frequency of Outliers
The paper characterizes outlier frequency using two integers and
:
- For any time interval
, the maximum number of outliers appearing is
.
For example, if outliers occur at most once every 10 time steps, then and
. The key assumption is:
This means outliers must occur sparsely relative to the time window. This condition ensures that, among a sufficient number of estimation candidates, the majority are not contaminated by outliers.
Median of Candidate Vectors (MCV) Observer
Core Idea
A standard state observer uses the observation at the current time to update the state estimate. If
is corrupted by an outlier, the estimate is immediately degraded. The MCV observer overcomes this by creating multiple candidates of the estimated state, each using the observation from a different past time. Among these candidates, those not affected by outliers will provide accurate estimates. The median operation then selects a candidate that is not influenced by the outlier.
Candidate State Estimates
The -th candidate of the estimated state at time
is defined as:
where is the estimated state at time
, and
is the observer gain for the
-th candidate. Each candidate uses only one observation
from a different time instant.
For , this reduces to the standard Luenberger observer structure:
For , the candidates use observations further back in time and propagate the state forward using the plant model in a feedforward manner.
The number of candidates is chosen to satisfy:
This guarantees that among the candidates, the number affected by outliers is strictly less than half, so the median selects a non-contaminated candidate.
Evaluating Outlier Contamination via ye(i)
To determine which candidates are affected by outliers, the following evaluation signal is defined:
This signal can be rewritten as:
where is the estimation error. When an outlier occurs, the
term dominates, making the magnitude of
much larger than in outlier-free cases. By taking the median of
over all candidates, the index
corresponding to a non-contaminated candidate is identified.
MCV Observer Algorithm
Using a weighting vector , the MCV observer algorithm is:
Algorithm (MCV Observer):
- Calculate
for all
and compute
.
- Find
as the index corresponding to the median of
over
.
- Set
and proceed to the next step.
The weighting vector should be chosen so that the outlier component is not canceled in the product
.
Observer Gain Design via LMI (Theorem 4.2)
The observer gains are designed based on a robust invariant ellipsoid approach. The error system for each candidate is:
With the evaluation output , the design goal is to minimize the upper bound
such that the evaluation signal satisfies the peak-bounded condition for all time.
Theorem 4.2: Assuming and
are peak-bounded by 1, if there exist
, scalars
, and
satisfying certain matrix inequality conditions for all
, then the evaluation signal of the MCV observer satisfies:
For the explicit matrix inequality conditions, see Theorem 4.2 (Eqs. (32)–(33)) in the paper.
Design Problem (Problem 4.1)
By introducing the change of variables , the design problem becomes: minimize
subject to LMI conditions involving
,
, and fixed scalar parameters
. This is a standard SDP (semidefinite programming) problem when
are fixed, and the optimal
can be found by a hyperplane search within
. The observer gains are recovered as
.
Weighted Median Extension
The paper also extends the MCV observer to use a weighted median instead of a standard median. In the weighted median, nonnegative integer weights are assigned to each candidate, and candidates with larger weights are given more influence in the selection.
The condition on for
is:
For example, with , the weight
satisfies this condition.
To design appropriate weights, the paper evaluates each candidate individually using Problem 4.2, which assigns a separate Lyapunov matrix to each candidate and computes the individual performance bound
. Candidates with smaller
(i.e., better estimation performance) are assigned larger weights. In general, candidates with smaller index
tend to have better performance because they are less affected by accumulated process noise.
Numerical Examples
The paper demonstrates the MCV observer on a 3rd-order, 2-output plant. The plant matrices are given in Eqs. (39)–(40) of the paper, with a sinusoidal test input .
Effect of MCV Observer
With ,
, and
, the MCV observer successfully eliminates the influence of periodic outliers in the sensor output. The traditional Luenberger observer exhibits large estimation errors when outliers occur, while the MCV observer maintains accurate estimation throughout.
The achieved performance bound is , guaranteeing that the evaluation signal satisfies the peak bound for all time.
Effect of Number of Candidates
| N | |
|---|---|
| 1 | 0.7511 |
| 2 | 1.1077 |
| 3 | 1.4064 |
| 4 | 1.6053 |
As increases, the performance bound
becomes larger. This shows that it is better to select a small
under the constraint of the condition
. A smaller
means fewer candidates are needed, which reduces the conservatism introduced by ensuring robustness across all candidates.
Individual Candidate Performance
| i | |
|---|---|
| 0 | 0.8014 |
| 1 | 1.1084 |
| 2 | 1.4070 |
| 3 | 1.6053 |
Candidates with smaller index (closer to the current time) achieve better individual performance, confirming that using the most recent observation leads to the best estimate when no outlier is present.
Effect of Weighted Median
Using the weighted median with , the selection frequency of the best candidate
increases from 121 (standard median) to 240 (weighted median) out of a total selection count. The weighted median achieves slightly better performance because the candidate with the best estimation accuracy is selected more frequently.
Connections to Related Research
Multi-Rate State Observer — H. Okajima, Y. Hosoe and T. Hagiwara, State Observer Under Multi-Rate Sensing Environment and Its Design Using l2-Induced Norm, IEEE Access (2023). Addresses state estimation when sensors operate at different sampling rates, using periodically time-varying observer gains optimized via LMI. The multi-rate observer and the MCV observer address complementary challenges in multi-sensor systems.
Observer-Based Feedback Control for Multi-Rate Systems — H. Okajima, K. Arinaga and A. Hayashida, Design of observer-based feedback controller for multi-rate systems with various sampling periods using cyclic reformulation, IEEE ACCESS (2023). Extends to a complete observer-based feedback controller for systems where both sensors and actuators operate at different rates.
Model Error Compensator (MEC) — The MCV observer can be combined with the Model Error Compensator to achieve robust control in environments where both model errors and sensor outliers exist.
Navigation System Using MCV Observer — N. Matsunaga, I. Yamamoto and H. Okajima, Navigation System for Personal Mobility Vehicles Following a Cluster of Pedestrians in a Corridor Using Median of Candidate Vectors Observer, Journal of Robotics and Mechatronics, Vol. 35, pp. 1562–1572 (2023). Applies the MCV observer to remove outliers in pedestrian tracking for personal mobility vehicle navigation.
MATLAB Code
- MATLAB File Exchange: Outlier-Robust State Estimator: JCMSI 2021
- GitHub: MATLAB State Observer (MCV Observer)
- GitHub (LMI basics): MATLAB Fundamental Control LMI
Related Articles and Videos
Blog Articles (blog.control-theory.com)
- State Observer and State Estimation: A Comprehensive Guide
- State Estimation Unaffected by Sensor Outliers: MCV Approach
- State Observer: Understanding the Basic Mechanism
- Model Error Compensator (MEC)
- Linear Matrix Inequalities (LMIs) and Controller Design
- Stability of Systems Represented by State Equations
- Discretization of Continuous-Time Control Systems
Research Web Pages (www.control-theory.com)
Video
Paper Information
- Okajima, Y. Kaneda and N. Matsunaga, "State estimation method using median of multiple candidates for observation signals including outliers", SICE Journal of Control, Measurement, and System Integration, Vol. 14, No. 1, pp. 257–267, 2021. DOI: 10.1080/18824889.2021.1985702 (Open Access). MATLAB Code
Co-authors: Yasuaki Kaneda (Tokyo Metropolitan Industrial Technology Research Institute), Nobutomo Matsunaga (Professor, Kumamoto University)
Earlier Japanese papers:
- Okajima, Y. Kaneda and N. Matsunaga, "State Estimation by Observer Using Median Operation for Observed Output with Outliers," Proceedings of the SICE Annual Conference 2019, pp. 877–882 (2019)
- Okajima, "状態のロバスト不変集合を用いた外れ値除去機能を有するMCVオブザーバの解析とオブザーバゲイン設計," 計測自動制御学会論文集, Vol. 55, No. 12, pp. 823–829 (2019)
Self-Introduction
Hiroshi Okajima — Associate Professor, Graduate School of Science and Technology, Kumamoto University. Member of SICE, ISCIE, and IEEE.
If you found this article helpful, please consider bookmarking or sharing it.