CoolFace
Apppublic

weirdish09/assistive-navigation-env

sourceHugging Faceupdated 6mo agoView on Hugging Face
1likes
App README

๐ŸŒ Assistive Navigation Decision Environment

๐Ÿš€ Overview

The Assistive Navigation Decision Environment is a real-world inspired OpenEnv environment designed to train and evaluate AI agents in making safe navigation decisions for visually impaired individuals.

This project is an extension of GUIDEX, an IoT-based smart mobility aid that uses camera input and edge processing to assist users in real-world navigation.


๐Ÿ’ก Motivation

Visually impaired individuals face challenges such as:

  • โ€”Detecting obstacles
  • โ€”Crossing roads safely
  • โ€”Navigating dynamic environments

While hardware systems (like GUIDEX) can capture environmental data, intelligent decision-making is still a critical component.

๐Ÿ‘‰ This environment focuses on training the decision-making intelligence (AI brain) behind such systems.


๐Ÿ”— Connection to GUIDEX

In the GUIDEX project:

  • โ€”ESP32-CAM captures real-world visuals
  • โ€”Computer vision + NLP convert scenes into descriptive text

In this environment:

  • โ€”We simulate that pipeline using structured text-based observations
  • โ€”The agent learns to make navigation decisions based on these inputs

This abstraction allows:

  • โ€”Faster training
  • โ€”Controlled evaluation
  • โ€”Reproducible benchmarks

โš™๏ธ Environment Design

๐Ÿงพ Observation Space

The agent receives a textual description of the environment, for example:

"You are standing at a crosswalk. The signal is red. A car is approaching from the left."

This simulates processed perception from sensors/camera systems.


๐ŸŽฎ Action Space

The agent can choose from the following actions:

  • โ€”MOVE_FORWARD
  • โ€”STOP
  • โ€”TURN_LEFT
  • โ€”TURN_RIGHT
  • โ€”WAIT

๐Ÿ” Core API (OpenEnv)

The environment follows the OpenEnv standard:

  • โ€”reset() โ†’ initializes environment
  • โ€”step(action) โ†’ returns:
  • โ€”observation
  • โ€”reward
  • โ€”done
  • โ€”info
  • โ€”state() โ†’ returns current state

๐ŸŽฏ Tasks & Difficulty Levels

๐ŸŸข Easy Task โ€” Obstacle Awareness

  • โ€”Detect immediate danger
  • โ€”Example: obstacle ahead โ†’ STOP

๐ŸŸก Medium Task โ€” Directional Decision

  • โ€”Choose correct path
  • โ€”Example: blocked path โ†’ TURN_LEFT

๐Ÿ”ด Hard Task โ€” Multi-step Navigation

  • โ€”Handle sequences of decisions
  • โ€”Example:
  • โ€”Wait for green signal
  • โ€”Cross road safely
  • โ€”Avoid moving obstacles

๐Ÿงฎ Reward Function

The reward system provides continuous feedback:

  • โ€”โœ… Safe action โ†’ +0.5
  • โ€”โœ… Correct navigation โ†’ +0.3
  • โ€”โŒ Unsafe action โ†’ -1.0
  • โ€”๐ŸŽฏ Goal reached โ†’ +1.0

This ensures:

  • โ€”Learning from partial progress
  • โ€”Penalizing risky decisions
  • โ€”Encouraging optimal behavior

๐Ÿค– Baseline Inference

The environment includes a baseline agent (inference.py) that:

  • โ€”Uses OpenAI-compatible API
  • โ€”Interacts with the environment
  • โ€”Produces structured logs:
[START] ...
[STEP] ...
[END] ...

๐Ÿณ Setup & Installation

๐Ÿ”ง Prerequisites

  • โ€”Docker
  • โ€”Python 3.9+
  • โ€”openenv-core

๐Ÿ“ฆ Install dependencies

pip install openenv-core openai

๐Ÿณ Run with Docker

docker build -t assistive-env .
docker run assistive-env

โ–ถ๏ธ Run Validation

openenv validate

๐ŸŒ Deployment

This environment is deployed on Hugging Face Spaces and responds to:

POST /reset

๐Ÿ“Š Evaluation Criteria

Agents are evaluated based on:

  • โ€”Safety of decisions
  • โ€”Task completion
  • โ€”Efficiency of navigation
  • โ€”Reward accumulation

๐ŸŒŸ Key Features

  • โ€”Real-world assistive navigation simulation
  • โ€”Multi-level tasks (easy โ†’ hard)
  • โ€”Continuous reward shaping
  • โ€”OpenEnv compliant
  • โ€”Reproducible evaluation

๐Ÿš€ Future Work

  • โ€”Integration with real-time camera input (ESP32-CAM)
  • โ€”Multimodal inputs (vision + audio)
  • โ€”Reinforcement learning training pipelines
  • โ€”Deployment on wearable assistive devices

๐Ÿ† Conclusion

The Assistive Navigation Decision Environment bridges the gap between AI decision-making and real-world accessibility challenges, providing a scalable platform for training intelligent agents that can improve independent mobility for visually impaired individuals.