Skip to content

A repo to show kids what machine learning learns and can recognise

Notifications You must be signed in to change notification settings

rmeertens/selfdriving_car_ai_for_kids

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Teaching kids about self-driving cars

For the success of self-driving cars its important to educate children about them. This is why autonomous intelligent driving (AID) decided to open its doors to children on the October 3 2019 (https://www.wdrmaus.de/tuer_oeffner_tag/2019/index.php5?detail=705854).

For this day I decided to make a simple educational tool to show children in an interactive way what the current state of the art is in computer vison. It's a simple neural network (yolo v3) which can recognise quite a lot of objects. The idea is to talk with children and ask them questions to get them thinking about machine learning, and what recognition capabilities you need for self-driving cars.

Necessary materials

For this demo you need the following materials:

  • Laptop with NVIDIA GPU
  • Webcam (possibly mounted on a (selfdriving) car)
  • A set of objects that can be recognised by YOLO, which are: person, bicycle, car, motorcycle, airplane, bus, train, truck, boat, traffic light, fire hydrant, stop_sign, parking meter, bench, bird, cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe, backpack, umbrella, handbag, tie, suitcase, frisbee, skis, snowboard, sports ball, kite, baseball bat, baseball glove, skateboard, surfboard, tennis racket, bottle, wine glass, cup, fork, knife, spoon, bowl, banana, apple, sandwich, orange, broccoli, carrot, hot dog, pizza, donot, cake, chair, couch, potted plant, bed, dining table, toilet, tv, laptop, mouse, remote, keyboard, cell phone, microwave, oven, toaster, sink, refrigerator, book, clock, vase, scissors, teddy bear, hair dryer, toothbrush.

Its nice to put these objects in a big box so children can take them out, show them to the car/webcam, and see if they are recognised. Its also nice to point the car to the road so the car will see cars and pedestrians walking by.

Its also nice to teach children about what you train on and interesting adversarial samples. For example: the detector can detect "real" mice, but is unable to recognise a cartoon mouse like the one from the German "Die Sendung mit der Maus".

Impression of a day

Setting up: there was initially a lot of sunglare, we managed to fix it by putting a cap on top of the webcam. Be prepared for this as it really messed up our detections the first half of the day.

starting the day

A fun game to play with kids and adults is trying to perform an adversarial attack on the network. Here are two colleagues who get detected as horse and dog. As fun-fact: kids with long hair sometimes get detected as teddy bear if they are close to the camera.

adversarial attack horse adversarial attack dog

Overall its quite fun to show different stuff to the laptop:

recognizing things wrong detection

Selfie of us testing out the network with a mouse

selfie with mouse

As a last comment: I initially forgot that opencv loads images by default in BGR, while the network is made for RGB. During the day things like an orange and broccoli did not get detected, as obviously the color was wrong. After fixing this bug you can detect fruits again:

detecting things

Educational materials (English)

Discover how self-driving cars will see the world! Welcome to our self-driving car. We put a camera on this car and taught it about the world around us by showing it 200.000 images and telling the car what is in the image. It's now your task to discover what the car learned to recognise, and to think about how useful this is for a self-driving car. Try to see if the car can recognise the following things:
person, bicycle, car, motorcycle, airplane, bus, train, truck, boat, traffic light, fire hydrant, stop_sign, parking meter, bench, bird, cat, dog, horse, sheep, cow, elephant, bear, zebra, giraffe, backpack, umbrella, handbag, tie, suitcase, frisbee, skis, snowboard, sports ball, kite, baseball bat, baseball glove, skateboard, surfboard, tennis racket, bottle, wine glass, cup, fork, knife, spoon, bowl, banana, apple, sandwich, orange, broccoli, carrot, hot dog, pizza, donot, cake, chair, couch, potted plant, bed, dining table, toilet, tv, laptop, mouse, remote, keyboard, cell phone, microwave, oven, toaster, sink, refrigerator, book, clock, vase, scissors, teddy bear, hair dryer, toothbrush.

Which of these objects should a self-driving car really recognise?

Are there things missing in this list which you think are necessary to make a self-driving car?

We showed the car images of real mice. Try to show the car the cartoon mouse from "Die Sendung mit der Maus". Does the car recognise it? Why/why not? Do you think a car which only uses a camera will recognise you if you put on a tiger suit?

Educational materials (German)

Entdecken Sie, wie selbstfahrende Autos die Welt sehen!

Willkommen in unserem selbstfahrenden Auto. Wir haben dieses Auto mit einer Kamera ausgestattet und ihm die Welt um uns herum beigebracht, indem wir 200.000 Bilder zeigten und dem Auto sagten, was auf dem Bild zu sehen ist. Es ist nun Ihre Aufgabe, herauszufinden, was das Auto zu erkennen gelernt hat, und darüber nachzudenken, wie nützlich dies für ein selbstfahrendes Auto ist. Versuchen Sie zu sehen, ob das Auto die folgenden Dinge erkennen kann:

Person, Fahrrad, Auto, Motorrad, Flugzeug, Bus, Zug, LKW, Boot, Ampel, Hydrant, Stoppschild, Parkuhr, Bank, Vogel, Katze, Hund, Pferd, Schaf, Kuh, Elefant, Bär, Zebra, Giraffe , Rucksack, Regenschirm, Handtasche, Krawatte, Koffer, Frisbee, Ski, Snowboard, Sportball, Drachen, Baseballschläger, Baseballhandschuhe, Skateboard, Surfbrett, Tennisschläger, Flasche, Weinglas, Tasse, Gabel, Messer, Löffel, Schüssel, Banane, Apfel, Sandwich, Orange, Brokkoli, Karotte, Hot Dog, Pizza, Donat, Kuchen, Stuhl, Couch, Topfpflanze, Bett, Esstisch, Toilette, Fernseher, Laptop, Maus, Fernbedienung, Tastatur, Handy, Mikrowelle, Backofen, Toaster, Spüle, Kühlschrank, Buch, Uhr, Vase, Schere, Teddybär, Föhn, Zahnbürste.

Welches dieser Objekte sollte ein selbstfahrendes Auto wirklich erkennen?

Fehlen in dieser Liste Dinge, die notwendig sind um ein selbstfahrendes Auto zu bauen?

Wir haben die Bilder von echten Mäusen gezeigt. Versuchen Sie, dem Auto die Comic-Maus aus "Die Sendung mit der Maus" zu zeigen. Erkennt das Auto das? Warum? Warum nicht? Glaubst du, dass ein Auto, das nur eine Kamera verwendet, dich erkennt, wenn du einen Tigeranzug anziehst?

Menschen haben zwei Augen. Warum? Wäre eine zweite Kamera nützlich für das Auto?

Was macht das Auto, wenn es die Gegenstände erkennt? Wie funktioniert das?

Ist das Auto wirklich schlau? Was ist diese künstliche Intelligenz überhaupt?

Ist es eine gute Idee, Autos allein fahren zu lassen? Worauf muss man dabei achten?

Was muss ein Auto das sehen kann noch lernen, bevor es allein fahren darf?

Brauchen selbstfahrende Autos auch einen Führerschein?

About

A repo to show kids what machine learning learns and can recognise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages