Hyungsuk Lee

Research

Context-aware anomaly detection in single-person households

Turning six low-density ambient sensors into a person's daily routine, and flagging the days that are unusual for that person, with no cameras or wearables. Per-person context changed which days were flagged, but a simpler global baseline scored higher on hand-labeled days.

Undergraduate research assistant. CSDC Lab, Dongguk University. Advisor: Prof. Junho Jeong. Aug 2025 – present.

Data
20 single-person households in a community care program in Jeju, with six sensors: door contact, PIR, radar, respiration, heart rate, and illuminance. Collected by the program operator with prior consent; secondary analysis of de-identified data, exempted by the Dongguk University IRB.
Models
Per-person thresholds from K-Means and the interquartile range, rules for outing and sleep, and an Isolation Forest for each of a person's routine groups, compared with one Isolation Forest over all days.
Outputs
Three papers (IEEE KST 2026, Journal of KIIS, KIIS 2025 Autumn Conference, which received an Outstanding Paper Award), a registered computer program, and code.

More and more older adults live alone, and isolation can go unnoticed for days. Cameras raise privacy concerns, and wearables have to be charged and are often abandoned. Fixed ambient sensors avoid both problems, but their data is messy: batteries run out, transmissions drop, and a door can open while someone is still at home.

Whether a day is unusual also depends on the person. Staying in all day says little about someone who rarely goes out, and much more about someone who goes out every morning.

The question was whether six such sensors could still give a reliable picture of a person’s day, and point out the days that were unusual for that person.

Pipeline overview: data collection, behavior modeling, model training, results
Figure 1. The system from raw sensor logs (left) to per-model detection logs (right). The digital-twin block at the bottom right is planned work, not a result.

One timeline from six sensors

The sensors report in different ways. Door contacts and PIR fire as sparse events, illuminance is a state that holds until it changes, and respiration and heart rate arrive as vital-sign readings. I put all six on one 1-minute timeline. States are carried forward and sparse events are zero-filled, but missing data stays missing (NaN). That keeps “the sensor was not reporting” apart from “nothing happened” (0), two cases that look the same once both are written as zero.

Thresholds that fit each person

What counts as active or dark differs from home to home. For each participant, K-Means splits activity into active and inactive (k = 2) and illuminance into dark, medium, and bright (k = 3), and the interquartile range sets that person’s normal heart rate and respiration. The thresholds differed by more than 100× between participants, so no single fixed threshold could have worked.

Outing, sleep, and the rest of the day

Rules then turn each day into three contexts. An outing is a door open–close pair during which no activity or vital sign is detected for at least 95% of the interval. Sleep is dark and inactive; fragments less than 20 minutes apart are merged, and vital signs tell the bedroom from the living room. The rest of the day is indoor activity.

These rules separate states that look the same in the raw signals. A long absence and a long sleep both show a quiet house, and missing data and a day without events both show no readings.

Unusual for whom?

To score days, I first group each participant’s days with K-Means (k = 3) into that person’s usual patterns, and then fit a separate Isolation Forest within each group. The comparison is a single Isolation Forest over all days (Global IF).

Context changes the answer. Across all 20 participants, the two models agreed on only 41.7% of their top-3 anomaly days. Where they disagreed, the context-aware model flagged days that were ordinary in absolute terms but unusual for that person, such as a long outing by someone who rarely goes out.

The simpler baseline scored higher

On 442 days that we labeled by hand (418 normal, 24 anomalous), Global IF was better overall:

Model Recall Precision F1 AUC
Context-aware (K-Means + IF) 0.83 0.13 0.23 0.83
Global IF 0.79 0.19 0.31 0.89

From Table 4 of the Journal of KIIS paper.

What this means for a monitoring system

The two models answer different questions. Global IF asks whether a day is unusual among all days, and the context-aware model asks whether it is unusual within that person’s usual pattern. On the hand-labeled days the first question was answered better, but the second still caught 4 of the 24 anomalous days that Global IF missed. Here, per-person context did not replace a global baseline; it found a different set of days.

Limitations

Both models stay at F1 0.2–0.3. With a few hundred days per person and no ground truth, unsupervised detection is hard, and a fair comparison showed that the global baseline is strong. The labels also come from our own review, not from what actually happened to the residents. A day without an outing may be rest rather than risk, and checking that would need surveys or diaries.

Beyond the papers

The registered program goes one step further than the papers. It includes a retraining pipeline that augments clean normal days with the contrastive augmentation of CTAD (Kim et al., IEEE TKDE 2024), to reduce overfitting when each person has few days of data. The planned next step is a digital twin of the home that generates synthetic scenarios for training and tuning (Figure 1, bottom right).


Setup

The data come from 20 single-person households in a community care program in Jeju, collected by the program operator with prior consent. We analyzed de-identified data, and the Dongguk University IRB exempted this secondary analysis. The six sensors are door contact, PIR, radar, respiration, heart rate, and illuminance. The evaluation uses 442 days that we labeled by hand, 418 normal and 24 anomalous. The pipeline is written in Python with pandas and scikit-learn.

Papers

The KST paper covers the routine extraction, the first three sections above. The KIIS conference paper and its extended journal version cover the anomaly detection; the results above are from the journal version.

Smart Home Anomaly Detection using K-Means Dynamic Threshold and Isolation Forest based on Multi-Sensor Data

Hyungsuk Lee, Haneum Lee, In-Nea Wang, Junho Jeong

Journal of Korean Institute of Intelligent Systems 36(5):411–419, 2026. In Korean.

doi

Daily Life Pattern Extraction in Single Person Households

Hyungsuk Lee, In-Nea Wang, Junho Jeong

International Conference on Knowledge and Smart Technology (KST 2026), IEEE, pp. 350–355

doi

Smart Home Anomaly Detection using K-Means Dynamic Threshold and Isolation Forest based on Multi-Sensor Data

Hyungsuk Lee*, Yewon Kim*, In-Nea Wang, Junho Jeong (*equal contribution)

Proceedings of KIIS Autumn Conference 2025, 35(2):286–287. In Korean. Outstanding Paper Award.

Code

The code is on GitHub. The system, including the retraining pipeline, is also registered as a computer program with the Korea Copyright Commission (Reg. No. C-2026-049828, Oct. 2026; copyright held by Dongguk University Industry-Academic Cooperation Foundation).

All research