A dark shadow approaches. The human brain, machine learning, deep learning, and the fruit fly brain each process this scene along a different path. We run the four paths side by side, then pit machine learning, where people choose the features, against deep learning, which learns even the features by itself, on the same scenes. Finally, we separate the cases where computations resembling neural networks have been confirmed in real brains from the parts that remain estimates.
A single stimulus enters four systems at the same time. They differ in the number of stages, what each stage does, and who decided what it does.
All four paths share the same main flow: take in → organize → judge → act. The difference is "who decided what to use as clues (features)." In machine learning, people decide (yellow border); in deep learning, they are learned from data (green border). The fruit fly's looming-detection circuit is not learned but formed during development (pink border). You could say evolution "decided" it over a long time.
The human brain row shows only the main flow found in textbooks. The real brain has many feedback connections running backward, as well as fast shortcuts (such as the path from the eye to the superior colliculus in the midbrain). For the final "judge" stage, all that is known is that several regions work together, so it is drawn with dashed lines. The speed of the animation has nothing to do with actual processing time.
Each sense has its own receiving organ and its own route. Pick a sense, follow the path its signal takes, and check how firmly each stage is established.
To measure the signals of individual neurons, electrodes must be placed in the brain. In humans this is possible only in very limited cases, such as patients who need surgery anyway. So much of our cell-level knowledge comes from animal experiments on cats, monkeys, and the like, while in humans we rely mainly on methods that measure activity over wide areas, such as brain imaging. In fruit flies, genetic tools can switch only the desired neurons on and off, so "this neuron is necessary for this behavior" can be tested directly. That is why this series uses the fruit fly as its guide.
People: choose features → Machine: learn weightsSamuel, 1959
Looking at two 12×12 black-and-white scenes (before and after), the system must decide "is an object approaching?" First, people choose the clues for the decision, that is, the features. For example: "how much did the dark area grow?" and "how far did the shadow's center move?" The 288 pixels are reduced to 2 numbers.
It learns a weight for each of the 2 numbers plus a bias, 3 values in all, from 240 training examples (logistic regression). The line on the plane on the right is the result. After training, its skill is measured on 160 test scenes it has never seen.
Samuel's 1959 checkers program, which popularized the term "machine learning," worked this way too. People supplied a list of judgment criteria that "seemed relevant to the game," and the program, game after game, learned only how much weight to give each criterion [R11]. People decide what to look at; the machine decides how much to trust it.
So performance depends heavily on choosing good features. With feature A, a scene where "the whole room gets darker" is mistaken for an approaching object. This is not fixed even if such scenes are in the training data, because the information needed to tell them apart from approaching objects is already lost the moment everything is reduced to 2 numbers. It is solved only when a person imagines that situation and designs a new clue, as with feature B. This work of devising features is called feature engineering.
288 pixels → 6 hidden neurons → probability of approach1,741 weights
People do not choose the features. Instead, they decide the shape of the neural network (how many hidden neurons, how many layers) and choose which scenes to show it, that is, the training data.
It takes the 288 pixels as they are. Each of the 6 hidden neurons learns, through its weights, "which cells changing in which way should turn it on." The small grid images in the middle figure are the result: features the neural network made by itself.
Deep learning finds features in the data instead of having people choose them. So it can pick up clues people never thought of, and it is especially strong on data such as photos, sounds, and text, where features are hard to put into words. The neural network on this page is a very small model with just one hidden layer, but the principle is the same as in models with dozens of layers. As layers get deeper, the early layers learn simple features such as edges, and the later layers learn complex features that combine them [R12].
It is not free. Machine learning learns 3 weights; deep learning learns 1,741. The more there is to learn, the more examples are needed. When we actually ran Code 2, with only 8 training scenes the feature B approach reached 100% test accuracy while the pixel approach reached 93.9%; only at 240 scenes did the two become equal. And as "Without lighting changes" shows, deep learning also gets things wrong in situations that were not in the data. The human role of choosing features simply shifts to the role of choosing data.
We look at four places where experiments have tested how far the claim "neural networks resemble the brain" holds. The figures are illustrative reproductions that convey only the direction of the papers' results; they are not actual measurements.
| Case | Confirmed by experiment | Similar thing in neural networks | Analogy strength |
|---|---|---|---|
| Fruit fly LPLC2 | Responds strongly only to motion spreading outward in all directions, and not to receding or to dimming without motion. Provides input to the escape pathway [R6] | A feature detector that turns on only for a specific pattern. The circuit does what feature B in Section 3 was deliberately designed to do | Direct Even the computation (outer excitation + inner inhibition) has been worked out |
| Fruit fly mushroom body | Kenyon cells receive inputs from several glomeruli in nearly random combinations [R7]. Only a few turn on for any one odor [R9], and learning happens at the output-side connections [R8] | A wide hidden layer fixed at random + only the output layer is trained. The "fruit fly method" in 3-2, Section 6 | Direct The structure corresponds. However, in deep learning all hidden layers are usually trained |
| Cat primary visual cortex | Neurons that respond strongly to bars tilted at a specific orientation [R3] | Orientation-specific edge features learned by the first layer of image neural networks [R12] | Partial The results look alike, but the way they come about differs |
| Monkey inferior temporal cortex | Groups of neurons that respond selectively to faces [R4]. The upper layers of neural networks trained to be good at object recognition predict this region's responses well [R5] | Increasingly complex features layer by layer (3-2, Section 4: representation learning) | Partial Good prediction, but not evidence of the same computation |
Data → processing → learning → prediction → repetition. We place side by side how a child comes to tell dogs from cats and how an AI learns the same thing from photos.
| Step | Human (child) | AI (photo classification model) | Key difference |
|---|
Both code examples use only libraries preinstalled in Colab. After "Download notebook (.ipynb)", open it in Colab with File → Upload notebook, or copy the code and paste it into a new notebook cell.
This reproduces the Section 3 & 4 experiments on this page. On the same scenes it compares logistic regression with features A and B against a neural network that takes raw pixels (trained on data with / without lighting changes), and it plots the features the neural network made by itself. To use your own data, see the parts marked [To use your own data] in the code.
This runs the same comparison with libraries used in practice. Increasing the number of training examples from 8 to 240, it plots the test accuracy of human-made features (machine learning) and raw pixels (deep learning). For each size, five samples were drawn and averaged.
These are prompts to paste into AI assistants such as ChatGPT, Qwen, or Claude. Pressing "Copy" attaches the chosen code after the prompt. Replace the parts in 〔 〕 with your own situation.
An AI's answer is only a starting point. Always check any papers, figures, or library functions it suggests against the original sources and official documentation. If you used AI help for a competition entry or paper, disclose the fact and extent of its use according to the rules of the organizers and the journal.
This is the same dictionary as the yellow dotted underlines in the text. The same terms are used throughout the series. Click a section name to jump to where the term first appears.
Analogies are a first step to understanding, but they can also seed misunderstanding. Fruit fly and brain analogies are marked by strength. Direct evidence that they actually do the same thing · Partial only some properties are similar · None no known counterpart
| Concept | Everyday analogy | Fruit fly / brain analogy | Where the analogy breaks down |
|---|---|---|---|
| Feature | The clues you check when picking fruit (color, weight, smell) | Direct LPLC2 detects just one feature: "motion spreading outward in all directions" | Most features a neural network learns are not clues people can put a name to |
| Machine learning | A new hire whose checklist items are set by a senior colleague, and who learns only the score for each item through experience | Partial An insect brain in which only some connections change through learning, on top of detection circuits fixed in advance by evolution | Evolution does not "design" features with a purpose. It is simply the result of selection over long ages |
| Deep learning | An apprentice who sets their own standards by seeing many cases without a checklist | Partial Responses resemble the layered structure of the monkey visual pathway | Similar responses do not mean it learns the same way. Whether the brain does backpropagation has not been confirmed |
| Stacked layers | A factory line that assembles parts step by step | Partial Primary visual cortex → V2 → V4 → inferior temporal cortex | The brain has many backward feedback connections, so signals do not flow in only one direction |
| Random expansion + output learning | Assigning lockers at random, then only putting new name tags on them | Direct Mushroom body: nearly random inputs, only a few cells on, learning on the output side | The mushroom body's thousands of cells and the details of its learning signal (dopamine) are far more complex than a deep learning model |
| Preprocessing | Prepping ingredients before cooking | Partial The retina and lamina tidy up brightness changes first | Biological preprocessing is not a rule set by people but the structure of the sense organs itself |
| Learning | Practicing until it becomes second nature | Partial Changes in synaptic connection strength | The rules differ: by what criterion, which synapses, and by how much they change |
| Situations not in the data | A test question of a type not in the textbook | None | A person facing a new situation can stop and say "I don't know," but a neural network may give a confident wrong answer (Section 4) |
| Probability output | The chance of rain in a weather forecast | None | A high probability from the model does not mean it is right. Outside the training range, the probability cannot be trusted either |
E-1 About the author · E-2 Academic references · E-3 Figure sources
A guide for instructors, on-the-job (OJT) trainers, and tutors. Times are estimates; adjust them to your actual class.
| Audience | University students, working adults, and high school students new to AI. As the first part of the series, it can be read without equations. With basic Python, learners can also do the Colab exercises |
|---|---|
| Prerequisites | None. It helps to know something like "neurons send and receive electrical signals" |
| Learning objectives | ① Compare and explain the paths by which the human brain, machine learning, deep learning, and the fruit fly brain process a stimulus ② Explain the difference between machine learning and deep learning in terms of "who decides the features," and give an example of each one's limits ③ Distinguish what brain research has established from what is estimated |
| Estimated time | Reading 30–40 min · animation demo 20 min · Colab exercises 25 min (Code 1: 10 min, Code 2: 15 min) |
Intro 5 min (Section 1, approaching shadow) → Section 2, four senses 10 min → Sections 3 & 4, lighting-trap showdown 20 min → Section 5, pick one case 10 min → check questions 5 min.
Sections 3 & 4, 15 min → discussion "What features could people define in our work data?" 20 min → Code 2 exercise 25 min → use the Section 6 table to summarize "five steps of AI adoption for our team" 20 min → prompt cards 10 min.
Beginners: Sections 1, 3, 4, and 6 only. Intermediate learners: have them explain with the plane figure why feature A in Section 3 is not fixed by adding more data, then have them design one more feature themselves in Code 1.
| Section | Questions to pause and ask | Hands-on tips |
|---|---|---|
| 1 Four paths | "What do all four paths have in common? Who decided how it is done?" | Click each option under "Path to inspect" and compare the border colors (yellow, green, pink) |
| 2 Human brain | "What is different about smell alone?" | Look at vision, then switch to smell and point out that it skips the thalamus |
| 3 Machine learning | "Why is the whole room getting darker mistaken for something approaching?" | Select "Lights dimming" with feature A, then switch to B and watch the yellow dots move on the plane |
| 4 Deep learning | "If people don't choose the features, what do they have to decide?" | Train with "Without lighting changes" to show the failure first, then retrain "With" lighting changes |
| 5 Confirmed cases | "How is 'the brain and neural networks are similar' different from 'they are the same'?" | Read the analogy strength (Direct / Partial) in the table together with the evidence |
| 6 Steps of learning | "Does AI keep learning after it is deployed?" | Click "Next step" through to ⑤ Repetition and read the table's "Key difference" aloud |
| Misconception | Correct explanation | Scene to show |
|---|---|---|
| Deep learning is a direct copy of the human brain | It borrowed only the skeleton: layers and connection strengths. Its way of learning (backpropagation) has not been confirmed in the brain | Section 2 "estimated" list, Section 5 table |
| Deep learning is always better than machine learning | When good features are known and data is scarce, machine learning can be better | Code 2 results in the Section 4 explanation box |
| Deep learning needs no human input at all | Instead of features, choosing the data becomes the human's job. It fails in situations not in the data | Section 4 "Without lighting changes" |
| Machine learning and deep learning are different fields | Deep learning is a branch of machine learning: machine learning that learns even the features from data | The two-row comparison in Section 1 |
| How the brain works has been fully figured out | The main routes of the sensory pathways are known, but decision-making and learning rules are still under research | The dashed stages in Section 2 |
In (traditional) machine learning, people choose the features and the machine learns a weight for each feature. In deep learning, the machine learns even the features from the raw data. Section 3 learned 3 weights; Section 4 learned 1,741.
The moment a scene is converted to feature A (area change, center shift), a lighting scene becomes a point where "the area grows a lot and the center stays put," landing on the same side as approaching scenes, even farther out. A single straight line cannot separate it from approaching scenes. Adding data does not fix it, because the features have lost the information.
Smell. It goes olfactory epithelium → olfactory bulb → piriform cortex. Vision, hearing, and touch pass through the thalamus.
Both distinguish "an object expanding in all directions" from "simply getting darker." LPLC2 does not respond to dimming without motion. The difference is that feature B was designed by a person, while LPLC2 is a circuit formed during development.
It can fail when it meets situations not in the training data (the lighting changes in Section 4). You must measure it on unseen test data and check whether the situations that can occur in the field are included in the training data.
Add "approaching at an angle" (the shadow grows while its center also moves a lot) to the scene types in Code 1. Summarize in a table how the test accuracy of features A and B and of the neural network changes, and explain why in three sentences.
Pick one dataset from your own work and design 3 "features people can define." Following the approach of Code 2, compare features + logistic regression against raw data + neural network across numbers of training examples, and write a conclusion, with reasons, on which one to use.
| Beginners | Skipping the Section 2 table and Section 5 does not break the flow. Just make sure to clearly show the single "Lights dimming" case in Sections 3 & 4 |
|---|---|
| Advanced | Discuss why, in the hidden neuron images of Section 4, the "before scene" and "after scene" weights take opposite colors (after − before = a filter that looks at change). Continue on to backpropagation in 3-2 |
| Further learning | Sangsun Ahn, “Data Science for Business” lecture notes (data science in general) · STEP [K-Digital] AI Natural Language Processing (linked to 3-5 and 3-8) · STEP [K-Digital] Fundamentals of Fintech Data Analysis (linked to 3-6) |
| Materials for instructors | Grading criteria for the check questions and sample answers for the assignments are on the answer key for educators (3-1) |
You've read all of "3-1 How AI Works." The lab members each have a few words to sum it up for you.