Skip to content

About

Robot house sensor based Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligenceroject

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligence

License: MIT Python 3.9+ Paper

Official PyTorch implementation of the paper "Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligence".

Introduction

In the era of Active Ambient Intelligence (AmI) and Service Robotics, traditional localization methods struggle with non-stationary distribution shifts and long-tail sparse events across heterogeneous sensor networks.

This project introduces a Manifold-Aligned Tabular Foundation Model that bridges the gap between pre-trained priors and local deployment dynamics. By framing localization as a Bayesian Meta-Learning problem, our framework aligns the retrieval space with the task manifold to maximize context relevance.

Key Features

  • Manifold-Aligned Retrieval: Uses Neighborhood Components Analysis (NCA) to learn a differentiable metric space that clusters semantically similar states, preventing "metric collapse" in high-dimensional spaces.
  • Hybrid Context Contextualization:
    • Temporal Anchor: Preserves local physical continuity.
    • Semantic Spark: Recalls diverse, long-tail historical events via manifold-aligned search.
  • SOTA Performance: Verified on the real-world Robot House dataset, outperforming BiLSTM,Random Forest and modern Deep Learning baselines.
  • Privacy-Preserving: Operates purely on ambient binary sensors (PIR/Door), ensuring zero visual intrusion.

Installation

# Clone the repository
git clone https://github.com/baobingzhang/Retrieval-Augmented-In-Context-Learning.git
cd Retrieval-Augmented-In-Context-Learning

# Install dependencies
pip install -r requirements.txt

Quick Start

  1. Prepare Data: Place your sensor data (.xlsx) in the data/ folder.

    • Note: Data should have sensor columns and a 'Location' target column.
  2. Run Inference:

    python run_localization_hybrid.py
  3. View Results: Performance metrics will be saved to results.txt.

Project Structure

.
├── run_localization_hybrid.py   # Main entry point (Hybrid Retrieval Strategy)
├── requirements.txt             # Dependency definitions
├── LICENSE                      # MIT License
└── README.md                    # Project documentation

Citation

If you find this work useful, please cite our paper:

@ARTICLE{11643403,
  author={Zhang, Baobing and Rafique, Sehrish and Alashti, Mohamad Reza Shahabian and Meethal, Shadiya Alingal and Velmurugan, Vignesh and Holthaus, Patrick and Lakatos, Gabriella and Dickinson, Angela and Amirabdollahian, Farshid},
  journal={IEEE Internet of Things Journal},
  title={Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligence},
  year={2026},
  volume={},
  number={},
  pages={1-1},
  keywords={Modeling;Learning (artificial intelligence);Context;Internet of Things;Image sensors;Measurement;Robots;Streams;Conferences;Educational institutions;Internet of Things;Indoor localisation;Soft sensing;Ambient sensors;Foundation models;In-context learning;Metric Learning;Smart Homes},
  doi={10.1109/JIOT.2026.3720795}}

Plain text (IEEE style):

B. Zhang et al., "Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligence," in IEEE Internet of Things Journal, doi: 10.1109/JIOT.2026.3720795.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Robot house sensor based Manifold-Aligned In-Context Learning: Hybrid Retrieval-Augmented Tabular Foundation Models for Ambient Intelligenceroject

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages