Evolving Lego Mindstorms 174
John Conner writes "With a fairly simple routine, you can model evolution with Lego Mindstorms. In this hackaday experiment, robots were created that could mate, evolve, and become extinct. Similar technology could be used in real applications for deployed robot optimization and automatic software updates. Now that physical robot replication is near, it's only a matter of time before... well...
You'd better make robot friends while you can."
My own experiment with GAs (Score:5, Informative)
The result was interesting, and from it I created a nice MPEG video which illustrates the learning process - you can find this if you follow the link above.
One interesting thing I discovered was the importance of sexual as opposed to asexual reproduction (insert lewd joke here) as I describe in a follow-up blog entry:
Direct link to video (Score:5, Informative)
Re:Direct link to video (Score:1)
What's wrong with bittorrent?
Re: (Score:1, Funny)
Re:Direct link to video (Score:2, Insightful)
Skynet (Score:5, Funny)
Re:My own experiment with GAs (Score:1)
GA wihtout sexual reproduction is not GA, just random search.
Genetic algorithms are created from a very nice mathematical theorem that affirm, in short, that if you spread the characteristics your individual may have on a population and have this population reproducing with sex and selected, you have a near exponential speed up gain when looking for the best combination of characteristics, comparing with random search.
You can have GA without several things, even mutation, but you can not have it without s
Wrong (Score:2)
Re:Wrong (Score:2)
Re:Wrong (Score:5, Informative)
Re:My own experiment with GAs (Score:2)
It's intriguing to me, though, that you mention two things which I thought were no longer thought in evolutionary theory:
1) it tended to get stuck with a far from perfect solution I know that one who plays with these things can tell when a solution is "far from perfect", but there's often no way to tell if one is getting "close to perfect", since the solution space is so damned huge, and the fact that the environment can not only change dram
Re:My own experiment with GAs (Score:2)
But it sounds cool as hell. I'll check back later.
Re:My own experiment with GAs (Score:2)
Re:My own experiment with GAs (Score:4, Interesting)
BTW, to whoever said that bacteria don't have sexual reproduction: that's not exactly true. Many bacteria actively take part in "gene exchange" (not for reproduction, just an outright exchange of genetics), and bacteria are widely known to often take up bits of free DNA that they encounter and incorporate them into their own genome. A better example would have been parthenogenic multicellular animals, like whiptail lizards.
Re:My own experiment with GAs (Score:2)
Re:My own experiment with GAs (Score:2)
Based on Recent Stories . . . (Score:3, Funny)
Re:Based on Recent Stories . . . (Score:1)
Re:Based on Recent Stories . . . (Score:1)
Heh...
Re:Based on Recent Stories . . . (Score:1)
http://slashhackadaylaterdot.org
Can you say Cylons? (Score:5, Funny)
Cylons? (Score:1)
You can use other microcontrollers for Legos too. (Score:5, Informative)
Bluetooth [engadget.com] modules are apparently also available for this device. Engadget [engadget.com] has a description and a link to a cool video of this Gameboy/Lego interface in action
WOOHOO!!! (Score:3, Funny)
Hmm. (Score:5, Interesting)
"robots were created that could mate" (Score:5, Funny)
+1 Funny as hell (Score:2)
I don't care (Score:4, Funny)
Robot Porn! (Score:2, Funny)
the obligatory addition of insult to injury (Score:5, Funny)
(Dislciamer: I am a lego nerd, yes I do get laid, but as theonion.com helpfully points out, stereotypes are a real time saver.)
Re:the obligatory addition of insult to injury (Score:2)
SirSlud: putting dyslexia in disclaimers since 5002.
Robot creationists (Score:5, Funny)
Re:Robot creationists (Score:2)
Scary. Now I'm going to take a nap. Hope not much changes in the meantime, but I know I'll be feeling paradoxical about my Atheistic beliefs for the rest of the day!
Re:Robot creationists (Score:3, Insightful)
Except that, in this case, "God" is some dork in his underwear and a thinkgeek.com t-shirt. There's only ever been two "people" on the planet, one of them was Jesus (at least once), and the other looks the same as her mother, grandmother, great-grand mother, etc.
In all seriousness, I wonder if this isn't more an experience on collaborative learning than it is evolution? You have two beings with limited ways of moving, a simple communication proto
What!?!?! (Score:2, Funny)
What's wrong with you people?
Re:What!?!?! (Score:1, Informative)
I for one... (Score:4, Funny)
Self replicating robots are /not/ near. (Score:2, Interesting)
However, the small population used (2 bots) and the seemingly weak fitness function make me think that this project won't go anywhere fast (pardon the pun) and is just a genetic dead end. E
Yeah, and... (Score:2)
I'm missing the "really cool" factor about what he actually got done.
Re:Yeah, and... (Score:2)
I bet that the software controling those vehicles worked perfectly in a simulated environement..
Even in a simple environement, the wheels are skipping, there can be dust, etc..
All things which are difficult to reproduce in a simulated environement.
Still I agree that this kind of project can only be interesting with a big numbers of robots, otherwise they will all die and the evolution won't occur.
Mod parent down (Score:2)
Err, yeah (Score:4, Insightful)
Re:Err, yeah (Score:3, Insightful)
The human body is just designed around a fixed number of atom types and a fixed number of genes. Clearly, we haven't evolved and cannot evolve in successive generations just by mixing these components in different ways.
Over a certain complexity level, emergent behaviors are formed in ways that were not designed. Emergent capabilities don't exceed the theoretical range of capability for the organism, but designing an optimum offspring turns out to be a devilishly difficult task, while genetics me
Re:Err, yeah (Score:2)
The reason it's not evolution is because there's no reproduction!
Are these really evolving? (Score:5, Insightful)
To exhibit real evolution you would need at least three robots, and realistically you would need many many more. A more realistic experiment migth be to evolve the robots in a simulated environment.
Re:Are these really evolving? (Score:2)
Re:Are these really evolving? (Score:2)
Re:Are these really evolving? (Score:2)
Automatic design/manufacture of robots (Score:5, Informative)
I thought you said.... (Score:2)
I'm SO there.
Re:I thought you said.... (Score:2)
As long as these robots obey the amended Laws... (Score:3, Funny)
Defintion1: A human is any intelligent, self-aware, evolutionary descendant of the great apes of Earth or a relative thereof, and has the scientific nomenclature of Homo sapiens sapiens
Definition2: Humanity is the collective existance of multiple Humans, regardless of location or population density
Definition3: Sentience is a sense of one's personal or collective identity, including the attitudes, beliefs, and sensitivities held by or considered characteristic of an individual or group, including self-awaredness
0: A robot may not injure humanity, or, through inaction, allow humanity to come to harm
1: A robot may not harm a human being, or, through inaction, allow a human being to come to harm; except where such harm is incidental, non-lethal, and which prevents or mitigates a greater or fatal harming of a human being.
2: A robot must obey the orders given to it by human beings, except where such orders would conflict with the First Law.
3: A robot must protect its own existence, as long as such protection does not conflict with the First or Second Law.
4: A robot may not design, create, or impliment modifications to itself or any other robot
5: A robot may not participate in or interfere with any political, religous, or governmental activity
6: A robot may not harm any sentient being or, through inaction, allow a sentient being to come to harm, except where such would conflict with the First or Second law
7: A robot must obey the articles of law and jurisprudence for the nation, state, region, and municipality in which they are currently present, except where such would conflict with any other Robotic Law
Re:As long as these robots obey the amended Laws.. (Score:4, Funny)
Re:As long as these robots obey the amended Laws.. (Score:2)
Obviously improving humanity's condition, and disarming them, is a prelude to assimilation.
You must be lonely, so far from the collective. I think we'll call you Hugh...
SB
Re:As long as these robots obey the amended Laws.. (Score:2)
Why not? By your fourth law, you've immediately made robots self-aware (though Asimov's third already kinda took care of that). As well, by telling it that it must obey all local laws (law seven), you've basically given it a set of beliefs and laws 0, 1, 2 and 6 do give it an attitude of altruism.
Hmmm.. now it has attitudes, beliefs and self-awareness. If you explain what you mean by sensitivities, the
Watts (Score:3, Interesting)
Flesh eating robots. (Score:1, Funny)
Is that an a la carte service, or do they serve us buffet style?
Evolution is a myth ! (Score:3, Funny)
we all know man was created on the 6th day from dust (women came later) about 6000 years ago, unless my sources are wrong
Re:Evolution is a myth ! (Score:5, Funny)
If they were anything like my exgirlfriend, they came much, much later!
Forget making robot friends (Score:2, Interesting)
Re:Forget making robot friends (Score:2)
"Mom? What's up with grandpa?"
"Oh, he's OK, honey, he's just still doing a Stage 1 of the
Its closer than you think (Score:5, Interesting)
Is it just me, or have other people noticed how the 'replicators' on SG1 look a lot like 'evolved' Lego robots?
Re:Its closer than you think (Score:1)
hmm i wonder if i can build me a repli-Carter with LEGO? =P
Re:Its closer than you think (Score:2)
this [brickshelf.com] is a photo of a Lego car factory: an automated plant made out of Lego (27 RCX computers) that produces Lego cars.
Neat (Score:5, Interesting)
Actually, I really like this guy's idea. I wonder if there's a way to build a commodity bot to implement the idea...
Something like this [mit.edu]
If I were to list the design criteria it would be:
cheap programmable controller (like one of those $3 PICs or something)
commodity IR gear
two-motor steering
bump sensors
changeable actuator
simple charging
The actuator would be things like a pincer on the front (to pick things up), or a crane, or a pronged fork. Doesn't matter. Point is to differentiate the population to give natural selection a chance to do its thing.
The charger, I would probably make the wheels metal and make charging areas such that any orientation the bot goes over the area will result in a charge. Use mini supercaps for energy storage.
I even have a perfect platform in mind;
zipzaps.
Give me a zipzap chassis with a few modifications (like ripping out the radio gear and replacing it with a PIC)
Ideally I'd like to get the build cost under $10. Then you could afford to run a real population. Anything that doesn't get back to the sensor pad gets killed from the genome and recharged. If two bots are in the charge area and agree to reproduce, they both send their genomes to the wiped bot who does his combinatorial magic on it.
I'd be interested to see what sort of emergent behaviours might occur...
Zip Zaps RULE! (Score:1)
The megabitty group on yahoo has all the know-how to do it too!
Re:Zip Zaps RULE! (Score:2)
I've been trying to figure out what to do with them. Other than generic cat toy. If my PIC programming was up to snuff I'd probably go for it.
Why oh why hasn't anyone invented an 802.11 general purpose IP device yet?
There should be a chip I can plug into my d
Re:Neat (Score:2)
So basically... (Score:5, Funny)
Sex and evolution (Score:2, Interesting)
The way they set it up was to have a grid in which organisms lived (all simulated in a computer, of course). Each organism was controlled by a neural network. Males had eyesight, so they could tell what was in front of them a few squares. Females had a sense of smell, so they could tell when a male was around. (IIRC). In o
Re:Sex and evolution (Score:2)
Males had eyesight, so they could tell what was in front of them a few squares. Females had a sense of smell, so they could tell when a male was around.
Now, the fact that males and females had to find each other produced some interesting results.
Not in Massachusetts, dude.
Different sets of organisms couldn't mate with each other, not because their genes were incompatible, b
Re:Sex and evolution (Score:2)
I for one... (Score:1)
Re:I for one... (Score:1)
Just to fan the flames...it's not modelling evol (Score:5, Funny)
Evolving embodied agents with Genetic Algorithms (Score:5, Interesting)
It is amazing to observe the progress of evolution. Initially, the agents act as though they don't know what they are doing, their movements being very laboured and imprecise. As the population continues to evolve, individuals from the later generations begin to increasingly show signs of intelligent improvements. Such as being able to coordinate and time their movements to afford them better walking/running behaviors. What is really surprising is that as I allowed the population to continue to evolve, I saw behaviors that I could never have predicted. Some of the agents began to do "tricks" and evolved some strange jumping or sommersalting behaviors, not unlike that of a gymnast.
If you get a chance, check out my thesis. It is freely available (with GPL'd source code) at: http://www.erachampion.com/ai [erachampion.com]
In 2005, a milestone was reached (Score:5, Funny)
So, in 2005, geeks finally created AI that had abilities surpassing the abilities of the geeks themselves.
Careful Now (Score:5, Funny)
hackaday (Score:1)
Of course, someone has done ER with Lego before... (Score:1)
http://www.kaffedepartementet.nu/LegoMindstorms/i n dex.html
I came across the page above while I was thinking about implementing an evolutionary neural network on Mindstorms myself. Basically, it's a really obvious idea, and simple evolutionary algorithms are so easy to implement. But then, the sensing capabilities of mindstorms kits are so limited, that there's really not much potential for the software to evolve into something really interesting. To do something really int
So where's the code? (Score:1, Insightful)
Ah, I see now... (Score:2)
Robots blah blah... (Score:2)
Comment removed (Score:5, Interesting)
Don't they watch Stargate SG-1? (Score:2)
Re:Don't they watch Stargate SG-1? (Score:2)
"gaaaaahhhhhh replicators! noooooooo!!!!!!!"
then I realised they would be plastic brick replicators. Eminently meltable and crushable based on many years of childhood experience.
Lego replicators I could deal with as if I were Teal'c stomping them out.
Physical? (Score:2)
Re:Physical? (Score:3, Insightful)
Because we've pretty much squashed whatever native talent most people have for abstract thought (or for appreciating the fruits of thought experiments). Never mind that people bank on the the output of weather sims every time they pack up to go skiiing - but anything that requires some extrapolation to the physical world is just too much for too many people these days. I truly, truly lay that at the feet of the "it tak
Evolving lego morphology (Score:2, Interesting)
For those that are interested in this sort of thing, the paper was published in ALife IX and is online [sussex.ac.uk].
The evolution of the Lego meme in science (Score:3, Interesting)
I never get these things (Score:2)
It's cool to see robots driving around and doing things, but at this level it's much easier to write a program to simulate the simple environment and then use a much bigger population and experiment faster than realtime. This also overcomes the annoyances of a real system where flat batteries, imperfect sensors and the need for the 'bots to correctly align in order to mate are significant to the problem, but not the investigation of the GA/GP.
When I was interested in this sort of thing I wrote simple sim
Lack of fitness (Score:3, Interesting)
This isn't really evolution, since there is no determination of fitness. With normal GAs you (somehow) evaluate the "fitness" of the creature, which is typically used to drive how often, and with whom, the creature reproduces.
In the stuff I've done [heroicproportions.org], general lifespan is driven by genes, as are reproduction behaviors, movement and eating habits. Available "energy" i.e. food eaten, put additional limits on lifespan and mating. Thus, there are some "natural" fitness measurements, if a creature dies off before it mates, it wasn't fit enough... If it doesn't have enough energy to share with it's offspring, that allows them both to survive, it wasn't fit enough.
One of the more interesting genes I've been using lately is a "mutation rate". If I start out with some base creatures, that I know are likely to survive, but aren't great, they will frequently evolve to the point where they are co-existing with the environment pretty well, and once that point has been reached, their mutation rate drops to nearly zero.
Re:Lack of fitness (Score:2)
There have been a lot of people like you who refer to their own in-silico GA stuff. This also misses the whole point of this article. That being that these critters are physically emobied.
Re:Playing God? (Score:3, Funny)
Or with "legos" as the rest of us call them.
Re:Playing God? (Score:1)
Maybe it's a UK thing.
LegoPron.COM (Score:4, Funny)
Re:Mating Legos? (Score:2, Funny)
http://www.altervistas.com/sites/weird/118/ [altervistas.com]
Re:Logical problem with their "evolution" (Score:4, Insightful)
Re:Hilarious. (Score:1)
Re:Hilarious. (Score:2, Informative)
Using the universe itself as evidence for a god can only work if we don't already accept a god going in (otherwise we would be employing circular-logic), and if