Inferensys

Glossary

Local Inverse Simpson's Index (LISI)

A per-cell diversity score that quantifies the effective number of different batches (iLISI) or cell types (cLISI) in a local neighborhood to evaluate the harmony of integrated single-cell data.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
BATCH INTEGRATION METRIC

What is Local Inverse Simpson's Index (LISI)?

A per-cell diversity metric quantifying the effective number of distinct batches or cell types present in a local neighborhood, used to validate single-cell data integration algorithms.

The Local Inverse Simpson's Index (LISI) is a quantitative score computed for each cell that measures the effective number of distinct categories—typically batches (iLISI) or cell types (cLISI)—within its local neighborhood in a reduced-dimensional embedding. It operationalizes the principle that successful batch correction should yield neighborhoods with high batch diversity (high iLISI) while preserving biological separation (low cLISI).

Calculated using a Gaussian kernel-based local distribution, LISI produces a value interpretable as the expected number of unique labels in a cell's vicinity. An iLISI score approaching the total number of batches indicates perfect mixing, while a cLISI score near 1.0 confirms that a neighborhood contains only one cell type, validating that integration did not overcorrect and erase true biological signal.

DIVERSITY SCORE

Key Properties of the LISI Metric

The Local Inverse Simpson's Index (LISI) quantifies the effective number of distinct categories present in a cell's local neighborhood, providing a rigorous, interpretable measure of mixing quality for integrated single-cell data.

01

Mathematical Foundation

LISI is derived from the Inverse Simpson's Index, an ecological diversity metric. For a given cell, it computes the inverse of the sum of squared proportions of each category (e.g., batch label) among its k-nearest neighbors. A score of N indicates that the local neighborhood is as diverse as perfectly mixing N different categories. The formula is: 1 / Σ p_i², where p_i is the proportion of neighbors belonging to category i.

02

Dual Metric: iLISI vs. cLISI

LISI is deployed as two complementary metrics to diagnose integration quality:

  • iLISI (integration LISI): Measures the effective number of batches in a cell's neighborhood. A high iLISI score indicates successful batch mixing. The ideal value approaches the total number of batches in the experiment.
  • cLISI (cell-type LISI): Measures the effective number of cell types in a cell's neighborhood. A high cLISI score indicates that distinct cell types remain separated. The ideal value is 1.0, representing a pure, unmixed cell-type neighborhood.
03

Local Neighborhood Definition

The metric operates on a k-nearest neighbor (k-NN) graph constructed in a shared, integrated embedding space (e.g., PCA or Harmony output). The choice of k (number of neighbors) is a critical parameter:

  • Small k: Highly sensitive to local mixing, penalizing even small batch-specific clusters.
  • Large k: Evaluates mixing over a broader region, providing a more global assessment. A typical default is k = 90, but this should be tuned based on dataset size and expected cluster granularity.
04

Interpretation & Diagnostic Power

LISI provides a per-cell score distribution, enabling fine-grained diagnostics:

  • Uniformly high iLISI: Indicates successful batch integration across the entire manifold.
  • Bimodal iLISI distribution: Reveals that some cell types integrated well while others retained strong batch effects, a common failure mode masked by global metrics.
  • High cLISI for a known cell type: Signals overcorrection, where the algorithm blended a distinct biological population with a dissimilar one, destroying true biological signal.
05

Comparison to kBET and ASW

LISI complements other batch correction metrics by focusing on effective diversity rather than statistical acceptance rates or silhouette widths:

  • kBET: Performs a chi-squared test for local batch label distribution. It is a binary accept/reject test, while LISI provides a continuous, interpretable diversity score.
  • Average Silhouette Width (ASW): Measures cluster cohesion and separation. ASW requires pre-defined cluster labels, whereas LISI operates directly on batch and cell-type annotations without assuming discrete clusters. LISI is less sensitive to neighborhood size than kBET and more directly interpretable as a mixing coefficient.
06

Computational Implementation

LISI is implemented in the lisi R package and is natively integrated into the Seurat and Harmony single-cell analysis workflows. The function compute_lisi() takes a reduced-dimension embedding matrix (e.g., PCA coordinates) and a metadata vector of categorical labels. It returns a per-cell score vector. For large datasets (>100k cells), approximate nearest neighbor methods are recommended to maintain computational feasibility, as the naive k-NN construction scales quadratically.

LISI METRICS EXPLAINED

Frequently Asked Questions

Clear, technical answers to the most common questions about the Local Inverse Simpson's Index, a key metric for evaluating single-cell data integration and batch correction.

The Local Inverse Simpson's Index (LISI) is a quantitative metric that computes the effective number of distinct categories—such as batches or cell types—present within each cell's local neighborhood, providing a per-cell score to assess the harmony of integrated single-cell data. It works by first constructing a fixed-radius or k-nearest neighbor graph around each cell. For a given neighborhood, it calculates the Simpson's diversity index, which measures the probability that two randomly selected cells belong to the same category. The inverse of this probability yields the effective number of categories. A high integration LISI (iLISI) score indicates that a cell's local neighborhood is well-mixed with cells from many different batches, signifying successful batch correction. Conversely, a high cell-type LISI (cLISI) score indicates that a neighborhood contains a diverse mix of cell types, which is generally undesirable as it suggests biological signal has been blurred. The metric was introduced by Korsunsky et al. in 2019 alongside the Harmony algorithm and has since become a standard evaluation tool in single-cell genomics.

INTEGRATION QUALITY METRICS COMPARISON

LISI vs. Other Integration Quality Metrics

A comparison of quantitative metrics used to evaluate the success of batch effect correction and data integration in single-cell genomics.

FeatureLISIkBETASW

Core Principle

Effective number of batches/cell types in local neighborhood

Chi-squared test for local batch label distribution vs. global

Cohesion of cell-type clusters vs. separation of batch labels

Primary Use Case

Simultaneous batch mixing and cell-type purity assessment

Quantifying batch mixing quality

Evaluating batch correction and biological preservation

Output Scale

Continuous (1 to N batches)

Acceptance rate (0 to 1)

Width (-1 to 1)

Requires Cell-Type Labels

Detects Overcorrection

Local Neighborhood Definition

Gaussian kernel-based perplexity

k-nearest neighbors

Distance-based cluster assignment

Sensitive to Local Batch Clustering

Interpretation of Ideal Score

iLISI ≈ actual batch count; cLISI ≈ actual cell-type count

Acceptance rate ≈ 1.0

Batch ASW ≈ 0; Cell-type ASW ≈ 1

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.