« BUSINESS MODEL PROTOTYPE | Main | LINKS OF THE WEEK! »

Monday, June 06, 2005

EVOLVING NEMO

Off the coast of Hypatia and Themiskyra, a year-long experiment in artificial Darwinism continues...

Surina Skallagrimson once created a school of fish, but at the start, most of them were pretty damn dumb. Some of them would wander off and get totally lost, for example, while others were undone by the fundamental laws of Newtonian motion, and simply crapped out in mid swim.

So she did the most obvious thing: she killed them all off, pretty much. The ones that were just a tad less stupid than a box of rocks she spared, and replenished the rest that she didn’t. These she sent back to swimming, and the cycle began again. To all the failed fish, death; to the few that showed potential, a chance to join a new generation of the species.

Repeat this process a few hundreds times, and you really start to get somewhere.

“What you see here is the result of a year’s development,” Surina announces to me from the bottom of the ocean, while her new brood of orange and red clown fish (or, Amphiprion ocellaris) toodle around her.

Now these fish surrounding Surina Skallagrimson, they’re fish. Other residents have created other species of sea life, of course, and land animals too. But at best, they’re impressive sculptures of animal life*, and when they move (if they do at all), it’s only along a pre-scripted flight path, like old school animatronic sea beasts from Disney’s underwater sub ride. (It’s not uncommon to glance out from the shore of a Second Life beach, and see a pod of dolphins endlessly leaping out of the water, stuck in an infinite Flipper loop.)

Surina’s fish, by contrast, flow together in a school that changes shape and direction, dispersing sometimes, then gradually regrouping; occasionally, maverick Nemos will trail off from the school to go on their own adventures, only to eventually return, chastened, into the fold. When a Resident joins them under the sea, the fish wander over to them, and mill about; it’s not unlike wading into Hanauma Bay nature park, and watching as partially tame schools of fish come over to you, curious. (“I added the instinct to shoal around avatars,” Surina explains, “which is why the fish are staying with us and not swimming off.”)

When she began, Surina Skallagrimson initially planned to just create sea life that would populate the coasts and lakes of lands owned by Amazon Nation, the group in which she is Queen.

“The original idea for the fish was just as an ornament in a pond,” Surina tells me. “But I didn't like how other fish swam in circles. So I did a little research and found out about shoaling, or flocking. A lot of work was done in the 80’s with artificial flocking, so I wrote my own version for the fish. What you see here is basic flocking/shoaling.”

But the trouble with them moving in a school, she found, was that they’d often bang their little fishy heads into each other.

“The biggest problem was with them crashing together,” Surina says. “So ironically, the trick to making it work is in keeping them apart. It's a balancing act. Each fish is independent of the others. There is no communication between them. They scan for other fish and if found, work out the center of the group, then move towards that center. But if they get too close, a repulsion force pushes them apart.” Now the fish move more or less in unison, with no underwater colliding. “What you see as the result looks natural,” she says. “The script I use hasn't actually changed for about six months. Only fine tuning the variables... hence the evolution.”

The Darwinian process for the species actually begins when Surina assigns varying abilities to each fish. “[S]ome can see further, some can swim faster, etc. Only the variables are different; the script is the same… If we move to the other side of the sim the fish will follow, but some will get there quicker than others.”

At this point, the role of natural selection is embodied by the bracelet on Surina’s wrist.

“There is a command in [Linden Script Language] script called Sensor,” she says. “It is what the fish use to see. And my bracelet which holds the master copy of the program sees the fish using Sensor… So I can make a change to the program in my wrist band and send it to the fish. If they perform better than the old ones then they get the next update.” Those that don’t get deleted at Surina’s command. (It’s a little like Darwin hiking around the Galapagos and clubbing the weaker animals with his walking cane, so he can speed things up.)

Some other fish do meet their fate through natural selection, of a kind. “[There are fish] that die off due to sim physics problems or swimming off world,” she tells me. Free from the threat of disease or climate change, in other words, one of the greatest threats is a fish’s data slipping off the server. As for death by physics, that happens when the world’s Havok-powered system is unable to keep up with so many fish moving in so many different directions. “Rather than writing collision detection,” Surina explains, “I use the built-in physics. The fish are physical; you give them a push, they keep moving. The script within the fish has to keep up with those external changes and if the sim slows down, the fish don't respond fast enough.” And a fish without physics to propel it tends to do the artificial life version of going belly up.

But Surina is already introducing more genuine forms of natural selection, too.

“Let me add a predator for you,” she says, grinning. And a larger, black and emerald fish suddenly comes barreling at her school of clown fish, which recede and divide at its approach.

A robot resembling Marvin from the recent Hitchhiker movie watches, impressed. “They split either side of it then, cool,” says Moopf Murray. (As it happens, Moopf is the founder of the couple dozen-strong Artificial Life group, of which Surina Skallagrimson’s project is the farthest, dare one say, evolved.)

“The predator uses exactly the same program as the other fish,” Surina tells us. “So it tries to shoal with the fish. But it has a different name, and I told the other fish that if they see it they should swim away.”

Within a week after our first demo, Surina Skallagrimson has added food and breeding.

“[T]he more they eat, the more they breed. Take away the food and they starve,” she announces cheerily. A food dispenser release a “pellet” of food (an un-textured primitive, actually), and depending on how hungry a nearby fish is (on a scale of 1-10), they’ll be attracted to the food. “The first fish to touch (eat) gets the food and the prim dies.” Fishes that don’t feed in time, die; fishes that do, reproduce through simple cloning.

The gold standard for any creator of artificial life is unplanned emergent behavior, and Surina has noticed at least a couple instances of these. For one, with enough fish in the school, they begin to move in circles. “[T]hey tend to form a line. And if the front moves around so it 'sees' the back of the line, they circle.” With the addition of food, she’s also noticed that “the weaker ones tend to lead the shoal. They are the ones most in need of food. The ones most in need of food will tend to break away from the shoal. This causes the rest of the shoal to follow, so you end up with the weakest near the front, heading for food.”

But Surina Skallagrimson’s ultimate goal is to remove herself from the process entirely, and let it follow its own course.

“What I want is for the fish to change their own variables, not me doing it. The best way is for them to breed. I'm developing simple DNA, so a new fish will take numbers from both parents and maybe a random change to add mutation. The mutations should produce the improvements over time. At the moment, I introduce the mutations.”

“They need a DNA system for proper breeding,” Surina says with the quiet confidence of a clockmaking god. “That is when true evolution will start… then it's a case of ‘sit back and see what they do’.”

* I should, however, mention the early experiments in artificial SL life (third life?) by Rhysling Greenacre, who created a simulation of cats, mice, and cheese, as far back as late 2003. An excerpt from Greenacre’s instruction manual, which I managed to dredge up from my archive:

"Mice reproduce when they bump into each other and the following conditions are met:

- The mouse has 75 or more health
- The mouse is more than five minutes old and has not reproduced in five minutes

"A mouse loses 50 health during reproduction, and its offspring starts with 50 health
instead of 100."

Posted at 10:04 PM | Permalink

TrackBack

TrackBack URL for this entry:
https://www.typepad.com/services/trackback/6a00d8341ccd9653ef00e5505502ad8834

Listed below are links to weblogs that reference EVOLVING NEMO:

» Hunting Nemo from avenging avatar
So I read this article in NWN today. Basically, about these AL fish someone has made in SL that exhibit flock behaviour, and are on their nth generation. Now here's the funny part - in the first few par... [Read More]

Tracked on Jun 7, 2005 7:00:24 PM

» AI and Simulation in Second Life from Blackblog
On New World Notes, there's an article about playing around with evolution, flocking and other AI related subjects in Second Life. [Read More]

Tracked on Jun 7, 2005 8:24:34 PM

» Swimmin' With The Virtual Fishes from reBang weblog
I came across an interesting story couple days ago over on New World Notes (a blog maintained by a Second Life-embedded reporter). I wanted to see it for myself so logged on today for a peak. Very cool. Unfortunately there were only a few fish left... [Read More]

Tracked on Jun 8, 2005 2:08:58 PM

» Virtual Evolution in Second Life from The Importance of...
New World Notes, the blog of an embedded reporter in the virtual world Second Life, reports on an intriguing experiment in artificial intelligence and virtual evolution of a school of fish (Evolving Nemo). Some of the stuff that is going... [Read More]

Tracked on Jun 8, 2005 10:37:53 PM

» In-game clownfish flocks generated through virtual evolution from Boing Boing
A player in the Second Life virtual world used evolutionary computing to "breed" a realistically swimming, flocking species of virtual clownfish. The player started with randomly variant virtual fish, then killed the least successful and allowed the re... [Read More]

Tracked on Jun 13, 2005 10:33:15 AM

» Intelligent Design is Bullshit from directsite.net

In-game clownfish flocks generated through virtual evolution - A player in the Second Life virtual [Read More]

Tracked on Jun 16, 2005 8:21:13 PM

» Player Created Content from The Escapist
Since the advent of computer and video games, players have been driven to improve on their favorite titles. In an age of standardized engines, widely available graphic and modeling tools, and global connectivity these changes are shaping the future of gam [Read More]

Tracked on Aug 2, 2005 8:36:21 AM

» Player Created Content from The Escapist
Since the advent of computer and video games, players have been driven to improve on their favorite titles. In an age of standardized engines, widely available graphic and modeling tools, and global connectivity these improvements are shapeing the future. [Read More]

Tracked on Aug 5, 2005 7:48:42 AM

» links for 2005-08-14 from LifeBox
Game Design Glossary (tags: gamedesign) Urban Dead - MonkeyFilter Wiki (tags: urbandead zombie game) New World Notes: EVOLVING NEMO (tags: secondlife artificiallife ai flocking)... [Read More]

Tracked on Aug 14, 2005 1:18:32 AM

» Artificial Life in MMIGs from So Many Schemes
Brief synopsis: Users in the online world of Second Life are playing with Artificial Life creating dynamic, evolving ecosystems. I predict that we will see continued creation of complex, emergent ecosystems in MMOGs in the future. I have bee... [Read More]

Tracked on Dec 21, 2005 12:53:43 AM

» Artificial Life in MMOGs from So Many Schemes
Brief synopsis: Users in the online world of Second Life are playing with Artificial Life creating dynamic, evolving ecosystems. I predict that we will see continued creation of complex, emergent ecosystems in MMOGs in the future. I have bee... [Read More]

Tracked on Dec 21, 2005 12:56:25 AM

» Schwarmverhalten programmieren from My Second Life
Heute habe ich mir ein kleines Ziel gesetzt: Ich möchte ein einfaches Schwarmverhalten programmieren. Das ganze gibt es natürlich schon, an einer Küste in SL schwimmt ein Fischschwarm herum, der nicht nur Futter sucht, sondern auch vor Raubfischen flüc... [Read More]

Tracked on Jan 15, 2006 2:53:35 AM

» Bryant Leads Lakers to Surprise Win Over Suns from again controlled
29 points and 10 rebounds and the Lakers again controlled the tempo and stunned the Phoenix Suns, 99-93, to even their Western Conference first-round series [Read More]

Tracked on May 20, 2006 2:37:39 AM

» U.N.: Enriched Uranium Traces In Iran from enriched uranium
diplomats said Friday " a revelation likely to strengthen U.S. arguments that Tehran wants to develop nuclear arms. [Read More]

Tracked on May 20, 2006 8:51:10 PM

» Tax Smart America® Reports New Tax Breaks Help Business, Working Families, and Senior Citizens Alike from passage of the
and working families. (PRWEB May 15, 2006) Trackback URL: http://prweb.com/pingpr.php/SW5zZS1JbnNlLUNvdXAtQ3Jhcy1IYWxmLVplcm8= [Read More]

Tracked on May 21, 2006 1:50:47 AM

» Sponsored By Groove Networks: Information shared is failure averted. from in years. Get
the most talked about cross-agency emergency response exercise in years. Get your copy of the amazing DVD Now. No purchase necessary. [Read More]

Tracked on May 24, 2006 11:35:20 AM

» Steve Carell + Sheep = Pain (E! Online) from Workplace injuries
injuries are common, and you can never be too careful, especially when there are sheep around. Just ask Steve Carell. [Read More]

Tracked on May 27, 2006 8:11:01 AM

» News Release from Technosim
ITmedia Mobile i [email protected] FMOBILE Watch. ి... [Read More]

Tracked on Jun 2, 2006 7:47:50 PM

» Daily Dose: Which Vitamins Help, Harm? from hey May Be Big
hey May Be Big Business, But Not All Supplements Will Make You Healthier [Read More]

Tracked on Jun 8, 2006 4:50:44 AM

» SLS Investments and FIZI Holdings form Partnership to build $200M worth of Budget-Priced Business Hotels in China from accommodations.
business and resort hotels throughout China. These hotels will focus on serving the needs of the business [Read More]

Tracked on Jun 10, 2006 3:38:37 PM

» Whitlock: The NBA is as Healthy as Ever from Commissioner
more sense for this market than the costly NBA, writes Jason Whitlock of THE KANSAS CITY STAR. Now I've flipped. The NBA's resurgence [Read More]

Tracked on Jun 12, 2006 7:32:20 AM

» From TweakXP comes FireTune from It's freeware,
comes a new freeware utility for Firefox called FireTune. It's essentially a collection [Read More]

Tracked on Jun 17, 2006 1:02:19 PM

» Victory in Finals Can be Bloody Tough from Shaquille O'Neal
But it did symbolize how the Mavs got here and what they'll have to do to make their first [Read More]

Tracked on Jun 28, 2006 7:15:08 AM

» Updated Link section from before only a
I succeeded in presenting them in a usable way and that it isnt too overwhelming. [Read More]

Tracked on Jun 28, 2006 1:54:35 PM

» Fresh MP3 tracks from music process
Fresh, MP3 music download... [Read More]

Tracked on Jun 28, 2006 5:28:04 PM

» 5 Strategies to Avoid Being Sued by Your Employees - 3rd in a 5 Part Series from five part series.
entire series is available immediately at no cost, please contact Harper amp; Associates, [Read More]

Tracked on Jun 30, 2006 8:59:22 AM

» RB Toolbar from rbtoolbar
RB Toolbar - уникальный и наиболее перспективный и продуманный проект... [Read More]

Tracked on Jul 19, 2006 8:55:01 AM

» Medical Dictionary from Bestbarrel
Searchable dictionary created by Dr. ALFRED. [Read More]

Tracked on Jul 24, 2006 9:52:19 AM

» ALL Themes from Invision Power Board
He has set up a test blog so you can check it out - it’s great work. ... Note to all theme authors: In order to be considered for the competition, ... [Read More]

Tracked on Jul 24, 2006 4:54:41 PM

» Wiki: Search Results from MostDor
Search Results · WelcomeVisitors . . . . . . WhatIsWiki WhatIsWiki . . . . . . WhatIsWiki. 2 pages found out of 22 pages searched. ... [Read More]

Tracked on Aug 3, 2006 11:42:42 AM

» Bvlgari from Bvlgari Watches
Great Saving On Bvlgari Watches Bulgari Watch Bvlgari Assioma, Bulgari Zero1, Bulgari Watch Tubagas, Bvlgari Diagono Aluminium, ... [Read More]

Tracked on Aug 4, 2006 8:02:49 AM

» Bvlgari from Bvlgari Watches
Great Saving On Bvlgari Watches Bulgari Watch Bvlgari Assioma, Bulgari Zero1, Bulgari Watch Tubagas, Bvlgari Diagono Aluminium, ... [Read More]

Tracked on Aug 9, 2006 8:00:33 AM

» Search Results Page - a from ondmd
Your search results page is packed with information. ... [Read More]

Tracked on Aug 9, 2006 1:46:13 PM

» Internet Home from For All
... Computers & Internet News · History of Computers & Internet ... 1995-2006 [Read More]

Tracked on Aug 13, 2006 9:10:33 AM

Comments

Disaster in Themiskyra. While upgrading the breeding/predation process last night, stray radiation from recent nuclear testing introduced a bug in the fish causing them to reproduce out of control. It appears the limit for 3 sims full of fish is around 10,000 (Ten thousand) fish... A virus was quickly introduced to kill off the mutant fish before they either crashed the servers or they evolved a way of teleporting to the main grid.

Posted by: Surina Skallagrimson at Jun 7, 2005 5:15:59 AM

Some of my fishes swim randomly (no path or targets), but they're dumb as gravel compared to Surina's fish. Shoaling? Responding to food? Preditiors? Possible breeding? Wow! That's so cool. I hope Surina's work revolutionizes SL wildlife.

Posted by: Olympia Rebus at Jun 7, 2005 8:58:39 AM

very neat!
planning a field trip tonight.

Posted by: Max Case at Jun 7, 2005 2:54:21 PM

Wow...this stuff is amazing. I had to go check it out for myself last night and it was every bit as organic feeling as it sounds. While Surina's progress so far is nothing short of impressive, it's the potential of her project that really takes my breath away. She's created a template for designing whole virtual ecosystems that extend far beyond her current single-species experiment. All that needs be added are more species, more rules, more plants, more predators, more prey... Of course, this largely depends on having more computational resources available but I count this as a "given" over time. This is one of the coolest SL projects I've seen yet. Thanks for covering it.

Posted by: Persig Phaeton at Jun 8, 2005 9:43:03 AM

Anyone got a SL link into the area?

Posted by: tealian few at Jun 10, 2005 11:54:54 PM

I last encountered the fishies at Themiskyra 176, 234-- or link-wise, secondlife://Themiskyra/176/234

Posted by: Hamlet Linden at Jun 11, 2005 2:44:04 PM

Thanks for that!

Posted by: tealian few at Jun 11, 2005 8:10:06 PM

On the DNA issue, is it possible to have a random number generator used to determine the variables for each fish? Because if so, then each fish could have a unique number assigned to them to be used as the seed for the generator. Then, when you want two fish to breed, simply have the offspring be the average of the two parents. The only problem with this is that it wouldn't really be "evolving" since the variables would be random...

Posted by: AWiser at Jun 13, 2005 2:07:44 PM

Seeding with random numbers is a valid way of starting off the process, then successive generations (assuming they were viable enough to breed) would use an averaging process (with a little random thrown in to ensure variety). I am effectivly using a pseudo random set, ie, I came up with the numbers myself based on whether the fish 'look' right.

Posted by: Surina Skallagrimson at Jun 14, 2005 12:05:13 AM

This is really cute, but this game really needs a major upgrade as it is slow slow slow.

Posted by: Meow at Jun 14, 2005 8:53:08 AM

Great article. I met with Surina and followed up on this at my blog.

Posted by: Andrew at Dec 21, 2005 12:26:08 PM

I have worked extensively on this issue developing currency trading AL algorithms.

You might want to pass on the most effective way I've found to truly attain at least the first level of natural selection. What you do during mating, is you take all of the variables that make up the two mating pairs, and randomly take either the first or second fish's variable to make up the new one. You go through each of the parameters using a 50% method of selection, and pretty quickly you end up with a set of 'genes' that are the most suited to survival.

There are other ways for getting even more life-like behaviour, but that's certainly the simplest.

Mleck

Posted by: Mleck at Jan 26, 2006 8:43:08 PM

Now this is my cup of tea! I've loved artificial life since the Apple IIe and Langton's Loops. Now I have a purpose in second life...

Posted by: Travis Manen at Sep 24, 2006 10:07:04 AM

Nice work here, I enjjoy this blog.

http://www.sex-lockstoff.de

Posted by: muchheaven at Nov 5, 2006 5:27:26 AM

Nice work here.

http://www.saugorgien.de

Posted by: love at Nov 14, 2006 2:30:02 PM

I love this stuff. Check the comments for spam.

Posted by: Philippinen at Nov 22, 2006 1:02:12 PM

Really a school of fish.

http://www.zandersoft.com

Posted by: Mr.Mister at Jan 9, 2007 5:10:30 AM

Wow 1 years development. Thats time.

http://www.zandersoft.de

Posted by: Mike Meyers at Jan 9, 2007 5:15:06 AM

Thats nature.

http://www.saugorgien.de

Posted by: something at Jan 9, 2007 5:17:05 AM

http://www.2badcredit.net/bad-credit-loan.php - bad credit loan
http://www.2badcredit.net/bad-credit-debt-consolidation.php - bad credit debt consolidation
http://www.2badcredit.net/bad-credit-personal-loan.php - bad credit personal loan
http://www.2badcredit.net/bad-credit-credit-cards.php - bad credit credit cards
http://www.2badcredit.net/bad-credit-mortgage.php - bad credit mortgage

Posted by: Ron at May 31, 2007 3:06:44 AM

Forex News Forex news

Forex software forex software

Forex trade forex trade

Forex market forex market

Forex broker forex broker

Posted by: tonny at May 31, 2007 3:08:03 AM

Thank's for the very informative site, these sites are some I would recommend.

For Online Casino slots and online casino try this La Isla Casino, for more online casino slots and online slots try Slots Kings.

If Bingo is your thing try Bingo Online News for online bingo and internet bingo, internet casino slots and slots information to be found

on Slots Online News. If you like to play bingo online Red7Bingo is the best internet bingo to be found on a online bingo site. For online poker

we recommend Nett Poker. Street Slots is the leading site for Slots, Video Slots and Online Slots. Nett Casino have all the info on casino poker

and many other online casino games in a Norwegian Casino Portal about online casino. Craps is a game of fun and excitement, play craps in CrapsRoom.com

the number one website for online craps.

online casino slot machine online casino slot machine Hope you enjoy them.

Posted by: casino at Aug 31, 2007 3:07:41 AM

Nobody is a stranger to the word viagra. Even the children have heard of it, though they may be unaware of its meaning. Keeping in pace of its increasing demand which resulted from its phenomenal success in treating ED, even the online pharmacies started dealing in Viagra. One can now easily buy viagra or order viagra online. Ever since the day of introduction of viagra online, it has been like a blessing to both the online pharmacies and the customers. The online pharmacies are reaping huge profits and the people are getting the worlds most sought after drug at their doorsteps that too at a cost relaxation.

Posted by: viagra at Sep 9, 2007 10:11:44 PM

masturbators masturbators
anal toys anal toys
massages oils massages oils
bdsm toys bdsm toys
blow up sex dolls blow up sex dolls
double dildos double dildos
vibrators with pearls vibrators with pearls
strap ons strap ons

Posted by: toy at Oct 14, 2007 10:56:56 PM

I am glad to find this forum !
http://danuegonax.com
I Will be back!

Posted by: Elerrertmuh at Nov 29, 2007 1:05:09 PM