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).
Glossary
Local Inverse Simpson's Index (LISI)

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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
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.
| Feature | LISI | kBET | ASW |
|---|---|---|---|
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 |
Related Terms
LISI is one of several quantitative metrics used to evaluate the success of batch correction. These complementary methods assess integration from different statistical perspectives.
k-nearest Neighbor Batch Effect Test (kBET)
A quantitative metric that evaluates the degree of batch mixing by comparing the local batch label distribution in a k-nearest neighbor graph to the global batch distribution. For each cell's neighborhood, a chi-squared test determines if the batch composition deviates from the overall dataset. A perfect mix yields an acceptance rate near 1.0, while a low acceptance rate indicates residual batch structure. Unlike LISI, which provides a continuous diversity score, kBET offers a binary accept/reject decision per neighborhood, making it a stringent test for local batch effects.
Average Silhouette Width (ASW)
A metric that measures the cohesion of cell-type clusters against the separation of batch labels to evaluate integration quality. The silhouette score ranges from -1 to 1, where:
- Cell-type ASW: High values indicate tight, well-separated biological clusters
- Batch ASW: Values near 0 indicate batches are well-mixed and indistinguishable
A successful integration shows high cell-type ASW and low batch ASW. The batch silhouette score is often computed as 1 - |batch ASW| to create a 0-1 scale where 1 represents perfect mixing.
Entropy of Batch Mixing
An information-theoretic metric that quantifies the randomness of batch labels within a defined local neighborhood of cells. High entropy indicates a well-mixed, successfully integrated dataset where no single batch dominates any local region. This metric is closely related to LISI but uses Shannon entropy rather than the inverse Simpson index. While LISI reports the effective number of batches, entropy reports the uncertainty in batch identity, with maximum entropy achieved when all batches are equally represented in a neighborhood.
Maximum Mean Discrepancy (MMD)
A kernel-based statistical test used as a loss function in deep learning to measure the distance between two probability distributions. In batch correction, MMD quantifies the divergence between the latent feature distributions of different batches. A low MMD value indicates that the distributions have been successfully aligned. Unlike LISI, which operates on discrete neighborhood compositions, MMD compares the continuous distributions of the full embedding space, making it a complementary global assessment of distributional alignment.
Overcorrection Assessment
The process of evaluating whether a batch correction method has removed true biological variation alongside technical noise. Key indicators of overcorrection include:
- Loss of known cell-type clusters that were present before correction
- Reduced variance explained by biological covariates
- Homogenization of distinct biological states
LISI's cLISI variant (cell-type LISI) directly measures this by quantifying the effective number of cell types in each neighborhood. A low cLISI after integration suggests overcorrection has blended distinct biological populations.
Batch Confounding
A critical experimental design flaw where the batch variable is perfectly correlated with the biological condition of interest. For example, if all control samples are processed on Monday and all treatment samples on Tuesday, it becomes statistically impossible to separate technical artifacts from true biological signal. In such cases, even perfect LISI scores (iLISI near the total number of batches) are meaningless because the batch effect and biological effect are indistinguishable. Proper experimental design with balanced batch allocation is essential for valid integration assessment.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us