Machine learning (ML) is a branch of artificial intelligence (AI) that enables computers to learn from data without being explicitly programmed. In biotechnology, ML is applied to analyze large datasets, find patterns, and make predictions. Below, we introduce different types of ML approaches with examples relevant to biotechnology. Later chapters cover these concepts in more detail.
Supervised Learning¶
In supervised learning, we are given a dataset , where represents feature vectors (such as gene expressions or protein levels), and is the target, which could be a class label (e.g., disease vs. no disease) or a continuous value in regression tasks (e.g., protein concentration). The objective is to learn a function that approximates the mapping from to , enabling accurate predictions on new, unseen data. This is frequently done by minimization of a loss function. Examples of supervised learning include classification models such as support vector machines and regression models like linear regression.
Unsupervised Learning¶
In unsupervised learning, we are given a dataset , where no labels are provided. The goal is to find underlying structure in the data, such as grouping similar data points into clusters or reducing the dimensionality of the data for visualization and analysis. A typical example is clustering, where algorithms like k-means and Gaussian mixture models are applied to categorize data into meaningful groups based solely on .
Self-Supervised Learning¶
Self-supervised learning is an important special case of unsupervised learning. No labels are given, but the supervisory signal is generated automatically from the input data itself rather than from human-provided labels, for example by hiding part of each input, such as some residues of a protein sequence, and training the model to predict the hidden part from the rest.
Semi-Supervised Learning¶
Semi-supervised learning combines labeled and unlabeled data. We are provided with a dataset , and a (typically larger) set of unlabeled data . The goal is to improve the prediction of the function by using the structure of the unlabeled data to assist in training the model, particularly when labeled data is scarce but unlabeled data is abundant.
Generative vs. Discriminative Models¶
Generative Models: Generative models aim to capture the distribution of the data itself: the joint distribution when labels are modeled as well, or simply in the unlabeled case. Because they model how the data were generated, they can be used to draw new samples resembling those in the training set. An example is the Gaussian mixture model, which we will meet in the chapter on clustering; it models as a weighted sum of normal distributions. In biotechnology, generative models can be applied to simulate potential experimental outcomes or explore synthetic biology designs.
Discriminative Models: Discriminative models focus on modeling the conditional probability , directly learning the decision boundary between different classes in the data. Examples of discriminative models include logistic regression for classification and linear regression for continuous prediction. These models are commonly used in biological applications, such as classifying tumor subtypes or predicting gene expression levels based on input features.
What you should know after reading this chapter
You should be able to:
Contrast supervised, unsupervised and semi-supervised learning in terms of the data each one is given (labeled pairs , only feature vectors , or a mix of both) and what each one aims to learn, and explain why self-supervised learning is a special case of unsupervised learning.
Identify whether a supervised problem is classification or regression from its target , which is either a class label, such as disease vs. no disease, or a continuous value, such as a protein concentration.
Contrast generative models, which model or and can generate new samples, with discriminative models, which model directly.