WHY this matters in biology: biological rules are often unknown or too complex to write by hand (e.g. "which DNA sequences are promoters?"). ML discovers them statistically.
Iteratively updates parameters opposite to the gradient of the loss to walk downhill toward a minimum.
What is overfitting?
Model memorizes training noise → high train accuracy but poor performance on unseen data.
Why split data into train/validation/test?
To measure honest generalization on data the model never trained on.
Why one-hot encode DNA bases instead of A=1,C=2,G=3,T=4?
Integer coding invents a false ordering/magnitude between bases that biology doesn't have.
Curse of dimensionality in genomics?
Many features (genes) but few samples (patients) makes overfitting easy.
Recall Feynman: explain to a 12-year-old
Imagine you show a friend hundreds of photos and say "this is a cat, this is a dog." Later they can guess new photos on their own — they learned from examples, you never gave them a rulebook. Machine learning is teaching a computer the same way, but with biology: show it DNA that causes disease and DNA that doesn't, and it learns to spot the dangerous ones. The trick is: it must guess new ones right, not just remember the ones you showed it — like a student who understands instead of memorizing the answer key.
Dekho, biology aaj kal itna zyada data bana rahi hai — poora genome billions of letters ka, har cell mein hazaaron gene expression values — ki koi insaan haath se ye sab analyse nahi kar sakta. Yahin machine learning kaam aata hai: hum computer ko rule likh ke nahi dete, balki examples dikhate hain aur wo khud pattern seekh leta hai. Jaise ek bacche ko cat aur dog ki photos dikhao, wo baad mein nayi photo bhi pehchaan leta hai — same idea.
Do main types samajh lo: supervised (jab hamare paas labels hain, jaise "ye tumor cancer hai / nahi hai"), aur unsupervised (jab labels nahi hain, hum bas similar cells ko group/cluster karte hain). Model ko "seekhna" ka matlab hai — usko numbers mein input (features) do, wo ek function f dhoondhta hai jo input ko output se jodta hai. Sabse simple model linear regression hai: y^=wx+b, aur w,b ko hum loss (galti) minimize karke nikaalte hain, aksar gradient descent se dheere-dheere neeche utar ke.
Sabse zaroori baat — generalization. Model ka train data pe 99% accuracy hona bekaar hai agar wo naye patient pe fail ho jaaye. Isliye hamesha data ko train/test mein todo aur test set pe honest score dekho. Overfitting matlab ratta maar liya (noise bhi yaad kar liya), underfitting matlab kuch seekha hi nahi. Aur yaad rakhna: ML jo correlation dhoondhe wo causation nahi hai — usko hypothesis maano, phir lab mein verify karo. Bas yahi core intuition FLOG mnemonic mein hai: Features → Loss → Optimize → Generalize.
Test yourself — Bioinformatics & Computational Biology