6.4.12 · HinglishBioinformatics & Computational Biology

Introduce machine learning in biology

1,971 words9 min readRead in English

6.4.12 · Biology › Bioinformatics & Computational Biology


What is Machine Learning?

KYU yeh biology mein matter karta hai: biological rules aksar unknown hote hain ya haath se likhne ke liye bahut complex hote hain (e.g. "kaun se DNA sequences promoters hain?"). ML unhe statistically discover karta hai.

The three learning paradigms


Features and Labels (the vocabulary)

Classification = label ek category hai. Regression = label ek continuous number hai.


Model "learn" kaise karta hai? (Derivation from scratch)

Hum sabse simple supervised model — linear regression — derive karte hain, kyunki baaki sab cheez is idea ka generalization hai.

KYU hume ek loss chahiye: "learning" ka matlab hai choose karna taaki predictions true ke close hon. Hume ek aisa number chahiye jo "ghalat hona" measure kare.

Figure — Introduce machine learning in biology

Crucial idea: Generalization, memorization nahi


Worked Examples


Common Mistakes (Steel-man + fix)


Flashcards

Machine learning ek line mein kya hai?
Aisi methods jo ek program ko hand-coded rules ki jagah data se patterns seekh kar task mein improve karne deti hain.
Supervised learning mein kaisa data hota hai?
Labeled examples ; yeh inputs ko known outputs se map karna seekhta hai.
Unsupervised learning mein kya hota hai?
Sirf inputs (koi labels nahi); yeh clusters jaisi structure dhundta hai.
Classification aur regression mein kya fark hai?
Classification ek category predict karta hai; regression ek continuous number predict karta hai.
"Features" kya hote hain?
Numerical inputs jo model ke liye biological data encode karte hain.
Hum loss ke roop mein Mean Squared Error kyun use karte hain?
Yeh hamesha positive hota hai, bade errors ko penalize karta hai, aur smooth/differentiable hai toh hum ise minimize kar sakte hain.
Linear regression ke liye closed-form slope kya hai?
(covariance/variance).
Gradient descent kya karta hai?
Parameters ko loss ke gradient ke ulti direction mein iteratively update karta hai taaki minimum ki taraf neechey ja sake.
Overfitting kya hai?
Model training noise memorize karta hai → high train accuracy lekin unseen data par kharab performance.
Data ko train/validation/test mein kyun split karte hain?
Model ne jis data par train nahi kiya usPar honest generalization measure karne ke liye.
DNA bases ko one-hot encode kyun karte hain A=1,C=2,G=3,T=4 ki jagah?
Integer coding bases ke beech ek false ordering/magnitude invent karta hai jo biology mein nahi hoti.
Genomics mein curse of dimensionality?
Bahut saare features (genes) lekin kam samples (patients) hone se overfitting aasaan ho jaati hai.

Recall Feynman: ek 12-saal ke bachche ko explain karo

Socho tum apne dost ko saikdon photos dikhate ho aur kehte ho "yeh cat hai, yeh dog hai." Baad mein woh khud naye photos guess kar sakta hai — usne examples se seekha, tumne use koi rulebook nahi di. Machine learning ek computer ko usi tarah sikhana hai, lekin biology ke saath: usse woh DNA dikhao jo disease cause karta hai aur woh jo nahi karta, aur woh dangerous wale pehchanna seekh jaata hai. Trick yeh hai: use naye wale bhi sahi guess karne chahiye, na sirf jo tumne dikhaye the yaad rakhne — jaise ek student jo samajhta hai answer key memorize karne ki jagah.

Connections

  • Supervised Learning Algorithms — jahan classification/regression models detail mein hain.
  • Unsupervised Learning & Clustering — cells aur genes ko group karna.
  • Neural Networks & Deep Learning in Biology — is note ke linear model ka nonlinear extension.
  • Gene Expression Analysis — ML features ka ek major source.
  • Protein Structure Prediction (AlphaFold) — ek landmark ML application.
  • Sequence Alignment — classical (non-ML) pattern matching, contrast ke liye.
  • Statistics: Covariance and Variance — regression slope ke peeche ka math.

Concept Map

hand rules ke liye bahut complex

function estimate karta hai

inputs

outputs

one-hot / expression vectors

paradigm

paradigm

paradigm

category label

continuous label

simplest model

ghalat hona measure karta hai

minimize karke seekhna

Biological big data

Machine Learning

f maps X to y

Features X

Labels y

Biology numbers ke roop mein encode ki gayi

Supervised: labeled X,y

Unsupervised: only X

Reinforcement: rewards

Classification

Regression

Linear regression y = wx + b

MSE loss L w,b

Weights w, bias b