Bioinformatics and Machine Learning Reference Guide

Introduction to Bioinformatics and Machine Learning

  • Bioinformatics and Genomics: Bioinformatics combines computational tools, statistics, and biological data analysis. Genomics is the comprehensive study of the structure, function, mapping, and sequencing of entire genomes.
  • Chargaff's Rule: In double-stranded DNA, base pairs occur in equimolar amounts: Adenine equals Thymine (A=TA = T) and Guanine equals Cytosine (G=CG = C).
  • Five Vs of Big Data: Volume, Velocity, Variety, Veracity, and Value characterize high-throughput biological data generation.
  • Artificial Intelligence (AI\text{AI}) and Machine Learning (ML\text{ML}):
    • AI\text{AI} enables systems to simulate human cognitive functions and automate complex medical decision-making.
    • ML\text{ML} develops algorithms that detect underlying patterns and infer predictive functions directly from data.
    • The three primary learning paradigms are Supervised Learning, Unsupervised Learning, and Reinforcement Learning.
  • Biological Data Types and Challenges: Includes DNA, RNA, Protein, and Gene expression profiles. Primary analysis bottlenecks involve high data dimensionality, noise from biological variability, and massive scale.

Data Preprocessing and Biological Representation

  • Missing Data and Imputation:
    • Three missing data mechanisms: Missing Completely at Random (MCAR), Missing at Random (MAR), and Missing Not at Random (MNAR).
    • Imputation techniques include mean/median substitution, kk-Nearest Neighbors (kk-NN), multiple imputation, expectation-maximization, and matrix factorization.
  • Artifacts and Normalization:
    • Outliers denote anomalous observations deviating from baseline distributions; batch effects represent technical variations across experimental processing runs.
    • Normalization techniques in gene expression (such as Min-Max scaling, Z-score standardization, and Quantile normalization) eliminate technical biases and sequencing depth variations.
  • Sequence Encoding Strategies:
    • Label Encoding: Assigns unique numerical values to nucleotide bases.
    • One-Hot Encoding: Converts each base into a binary orthogonal vector (A=[1,0,0,0]TA=[1,0,0,0]^T, C=[0,1,0,0]TC=[0,1,0,0]^T, G=[0,0,1,0]TG=[0,0,1,0]^T, T=[0,0,0,1]TT=[0,0,0,1]^T).
    • kk-mer Representation: Analyzes the frequencies of sub-sequences of length kk.
  • Biological File Formats:
    • FASTA: Text-based format storing nucleotide or peptide sequences with header lines starting with >.
    • FASTQ: Stores nucleotide sequences alongside corresponding Phred quality scores.
    • SAM / BAM: Sequence Alignment/Map format; SAM is human-readable tab-delimited text, whereas BAM is its compressed binary equivalent.
    • VCF: Variant Call Format for reporting single-nucleotide polymorphisms (SNPs) and structural variants.
    • GTF / GFF: Gene Transfer Format / General Feature Format annotating genomic coordinates and feature boundaries.
  • Feature Selection Methods:
    • Filter Methods: Select features using statistical properties (e.g., correlation, chi-square) independent of model training.
    • Wrapper Methods: Evaluate subsets of variables using model performance iteratively (e.g., recursive feature elimination).
    • Embedded Methods: Perform feature selection inherently during model training via regularization (e.g., LASSO regression).
  • Visualization Modalities: Histogram, Box Plot, Scatter Plot, Heatmap, PCA Plot, t-SNE, UMAP, Volcano Plot, Correlation Matrix, and Dendrogram.

Supervised Learning and Model Evaluation

  • Supervised Learning: Maps input feature spaces to defined target labels using predictive functions derived from training sets.
  • Linear Regression for Gene Expression:
    • Gene expression modeling formula:     Y^=2.3+0.5X1+1.8X2\hat{Y} = 2.3 + 0.5X_1 + 1.8X_2     where X1X_1 is DNA methylation (%\%) and X2X_2 is histone modification level.
    • For X1=12X_1 = 12, X2=3X_2 = 3, and actual Y=14.5Y = 14.5:     Y^=2.3+0.5(12)+1.8(3)=13.7\hat{Y} = 2.3 + 0.5(12) + 1.8(3) = 13.7Residual=Y−Y^=14.5−13.7=0.8\text{Residual} = Y - \hat{Y} = 14.5 - 13.7 = 0.8
  • Decision Tree Splitting Metrics:
    • Entropy:     H(S)=−∑i=1cpilog⁡2(pi)H(S) = -\sum_{i=1}^{c} p_i \log_2(p_i)
    • For a node with 88 Enzyme and 44 Transporter proteins (p1=812p_1 = \frac{8}{12}, p2=412p_2 = \frac{4}{12}):     H(S)=−(23log⁡2(23)+13log⁡2(13))≈0.9183 bitsH(S) = -\left(\frac{2}{3}\log_2\left(\frac{2}{3}\right) + \frac{1}{3}\log_2\left(\frac{1}{3}\right)\right) \approx 0.9183\,\text{bits}
    • Gini Impurity:     IG(p)=1−∑i=1cpi2I_G(p) = 1 - \sum_{i=1}^{c} p_i^2
    • Information Gain: The reduction in entropy achieved by partitioning data according to a specific feature.
  • Support Vector Machine (SVM):
    • Identifies the optimal hyperplane maximizing the separation margin between classes.
    • Support Vectors: Critical boundary points closest to the hyperplane that dictate its orientation.
    • Kernel Function: Maps non-linearly separable inputs into higher-dimensional feature spaces.
    • CC Parameter: Balances the trade-off between maximizing margin width and minimizing training classification errors.
  • Evaluation Metrics and Cross-Validation:
    • Classification metrics: Confusion Matrix, Accuracy (TP+TNTP+TN+FP+FN\frac{TP + TN}{TP + TN + FP + FN}), Precision (TPTP+FP\frac{TP}{TP + FP}), Recall/Sensitivity (TPTP+FN\frac{TP}{TP + FN}), Specificity, and F1F1-Score (2×Precision×RecallPrecision+Recall\frac{2 \times \text{Precision} \times \text{Recall}}{\text{Precision} + \text{Recall}}).
    • Receiver Operating Characteristic (ROC) curves evaluate the True Positive Rate against the False Positive Rate across thresholds, quantified by ROC-AUC.
    • Validation strategies include KK-fold, Stratified KK-fold (maintains proportional class representation), and Leave-One-Out Cross-Validation (LOOCV).

Unsupervised Learning, Clustering, and Manifold Learning

  • Unsupervised Learning: Discovers hidden structures, clustering boundaries, and latent distributions without predefined ground-truth labels.
  • Hierarchical Clustering:
    • Forms tree-structured cluster hierarchies visualized via dendrograms.
    • Four primary linkage methods: Single linkage (minimum pairwise distance), Complete linkage (maximum pairwise distance), Average linkage (mean pairwise distance), and Ward's method (minimum variance increase).
  • DBSCAN (Density-Based Spatial Clustering of Applications with Noise):
    • Classifies points based on neighborhood radius (ε\varepsilon) and minimum density threshold (MinPts\text{MinPts}) into:
    • Core Points: Contain at least MinPts\text{MinPts} within radius ε\varepsilon.
    • Border Points: Within radius ε\varepsilon of a core point but have fewer than MinPts\text{MinPts}.
    • Noise Points: Neither core nor border points.
  • KK-Means Clustering and Elbow Method:
    • Partitions data into KK clusters by iteratively assigning samples to nearest cluster centroids and updating cluster means.
    • Optimal KK is identified using the Elbow Method by locating the inflection point in the Within-Cluster Sum of Squares (WCSS) plot.
  • Dimensionality Reduction Techniques:
    • PCA (Principal Component Analysis): Linear transformation that standardizes data, constructs a covariance or correlation matrix, and identifies orthogonal eigenvectors and eigenvalues corresponding to maximum variance.
    • t-SNE and UMAP: Non-linear manifold learning algorithms optimized for low-dimensional visualization preserving local and global geometric relationships in single-cell and gene expression data.

Deep Learning Architectures in Bioinformatics

  • Artificial Neural Networks:
    • Composed of an input layer, one or more hidden layers, and an output layer.
    • Output computation of a neuron:     z=∑i=1nwixi+bz = \sum_{i=1}^{n} w_i x_i + b
    • Common activation functions: Sigmoid (11+e−z\frac{1}{1 + e^{-z}}), ReLU (max⁡(0,z)\max(0, z)), and Tanh (ez−e−zez+e−z\frac{e^z - e^{-z}}{e^z + e^{-z}}).
    • Softmax normalization converts unnormalized logits into categorical probabilities:     P(y=i)=ezi∑jezjP(y=i) = \frac{e^{z_i}}{\sum_{j} e^{z_j}}
  • Convolutional Neural Networks (CNN): Extract local, spatially invariant motifs (such as DNA sequence motifs or 2D contact maps) using sliding convolution kernels, pooling layers, and dense output layers.
  • Recurrent Neural Networks (RNN):
    • Specialize in modeling sequential biological dependencies.
    • The vanishing gradient problem in vanilla RNNs is addressed through gated memory units: Long Short-Term Memory (LSTM) using input, forget, and output gates; and Gated Recurrent Units (GRU) using reset and update gates.
  • Transformers and Attention:
    • Rely on self-attention mechanisms to weigh pairwise feature dependencies globally without recurrence:     Attention(Q,K,V)=softmax(QKTdk)V\text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V
    • Positional encodings provide sequence order context into the transformer architecture.

Advanced Machine Learning, Explainability, and Biomedical Ethics

  • Ensemble Learning Techniques:
    • Combines multiple base learners to achieve enhanced predictive robustness and lower variance.
    • Four primary techniques: Bagging (Bootstrap Aggregating), Boosting, Stacking, and Voting.
  • Explainable AI (XAI):
    • Provides human-interpretable rationale for black-box algorithmic outputs in clinical and biological domains.
    • SHAP (SHapley Additive exPlanations): Utilizes cooperative game theory to distribute fair contribution values to individual input features.
    • LIME (Local Interpretable Model-agnostic Explanations): Builds locally faithful, interpretable surrogate models around specific individual predictions.
  • Translational Bioinformatics:
    • ADMET: Computes Absorption, Distribution, Metabolism, Excretion, and Toxicity profiles for candidate pharmaceutical compounds.
    • Precision Medicine: Delivers customized patient therapies tailored to individual genetic, molecular, and environmental profiles.
  • Biomedical AI Biases and Ethical Challenges:
    • Sampling Bias: Skewed or non-representative patient cohorts.
    • Measurement Bias: Systematic inaccuracies in assay readings or clinical diagnostic tools.
    • Label Bias: Inconsistent or erroneous annotations in ground-truth labels.
    • Algorithmic Bias: Inherent optimization choices that amplify demographic disparities.
    • Historical Bias: Cultural or healthcare inequities captured within historical medical records.