Last Good Quote: Son's are the seasoning on our lives. - Someone on Facebook

Wednesday, July 25

Creating AI - The Baby

In a previous post, I discussed an article I read which compares how humans think to how machines think. In the next set of posts I'm going to explore this concept a bit.

Sensory Input

It all starts with sensory input. So what sensory inputs does a program have? I can think of a number of them but I will limit myself to text for the time being. (I reserve the right to branch out though!)

Let's look at how a new born baby starts to recognize things. I think the first thing a baby recognizes is momma's milk. (some might say it's momma nipple, but let's keep it PG13, huh *hey geekboy get your mind out the gutter*)

A baby drinks milk for the first time, he doesn't know what it is but he knows he likes it. The taste and smell of milk gets stored in it's memory as well as the fact that he likes it. (Hey look it's a boy!) At this point life consists of smells and tastes that are milk and not milk. Anything that is milk he likes, the jury is out on anything else.

Following that logic, when the "baby" program encounters text it stores it in it's memory, however it knows nothing about it or what do with it.

Side Bar: It's important to note that the baby did not store multiple memories of the milk. Therefore the "baby" program will not store multiple versions of the same text.

Sounds simple so far...
Side Bar: I've always noticed that nature uses simplistic methods to create complex results, thus a side objective with this program is to keep the rules extremely simple.

With that in mind, the following logic is applied to all sensory packets that come into the program.
Each saved object will have a "goodness" attribute

If the program get a "bad" vibe from the object, subtract one

Otherwise add one to it's goodness attribute


I know, I know the brighter bunch of you are screaming...How does a program get a "BAD VIBE" this guys is full of .... Well hold on a second, put that issue to the side for a second, I promise I'll come back to that in the next session.

Using these rules what would the following set of inputs give me? Assuming that "b" gives a off a "bad vibe".


IN MEMORY
--------------------
a a: +1
a a: +2
a a: +3
b a: +3, B: -1
a a: +4, B: -1
b a: +4, B: -2
a a: +5, B: -2



OK, final step, we will now give the baby program two responses, one negative..."waaaa", and one positive *cooo*. Using the above mentioned rules interaction may look like the following:


IN OUT
--------------------
a *coooo*
a *coooo*
a *coooo*
b *waaaa*
a *coooo*
b *waaaa*
a *coooo*


At this point the baby progam has learned to like the letter "a" and dislike the letter "b"

Here is a basic summary of the rules our "Baby Program" follows:
Rule 1: Incoming text is saved and assigned a goodness value of 0

Rule 2: If text gives off a "bad" vibe from the object, subtract one

Rule 3: If text gives off a "good" vibe from the object, add one

Rule 4: If goodness value is positive, output *cooo*

Rule 5: If goodness value is negative, output *waaa*
The next section will go into how the "baby" program gets a good or bad vibe from input.

Random Links

Here's a detailed explanation of how to use css to create sprites from a sprite sheet.

If you don't know what that is, it's not for you.

How Do You Solve Problems?

I was reading a very interesting article by Steve Pavlina called How the mind really works, if you haven't visited his site please do!

He was examining how the human mind solves new problems that it has not encountered before. He then compared that to how computers handled new problem solving. I found this to be very interesting.

I'm going to list a couple of comment he made and add some thoughts to them:

"The reason [we can still recognize patterns in a split second that a computer can’t figure out with days of continuous processing] is the unique way human beings store and process patterns. "

Store and Process. I can agree with this. I am curious to know if there are systems that attempt to mimic the way human's store information. I know there are neural nets, but from all I read they appear to mimic the thought process rather then the storage of information.

I am curious to know if there are systems out there that try to mimic the way human's store information. I know there are Neural Nets out there but from what I have read they appear to mimic the thought process rather then the storage of humans.

Your mind stores and processes information in what are called invariant representations.

Your mind strives to identify and save general patterns


Just to clarify, he goes on to state that the memory is stored in some sort of "fuzzy" pattern. This pattern is what is known as a invariant representation. This does not change, we just re-categorize it.

Your entire life’s worth of knowledge is stored in your mind as associatively linked, hierarchically organized, invariant representations.



An interesting exercise would be to come up with a system that could store and retrieve information stored in this fashion


You don’t need to process the complex sensory data from the car the same way you did the first time you saw a car.


This line made me think, the mind must have a way to take a complex set of data and distill it down to a general representation. Perhaps when we encounter something for the first time we make many representations for it. We then delete the incorrect one's until a particular one fits the mold. All the representations that we deleted are then stored as "like" representation. "It looks like a car but not quite." Maybe this is the way the mind goes from the representation of something unknown to the representation of something known.

There must be some basic representation models that we start from and we build our entire library from these...IE: All items fall into an Alive or Not Alive representation.

I think the reason your mind stores the unexpected experiences in far greater detail than the routine ones is to give it the opportunity to later process those memories into invariant forms.

I thought that this line of thought fits easily into my thinking.

Another way of saying this is that the more intelligent you become, the less you’re surprised by reality.

A great quote. If it fits a representation I know then it will not surprise me that it exists.

To sum it all up, a great article to get you thinking about how you think.

Odd Sight While Driving Home

So I'm driving home yesterday. My normal route home takes me threw a rougher neighborhood. Definitly not "da hood" or anything, it's just run down and you can see a number of odd characters about.

Anyway, As I'm driving, I pass a guy with a broken broom handle in his hand, about 3 feet worth of pole, his shirt is ripped. He has this scowl on his face and he's walking very strongly. (I know odd use of the word but it catches what I saw)

About half a block down, I see this woman, dressed relativly nicly, she's holding a baby in her arm and she's doing this odd half run, skip and fast walk thing. And I notice that she keeps looking over her shoulder.

My gut instinct says that something's not right but as I glance in the rear view mirror I see her smiling and laughing.

Hummmm, I drive about 3 blocks and then I turned around. (Don't ask me why, I ain't that much of a fighter) I drive back and she's gone. ???? However the mad guy has turned down a side street and is walking in another direction.

As I drive down the three blocks again, I notice a daycare and a bus station. I concluded that she must have been running late and was trying to get to the daycare and catch the bus? I guess...It was an odd situation, I'll probably never know what happened. Oh well.

Here's a link on how to make a citizen arrest. (If I ever need to)

Random Links

Just a bunch of interesting links I found:

Visual View of Hot Sites
A bit confusing but interesting

Wierd Words
Amusing, if you have time.

How to make a Citizen Arrest
Might have come in handy

LastFM
Online Radio, I'm always looking for good stations.

Monday, July 23

How Do You Like to Learn?

http://www.metamath.com/multiple/multiple_choice_questions.html

Take a short test the best way to learn new things.

My results:
The Visual/ Nonverbal Learning Style
You learn best when information is presented visually and in a picture or design format. In a classroom setting, you benefit from instructors who use visual aids such as film, video, maps and charts. You benefit from information obtained from the pictures and diagrams in textbooks. You tend to like to work in a quiet room and may not like to work in study groups. When trying to remember something, you can often visualize a picture of it in your mind. You may have an artistic side that enjoys activities having to do with visual art and design.

Friday, July 20

A Group is it's own worst enemy

Summary of web article: http://www.shirky.com/writings/group_enemy.html

This article was written in 2003 and deals with how online group dynamics work.

How is a group its own worst enemy?

You are at a party, and you get bored. You say "This isn't doing it for me anymore. I'd rather be someplace else. I'd rather be home asleep. The people I wanted to talk to aren't here." Whatever. The party fails to meet some threshold of interest. And then a really remarkable thing happens: You don't leave. You make a decision "I don't like this." If you were in a bookstore and you said "I'm done," you'd walk out. If you were in a coffee shop and said "This is boring," you'd walk out.

You're sitting at a party, you decide "I don't like this; I don't want to be here." And then you don't leave. That kind of social stickiness is what Bion is talking about.

And then, another really remarkable thing happens. Twenty minutes later, one person stands up and gets their coat, and what happens? Suddenly everyone is getting their coats on, all at the same time. Which means that everyone had decided that the party was not for them, and no one had done anything about it, until finally this triggering event let the air out of the group, and everyone kind of felt okay about leaving.

Important Facts:
  • You cannot completely separate technical and social issues.
  • Core Group - Members are different than users - "the group within the group that matters most."
  • The core group has rights that trump individual rights in some situations.
  • Design Handles the user can invest in
  • Design a way for there to be members in good standing. Who is in the Core Group
  • Barriers to participation
  • Find Ways to spare the group from scale

Thursday, July 19

Email Brevity

The art of brevity. Try getting all your email responses to be in five sentences.

five.sentenc.es

Things to Remember: Negotiating

In negotiation, the one thing that really strengthens your position is the ability to walk away from the deal.

Negotiating from a position of real need is a bad, bad situation. You are almost certainly going to lose. The other party will push until they find your threshold of pain.

Read More...

Google Gadgets Venture

Google is offering a competition. They will seed a few small business who wish to develop google gadgets.

Read More

Followers