← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

Tutorial on Training a Self-Parking Car Using a Genetic Algorithm

🔄 Updated 4d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Genetic algorithm trains a simulated car for self-parking.
  • Car's 'brain' evolves to control movement based on sensors.
  • Simulator allows training from scratch and adjusting genetic parameters.
  • Implementation uses TypeScript for the genetic algorithm.

Introduction to Self-Parking with Genetic Algorithms

This tutorial outlines the process of training a simulated car to self-park using a genetic algorithm. The core idea involves evolving a car's 'genome' to optimize its parking behavior over successive generations.

The Evolution Process

Initially, cars are created with random genomes, leading to uncoordinated movements. Through generations, the genetic algorithm refines these genomes, allowing cars to learn and improve their parking capabilities. By approximately the 40th generation, cars begin to approach and position themselves closer to the parking spot, demonstrating a clear learning curve.

Simulator Features and Implementation

A web-based simulator is provided, enabling users to observe the evolution process, train cars from scratch, adjust genetic parameters, and view trained cars in action. Users can also manually attempt to park a car within the simulator. The genetic algorithm itself is implemented in TypeScript, with the source code available for review.

Car Components and Genetic Evolution

To facilitate self-parking, the simulated car is equipped with 'muscles' (engine, steering wheel) for movement and 'eyes' (sensors) for obstacle detection. A 'brain' function, which maps sensor inputs to movement outputs, is then evolved using the genetic algorithm. This process optimizes the 180-bit 'car genome' to achieve efficient parking maneuvers.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~34 min · 27 stories · Oct 02

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

This article provides a tutorial on implementing a self-parking car simulation using a genetic algorithm. It details how to evolve car genomes to control movement based on sensor input, demonstrating the learning process over generations.