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