The Birth of Artificial Intelligence

The Birth of Artificial Intelligence

●1 ●2 ●19
calendar_today • schedule8 min read
— Originally published at ruva.hashnode.dev

In my previous article, I talked about how we are essentially becoming teachers to computers. We teach them patterns, give them examples, correct their mistakes, and hope that eventually they become good enough at the task we gave them. But if we’re going to call AI our student, we should probably ask a slightly different question:

What exactly is this student made of?

Well… meet the baby.

AI is essentially the child of two very powerful fields: Mathematics and Programming.

And when you put the two together, you get the very interesting baby we call Artificial Intelligence. Artificial Intelligence at its core is not a subject that was just randomly born. It’s a subject that lies at the intersection of Programming and Mathematics. AI is basically Math on steroids in 1s and 0s.

And this is why I like to refer to AI as the child of Mathematics and Programming.

So before we dive deep into how Artificial Intelligence, and all its deeper areas such as Machine Learning and NLP, are basically mathematics expressed through code, we have to distinguish between programming, its history, and mathematics and its history as well.

Because AI didn’t just appear one day because someone decided, “Hey, let’s make computers intelligent.” There was a very long chain of ideas that had to happen first.

Mathematics: The Original Problem Solver

For a very long time, mathematics has been, and still is, at the core of what we do as humans. From how houses are built, the mixtures used to make cement, the recipe for rice, calculating how much food we need for a certain number of people, to the most complex rockets made for space exploration, mathematics is everywhere.

Even Stonehenge is believed to have been constructed with mathematical and astronomical considerations.This shows that mathematics has always been more than just something we learn in school and then complain about during exams. Math is a way of describing the world.

With mathematics, you can predict. You can make choices that are grounded in numbers. You can perform simulations. You can model things that haven’t happened yet and estimate what might happen.You do this more often than you probably realize.

For example, let’s say your friends invite you to a party. You have $20.

You know transport will cost $5, food will probably cost $7, and you want to spend another $5 while you’re there. You do the math. $5 plus $7 plus the $5 you want to spend when you're there will give you a total of $17. So you can go.

But if transport suddenly costs $10, your calculation changes. Now you’re spending $22.You can’t afford it.

You’ve just used mathematics to make a decision based on a prediction of what will happen. Obviously, this is a very simple example, but the underlying idea is important. Mathematics allows us to represent reality in a way that we can reason about. And that becomes extremely important when we start talking about Artificial Intelligence. Because computers don’t understand the world the way we do. They understand numbers.

Then Came Programming

Programming, on the other hand, developed as a way to give machines instructions. If mathematics gives us a way to describe and reason about problems, programming gives us a way to tell a machine what to do with those ideas. Humans have been trying to automate calculations for a very long time.

Before modern computers, people used tools such as the abacus to perform calculations. Eventually, mechanical calculators were developed, followed by increasingly sophisticated machines capable of performing calculations automatically.

Then came electronic computers. And this changed everything. Instead of a human having to repeatedly perform the same calculation, we could write instructions and make a machine perform them for us. This is one of the fundamental ideas behind programming:

Take a process that can be expressed as a set of instructions and make a machine execute those instructions. And this isn’t limited to calculators. Even in modern-day engineering, we have mechanical and automated systems that inspect components, detect defects, perform measurements, and verify that things meet certain requirements.

I actually saw a documentary about a system that inspected foam components used in spacecraft to make sure there weren’t vulnerabilities.

And that is essentially what programming and automation are constantly trying to achieve, take something repetitive, time-consuming, or prone to human error and make a machine do it faster and more consistently.

Humans are great at reasoning, creativity, intuition, and adapting to situations. But humans are also really bad at doing the exact same boring thing 10 million times without making a mistake. Computers are pretty good at that.

So Where Does AI Come In?

Now we have two very powerful ideas. Mathematics gives us the ability to represent and reason about problems. Programming gives us the ability to encode instructions and have machines execute them extremely quickly.

And then we have machines that can perform billions of operations in a very short amount of time. So naturally, humans eventually started asking, "What if we could use all of this to make machines behave intelligently?"

And this is where Artificial Intelligence begins to emerge.

At its core, AI is built on mathematical concepts, algorithms, programming, and the computational power of the machines running those programs. You can almost think of AI as an extremely fast mathematical machine. The mathematics provides the logic. The algorithms provide the method. The programming tells the computer how to execute that method. And the hardware provides the computational power to actually do it. But there was a problem.

A really big one.

Humans Are Complicated

If I tell a computer, "If the temperature is above 30°C, turn on the fan." That’s easy. We can write a rule.

If temperature > 30, turn on the fan.

Done.

But what if I tell the computer, "Look at this picture and tell me whether there is a cat in it." Suddenly, things become much harder. What exactly is a cat? Do we define every possible shape of a cat? What if the cat is sitting? What if it’s lying down? What if it’s partially hidden? What if it’s black? What if it’s orange? What if the picture is blurry? What if the cat is upside down?

You could try to manually program every single possibility. But eventually, you realize something, there are too many rules. And this is where we start moving away from traditional programming and toward Machine Learning.

The Birth of Machine Learning

Traditional programming generally looks something like this:

Rules + Data → Output

You give the computer the rules. You give it the data. It follows the rules and gives you an answer. Machine Learning flips this idea around.

Instead of manually giving the computer every single rule, we give it examples and allow an algorithm to find patterns in those examples.

Data + Answers → Model

And that model can then be used to make predictions on new data. For example, instead of manually programming every possible characteristic of a cat, we can give a machine learning model thousands or millions of pictures. Some contain cats. Some don’t. The model starts finding patterns in the data. Maybe certain combinations of shapes, edges, textures, colors, and structures tend to appear in images containing cats.

The model doesn’t wake up one morning and suddenly understand cats the way humans do. It mathematically adjusts itself until it becomes increasingly good at distinguishing between the patterns associated with cats and everything else. And this is one of the biggest shifts in the history of computing. We went from telling the computer exactly what to do, to giving the computer enough examples and letting it figure out the pattern.

Obviously, that explanation is simplified. Machine Learning is much more complicated than just throwing data at a computer and hoping it becomes intelligent. But conceptually, this shift is incredibly important.

This Is Why Mathematics Matters

This is also where my whole argument about mathematics comes back. Machine Learning isn’t magic. Underneath all those models, neural networks, loss functions, optimizers, probabilities, and predictions, there is mathematics. A model makes a prediction. We compare that prediction with what the correct answer should have been. We calculate how wrong the prediction was. Then we use mathematics to adjust the model so that, hopefully, its next prediction is better. And then we do it again. And again. And again. Sometimes millions or billions of times.

That is a very simplified explanation of what training a model can look like. But when you strip away all the complicated terminology, you start seeing something interesting, Machine Learning is essentially mathematics being repeatedly optimized through computation. And programming is what allows us to actually perform all of those calculations at a scale that would be completely impossible for a human to do manually.

This is why I don’t think of AI as some completely separate magical field. It’s a continuation of things humans have already been doing for thousands of years. We used mathematics to understand and predict the world. We developed machines to automate calculations. We developed programming to give those machines increasingly complex instructions. Then we started asking machines to solve problems where explicitly writing every single rule was no longer practical. And Machine Learning emerged as one of the answers.

From Rules to Patterns

This is what makes ML so fascinating to me. Traditional programming is largely about rules. Machine Learning is largely about patterns. And humans are extremely good at recognizing patterns. We see patterns in faces. We hear patterns in speech. We recognize patterns in language. We notice patterns in weather. We recognize patterns in the way people behave. We use those patterns to make predictions constantly.

Machine Learning tries to give machines a mathematical way of doing something similar. Not perfectly. Not exactly like humans. And definitely not magically. But mathematically. And that is where we get the AI that we interact with today.

From recommendation systems deciding which video you might want to watch next, to models detecting objects in images, to language models generating text, to systems predicting whether a transaction might be fraudulent, underneath the fancy interfaces are algorithms, mathematics, data, and a ridiculous amount of computation.

And honestly, I think that’s what makes Artificial Intelligence so interesting. It’s thousands of years of mathematics, hundreds of years of mechanical and computational development, decades of computer science research, and an absolutely ridiculous amount of human curiosity eventually colliding into one field.

And Machine Learning is one of the most important results of that collision.

So before we start looking at neural networks, transformers, NLP, computer vision, and all the other things that make up modern AI, I think it’s important to remember where all of this started. Not with ChatGPT. Not with neural networks. Not even with modern computers.

It started with humans trying to understand the world, represent that understanding mathematically, and eventually teach machines to work with those representations.

And honestly? We’re still figuring out where that idea can take us.

See you next time!

Want more #programming & #artificialintelligence deep dives?

Join 6,051+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

Part 2 of 3 in Raising Intelligence

2 Comments

1 vote
2

More Posts

TypeScript Complexity Has Finally Reached the Point of Total Absurdity

Karol Modelski - Apr 23

Sovereign Intelligence: The Complete 25,000 Word Blueprint (Download)

Pocket Portfolio - Apr 1

How AI Is Changing Web Development, and What Developers Still Need to Understand

Daniel Decker - Nov 10

A Message From Our Founder: On the Winding Down of LaaSy™

Ken W. Algerverified - Oct 29

Frameworks Are Institutional Memory

Ken W. Algerverified - Sep 17
chevron_left
278 Points • 22 Badges
Mutare • ruva.dev
6Posts
4Comments
7Connections
Artificial Intelligence student, developer, and technical writer interested in machine learning, dee... Show more

Commenters (This Week)

2 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!