Skip to content

This project implements a smart parking agent that navigates in a grid-based parking environment with dynamic obstacles and valid parking slots, using a Deep Q-Network (DQN) model. The goal is to reach an optimal parking spot while avoiding obstacles — simulating a real-world intelligent parking scenario.

Notifications You must be signed in to change notification settings

Rashiin/Smart-Parking-RL-Intelligent-Parking-Agent-using-Deep-Reinforcement-Learning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Smart Parking RL - Deep Reinforcement Learning for Intelligent Parking

🚗 Overview

Smart Parking RL is a deep reinforcement learning project that simulates an intelligent parking agent navigating a grid environment with obstacles and designated parking spots. The agent is trained using Deep Q-Learning (DQN) to find the shortest and safest path to park optimally.


👤 Author

Rashin Gholijani Farahani
MSc Computer Engineering Applicant - Passionate about AI & Mobility Solutions


🔍 Project Objectives

  • Design a realistic, grid-based parking environment
  • Implement a Deep Q-Network (DQN) to train a car agent
  • Reward the agent for reaching valid parking spots
  • Penalize for collisions or invalid parking
  • Compare DQN vs BFS baseline path planning
  • Visualize agent behavior via pygame and matplotlib

🧠 Core Features

  • ✅ Valid parking spot detection
  • ⛔ Obstacle-aware navigation
  • 🧠 DQN-based learning using PyTorch
  • 🔍 BFS path as baseline strategy
  • 🎮 Real-time animation with pygame
  • 📊 Grid-path visualization with matplotlib

📁 Project Structure

SmartParkingRL/
├── dqn_training.ipynb          # RL agent training (PyTorch DQN)
├── smart_parking_env.ipynb     # Custom parking environment
├── Smart Parking RL.ipynb      # Integrated final notebook

🛠️ Dependencies

  • Python 3.9+
  • NumPy
  • PyTorch
  • Matplotlib
  • Pygame

📊 Result Example

  • Green = Destination Parking
  • Yellow = Valid Slots
  • Red = Obstacles
  • Blue = Agent Path

🤝 Connect

About

This project implements a smart parking agent that navigates in a grid-based parking environment with dynamic obstacles and valid parking slots, using a Deep Q-Network (DQN) model. The goal is to reach an optimal parking spot while avoiding obstacles — simulating a real-world intelligent parking scenario.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published