[[BrmRat]]
 

BrmRat

BrmRat
ASCII
founder: pasky
depends on:
interested: chido
software license: GPLv2+
hardware license: CC BY-SA
status: suspended

This is an extension of BrmBot Turing. We would like to equip the Roomba vacuum cleaner with rat-in-a-box and allow the rat to control the Roomba's movements. We aim to setup and execute a scientifically plausible experiment on whether a rat can learn the abstract concepts required to control a vehicle such as Roomba.

We can change the licenses if anyone has problems with it.

Precautionary note: This is a cognitive, non-invasive experiment that will not harm the rat at all - after the experiment, it will continue living long calm life. We love rats! And we believe something so fun and interesting as such an experiment is a great thing to happen to such an immensely curious animal as a rat is.

Status

We have most of the technical setup ready. However, it turned out that to carry out the experiment successfully would require several learning sessions per day, every day, which is something we unfortunately simply do not have time for. If anyone who could commit to that could help, we could get the experiment going in few days, but until then, we have to put this project on hold.

Technical Setup

The details of Roomba are easily available, its control interface is described at BrmBot Turing. An important thing to remember is that Roomba cannot move in any direction at any moment, instead it can be moving only the way it is headed and/or turn in a given angle. Thus, the rat cannot simply point in the direction it wants to go, it needs to decompose the route to turning actions.

The interface between rat and Roomba will be an Arduino and three sensitive push sensors. (In the future iterations, nose sensors could replace them.) The rat will be enclosed in a plastic box, having these three sensors accessible. They control the three available actions: left, forward and right.

The rat needs to receive rewards (tiny food pellets). So far, we do not have the mechanism and pellets will need to be administered personally - this means that the person will be part of the experiment!

It would be nice to also equip the arduino with some sensor that could be used to track and record the trajectory; otherwise, only approximate information from Roomba's odometry can be used for that.

Experiment

Considerations

We need to achieve two goals: Make the rat want to go to some specific place in the room, and teach it how to control the vehicle to achieve that.

(Following based heavily on Frantisek Susta's comments.)

To, aby si potkan sám uvedl nějaké zařízení do pohybu a někam si dojel, je hodně složité jako celek, ale dá se to rozložit na jednoduché kroky a ty naučit odzadu. Taky je potřeba si uvědomit, že ten potkan vnímá prostor jinak než my a to místo, ke kterému má mířit, bude potřebovat jasně označit - např. tam bude zdroj světla, zdoj pachu, zdroj zvuku a on se bude pohybovat ve směru rostoucího gradientu k tomuto zdroji. Na něm pak dostane odměnu.

A proposal:

  • 1: Klec s potkanem je prostě jen na zdroji, potkan nedělá nic, dostává odměny. Tím se z tohoto zdroje začíná stávat krmící místo a z látky (světlo, vůně, zvuk) target, který zvíře následuje
  • 2: Zařízení nechávám přejíždět přes tento bod, odměna na něm, potkan nemá moc směr nijak ovlivnit - tím se jasněji definuje ten konkrétní bod, kam se míří.
  • 3: Zařízení samo jede, potkan ovlivňuje směr - např. rozdělím podlážku na čtvrtiny, kam stoupne, tam to pojede. Logicky by si měl stoupat ve směru rostoucího gradientu.
  • 4: Zařízení stojí, potkan ho musí uvést do chodu (nějakou páčkou) a pak si dojet již známým způsobem ve směru rostoucího gradientu na místo.

Tohle ma ale problem - Roomba totiz umi jezdit pouze dopredu a otacet se. To znamena, ze pokud potkan urci cil stoupnutim na urcite misto podlazky, pozice tohohle mista v ramci klece nebude korespondovat s pozici Roomby v ramci mistnosti. Bud se rozhodneme, ze tohle potkan nejak zvladne, nebo ho budeme muset naucit na prime ovladani otaceni. Nebo se to v ramci kroku c. 3 proste nauci sam, coz je vlastne celkem pravdepodobne, protoze packu pro otoceni urcitym smerem bude mit ze vsech nejblize gradientu. Tezke bude otocit se o 180 stupnu. ;-)

Another thing to consider that in the first iteration, human will administer the pellets (always standing at the target spot). A human is very intensive smell source. Will it interfere with the experiment? Could multiple humans alternate in the experiments or does it have to be always a single one?

Setup

Device: See above.

  • Roomba + Arduino
  • Cage with three sensitive buttons (left / forward / right)

Software:

  • Wiring Arduino sketch: sketch

Yossarian Algernon Subjects: Pedigree rats.

  • Algernon: 6 weeks?
  • Yossarian: 5 weeks?
  • Mrnous: 13 months (kind of control subject or such, likely will not participate at all)

Arena:

  • 3x4m empty room at CAS Ladvi?
  • 4x4m room at Letnany (would have to be emptied and is known by the rats already)

Source:

  • Human with stash of food pellets

Experiment:

  • First stage: Device(Rat) is at the source, receiving pellets.
  • Second stage: Device(Rat) is moving through the source, receiving pellets only at the source.
  • Third stage: Device(Rat) is moving forward, changing directions based on Rat input. Receiving pellets only at the source.
  • Fourth stage: Device(Rat) is standing, moving forward only based on Rat-generated impulse.

This is for the first stage, likely Algernon being used. If things will progress well, in second stage for Yossarian we would like to have automated pellet administrator and nose sensors instead of buttons.

Goal

The goal of the experiment is to find out whether a rat can learn to reach a destination by executing abstract action, and how easily.

We will consider a rat mastering step #3 a success already, though there's probably not a long way to #4. We will measure the total time spent learning and the final average time (and trajectory length?) to reach the target from a random position.

Roadmap

We have two young rats, if we are to try it out, we need to hurry *a lot*. This is the plan:

  • [DONE] Get a suitable cage.
  • [DONE] Build a cage holder for the Roomba.
  • [DONE] Instead of the Wifi router, hook up the Roomba on a battery-powered Arduino.
    • Is trivial and works beautifully, including power. 19200baud mode works nice that is, the normal-speed mode behaves very strange.
  • [DONE] Get suitable buttons (should be pretty large and very sensitive - ideally, for stepping on).
    • We have reasonably sensitive buttons, and experimenting with slabs on them.
  • [IN PROGRESS] Write simple Roomba control software for the Arduino.
  • [DONE] Insert the buttons in the cage.
  • [NOT DONE] Get/create suitable reward pellets.
  • [NOT DONE] Insert rat…

—-

  • [NOT DONE] Implement trajectory recording. Will probably require external logging device (SD card - the SMD slot will require a PCB - or xbee which is too expensive for us).
  • [NOT DONE] Automate the rat feeding.
  • [NOT DONE] Nose-based sensor.

Hacking Point

All parts are at Letnany, and we have some (limited) space to hack there. Anyone is welcome to visit! Please write a short note to the mailing list if you are interested and we will arrange some hacking sessions.

References, Thanks

Feedback of these people was invaluable so far: Cyril Brom, Frantisek Susta, Iveta Fajnerova, Tereza Nekovarova.

 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki