# What is artificial intelligence and how does it work? A plain guide for beginners

- Description: What is artificial intelligence, how does it learn from data, how does ChatGPT answer and why does it get things wrong? A plain beginner's guide.
- Author: Ali Berkay ŞASİ
- Published: 2026-11-26
- Updated: 2026-11-26
- Language: en
- Canonical: https://sciencesyntax.com/en/articles/what-is-artificial-intelligence
- Other language: https://sciencesyntax.com/tr/articles/yapay-zeka-nedir

## Summary

What is artificial intelligence: a machine-based system that, for objectives set by people, produces predictions, recommendations, content or decisions from the input it receives. We explain in plain language how it learns from data, how ChatGPT builds an answer, why it gets things wrong and what to watch for when you use it.

## Highlights

- According to NIST, AI is a machine-based system that produces predictions, recommendations or decisions for objectives set by people.
- Today's AI tools don't memorize rules; through machine learning they learn from example data and improve their accuracy.
- Chatbots like ChatGPT build an answer step by step by predicting the next token.
- According to NIST, made-up answers are a natural result of how generative models are designed; check numbers, dates and names against a primary source.

Artificial intelligence is a machine-based system that, for objectives set by people, produces predictions, recommendations or decisions [[1]](#kaynak-1); the EU AI Act adds content to those outputs [[2]](#kaynak-2). The spam filter in your inbox fits that definition, and so does ChatGPT when you ask it a question. Nobody wrote their rules out one by one; both learn from a large number of examples. The answer you're looking for is probably here: how does a machine "learn" something, and how does it write you an answer?

## What is artificial intelligence? The short, official definition

In short, AI is a machine-based system that produces outputs from inputs and, through those outputs, influences a physical or virtual environment. All the official definitions meet at this core. Words like "thinking" or "consciousness" don't appear in them. The test is whether the system draws a result from the data it receives.

| Source | Core of the definition |
| --- | --- |
| US National Institute of Standards and Technology (NIST) [[1]](#kaynak-1) | A machine-based system that, for objectives set by people, makes predictions, recommendations or decisions influencing real or virtual environments |
| EU AI Act, Art. 3 [[2]](#kaynak-2) | A machine-based system that operates with varying levels of autonomy, may adapt itself after deployment, and infers from the input it receives how to generate predictions, content, recommendations or decisions |
| Organisation for Economic Co-operation and Development (OECD) [[3]](#kaynak-3) | The same elements as the EU definition: inference from input, outputs including content, and autonomy and adaptiveness that vary from system to system |
| John McCarthy, Stanford [[4]](#kaynak-4) | The science and engineering of making intelligent machines, especially intelligent computer programs |

The EU definition differs from NIST's in two places. It accepts that how independently a system works can vary, and it explicitly lists "content" among the outputs [[2]](#kaynak-2). With this addition, tools that generate text and images clearly fall inside the definition. The updated definition approved by OECD member countries carries the same elements. According to the OECD, governments that want to regulate AI fundamentally need a definition, and if everyone agrees on the same one, alignment between countries gets easier [[3]](#kaynak-3).

McCarthy's classic definition is more intuitive. He describes intelligence as "the computational part of the ability to achieve goals in the world" and adds that AI doesn't have to confine itself to methods observed in the human brain [[4]](#kaynak-4). Want to know whether a tool counts as AI? Ask one question. Does the system produce a result from the given input through its own inference?

## How does AI work? The logic of learning from data

The AI tools you hear about today rely on machine learning: a programmer doesn't write the rules one by one; the system learns from many examples and adjusts itself to become more accurate. NIST defines machine learning as the development and use of computer systems that learn and adapt from data and aim to improve their accuracy [[5]](#kaynak-5). The software that learns is called a model. In Google's training material, machine learning is the process of training a model to make predictions from data or to generate content such as text, images, audio or video [[6]](#kaynak-6).

The easiest way to see the difference is to put the two approaches side by side. Google uses the same example: an app that predicts rain. The traditional way, you build a physics-based model of the atmosphere and compute a large number of fluid dynamics equations. The machine learning way, you give a model an enormous amount of weather data, and training goes on until the model learns the mathematical relationship between weather patterns that bring different amounts of rain. Then you give it today's data and it predicts how much rain will fall [[6]](#kaynak-6).

Throughout this article I'll use a more familiar example. Say you're building a system that sorts spam out of your inbox. With rules, you write hundreds of them by hand, like "treat every email containing 'prize' as spam", and the rule stops working the day a scammer changes the word. With learning, you give the system thousands of emails, each labeled "spam" or "not spam". The system works out for itself which signals tend to come with spam.

This second method is called supervised learning. The model sees many examples that include the correct answers, discovers the connections that produce those answers, then makes a prediction for a new example. Google compares this to a student who prepares for a new exam by studying old exams along with their questions and answers [[6]](#kaynak-6). That's where "supervised" comes from: a person gives the system data that contains the right results.

So how does the model get closer to the right answer? Training is the same loop running thousands of times:

1. The model takes an example and makes a prediction, for instance "this email is 30% likely to be spam".
2. The prediction is compared with the correct answer. The gap between them is measured with something called a loss function.
3. An algorithm called backpropagation nudges the model's internal settings in the direction that reduces the error. These settings are called weights.
4. The loop passes over the training data again and again. Each round moves the prediction a little closer to the right answer, and the model eventually settles on a set of weights that also works well on data it has never seen [[7]](#kaynak-7).

Once training is over, the model is ready to use. Giving it a new email and asking "is this spam?" is no longer learning; it's applying what it learned. This stage is called inference. Every message you type into ChatGPT is an inference request too. The model produces the answer from what it learned during training.

## What's the difference between machine learning, neural networks and deep learning?

The four terms nest like rings. The widest ring is AI and the narrowest is deep learning; the table at the end of this section shows the steps in between. Google's web.dev guide puts the difference this way: AI tries to produce intelligence, while machine learning consists of algorithms used to make predictions about data sets [[8]](#kaynak-8).

A neural network is a machine learning model that stacks simple "neurons" in layers and learns from data the weights connecting input to output [[7]](#kaynak-7). According to Google, these networks are designed to find nonlinear patterns in data, meaning patterns you can't separate with a straight line; the network learns during training which combinations of features are useful [[9]](#kaynak-9). Back to the spam example. In the network described by the technology company IBM, the email enters the network and words like "prize", "money" and "win" become inputs. Neurons in the first layer weigh the importance of each signal, later layers combine them into higher-level cues that capture context and tone, and the final layer calculates the probability that the email is spam. If that probability is high enough, the email gets flagged [[7]](#kaynak-7).

The "deep" in deep learning refers to the number of layers. More layers let a network capture more abstract patterns, but they also mean more settings to train. These settings are also called parameters. IBM writes that backpropagation is what lets networks with millions or even billions of parameters learn meaningful patterns from large data sets [[7]](#kaynak-7).

| Term | What it means | In the spam example |
| --- | --- | --- |
| Artificial intelligence | All systems that produce predictions, recommendations, content or decisions from input | The spam filter as a whole |
| Machine learning | Methods that learn from data without written rules | Working out spam signals from labeled emails |
| Neural network | A model made of neurons arranged in layers | Processing words layer by layer to calculate a spam probability |
| Deep learning | Learning with many-layered neural networks | The middle layers that go from words to context and tone |

This distinction has a practical use. When a product says it's "AI-powered", there could be a simple prediction model behind it, or a language model with billions of parameters. If you're curious what you're actually using, ask "what was it trained on, and what kind of output does it produce?"; that question tells you more than the label.

## How do chatbots like ChatGPT produce an answer?

The large language models behind chatbots like ChatGPT build an answer step by step by predicting the next token or word [[10]](#kaynak-10). A token is the smallest unit a model splits text into; it can be a word, part of a word or a single character. Large language models predict a token or, sometimes, a sequence of tokens as long as several paragraphs [[11]](#kaynak-11). The model picks a token, adds it to the text and looks at the new text to predict the next one. That's how the answer grows.

Say you typed "Tomorrow in Istanbul the weather". Based on the texts it saw in training, the model calculates which tokens are likely to come next: "will", "looks", "is rainy" and so on. It picks one, adds it and moves on. At this point the model doesn't check tomorrow's forecast. It calculates which continuation fits the language best. The wrong-answer problem in the next section grows out of exactly this.

Large language models predict far better than older language models because they carry many more parameters and gather much more context [[11]](#kaynak-11). Behind that success is a neural network architecture called the transformer. Vaswani and colleagues introduced the transformer in 2017. The architecture relied solely on an "attention" mechanism and dropped entirely the structure of earlier models that processed words one after another. The result was a model that worked more in parallel and took far less time to train; the translation model in the paper was trained in 3.5 days on eight graphics processors [[12]](#kaynak-12). Google today describes the transformer as the most successful and most widely used architecture for language models [[11]](#kaynak-11).

One question sums up what the attention mechanism does. For each token, the model asks: "How much does every other token in the input affect how I should interpret this one?" [[11]](#kaynak-11). In the sentence "The animal didn't cross the street because it was too tired", this is how the model works out from context that "it" points to the animal and not the street. Google's course uses this very sentence [[11]](#kaynak-11).

How are these models trained? According to Google, generative models are first trained with an unsupervised method: there are no correct-answer labels, and the model learns to imitate the data it's trained on. After that, it can get extra training with supervised or reinforcement learning on task-specific data, for tasks like summarizing an article or editing a photo [[6]](#kaynak-6). The way a chatbot answers your question "as if it's chatting" comes from this second stage; underneath, what it does is still predict the next token.

## Why does AI sometimes give wrong information?

Generative AI can give wrong information because it is designed to produce output that resembles its training data, not to establish what is true [[10]](#kaynak-10). Generative models produce output that resembles the statistical distribution of their training data, so they can produce confident but wrong content. NIST treats this as a natural result of how these models are designed [[10]](#kaynak-10). NIST calls this error "confabulation". In everyday speech it goes by "hallucination" or "making things up". Answers that don't match the prompt or that contradict something said earlier in the same conversation fall into this group as well [[10]](#kaynak-10).

When the model in the weather example says "rain tomorrow", it's making a prediction, and sometimes that prediction holds. In NIST's words, statistical prediction can produce accurate and consistent output, and it can also produce wrong or internally contradictory output [[10]](#kaynak-10).

The trouble is that the answer arrives with the same fluency either way.

NIST also says where the risk grows: in open-ended questions that call for long answers, and in areas that rely heavily on context or expertise. The risk arises when the user believes the wrong content, often because of the answer's confident tone [[10]](#kaynak-10). So when you ask a model for precise, expert information such as "which article of this law is it?" or "what's the dose of this drug?", the risk is at its highest.

There are two more sources of error. The first is outdated data. Google's web.dev guide notes that the large data sets used to train models go stale soon after they're used. For some uses they can also be incomplete or too small [[8]](#kaynak-8).

The second is bias. Like all machine learning models, large language models can show all kinds of bias [[11]](#kaynak-11). According to NIST, AI systems can increase the speed and scale at which harmful biases emerge [[10]](#kaynak-10).

The longer an answer is and the more expertise its topic demands, the more carefully you should check the numbers, dates and names in it.

## Where do we run into AI in everyday life?

You run into AI in your inbox's spam filter, your phone's face unlock, voice assistants, translation tools and chatbots. Its use is also spreading fast. According to Stanford's 2026 AI Index, 88% of organizations use AI, and 4 in 5 university students use generative AI [[13]](#kaynak-13). The same report says generative AI reached 53% of the population within three years, faster than the personal computer or the internet spread. The pace varies by country and is strongly linked to income per person. Singapore (61%) and the United Arab Emirates (64%) show higher adoption than their income would predict; the US ranks 24th at 28.3% [[13]](#kaynak-13).

Even if you've never opened a chatbot, you may be running into AI every day. According to IBM, neural networks underpin advances in areas such as computer vision, natural language processing, speech recognition, forecasting and facial recognition [[7]](#kaynak-7). Their everyday versions are familiar:

- The spam filter in your email and the face recognition that unlocks your phone,
- A voice assistant turning what you say into text,
- Weather forecast apps,
- Translation tools; the transformer architecture was first tried on translation [[12]](#kaynak-12),
- Chatbots that generate text, images and code.

At school, AI use is moving faster than the rules. According to the same Stanford report, more than 80% of high school and college students in the US use AI for schoolwork [[13]](#kaynak-13). Yet only half of middle and high schools have an AI policy, and only 6% of teachers say those policies are clear [[13]](#kaynak-13). If your child or you yourself use these tools at school, find out the school's rule before you start.

In Türkiye the topic is on the official agenda too: Türkiye's Artificial Intelligence Action Plan (2026-2030) was published in the Official Gazette (*Resmî Gazete*, where Turkish laws and decrees are officially published) on 18 August 2026 through Presidential Circular No. 2026/9 [[14]](#kaynak-14). If you want to know what the plan sets out, see [the circular's text in the Official Gazette](https://www.resmigazete.gov.tr/eskiler/2026/08/20260818-8.pdf) (in Turkish).

## Why does AI consume energy and water?

Models are trained and run in large data centers; these centers use a lot of electricity and often use water in cooling to bring their energy consumption down [[15]](#kaynak-15). It isn't only the chips that count. The data center's overhead, such as cooling systems and power distribution, consumes energy too [[15]](#kaynak-15). Google's course material also notes that large language models consume enormous amounts of computing resources and electricity [[11]](#kaynak-11). One number for scale: according to Stanford's index, the US has 5,427 data centers, more than 10 times as many as any other country [[13]](#kaynak-13).

Consumption happens at two stages: training the model, and the inference that runs with every question you ask. On the training side, a study by Li and colleagues estimates that training the GPT-3 language model in Microsoft's US data centers could directly evaporate 700,000 liters of clean freshwater. The same study projects that global AI demand will account for 4.2 to 6.6 billion cubic meters of water withdrawal in 2027, more than 4 to 6 times Denmark's annual water withdrawal, or half of the United Kingdom's [[16]](#kaynak-16).

The most detailed figures on the inference side come from one company's own measurement. By Google's calculation, a median text prompt in the Gemini app uses 0.24 Wh of energy. Wh (watt-hour) is a unit of energy; this amount equals watching TV for less than nine seconds. The same prompt emits 0.03 grams of carbon dioxide equivalent and consumes 0.26 milliliters of water, about five drops [[15]](#kaynak-15). The figures come from a one-time analysis based on May 2025 data. Google states that they don't represent all prompts or future performance, and says the energy of the median prompt fell 33-fold and its carbon footprint 44-fold over the previous 12 months [[15]](#kaynak-15). Keep one limit in mind while reading these numbers: according to NIST, there's no agreed-upon method yet for calculating the environmental impact of generative AI [[10]](#kaynak-10).

> Example: Say you ask 20 questions a day and each one uses as much as the median prompt Google reported. That comes to 20 × 0.24 = 4.8 Wh of energy and 20 × 0.26 = 5.2 milliliters of water a day. Over a year (365 days), it adds up to about 1.75 kWh of energy and 1.9 liters of water.

This calculation covers only one person's questions. The total load comes from the questions of a very large number of users together with model training. That is why the weight of the water and energy debate falls on where data centers are built and on how models are trained.

## What should you watch for when using AI?

Treat a chatbot's answer as a draft: check every piece of information you can verify, don't share your personal data, and make the final decision yourself. When NIST lists the characteristics of trustworthy AI, it puts being "valid and reliable" as the foundation for all the others [[17]](#kaynak-17). The list continues with safe; secure and resilient; accountable and transparent; explainable and interpretable; privacy-enhanced; and fair with harmful bias managed [[17]](#kaynak-17). Think in the same order when you use a tool: first, does it work correctly, then the rest.

The problems aren't imaginary. According to Stanford's 2026 index, documented AI incidents numbered 233 in 2024 and reached 362 in the report's latest count [[13]](#kaynak-13). In daily use, these five habits will serve you well:

1. Check numbers, dates, names and quotes against a primary source. When you ask for a legal article, a drug dose, a statistic or a cited paper, verify the answer on the official website, in the drug's package leaflet or in the paper itself.
2. Be careful with questions that need current information. Training data goes stale quickly [[8]](#kaynak-8). When you ask about prices, regulations or recent news, ask what date the answer is based on.
3. Don't type your personal details into the chat. Don't share an ID number, a medical report, bank details or someone else's personal data. NIST counts the leaking of personal information among the risks of generative AI [[10]](#kaynak-10). Also check your tool's privacy settings to see how your chats are stored.
4. Don't over-trust automation. The human tendency to trust the output of automated systems more than is warranted is called automation bias. NIST writes that this tendency can amplify the risks of confabulation and bias [[10]](#kaynak-10).
5. On health, legal and money matters, treat the answer as groundwork. AI helps you understand the problem and ask an expert better questions; base the decision on documents and expert opinion.

Try a short experiment today: ask the chatbot you use a question on a topic you know well, one that calls for numbers and sources, and check two of the facts it gives you yourself. That way you see for yourself which facts hold up and which turn out to be made up. Other articles on machine learning, large language models and data are collected on the [artificial intelligence topic page](https://sciencesyntax.com/en/topics/artificial-intelligence).

This article is for general information only; it is not legal or financial advice.

Last reviewed: 26.11.2026

## FAQ

### How is “artificial intelligence” spelled in Turkish?

The correct spelling is two separate words, “yapay zekâ”. The Turkish Language Association (TDK) writes “zekâ” with a circumflex; the form without it, “zeka”, is also widely seen.

### Does AI run on my phone or in the cloud?

Both are possible. Small models can run directly on the device, while large language models usually run on cloud servers. Hybrid setups try the task on the device first and hand it to the model on the server when the device isn't enough.

### What is a small language model?

A small language model is a language model with fewer parameters than a large language model. According to Google's web.dev guide, where large models carry hundreds of billions of parameters, a small one may have anywhere from a few million to a few billion.

### What is reinforcement learning?

In reinforcement learning, a model receives a reward or a penalty for the moves it makes in an environment and learns the strategy that brings the most reward. It has been used to teach robots to move around a room and to teach AlphaGo to play Go.

## Sources

1. [Bilgisayar Güvenliği Kaynak Merkezi sözlüğü: yapay zekâ — NIST](https://csrc.nist.gov/glossary/term/artificial_intelligence)
2. [AB Yapay Zekâ Yasası, Madde 3: Tanımlar (Tüzük 2024/1689) — EU AI Act Explorer](https://artificialintelligenceact.eu/article/3/)
3. [OECD yapay zekâ sistemi tanımındaki güncellemeler — OECD.AI](https://oecd.ai/en/wonk/ai-system-definition-update)
4. [Stanford Üniversitesi (John McCarthy), Yapay zekâ nedir? Temel sorular — Stanford Üniversitesi](https://www-formal.stanford.edu/jmc/whatisai/node1.html)
5. [Bilgisayar Güvenliği Kaynak Merkezi sözlüğü: makine öğrenmesi — NIST](https://csrc.nist.gov/glossary/term/machine_learning)
6. [Makine öğrenimi nedir? — Google for Developers](https://developers.google.com/machine-learning/intro-to-ml/what-is-ml?hl=tr)
7. [IBM, Sinir ağı nedir? (2024) — What Is a Neural Network? | IBM, 2024-12-02](https://www.ibm.com/think/topics/neural-networks)
8. [Yapay zekâ nedir? (2025) — Google web.dev, 2025-04-22](https://web.dev/articles/ai-overview?hl=tr)
9. [Nöral ağlar (Makine Öğrenimi Hızlandırılmış Kursu) — Google for Developers](https://developers.google.com/machine-learning/crash-course/neural-networks?hl=tr)
10. [Yapay Zekâ Risk Yönetimi Çerçevesi: Üretken Yapay Zekâ Profili (NIST AI 600-1) — NIST, 2024-08-05](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.600-1.pdf)
11. [Büyük dil modeli nedir? (Makine Öğrenimi Hızlandırılmış Kursu) — Google for Developers](https://developers.google.com/machine-learning/crash-course/llm/transformers?hl=tr)
12. [Attention Is All You Need: transformer mimarisi (arXiv, 2017) — Vaswani ve diğerleri, 2023-08-02](https://arxiv.org/abs/1706.03762)
13. [2026 Yapay Zekâ Endeksi Raporu — Stanford HAI](https://hai.stanford.edu/ai-index/2026-ai-index-report)
14. [Türkiye Yapay Zekâ Eylem Planı (2026-2030) ile ilgili 2026/9 sayılı Cumhurbaşkanlığı Genelgesi (2026) — Resmî Gazete, 2026-08-18](https://www.resmigazete.gov.tr/eskiler/2026/08/20260818-8.pdf)
15. [Google Cloud, Yapay zekâ çıkarımının çevresel etkisini ölçmek (2025) — Google Cloud Blog, 2025-08-21](https://cloud.google.com/blog/products/infrastructure/measuring-the-environmental-impact-of-ai-inference)
16. [Yang, Islam ve Ren, Yapay zekâyı daha az “susuz” yapmak: yapay zekâ modellerinin gizli su ayak izi (arXiv) — Li, 2025-03-26](https://arxiv.org/abs/2304.03271)
17. [Yapay Zekâ Risk Yönetimi Çerçevesi (AI RMF 1.0) — NIST, 2023-01-24](https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf)
