A Deeper Understanding of How AI Works

Jorrik Klijnsma
4 min readMar 8, 2024

--

I recently found myself deep in conversation with fellow developers about an AI tool that can dissect any song into separate acapella and instrumental tracks with astonishing precision. During our chat, a question about whether the AI splits tracks based on frequency led to an eye-opening realization: many still view AI as nothing more than a complex algorithm, like familiar tools we’ve used for years. However, the reality is far more nuanced. In this piece, I want to share my journey into understanding AI — a field I’m not an expert in but have engaged with as an enthusiastic and active user.

A toddler looking in awe at a digital screen displaying neural network’s. Disclaimer: This image was created with the assistance of a generative AI.

A Bit of Context

Before diving in, a quick note: I’m not a data scientist nor an AI researcher. My experiences with AI come from a user’s perspective, interacting with systems crafted by minds far more versed in this tech than I am. Over the years, I’ve picked up insights that have peeled back the curtain on AI for me, offering a glimpse into its inner workings. My aim here is to pass on these learnings, hoping they’ll demystify AI for you as they did for me.

Disclaimer: This story was written with the assistance of a LLM.

AI: Beyond Traditional Techniques

Artificial Intelligence, a term that once conjured images of sci-fi fantasies, is now an integral part of our daily lives. Yet, despite its prevalence, the workings of AI remain a mystery to many. Let’s delve deeper into the intricacies of AI, peeling back the layers to reveal the core principles that drive this revolutionary technology.

Today’s AI systems — whether they’re generating text, images, videos, deepfakes, sounds, music, or voices — aren’t just smarter versions of familiar software. They learn in a manner reminiscent of how humans do. Imagine we’re training an AI to generate images of treehouses from photos of trees. Initially, the AI knows nothing about treehouses. It starts with a basic task: transform an image of a tree into… something. Initially, it outputs a tree image overlaid with random pixels. We guide the AI, pointing out inaccuracies, tweaking its code slightly, and encouraging it to try again.

Understanding Neural Networks

At the heart of AI’s learning capability are neural networks, complex structures inspired by the human brain. These networks consist of layers of nodes, performing simple calculations. Each node, or “neuron,” processes input values and produces outputs, contributing to the AI’s “understanding.” For instance, an AI designed with layers of 2, 5, 10, and 2 nodes processes information through these layers, refining its outputs with each pass. When combined, these nodes can process complex information and make sophisticated decisions.

Machine learning isn’t as new and unique as it might seem. It’s similar to the algorithms we use in our daily lives, from social media feeds to digital thermostats. These systems, based on sets of instructions, constantly adjust based on new data — much like how a thermostat regulates temperature. In AI, this process is dynamic, with the system learning and adapting from each interaction.

In our treehouse image generator, the neural network flows through various aspects of the input image — shapes, colors, textures — and the model flows to an output, constructing a new image. Over time, and with sufficient training data, the AI learns to recognize which patterns correspond to treehouses and can generate increasingly accurate representations.

The Learning Process of AI

To truly grasp how AI works, it’s essential to understand its learning process, which can be explained as “strikingly similar to human learning”. When a child learns to identify objects, they go through a process of trial and error, guided by feedback from their environment. AI operates on a similar principle, though it processes vast amounts of data at speeds incomprehensible to humans.

Consider the earlier example of an AI trained to generate images of treehouses from photos of trees. This AI starts from a point of ignorance, knowing nothing about the desired outcome. Through iterative processes — receiving input, generating output, and adjusting based on feedback — the AI gradually refines its understanding, improving its output with each cycle.

Machine Learning: A Closer Look

Machine learning is a subset of AI where algorithms learn from data, identify patterns, and make decisions with minimal human intervention. Unlike traditional algorithms, which follow strict, predefined rules, machine learning algorithms adapt their behavior based on the data they process.

This adaptability is what sets machine learning apart from conventional programming. A traditional algorithm, like the one controlling a thermostat, follows a simple, linear decision-making process: if the temperature is below a certain threshold, turn on the heat; if it’s above, turn it off. A machine learning algorithm, on the other hand, might analyze historical temperature data, user preferences, and even weather forecasts to optimize its temperature settings, becoming more efficient and personalized over time.

AI in the Real World

AI’s applications are as diverse as the technology itself. From the voice assistants on our smartphones to the recommendation engines that suggest what to watch or buy, AI enhances our daily experiences. In healthcare, AI algorithms analyze medical images to detect diseases early. In finance, they manage investments and detect fraudulent activities. The possibilities are endless, limited only by our imagination and the data available.

Conclusion

Understanding AI doesn’t require a degree in data science, but a curiosity about the technology shaping our world. By demystifying AI, we can appreciate not only its complexity but also its potential to transform industries, enhance our productivity, and even improve our quality of life. As we stand on the brink of this new era, we must grasp the basics of AI, ensuring we’re informed participants in the conversation about how this technology will shape our future.

--

--

Jorrik Klijnsma
Jorrik Klijnsma

Written by Jorrik Klijnsma

Jorrik is a creative front-end developer at Sopra Steria, with a passion for getting and sharing information. He focuses on new and inspiring topics.

No responses yet