Structured Data
Neat rows and columns: bank transactions, lab results, vital signs, flight schedules. Easy to store, search, and feed directly into classic machine learning models.
Part 2 · Article 1 Stage 1 · Foundations
Numbers, text, pictures, and sound—how computers chop up the rich, messy real world and turn every single clue into plain numbers.
About 13–15 minutes
Open your photo gallery, play a voice note from a friend, and read a hospital blood-test report. To your human brain, those are three completely different experiences: a smiling face, a familiar voice, and a clinical document. To a computer, they are all the exact same thing—giant, neatly arranged grids of numbers.
Before a machine can learn a single pattern, spot a fracture on an X-ray, or predict the next word in a sentence, the raw world has to be translated into math. That translation step is called representation (or encoding), and it is the quiet superpower behind all of modern artificial intelligence [1].
Think of data the way a chef thinks of raw ingredients. You can own the most expensive oven in the world (the fanciest AI algorithm), but if your ingredients are rotten, mislabelled, or full of grit, the meal will taste terrible. In AI, people have a blunt four-word rule for this: Garbage In, Garbage Out. Understanding how everyday things—numbers, text, pictures, and sound—become machine-readable ingredients is the foundation for understanding everything else in machine learning.
ZappyHold on, Prof! When an AI looks at a photo of a dog, doesn't it see furry ears and a wet nose like I do?
Prof. BoltNot a single hair, Zappy! It sees a spreadsheet with millions of tiny cells—like 214, 189, 142—representing how bright red, green, and blue are at each microscopic dot.
The easiest ingredient for a computer to digest is structured (tabular) data—information that already lives in rows and columns, just like an Excel sheet or a clinic's electronic health record (EHR). Each row represents one item or one patient visit, and each column represents one measurable feature.
In a hospital diabetes clinic, a single row might look like: Age = 56, Fasting Blood Glucose = 148 mg/dL, HbA1c = 7.4%, Systolic Blood Pressure = 136 mmHg, BMI = 28.4. Notice how clean that is—every column is already a number. Even simple yes/no categories like "Smoker?" or "Taking Metformin?" are effortlessly converted into 1 for Yes and 0 for No.
Yet even "clean" numbers have sneaky traps. What if one nurse enters a patient's height in centimeters (172) while another enters it in meters (1.72)? What if a lab sensor glitches and records a body temperature of 986°F instead of 98.6°F? Before any machine learning model touches a table, data scientists spend up to 70% of their time cleaning missing cells, fixing unit mix-ups, and scaling numbers so one giant column (like annual income in rupees) doesn't drown out a smaller column (like age in years) [2].
Neat rows and columns: bank transactions, lab results, vital signs, flight schedules. Easy to store, search, and feed directly into classic machine learning models.
Messy real-world media: X-ray images, doctor voice notes, free-text discharge summaries, smartwatch ECG waves. Makes up roughly 80% of all healthcare data today.
Zoom in super close on any digital photograph or medical scan, and the smooth picture breaks apart into tiny square tiles called pixels (short for "picture elements"). In a simple black-and-white chest X-ray, every single pixel is assigned one number—typically from 0 (pure pitch black, like air in the lungs) to 255 (pure bright white, like dense rib bone or a metallic knee implant) [3].
A standard high-resolution chest X-ray is roughly 2,000 pixels wide by 2,000 pixels tall. Multiply those together and you get 4 million numbers for a single picture! For a color photograph—like a dermatologist's photo of a skin mole—the computer stores three stacked grids for every pixel: one for Red (0–255), one for Green (0–255), and one for Blue (0–255). A 3D MRI or CT scan simply stacks hundreds of 2D slices on top of each other into tiny 3D cubes called voxels.
Once the image is a giant matrix of numbers, a computer can do arithmetic on it: subtracting neighbor pixels reveals sharp edges (like a bone fracture line), while comparing clusters of bright values reveals cloudy patches inside an otherwise dark lung field.
Sound is simply air vibrating back and forth against your eardrum. When a microphone records your voice—or when a digital stethoscope listens to a patient's heart valves clicking shut—it measures the air pressure thousands of times every single second. Standard CD-quality audio takes 44,100 measurements per second; phone calls take 8,000 to 16,000 per second.
String those rapid measurements together and you get a long list of positive and negative numbers representing the sound wave. Even cleverer: engineers often convert that 1D sound wave into a 2D picture called a spectrogram—a colorful heat map showing time from left to right, pitch (frequency) from bottom to top, and loudness as brightness [4].
Once a heartbeat, a cough, or a spoken sentence becomes a spectrogram picture, the exact same image-reading AI tools used on X-rays can "look" at the sound! In cardiology clinics, digital stethoscopes already convert heart murmurs into spectrograms so deep learning models can flag abnormal valve leaks in seconds.
Turning words into numbers is trickier than pixels. You could just number every word in the dictionary—apple = 1, apricot = 2, ambulance = 3—but those numbers carry zero meaning. Alphabetical order puts "ambulance" right next to "apple" even though they have nothing in common.
Modern AI solves this in two brilliant steps. First, it chops text into bite-sized pieces called tokens (whole common words like "heart" or word chunks like "cardio" + "logy"). Second, it maps every token to a list of hundreds or thousands of decimal numbers called an embedding—essentially GPS coordinates in a giant map of meaning [5].
On this meaning map, words that appear in similar contexts live in the same neighborhood. The coordinates for "fever," "chills," and "infection" cluster tightly together; "aspirin," "ibuprofen," and "paracetamol" form another neighborhood across town. Even relationships become geometry: the mathematical direction from King to Queen is nearly identical to the direction from Doctor to Physician or Knee to Joint. Suddenly, computers can measure similarity between medical notes, search patient histories by meaning rather than exact spelling, and generate fluent text.
| Real-World Input | How It Is Chopped Up | What the Numbers Represent | Healthcare Example |
|---|---|---|---|
| Spreadsheets | Rows & columns | Measurements & 0/1 flags | Blood pressure, HbA1c, lab panels |
| Images / Scans | Pixels (2D) or Voxels (3D) | Brightness (0–255) per channel | Chest X-rays, retinal photos, knee MRIs |
| Audio / Signals | Time samples & Spectrograms | Wave amplitude & frequency energy | Digital stethoscopes, ECG waves, voice notes |
| Text / Notes | Tokens & Embeddings | Coordinates in meaning-space | Discharge summaries, pathology reports |
Movie montages make AI look like scientists typing glowing equations at midnight. Real-world AI work looks much more like a meticulous librarian sorting boxes of rain-damaged folders. In healthcare especially, real-world data is notoriously messy [6].
One hospital records "Type 2 Diabetes" using an official billing code; another doctor scribbles "T2DM" in free text; a third writes "DM-II uncontrolled." A busy clinic forgets to enter patient weights on 30% of visits. Two CT scanners from different manufacturers use slightly different brightness calibrations. If you dump all of that straight into an AI model without cleaning and standardizing it first, the machine learns the quirks of the filing cabinets instead of the biology of the disease.
There is also a crucial privacy layer: before medical data can be used to train AI, personal identifiers—names, phone numbers, dates of birth, and even text burned onto the corner of an X-ray image—must be carefully stripped away (de-identified) so patient confidentiality stays protected.
Better, cleaner data almost always beats a fancier algorithm trained on sloppy data.
ZappySo once everything—photos, heartbeats, and clinic notes—becomes numbers, the exact same math engines can learn from all of them?
Prof. BoltYou got it! Numbers are the universal language of machines. Master how raw reality gets translated into clean numbers, and you hold the key to how all AI works.
To really appreciate how computers turn one human being into numbers, follow a single patient—let's call him Rajesh, age 62—as he walks into a hospital outpatient clinic for persistent knee pain and occasional shortness of breath. Within thirty minutes, Rajesh generates four completely different kinds of raw data, and every single one gets converted into math before any AI tool touches it.
1. The Intake Form (Tabular Numbers): The nurse enters Rajesh's age (62), weight (84 kg), height (170 cm), systolic blood pressure (142), and fasting blood sugar (118). His "Hypertension History" checkbox becomes a simple 1; "Prior Knee Surgery" becomes 0. That entire medical summary is now a neat 15-number vector.
2. The Standing Knee X-Ray (Pixel Matrix): The radiology technician takes a standing front-and-side X-ray of both knees. The digital detector captures a grid of 2,500 × 2,000 grayscale pixels—5 million brightness numbers. Dark air and joint space read near 20; dense thigh and shin bone read near 235. Where the cartilage cushion has worn thin, the bright white bone edges sit closer together—a pure geometric distance pattern in the number grid.
3. The Digital Stethoscope Check (Wave to Spectrogram): Because Rajesh mentioned mild breathlessness, the doctor places a digital stethoscope on his chest for 15 seconds. At 4,000 samples per second, that 15-second clip turns into 60,000 wave-height numbers, which the software transforms into a colorful 2D spectrogram showing the rhythmic "lub-dub" beats as bright low-frequency spikes and any subtle wheezing as faint high-frequency streaks.
4. The Doctor's Dictated Note (Tokens & Embeddings): Finally, the doctor speaks into a microphone: "62-year-old male with medial compartment knee osteoarthritis, mild exertional dyspnea, consider conservative physiotherapy before total knee arthroplasty." A speech model turns those audio waves into text, chops the text into 24 tokens, and maps each token into a 1,536-number meaning coordinate so hospital search engines can index it alongside millions of similar cases.
Computers cannot multiply by "blank." If a clinic forgets to record Rajesh's weight, engineers must decide: fill in the clinic average (imputation), add a special "weight missing = 1" flag, or drop the row—because even the fact that a lab test was not ordered is often a clinical clue!
Mixing pounds and kilograms—or Celsius and Fahrenheit—in the same column is like mixing rupees and dollars without converting. Normalization rescales every column onto a fair, shared playing field (usually between 0 and 1) so no single giant number bullies the math.
Before any hospital, startup, or school builds an AI tool, smart teams grade their raw ingredients against five simple questions:
If your data passes those five checks, even a simple, transparent machine learning algorithm will perform remarkably well. If it fails them, no billion-dollar supercomputer on Earth can rescue the output.
Checked December 2026. Source types are labelled. Dialogue is fictional.