An adaptive method for determining the optimal number of topics in topic modeling

Topic models have been successfully applied to information classification and retrieval. The difficulty in successfully applying these technologies is to select the appropriate number of topics for a given <i>corpus</i>. Selecting too few topics can result in information loss and topic omission, known as underfitting. Conversely, an excess of topics can introduce noise and complexity, resulting in overfitting. Therefore, this article considers the inter-class distance and proposes a new method to determine the number of topics based on clustering results, named average inter-class distance change rate (AICDR). AICDR employs the Ward's method to calculate inter-class distances, then calculates the average inter-class distance for different numbers of topics, and determines the optimal number of topics based on the average distance change rate. Experiments show that the number of topics determined by AICDR is more in line with the true classification of datasets, with high inter-class distance and low inter-class similarity, avoiding the phenomenon of topic overlap. AICDR is a technique predicated on clustering results to select the optimal number of topics and has strong adaptability to various topic models.

Authors

Institutions

Publication Details

Journal
PeerJ Computer Science
Published
2025-02-28
DOI
https://doi.org/10.7717/peerj-cs.2723
Citations
1
Primary Topic
Advanced Text Analysis Techniques
Type
article
Field-Weighted Citation Impact
2.48

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

An adaptive method for determining the optimal number of topics in topic modeling

Yefang Sun, Hanting Zhou, Yueyi Zhang, Yang Xu
1 citations
PeerJ Computer Science
Advanced Text Analysis Techniques
2.48
article

An adaptive method for determining the optimal number of topics in topic modeling

Yefang Sun, Hanting Zhou, Yueyi Zhang, Yang Xu
article en
1 citations

Abstract

Topic models have been successfully applied to information classification and retrieval. The difficulty in successfully applying these technologies is to select the appropriate number of topics for a given <i>corpus</i>. Selecting too few topics can result in information loss and topic omission, known as underfitting. Conversely, an excess of topics can introduce noise and complexity, resulting in overfitting. Therefore, this article considers the inter-class distance and proposes a new method to determine the number of topics based on clustering results, named average inter-class distance change rate (AICDR). AICDR employs the Ward's method to calculate inter-class distances, then calculates the average inter-class distance for different numbers of topics, and determines the optimal number of topics based on the average distance change rate. Experiments show that the number of topics determined by AICDR is more in line with the true classification of datasets, with high inter-class distance and low inter-class similarity, avoiding the phenomenon of topic overlap. AICDR is a technique predicated on clustering results to select the optimal number of topics and has strong adaptability to various topic models.

PeerJ Computer ScienceVol. 11
Hangzhou Dianzi University (CN), China Jiliang University (CN)
National Natural Science Foundation of China
Openalex Percentile: Top 12%
Advanced Text Analysis Techniques
2.48
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

An adaptive method for determining the optimal number of topics in topic modeling — Yefang Sun, Hanting Zhou, et al. · PeerJ Computer Science (2025) | TGRS Research Map | TGRS