Part 2 · Article 1 Stage 1 · Foundations

DATA: THE RAW INGREDIENT

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

01

Computers Are Completely Blind to Everything Except Numbers

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.

02

Ingredient 1: Tabular Data (Already Neat Numbers)

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].

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.

Unstructured Data

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.

TURNING PICTURES, SOUND & TEXT INTO MATHHow computers translate what we see, hear, and read into grids of numbers
03

Ingredient 2: Pictures Become Grids of Brightness Numbers

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.

How One Digital Photo Explodes Into Numbers
1 Color Photo (1000 × 1000 px) 3 Color Channels (R, G, B) 3,000,000 Numbers (0–255) Fed Into Neural Network
04

Ingredient 3: Sound Becomes Slices of Waves (and Spectrograms)

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.

05

Ingredient 4: Text Becomes Tokens and Meaning-Coordinates (Embeddings)

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 InputHow It Is Chopped UpWhat the Numbers RepresentHealthcare Example
SpreadsheetsRows & columnsMeasurements & 0/1 flagsBlood pressure, HbA1c, lab panels
Images / ScansPixels (2D) or Voxels (3D)Brightness (0–255) per channelChest X-rays, retinal photos, knee MRIs
Audio / SignalsTime samples & SpectrogramsWave amplitude & frequency energyDigital stethoscopes, ECG waves, voice notes
Text / NotesTokens & EmbeddingsCoordinates in meaning-spaceDischarge summaries, pathology reports
06

The Hidden Cost of Messy Data: Why 80% of AI Work Is Housekeeping

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.

Where AI Teams Actually Spend Their Project Time
Collecting & Cleaning Data
~70–80% of Time
Training & Tuning Model
~15–20% of Time
Deployment & Monitoring
Ongoing

Better, cleaner data almost always beats a fancier algorithm trained on sloppy data.

Never assume "more data" automatically equals "better AI." Ten million blurry, mislabelled, or duplicate records will build a worse model than fifty thousand clean, carefully verified examples.

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.

Computers cannot see images, hear voices, or read words—they only process numbers. Turning tables, pixels, sound waves, and text tokens into clean numerical representations is the essential first step of every AI system.
07

Walkthrough: Inside a Single Patient's Digital Twin

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.

Why Missing Values Break Models

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!

Why Units Matter So Much

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.

08

The Five-Point Data Quality Checklist

Before any hospital, startup, or school builds an AI tool, smart teams grade their raw ingredients against five simple questions:

  1. Accuracy: Are the measurements actually right, or is a broken scale adding 5 kg to every third patient?
  2. Completeness: Are critical columns mostly filled in, or are 60% of entries blank?
  3. Consistency: Does every branch use the exact same date format, units, and diagnostic codes?
  4. Freshness: Were these records collected last month, or are they ten years old from an era before modern treatments existed?
  5. Relevance & Consent: Do we actually have ethical permission and patient privacy safeguards to use this data for learning?

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.

The evidence file

Checked December 2026. Source types are labelled. Dialogue is fictional.

  1. Deep Learning (Goodfellow, Bengio & Courville), MIT Press, 2016; Chapter 1 on why numerical representation determines machine learning performance.
  2. What Data Scientists Really Do, Harvard Business Review, 2018; industry survey showing 60–80% of project effort goes to data cleaning and preparation.
  3. Medical Imaging Pixel Intensity & Hounsfield Units, Radiopaedia Clinical Reference, updated 2025; how X-rays and CT scans encode tissue density as numerical grids.
  4. Deep learning for automated heart murmur detection from digital stethoscopes, npj Digital Medicine, 2021; converting auscultation audio waves into 2D spectrograms.
  5. Efficient Estimation of Word Representations in Vector Space (Word2Vec), Research Paper (Mikolov et al.), 2013; landmark demonstration of semantic word embeddings.
  6. High-performance medicine: the convergence of human and artificial intelligence, Nature Medicine (Eric Topol), 2019; challenges of unstructured and fragmented electronic health record data.
Write to ussrini.present@gmail.com
Read more: srinipresents.com