Skip to Content
DigitalDigital
  • Article
  • Open Access

18 August 2026

22 Pages

A Semantic Clustering Framework for Discovering Latent Offense Patterns: A Case Study of Thai Police Records

,
,
,
and
1
Thammasat University Research Unit in Data Innovation and Artificial Intelligence, Department of Computer Science, Faculty of Science and Technology, Thammasat University, Pathum Thani 12121, Thailand
2
Faculty of Forensic Science, Royal Police Cadet Academy, Nakhon Pathom 73110, Thailand
*
Author to whom correspondence should be addressed.

Abstract

Crime offense descriptions are often recorded as unstructured text, making large-scale analysis and categorization difficult. This study proposes a semantic clustering framework for Thai crime offense descriptions using sentence embeddings, dimensionality reduction, and unsupervised clustering. Two datasets were obtained from Thonglor Metropolitan Police Station and Mueang Nonthaburi Police Station, Thailand. After preprocessing, the datasets contained 962 and 902 unique offense descriptions, respectively. Each description was transformed into a 768-dimensional embedding using SimCSE-PhayaThaiBERT. The embeddings were represented in Principal Component Analysis (PCA) Space and Uniform Manifold Approximation and Projection (UMAP) Space and clustered using K-Means, DBSCAN, HDBSCAN, and OPTICS. The results showed that UMAP Space generally provided more useful clustering results than PCA Space. Although DBSCAN achieved the highest internal clustering scores, it classified most records as noise. In contrast, HDBSCAN provided a more balanced result by maintaining strong clustering quality while retaining more records for interpretation. Qualitative analysis showed that the discovered clusters corresponded to meaningful offense categories. The proposed framework can support exploratory analysis of Thai crime records without requiring manually labeled data.

1. Introduction

Crime data analysis has become an important research area as law enforcement agencies increasingly manage large volumes of diverse crime records. More broadly, data mining techniques have been applied to real-world datasets to discover useful behavioral and association patterns, including demand and supply patterns from Thai social media data [1]. In particular, unstructured textual records, such as police narratives and offense descriptions, contain contextual information that can support crime pattern discovery, offense categorization, and decision-making [2,3]. However, manual analysis of such records is time-consuming, inconsistent, and difficult to scale, creating a need for automated text-based analytical frameworks [4]. These challenges highlight the importance of transforming unstructured crime descriptions into meaningful semantic representations for further analysis.
Natural Language Processing (NLP) provides an effective approach for analyzing unstructured crime-related text. NLP techniques enable raw textual records to be transformed into structured representations that can be used for classification, clustering, and pattern discovery. Earlier studies commonly relied on traditional machine learning with manually designed features, such as bag-of-words and Term Frequency–Inverse Document Frequency (TF-IDF), for text classification tasks [5]. Although these approaches are useful and computationally efficient, they often have limited ability to capture contextual meaning and semantic similarity between text records. Recent studies have therefore explored more advanced preprocessing, feature extraction, and classification pipelines for crime reports and police textual data [4,6]. In the Thai legal domain, a recent CRIMES-based study used SimCSE sentence embeddings with machine learning classifiers for supervised legal text classification [7].
A major challenge in applying NLP to crime analysis is that most existing studies focus on high-resource languages, particularly English. In contrast, Thai text processing presents additional difficulties due to the absence of explicit word boundaries, linguistic ambiguity, informal expressions, spelling variation, and domain-specific legal or police terminology. These challenges are particularly important for crime offense descriptions because such records are often short, incomplete, and written in administrative or legal language. Previous studies have also examined automatic text classification of Thai social media data, highlighting the challenges and methodological considerations associated with processing Thai-language text [8]. Prior studies have emphasized the importance of Thai-specific NLP tools, including Thai word segmentation and contextual language models, for improving text processing performance in real-world applications [9,10].
With the development of representation learning, embedding-based methods have improved the ability to represent textual data in semantic vector spaces. Transformer-based models such as Bidirectional Encoder Representations from Transformers (BERT) can capture contextual meaning at the token and sentence levels [11]. Sentence-level embedding models, including Sentence-BERT and Simple Contrastive Sentence Embedding (SimCSE), further improve semantic similarity representation by learning embeddings that place semantically related sentences closer together in vector space [12,13]. For Thai-language applications, Thai-specific sentence embedding models are particularly relevant because they are trained or adapted to better capture Thai linguistic characteristics. Recent work on Thai sentence embedding has shown promising performance across semantic similarity, retrieval, and classification tasks [14]. These properties make sentence embeddings suitable for grouping Thai crime offense descriptions that express similar criminal behaviors despite differences in wording.
Dimensionality reduction is commonly used before clustering high-dimensional text embeddings. Principal Component Analysis (PCA) is a linear method that reduces feature dimensions by preserving directions of high variance. It is computationally efficient and useful for reducing redundancy in embedding spaces. However, linear projections may not fully preserve nonlinear semantic relationships in high-dimensional textual data. Uniform Manifold Approximation and Projection (UMAP) is a nonlinear dimensionality reduction method designed to preserve neighborhood structures in high-dimensional data [15]. Prior studies on document clustering pipelines have reported that combining neural embeddings with dimensionality reduction and clustering can improve cluster structure and interpretability compared with classical text representations [16]. Therefore, comparing PCA and UMAP is useful for examining whether linear or nonlinear representations are more suitable for clustering Thai crime offense descriptions.
Unsupervised clustering is particularly useful for real-world crime datasets because labeled data are often incomplete, unavailable, or costly to obtain. K-Means is widely used as a centroid-based baseline due to its simplicity and scalability, but it requires the number of clusters to be specified in advance and assumes relatively compact cluster structures. Density-based methods, such as Density-Based Spatial Clustering of Applications with Noise (DBSCAN), Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN), and Ordering Points To Identify the Clustering Structure (OPTICS), can discover clusters with irregular shapes and can identify noise or outliers [17,18,19,20]. These characteristics are relevant to crime offense descriptions because the number of latent offense patterns is usually unknown, and semantic groups may vary in size and density. Comparing K-Means, DBSCAN, HDBSCAN, and OPTICS therefore provides a systematic basis for evaluating clustering behavior under different assumptions about the underlying data structure. Partitional and density-based clustering provide complementary perspectives on data structure. Partitional methods, such as K-Means, produce efficient and interpretable partitions but require the number of clusters to be predefined. Density-based methods can identify irregularly shaped clusters and separate noise without specifying the number of clusters. Hybrid approaches have therefore been developed to combine these properties. For example, HyDaP integrates density- and partition-based procedures to identify data structure and obtain the final clustering solution [21]. Although HyDaP was designed for mixed-type data rather than text, it demonstrates how the two clustering principles can be combined within a unified framework. A recent study on categorical data clustering has shown that learning distance relationships among qualitative attribute values can improve clustering when a natural metric space is unavailable [22]. Although police offense descriptions are unstructured text rather than categorical attributes, both settings require a meaningful representation of similarity before clustering. Recent text clustering studies have also transformed unstructured descriptions into dense vector representations before applying clustering algorithms [16]. Recent crime analytics studies have also applied clustering methods to structured, spatial, and textual crime records, including K-Means with PCA, TwoStep clustering, spatial K-Means, spatially constrained clustering, fuzzy graph-based crime report clustering, and clustering-based police deployment support [23,24,25,26,27,28].
Despite recent progress, several research gaps remain. First, most NLP-based crime analysis studies have focused on English or other high-resource languages, while research on Thai crime offense descriptions remains limited. Second, prior crime analytics research has mainly emphasized supervised classification, which depends on labeled data that may not be available in real-world police databases. Similarly, existing Thai CRIMES-based research has focused on supervised legal text classification, while unsupervised semantic clustering for discovering latent offense groups remains limited [7]. Third, limited attention has been given to the combined effects of Thai-specific sentence embeddings, dimensionality reduction, and clustering algorithms for discovering hidden semantic structures in Thai crime narratives. In particular, few studies have systematically compared PCA and UMAP together with K-Means, DBSCAN, HDBSCAN, and OPTICS in the context of Thai crime offense descriptions.
To address these gaps, this study proposes a semantic clustering framework for Thai crime offense descriptions. The framework transforms offense descriptions into sentence-level semantic embeddings using a Thai-specific pretrained model, applies PCA and UMAP to examine the effect of representation space, and evaluates four clustering algorithms: K-Means, DBSCAN, HDBSCAN, and OPTICS. The main contributions of this study are as follows. First, it presents a framework for exploratory clustering of Thai crime offense descriptions without requiring manually labeled data. Second, it compares linear and nonlinear dimensionality reduction strategies for representing Thai sentence embeddings. Third, it systematically evaluates centroid-based and density-based clustering algorithms using internal clustering metrics and noise ratio. Finally, it provides a qualitative interpretation of the discovered clusters to examine whether the resulting groups correspond to meaningful categories of criminal offenses.

2. Methodology

This section describes the methodological design used to perform semantic clustering of Thai crime offense descriptions. The methodology covers the complete process from raw data preparation to clustering evaluation and qualitative interpretation. It was designed to compare how different representation spaces and clustering algorithms affect the discovery of latent semantic structures in unstructured Thai crime records.

2.1. Overall Framework

This study proposes a semantic clustering framework for analyzing Thai crime offense descriptions. The framework is designed to transform unstructured offense descriptions into numerical semantic representations and to discover latent groups of semantically similar criminal offenses without requiring manually labeled data. The overall workflow consists of eight main stages: raw data preparation, offense description extraction, text preprocessing, sentence embedding generation, dimensionality reduction, clustering, clustering evaluation and configuration selection, and qualitative cluster interpretation, as shown in Figure 1.
Figure 1. Overview of the proposed semantic clustering framework for Thai crime offense descriptions.
Offense descriptions were extracted from two police datasets and then cleaned and standardized. Each cleaned description was converted into a 768-dimensional sentence embedding. PCA and UMAP were used to construct alternative representation spaces, after which K-Means, DBSCAN, HDBSCAN, and OPTICS were applied. The resulting configurations were evaluated using internal clustering metrics and noise ratio, followed by qualitative cluster interpretation.

2.2. Dataset

The dataset used in this study was obtained from the CRIMES database of the Royal Thai Police, a national system for recording criminal case information in Thailand. Two datasets were used in this study. The first dataset was collected from Thonglor Metropolitan Police Station in Bangkok, and the second dataset was collected from Mueang Nonthaburi Police Station in Nonthaburi Province. Both datasets cover criminal case records from 2014 to 2024. The Thonglor dataset contains 17,064 records and was extracted in Microsoft Excel (.xlsx) format. The Mueang Nonthaburi dataset contains 22,263 records and was extracted in comma-separated values (.csv) format. Both datasets contain similar case information, such as case number, case status, year of case, police station, date of complaint, date of incident, suspect status, investigator information, investigation result, and offense description.
This study used only the offense description field in the raw data as the main input for analysis. This field directly describes the alleged offense and provides the textual information needed for semantic clustering. Other fields were not used because they mainly contain administrative information and do not directly describe the meaning of the offense. Therefore, the offense description field was used for text preprocessing, sentence embedding, dimensionality reduction, and clustering. Data collection and analysis were performed in accordance with the approved ethics protocol and the relevant guidelines and regulations.

2.3. Data Preprocessing

The preprocessing stage focused on the offense description field, which was used as the main textual input for clustering. The purpose of this stage was to clean, standardize, and refine the raw offense descriptions before generating sentence embeddings. Since the data were collected from real-world police records, several inconsistencies were found in the original text.
Initial inspection showed that the offense descriptions contained missing values, incomplete text, duplicated offenses, placeholder symbols, repeated whitespace, newline characters, quotation marks, mixed Thai and Arabic numerals, and multiple offenses recorded within the same cell. Some records also contained system-related messages or non-informative entries that did not describe actual criminal offenses. Examples of common textual inconsistencies found in the raw offense descriptions are shown in Table 1. These issues could reduce the quality of sentence embeddings and affect the reliability of clustering results.
Table 1. Examples of raw offense descriptions with textual inconsistencies.
The preprocessing process was conducted in four main steps. First, records with missing offense descriptions were removed. This reduced the Thonglor dataset from 17,064 to 17,063 records and the Mueang Nonthaburi dataset from 22,263 to 22,211 records. Second, automated text cleaning was applied using Python with version 3.13.14, Pandas with version 2.3.3, and regular expressions. Newline characters, redundant spaces, quotation marks, placeholder symbols, and non-informative punctuation were removed. Unicode normalization was also applied to standardize character encoding, and Thai numerals were converted into Arabic numerals to improve consistency.
Third, records containing multiple offenses in a single cell were split into separate rows. This step converted the data into a one-record-per-offense format, which is more suitable for sentence embedding and clustering. After this restructuring step, the Thonglor dataset contained 20,945 processed entries, and the Mueang Nonthaburi dataset contained 24,481 processed entries. Duplicate offense descriptions were then removed, reducing the datasets to 1530 and 1267 unique entries, respectively. The substantial reduction after duplicate removal resulted from the structure of the CRIMES data rather than the exclusion of most criminal cases. Police records frequently reuse standardized legal descriptions for the same offense across different cases. Exact duplicate descriptions were removed to create a set of unique offense descriptions and to prevent frequently repeated legal wording from disproportionately influencing the clustering results.
Finally, a manual review was conducted to remove incomplete, incorrect, and non-informative records that could not be handled reliably by automated rules. These records included placeholder entries containing only general legal information, system-related messages embedded within offense descriptions, and entries that did not represent actual criminal offenses. The review also identified truncated descriptions that were cut off in the middle of a word, phrase, or sentence. In several cases, progressively longer fragments appeared to originate from the same complete offense description. Although these fragments retained some offense-related information, they were excluded because they did not provide complete and reliable descriptions of the legal elements of the offenses. After the final cleaning process, the Thonglor dataset contained 962 offense descriptions, and the Mueang Nonthaburi dataset contained 902 offense descriptions. The number of records after each preprocessing step is summarized in Table 2. These cleaned datasets were used for sentence embedding generation, dimensionality reduction, and clustering analysis.
Table 2. Number of records after each preprocessing step.

2.4. Sentence Embedding

After preprocessing, each cleaned offense description was converted into a numerical vector using the pretrained Thai sentence embedding model kornwtp/simcse-model-phayathaibert, hereafter referred to as SimCSE-PhayaThaiBERT in this study [29]. This model is a SimCSE-based sentence-transformers model associated with PhayaThaiBERT and trained on Thai Wikipedia. It maps sentences and paragraphs into 768-dimensional dense vectors and can be used for clustering and semantic search. Therefore, the model was selected to generate sentence-level semantic representations of Thai crime offense descriptions.
Each offense description was processed using the Sentence Transformers framework [12] and transformed into a 768-dimensional embedding vector using the SimCSE-PhayaThaiBERT model. As a result, the Thonglor dataset was represented as an embedding matrix of 962 × 768, while the Mueang Nonthaburi dataset was represented as an embedding matrix of 902 × 768. These embeddings were used as numerical representations of the offense descriptions.
The generated embeddings were used as the input for the next stages of the framework. Since each vector represents the sentence-level meaning of an offense description, the embeddings provide a basis for measuring similarity between records and grouping semantically related offenses. These embedding matrices were therefore passed to the dimensionality reduction step before clustering analysis.

2.5. Dimensionality Reduction

The sentence embeddings generated in the previous step contained 768 dimensions. Although these embeddings represent the meaning of offense descriptions, using high-dimensional vectors directly for clustering can increase computational cost and may affect clustering quality. Therefore, dimensionality reduction was applied in the main clustering experiments, while the original embeddings were retained for the ablation analysis.
First, PCA was used to reduce the 768-dimensional embeddings to 300 dimensions. The number of principal components was selected based on the cumulative explained variance ratio. As shown in Figure 2, the first 300 principal components preserved more than 99% of the total variance in the original embedding space. Therefore, 300 dimensions were selected to reduce redundancy while retaining most of the information in the embeddings.
Figure 2. Cumulative explained variance ratio of PCA components.
After PCA, two representation spaces were prepared for clustering. In the first setting, the 300-dimensional PCA representations were used directly as the input for clustering algorithms. This setting is referred to as PCA Space. In the second setting, the PCA-reduced embeddings were further transformed using UMAP. This setting is referred to as UMAP Space. UMAP was configured with 15 output dimensions, n _ n e i g h b o r s   =   30 , m i n _ d i s t   =   0.1 , and Euclidean distance as the distance metric. The UMAP output dimensionality was selected based on a sensitivity analysis using d = { 5 ,   10 ,   15 ,   20 ,   30 } for both datasets. Overall, d = 15 produced consistently strong clustering structures across the two study areas and achieved the highest average Silhouette Score. For the Mueang Nonthaburi dataset, d = 15 yielded the highest Silhouette Score (SS) of 0.708 and Calinski–Harabasz Index (CHI) of 2440.59. For the Thonglor dataset, its performance was comparable to d   =   10 , with SS values of 0.679 and 0.682, respectively. Lower dimensionality ( d = 5 ) generally produced lower SS and CHI values, suggesting excessive compression of the embedding space, whereas increasing the dimensionality to d = 30 did not improve the clustering structure in either dataset. Although some alternative dimensions yielded lower noise ratios or slightly better Davies–Bouldin Index (DBI) values, none consistently outperformed d = 15 across both datasets. Therefore, d = 15 was selected as a common UMAP dimensionality for the subsequent experiments. This design allowed the study to compare a linear representation space with a nonlinear representation space.
For the ablation analysis, two additional representation settings were considered. First, the original 768-dimensional sentence embeddings were used directly for clustering. Second, UMAP was applied directly to the original embeddings to generate a 15-dimensional representation, referred to as Direct UMAP. The Direct UMAP setting used the same UMAP parameters as the PCA–UMAP setting. HDBSCAN was then evaluated across the original embeddings, PCA, Direct UMAP, and PCA–UMAP representation spaces. The same HDBSCAN hyperparameter search procedure and evaluation criteria were applied independently to each representation space, and the best-performing configuration was selected for each space.
In addition, t-distributed Stochastic Neighbor Embedding (t-SNE) [30] was used only for two-dimensional visualization of the embedding space. It was not used as an input representation for clustering. The t-SNE visualization is shown in Figure 3, where Figure 3a presents the Thonglor dataset, and Figure 3b presents the Mueang Nonthaburi dataset. Both visualizations show that the offense descriptions are not uniformly distributed in the embedding space. Several localized concentrations and areas with different point densities can be observed, suggesting that the datasets may contain meaningful semantic patterns for further clustering analysis.
Figure 3. t−SNE visualization of offense description embeddings: (a) Thonglor dataset and (b) Mueang Nonthaburi dataset.

2.6. Clustering

After dimensionality reduction, clustering was applied to both PCA Space and UMAP Space. The experiments were conducted separately for the Thonglor and Mueang Nonthaburi datasets. This design allowed the study to compare how different representation spaces affect the discovery of semantic groups in Thai crime offense descriptions.
Four clustering algorithms were evaluated: K-Means, DBSCAN, HDBSCAN, and OPTICS. K-Means was used as a centroid-based baseline because it is simple, efficient, and widely used in clustering tasks. DBSCAN was selected because it can identify dense groups of data points and classify low-density observations as noise without requiring the number of clusters to be predefined. HDBSCAN extends DBSCAN by identifying stable clusters across different density levels, making it more suitable for datasets with clusters of varying sizes. OPTICS was included because it can explore cluster structures under varying density conditions. These properties are useful for crime offense descriptions, where the number and density of semantic groups are unknown.
To ensure a fair comparison, multiple hyperparameter settings were tested for each clustering algorithm. The detailed search space and selected configurations are reported in the next section. The clustering results were evaluated using internal clustering metrics and the noise ratio. The best configurations were selected for detailed comparison and qualitative analysis. This process was used to identify the clustering method that provided a suitable balance between clustering quality, data coverage, and interpretability.

2.7. Evaluation Metrics

Since this study used unsupervised clustering and no ground-truth labels were available, clustering performance was evaluated using internal clustering metrics. Three metrics were used: SS, DBI, and CHI. These metrics evaluate clustering quality based on cluster compactness and separation. For density-based clustering algorithms, observations labeled as noise were excluded from the calculation of all metrics. These metrics were computed only from observations assigned to valid clusters. The excluded observations were reported separately using the noise ratio. All internal clustering metrics were calculated in the corresponding representation space using Euclidean geometry.
The SS measures how well each data point fits within its assigned cluster compared with other clusters. It is defined as:
S S = b i − a i max ( a i , b i )
where a i   is the average distance between data point i and other points in the same cluster, and b i   is the lowest average distance between data point i and points in another cluster. The overall SS is computed as the average value across all data points. A higher SS indicates better cluster separation.
The DBI measures the average similarity between each cluster and its most similar cluster. It is defined as:
D B I = 1 K ∑ i = 1 K max j ≠ i S i + S j M i j
where K is the number of clusters, S i and S j are the average within-cluster distances of clusters i and j , and M i j is the distance between the centroids of clusters i and j . A lower DBI indicates better clustering performance.
The CHI measures the ratio between between-cluster dispersion and within-cluster dispersion. It is defined as:
C H I = ∑ i = 1 K n i ∥ c i − c ∥ 2 ∕ K − 1 ∑ i = 1 K ∑ x j ∈ C i ∥ x j − c i ∥ 2 / ( N − K )
where N is the total number of valid clustered points, C i is cluster i , n i is the number of data points in cluster i , c i is the centroid of cluster i , c is the global centroid of all valid clustered points, and x j is a data point assigned to cluster C i . A higher CHI indicates better clustering performance, with more compact and well-separated clusters.
For density-based clustering algorithms, the proportion of observations classified as noise was also reported. The Noise Ratio (NR) is defined as:
N R = N n o i s e N t o t a l
where N n o i s e is the number of observations classified as noise, and N t o t a l is the total number of observations in the dataset. A lower NR indicates that more records are retained in the clustering result.
In addition, the number of discovered clusters was reported to support interpretation. A very small number of clusters may indicate under-segmentation, while too many clusters may reduce interpretability. Therefore, the final model selection considered internal clustering metrics together with NR, number of clusters, and qualitative interpretability.

3. Experiments and Results

This section presents the experimental results of the proposed semantic clustering framework. The experiments were designed to evaluate the effects of representation space and clustering algorithm on Thai crime offense descriptions. Two datasets were evaluated separately: the Thonglor Metropolitan Police Station dataset and the Mueang Nonthaburi Police Station dataset.
For each dataset, offense descriptions were first converted into 768-dimensional sentence embeddings using the SimCSE-PhayaThaiBERT model. The embeddings were then reduced to 300 dimensions using PCA. Two representation settings were compared. In PCA Space, the 300-dimensional PCA representations were directly used for clustering. In UMAP Space, the PCA representations were further transformed into a 15-dimensional UMAP representation before clustering.
Before the main experiments, preliminary hyperparameter exploration was conducted through 100 trials for each dataset to examine model behavior under a broad range of parameter settings and to define the search space for the formal experiments. For K-Means, the number of clusters was explored from 2 to 20. Based on the observed changes in internal clustering metrics and cluster granularity, the values k = { 5 ,   8 ,   10 ,   15 } were selected to represent progressively finer clustering structures.
Based on this preliminary exploration, a grid search was conducted to identify suitable clustering configurations for each algorithm. The search space covered the main parameters that affect cluster granularity, density sensitivity, and distance measurement, as summarized in Table 3. In total, 116 configurations were generated from four K-Means settings, 56 DBSCAN settings, 32 HDBSCAN settings, and 24 OPTICS settings. Since each configuration was evaluated in both PCA Space and UMAP Space, 232 clustering configurations were tested for each dataset in the main experiments.
Table 3. Hyperparameter search space for clustering algorithms.
The distance metric listed in Table 3 refers to the clustering procedure. K-Means used Euclidean distance, whereas DBSCAN, HDBSCAN, and OPTICS were evaluated using both Euclidean and cosine distances. Regardless of the clustering metric, all internal evaluation metrics were computed using Euclidean geometry to provide a consistent basis for comparison. The clustering results were evaluated using SS, DBI, CHI, number of clusters, and NR. For density-based algorithms, internal clustering metrics were computed only from non-noise observations, while the NR was reported separately. This setting allowed the study to evaluate both clustering quality and data coverage. The final configuration was selected by considering SS, DBI, and CHI together with the NR and cluster interpretability. No single metric was used independently for model selection. The results are presented in five parts. First, the baseline results using default parameters are reported. Second, the optimized results from the grid search are presented. Third, an ablation analysis compares HDBSCAN across four representation spaces. Fourth, the baseline and optimized HDBSCAN results are compared. Finally, the largest clusters from each dataset are qualitatively interpreted.

3.1. Baseline Clustering Results

Baseline experiments were first conducted using the default settings of each clustering algorithm provided by the Scikit-learn and related libraries. The purpose of this step was to examine the initial clustering behavior before hyperparameter optimization. The baseline results for the Thonglor dataset and the Mueang Nonthaburi dataset are presented in Table 4 and Table 5, respectively. In these tables, “-” indicates that the metric was not applicable because only one valid cluster was identified.
Table 4. Baseline clustering results for the Thonglor dataset.
Table 5. Baseline clustering results for the Mueang Nonthaburi dataset.
For the Thonglor dataset, the baseline results show clear differences between PCA Space and UMAP Space. In PCA Space, K-Means achieved a low SS of 0.06 and a high DBI of 3.04, indicating weak cluster separation. DBSCAN achieved a higher SS of 0.47, but it classified 714 records as noise, corresponding to an NR of 0.74. HDBSCAN also classified many records as noise, with an NR of 0.58. OPTICS identified only one cluster in PCA Space, so the internal clustering metrics were not applicable. After applying UMAP, the baseline results improved for several algorithms. K-Means increased its SS, while its DBI decreased. HDBSCAN showed a clear improvement, with the SS increasing from 0.32 to 0.62 and the NR decreasing from 0.58 to 0.14. OPTICS also became more effective after UMAP transformation, identifying seven clusters with an SS of 0.64. However, its NR remained high at 0.56. DBSCAN retained more records in UMAP Space, reducing its NR from 0.74 to 0.03, although its SS decreased from 0.47 to 0.34.
A similar pattern was observed for the Mueang Nonthaburi dataset. In PCA Space, K-Means achieved a low SS of 0.10 and a high DBI of 2.97. DBSCAN achieved an SS of 0.43, but it classified 688 records as noise, with an NR of 0.76. HDBSCAN also had a high NR of 0.52. OPTICS identified only one valid cluster and classified 829 records as noise, resulting in an NR of 0.92. In UMAP Space, K-Means improved its SS and reduced its DBI. HDBSCAN achieved the strongest balance among the baseline methods, with an SS of 0.66, a DBI of 0.47, and a lower NR of 0.14. OPTICS achieved the highest SS of 0.67, but its NR remained high at 0.56. DBSCAN reduced its NR from 0.76 to 0.02, but its SS decreased from 0.43 to 0.28.
Overall, the baseline results indicate that representation space strongly affects clustering performance. UMAP Space generally provided a more useful structure for clustering than PCA Space, especially for HDBSCAN and OPTICS. However, the results also show that internal clustering metrics should be interpreted together with the NR, because a high SS does not necessarily mean that most records are retained in valid clusters.

3.2. Optimized Clustering Results

After the baseline experiments, grid search was applied to identify the best-performing configuration for each clustering algorithm. The optimized results for the Thonglor dataset and the Mueang Nonthaburi dataset are presented in Table 6 and Table 7, respectively.
Table 6. Optimized clustering results for the Thonglor dataset.
Table 7. Optimized clustering results for the Mueang Nonthaburi dataset.
For the Thonglor dataset, the optimized results show that UMAP Space improved the clustering performance of K-Means, HDBSCAN, and OPTICS compared with PCA Space. DBSCAN in UMAP Space achieved the highest SS of 0.98 and the lowest DBI of 0.03. However, it classified 96% of the records as noise. This means that the high clustering score was obtained from only a small portion of the dataset. Therefore, the DBSCAN result should be interpreted with caution. HDBSCAN in UMAP Space provided a more balanced result. It achieved an SS of 0.68, reduced the NR to 0.25, and identified 30 clusters. Although its internal metrics were lower than those of DBSCAN, HDBSCAN retained a much larger proportion of records. OPTICS in UMAP Space also achieved a high SS of 0.75, but its NR remained high at 0.66. K-Means improved after UMAP transformation but still performed below the density-based methods.
A similar pattern was found in the Mueang Nonthaburi dataset. DBSCAN in UMAP Space achieved the highest SS of 0.99 and the lowest DBI of 0.01, but it classified 98% of the records as noise. This result indicates strong separation among the remaining clustered records but very low data coverage. OPTICS also achieved a high SS of 0.83, but its NR was 0.71. HDBSCAN in UMAP Space again showed the best balance between clustering quality and data retention. It achieved an SS of 0.71, a DBI of 0.42, and an NR of 0.21, while identifying 35 clusters. These results suggest that HDBSCAN was more suitable for exploratory crime text clustering than DBSCAN and OPTICS, because it maintained strong clustering quality while retaining more records for interpretation.
The selected distance metric for each optimized configuration is reported in Table 6 and Table 7. DBSCAN selected Euclidean distance in both representation spaces for both datasets. HDBSCAN selected Euclidean distance for both spaces in the Thonglor dataset and for PCA Space in the Mueang Nonthaburi dataset, whereas cosine distance was selected for HDBSCAN in UMAP Space for the Mueang Nonthaburi dataset. For OPTICS, cosine distance was selected for both spaces in the Thonglor dataset and for PCA Space in the Mueang Nonthaburi dataset, while Euclidean distance was selected for UMAP Space in the Mueang Nonthaburi dataset.
Overall, the optimized results show that DBSCAN achieved the highest internal clustering scores, but its very high NR limited its practical usefulness. In contrast, HDBSCAN in UMAP Space provided a more balanced result across both datasets by maintaining strong clustering quality while retaining a larger proportion of records. Therefore, HDBSCAN in UMAP Space was selected for further qualitative analysis.

3.3. Ablation Analysis of Representation Spaces

To examine the contribution of dimensionality reduction, HDBSCAN was evaluated using four representation spaces: the original 768-dimensional embeddings, the 300-dimensional PCA representations, 15-dimensional UMAP representations generated directly from the original embeddings, and 15-dimensional UMAP representations generated after PCA. The same hyperparameter search procedure was applied independently to each representation space, and the best-performing configuration was selected using the same evaluation criteria. Table 8 summarizes the results for both datasets.
Table 8. Optimized HDBSCAN results across different representation spaces for both datasets.
For the Thonglor dataset, clustering in the original embedding and PCA spaces produced high NR of 0.67 and 0.58, respectively, together with relatively low internal clustering scores. Direct UMAP substantially improved the clustering results, producing 26 clusters with the lowest NR of 0.22 and the highest CHI of 2282.54. PCA–UMAP produced 30 clusters and achieved a slightly higher SS of 0.68 and a lower DBI of 0.43, although its NR increased slightly to 0.25. Thus, Direct UMAP retained more observations, whereas PCA–UMAP provided slightly stronger cluster separation.
For the Mueang Nonthaburi dataset, the original embedding and PCA spaces produced NR of 0.64 and 0.71, respectively, together with relatively weak internal clustering scores. Direct UMAP reduced the NR to 0.19 and produced 28 clusters, while PCA–UMAP produced 35 clusters with an NR of 0.21. PCA–UMAP achieved the highest SS of 0.71, the lowest DBI of 0.42, and the highest CHI of 2440.59, whereas Direct UMAP retained slightly more observations.
Overall, UMAP substantially improved HDBSCAN clustering compared with the original embeddings and PCA alone in both datasets. Direct UMAP consistently produced the lowest NR, whereas PCA–UMAP achieved slightly better SS and DBI values and produced more clusters. The differences between the two UMAP-based representations were relatively small, indicating that the benefit of applying PCA before UMAP was limited and dataset-dependent. Given its slightly higher SS, lower DBI, and finer cluster structure, PCA–UMAP was retained for the subsequent qualitative analysis.

3.4. Comparison Between Baseline and Optimized HDBSCAN

Based on the optimized clustering results, HDBSCAN in UMAP Space was selected for further analysis because it provided a suitable balance between clustering quality and data coverage. Therefore, the baseline and optimized HDBSCAN configurations in UMAP Space were compared to examine the effect of hyperparameter optimization. The comparison results are summarized in Table 9.
Table 9. Comparison between baseline and optimized HDBSCAN in UMAP Space.
For the Thonglor dataset, the optimized HDBSCAN configuration reduced the number of clusters from 43 to 30. The SS increased from 0.62 to 0.68, the DBI decreased from 0.52 to 0.43, and the CHI increased from 1892.55 to 2217.31. These changes indicate improved internal clustering quality after optimization. However, the NR increased from 0.14 to 0.25, meaning that more uncertain records were classified as noise. Therefore, the optimized configuration improved cluster separation while retaining a moderate level of data coverage.
Figure 4 and Figure 5 present the baseline and optimized HDBSCAN clustering results for the Thonglor dataset. The overall distribution of the data points remains broadly similar before and after optimization, indicating that hyperparameter tuning did not substantially alter the global structure of the UMAP representation. However, the optimized configuration shows fewer cluster groups and a less fragmented local structure, which is consistent with the reduction in the number of clusters reported in Table 9.
Figure 4. Baseline HDBSCAN clustering results in UMAP Space for the Thonglor dataset: (a) 2D view and (b) 3D view.
Figure 5. Optimized HDBSCAN clustering results in UMAP Space for the Thonglor dataset: (a) 2D view and (b) 3D view.
For the Mueang Nonthaburi dataset, the optimized HDBSCAN configuration reduced the number of clusters from 47 to 35. The SS increased from 0.66 to 0.71, the DBI decreased from 0.47 to 0.42, and the CHI increased from 2366.82 to 2440.59. Similar to the Thonglor dataset, the NR increased from 0.14 to 0.21. This result suggests that optimization improved cluster compactness and separation while excluding more uncertain observations as noise.
Figure 6 and Figure 7 present the baseline and optimized HDBSCAN clustering results for the Mueang Nonthaburi dataset. The visual distribution remains relatively stable across the two settings. However, the optimized result shows fewer cluster groups and a less fragmented structure, supporting the quantitative comparison in Table 9.
Figure 6. Baseline HDBSCAN clustering results in UMAP Space for the Mueang Nonthaburi dataset: (a) 2D view and (b) 3D view.
Figure 7. Optimized HDBSCAN clustering results in UMAP Space for the Mueang Nonthaburi dataset: (a) 2D view and (b) 3D view.
Overall, hyperparameter optimization improved the internal clustering quality of HDBSCAN in UMAP Space across both datasets, as reflected by higher SS, lower DBI, and higher CHI values. Although the optimized configuration increased the NR, it produced fewer clusters and a less fragmented clustering structure. Therefore, the optimized HDBSCAN configuration in UMAP Space was used for qualitative cluster interpretation in the next section.

3.5. Qualitative Cluster Interpretation

To further examine the interpretability of the clustering results, representative clusters from the optimized HDBSCAN configuration in UMAP Space were analyzed. Since HDBSCAN produced several clusters in each dataset, this section focuses on the five largest clusters from each dataset, selected solely based on cluster size. Table 10 and Table 11 summarize the five largest clusters from the Thonglor and Mueang Nonthaburi datasets, respectively, arranged in descending order of cluster size. Each table presents the cluster size, interpreted cluster theme, summarized representative offense descriptions, and filtered key terms. The summarized representative offense descriptions are concise English summaries derived from the original Thai descriptions provided in Supplementary Tables S1 and S2.
Table 10. Five largest clusters identified by optimized HDBSCAN in UMAP Space for the Thonglor dataset.
Table 11. Five largest clusters identified by optimized HDBSCAN in UMAP Space for the Mueang Nonthaburi dataset.
To improve the readability of cluster interpretation, frequent terms were extracted from each selected cluster and then filtered before being used for interpretation. General Thai stopwords were removed using the PyThaiNLP stopword list. This filtering step was applied only to the key term extraction process and did not affect the sentence embeddings, dimensionality reduction, or clustering results. After stopword removal, the filtered Thai key terms are provided in Supplementary Tables S1 and S2, while Table 10 and Table 11 present concise English key term summaries for readability.
For the Thonglor dataset, the five largest clusters represented immigration and unauthorized employment offenses, alcohol sale and liquor licensing offenses, mixed fraud and property-related offenses, gambling-related offenses, and public-order and weapon-carrying offenses. The representative descriptions within each cluster showed similar legal and behavioral meanings, suggesting that the model grouped records based on semantic similarity rather than only surface-level word matching.
For the Mueang Nonthaburi dataset, the five largest clusters represented regulatory and public safety offenses, gambling-related offenses, immigration and foreign national offenses, narcotic drug possession and use offenses, and firearm, ammunition, and weapon-related offenses. Although the two datasets were collected from different police stations, several similar offense categories were found in both datasets. This result suggests that the proposed framework can discover common semantic patterns across different sources of Thai crime records.
In addition, the semantic consistency of the clustering results was assessed from a practical policing perspective by three police experts, each with more than 10 years of professional experience. The experts reviewed the identified clusters by considering the representative offense descriptions and their corresponding cluster themes, with particular attention to whether records within each cluster reflected recognizable and semantically related offense patterns from a policing perspective. Their assessment indicated that the identified clusters generally showed a satisfactory level of semantic consistency with recognizable offense categories, providing practical support for the qualitative interpretation presented in Table 10 and Table 11. However, complete semantic consistency was not observed across all clusters. Some inconsistencies may be attributed to the diversity and ambiguity of real-world offense descriptions, variations in recording practices, overlapping characteristics among certain offenses, and potential data-entry errors. These characteristics are inherent challenges in analyzing operational police records and may affect cluster boundaries and interpretation. Nevertheless, the expert assessment provides additional support for the potential of the proposed framework as an exploratory approach for automatically discovering meaningful offense patterns without requiring predefined ground-truth labels.
Overall, the qualitative analysis supports the quantitative results. The optimized HDBSCAN configuration produced clusters that were interpretable and related to meaningful categories of criminal offenses. These findings indicate that the combination of SimCSE-PhayaThaiBERT, UMAP, and HDBSCAN can support exploratory analysis of Thai crime offense descriptions. However, the extracted key terms should be interpreted together with the representative offense descriptions because some general Thai words may still appear after keyword extraction.

4. Discussion

The experimental results show that both representation space and clustering algorithm strongly affected the quality of semantic clustering for Thai crime offense descriptions. UMAP Space generally produced more useful clustering results than PCA Space, especially for K-Means, HDBSCAN, and OPTICS. This suggests that nonlinear dimensionality reduction can better preserve local semantic structures in sentence embedding space. The ablation analysis further showed that Direct UMAP and PCA–UMAP produced comparable results in both datasets. Direct UMAP consistently retained more observations, whereas PCA–UMAP produced more clusters and slightly stronger SS and DBI values. These findings indicate that UMAP was the main source of improvement, while applying PCA before UMAP provided only limited benefits. However, clustering performance should not be interpreted using a single metric alone. The results should be considered together with SS, DBI, CHI, number of clusters, and NR. Because cosine-based clustering configurations were evaluated using Euclidean internal metrics, the clustering and evaluation geometries were not fully consistent in these cases. This difference may affect direct comparison across configurations. Therefore, the internal metrics were interpreted together with the NR, number of clusters, and qualitative results.
HDBSCAN was more suitable than K-Means for this task, while the other density-based methods showed stronger trade-offs between cluster separation and data coverage. Although K-Means improved after UMAP transformation, its performance remained lower than that of HDBSCAN. DBSCAN and OPTICS achieved strong internal clustering scores in some configurations, but these results were accompanied by high NR, limiting the proportion of records retained for interpretation. This result is reasonable because crime offense descriptions may not form compact and spherical clusters. They vary in length, specificity, and legal wording, while semantic groups may differ in size and density. HDBSCAN is well suited to such data because it can identify clusters across varying density levels and separate uncertain observations as noise.
Although DBSCAN achieved the highest internal clustering scores after optimization, its usefulness was limited by its very high NR. In both datasets, optimized DBSCAN in UMAP Space retained only a small proportion of records in valid clusters. This finding highlights the limitation of relying only on internal clustering metrics. A high SS may indicate strong separation among clustered records, but it does not necessarily imply sufficient data coverage for exploratory analysis.
HDBSCAN provided the most balanced result among the evaluated algorithms. In UMAP Space, optimized HDBSCAN achieved strong internal clustering scores while retaining a larger proportion of records than DBSCAN and OPTICS. It also produced interpretable clusters corresponding to meaningful categories of criminal offenses, including immigration and unauthorized employment offenses, alcohol-related offenses, fraud and property-related offenses, gambling-related offenses, public-order offenses, regulatory and public safety offenses, narcotics offenses, and firearm-related offenses. The summarized representative offense descriptions and English key term summaries further supported the semantic coherence of the selected clusters.
From a practical perspective, the proposed framework can support exploratory crime data analysis by organizing Thai offense descriptions into interpretable semantic groups without requiring manually labeled data. However, several limitations should be acknowledged. First, the datasets were collected from only two police stations, which may limit generalizability. Second, the study relied on internal clustering metrics and qualitative interpretation because no ground-truth labels were available. Third, only SimCSE-PhayaThaiBERT was used as the text representation model, so the observed results may partly reflect the characteristics of this model. Fourth, the framework was evaluated only on Thai-language offense descriptions using a Thai-specific embedding model. Although the overall workflow may be applicable to other languages, its performance cannot be directly generalized because linguistic structures, legal terminology, and available embedding models differ across languages. Future studies should include larger datasets from more police jurisdictions, compare TF-IDF with additional Thai-specific and multilingual sentence embedding models, evaluate the framework on other languages, and validate the discovered clusters with domain experts.

5. Conclusions

This study proposed a semantic clustering framework for Thai crime offense descriptions using sentence embedding, dimensionality reduction, and unsupervised clustering. Offense descriptions from the Thonglor and Mueang Nonthaburi datasets were transformed into sentence embeddings using the SimCSE-PhayaThaiBERT model and clustered in both PCA Space and UMAP Space using K-Means, DBSCAN, HDBSCAN, and OPTICS. The results showed that UMAP Space generally provided more useful clustering results than PCA Space, particularly for K-Means, HDBSCAN, and OPTICS. Although DBSCAN achieved the highest internal clustering scores, it classified a very large proportion of records as noise. HDBSCAN provided the most balanced result by maintaining strong clustering quality while retaining more records for interpretation. The qualitative analysis showed that the optimized HDBSCAN configuration in UMAP Space produced interpretable clusters corresponding to meaningful offense categories, including immigration and unauthorized employment offenses, alcohol-related offenses, fraud and property-related offenses, gambling-related offenses, public-order offenses, regulatory and public safety offenses, narcotics offenses, and firearm-related offenses. The ablation results also showed that direct UMAP and PCA–UMAP produced comparable clustering performance, suggesting that the contribution of PCA before UMAP was limited and depended on the dataset. Future work should include larger datasets from more police jurisdictions, compare TF-IDF with additional Thai-specific and multilingual sentence embedding models, evaluate the framework on other languages, and conduct more comprehensive validation with a larger panel of domain experts.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/digital6030069/s1, Table S1: Original Thai representative offense descriptions and filtered key terms for all HDBSCAN clusters in the Thonglor dataset; Table S2: Original Thai representative offense descriptions and filtered key terms for all HDBSCAN clusters in the Mueang Nonthaburi dataset. Table S3: English translations of representative offense descriptions and filtered key terms for all HDBSCAN clusters in the Thonglor dataset. Table S4: English translations of representative offense descriptions and filtered key terms for all HDBSCAN clusters in the Mueang Nonthaburi dataset.

Author Contributions

Conceptualization, K.S., N.K., N.C., U.S. and T.T.; methodology, K.S., N.K., N.C. and T.T.; software, N.K.; validation, K.S., U.S. and T.T.; formal analysis, K.S., N.K. and T.T.; investigation, K.S. and T.T.; resources, U.S. and T.T.; data curation, K.S. and N.K.; writing—original draft preparation, K.S., N.K. and T.T.; project administration, T.T.; writing—review and editing, K.S., N.K., N.C., U.S. and T.T.; visualization, K.S. and N.K.; supervision, T.T. All authors have read and agreed to the published version of the manuscript.

Funding

This study was supported by Thammasat University Research Fund, Contract No. TUFT 015/2569.

Institutional Review Board Statement

The study was approved by the Human Research Ethics Committee, Faculty of Forensic Science, Royal Police Cadet Academy, Thailand (Approval No. 680422-003; Project Code: FSRP-CA-IRB-68017; Date of Approval 22 April 2025).

Data Availability Statement

The raw data are not publicly available due to privacy and institutional restrictions. Data may be made available from the corresponding author upon reasonable request and subject to permission from the relevant authority.

Acknowledgments

This research was supported by the Thammasat University Research Unit in Data Innovation and Artificial Intelligence. During manuscript preparation, the authors used ChatGPT with GPT-5.6 to support language editing. The authors reviewed and revised the output and take full responsibility for the content of this publication.

Conflicts of Interest

The authors declare no conflicts of interest.

Correction Statement

This article has been republished with a minor correction of the information included in the Institutional Review Board Statement and Informed Consent Statement. This change does not affect the scientific content of the article.

References

  1. Tanantong, T.; Ramjan, S. An association rule mining approach to discover demand and supply patterns based on Thai social media data. Int. J. Knowl. Syst. Sci. 2021, 12, 1–16. [Google Scholar] [CrossRef] [Scilit]
  2. Birks, D.; Coleman, A.; Jackson, D. Unsupervised identification of crime problems from police free-text data. Crime Sci. 2020, 9, 18. [Google Scholar] [CrossRef] [Scilit]
  3. Lukmanjaya, W.; Halmich, C.; Butler, T.; Cook, D.; Karystianis, G. Computational text analysis on unstructured police data: A scoping review. Crime Sci. 2026, 15, 6. [Google Scholar] [CrossRef] [Scilit]
  4. Vieira, A.R.; Santos, G.D.S.; Melo Junior, W.S.; Rust, L.F. Hierarchical multi-class and multi-label text classification for crime report: A traditional machine learning approach. IEEE Access 2025, 13, 206431–206446. [Google Scholar] [CrossRef] [Scilit]
  5. Meena, K.; Lawrance, R. An automatic text document classification using modified weight and semantic method. Int. J. Innov. Technol. Explor. Eng. 2019, 8, 2608–2622. [Google Scholar] [CrossRef] [Scilit]
  6. Walia, S.K.; Masih, S.; Suman, U. An efficient preprocessing framework for crime textual data using NLP and machine learning techniques. In Universal Threats in Expert Applications and Solutions; Springer Nature: Singapore, 2026; pp. 135–145. [Google Scholar] [CrossRef] [Scilit]
  7. Tanantong, T.; Srijiranon, K.; Keeratiwattapong, N.; Sangtongdee, U. Machine learning-based legal text classification model using simple contrastive learning of sentence embeddings: A case study of police accusation from Thailand’s CRIMES system. Int. J. Knowl. Syst. Sci. 2025, 16, 1–19. [Google Scholar] [CrossRef] [Scilit]
  8. Tanantong, T.; Parnkow, M. A survey of automatic text classification based on Thai social media data. Int. J. Knowl. Syst. Sci. 2022, 13, 1–25. [Google Scholar] [CrossRef] [Scilit]
  9. Lowphansirikul, L.; Polpanumas, C.; Jantrakulchai, N.; Nutanong, S. WangchanBERTa: Pretraining transformer-based Thai language models. arXiv 2021, arXiv:2101.09635. [Google Scholar] [CrossRef] [Scilit]
  10. Phatthiyaphaibun, W.; Chaovavanich, K.; Polpanumas, C.; Suriyawongkul, A.; Lowphansirikul, L.; Chormai, P.; Limkonchotiwat, P.; Suntorntip, T.; Udomcharoenchaikit, C. PyThaiNLP: Thai natural language processing in Python. In Proceedings of the 3rd Workshop for Natural Language Processing Open Source Software (NLP-OSS 2023); Association for Computational Linguistics: Singapore, 2023; pp. 25–36. [Google Scholar] [CrossRef] [Scilit]
  11. Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies; Association for Computational Linguistics: Minneapolis, MN, USA, 2019; Volume 1, pp. 4171–4186. [Google Scholar] [CrossRef] [Scilit]
  12. Reimers, N.; Gurevych, I. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing; Association for Computational Linguistics: Hong Kong, China, 2019; pp. 3980–3990. [Google Scholar] [CrossRef] [Scilit]
  13. Gao, T.; Yao, X.; Chen, D. SimCSE: Simple contrastive learning of sentence embeddings. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing; Association for Computational Linguistics: Punta Cana, Dominican Republic, 2021; pp. 6894–6910. [Google Scholar] [CrossRef] [Scilit]
  14. Tasawong, P.; Limkonchotiwat, P.; Ponwitayarat, W.; Nonesung, S.; Sae Lim, S.; Uthayopas, C.; Udomcharoenchaikit, C.; Nutanong, S. Advancing Thai sentence embedding: Benchmark development. Forum Linguist. Stud. 2025, 7, 1380–1397. [Google Scholar] [CrossRef] [Scilit]
  15. McInnes, L.; Healy, J.; Saul, N.; Grossberger, L. UMAP: Uniform manifold approximation and projection. J. Open Source Softw. 2018, 3, 861. [Google Scholar] [CrossRef] [Scilit]
  16. Eklund, A.; Forsman, M.; Drewes, F. An empirical configuration study of a common document clustering pipeline. North. Eur. J. Lang. Technol. 2023, 9. [Google Scholar] [CrossRef] [Scilit]
  17. Ester, M.; Kriegel, H.-P.; Sander, J.; Xu, X. A density-based algorithm for discovering clusters in large spatial databases with noise. In Proceedings of the Second International Conference on Knowledge Discovery and Data Mining, Portland, OR, USA, 2–4 August 1996; pp. 226–231. [Google Scholar]
  18. Campello, R.J.G.B.; Moulavi, D.; Sander, J. Density-based clustering based on hierarchical density estimates. In Advances in Knowledge Discovery and Data Mining; Lecture Notes in Computer Science; Springer: Berlin/Heidelberg, Germany, 2013; Volume 7819, pp. 160–172. [Google Scholar] [CrossRef] [Scilit]
  19. McInnes, L.; Healy, J.; Astels, S. Hdbscan: Hierarchical density based clustering. J. Open Source Softw. 2017, 2, 205. [Google Scholar] [CrossRef] [Scilit]
  20. Ankerst, M.; Breunig, M.M.; Kriegel, H.-P.; Sander, J. OPTICS: Ordering points to identify the clustering structure. In Proceedings of the 1999 ACM SIGMOD International Conference on Management of Data; ACM: New York, NY, USA, 1999; pp. 49–60. [Google Scholar] [CrossRef] [Scilit]
  21. Wang, S.; Yabes, J.G.; Chang, C.-C.H. Hybrid Density- and Partition-Based Clustering Algorithm for Data with Mixed-Type Variables. J. Data Sci. 2021, 19, 15–36. [Google Scholar] [CrossRef] [Scilit]
  22. Zhang, Y.; Zhao, M.; Jia, H.; Li, M.; Lu, Y.; Cheung, Y.-M. Categorical Data Clustering via Value Order Estimated Distance Metric Learning. Proc. ACM Manag. Data 2025, 3, 307. [Google Scholar] [CrossRef] [Scilit]
  23. Maharrani, R.H.; Abda’u, P.D.; Faiz, M.N. Clustering method for criminal crime acts using K-means and principal component analysis. Indones. J. Electr. Eng. Comput. Sci. 2024, 34, 224–232. [Google Scholar] [CrossRef] [Scilit]
  24. Keller, F.; Nepomuceno, T.C.C.; de Carvalho, V.D.H. A refined k-means clustering approach for optimizing urban police facility placement. Decis. Anal. J. 2025, 16, 100603. [Google Scholar] [CrossRef] [Scilit]
  25. Moroke, N.D. A two step clustering algorithm as applied to crime data of South Africa. Corp. Ownersh. Control 2015, 12, 482–490. [Google Scholar] [CrossRef] [Scilit]
  26. Roy, S.; Das, S.; Deb, M.; Roy Chowdhury, S.; Mani, S.; Bose, R.; Sen, S. Data-driven cops management: Crime classification and skill matching with clustering and generative AI. SN Comput. Sci. 2026, 7, 441. [Google Scholar] [CrossRef] [Scilit]
  27. Pramanik, A.; Das, A.K.; Pelusi, D.; Nayak, J. An effective fuzzy clustering of crime reports embedded by a Universal Sentence Encoder model. Mathematics 2023, 11, 611. [Google Scholar] [CrossRef] [Scilit]
  28. Ospina, R.; Lima, A.G.; Ferraz, C.; Castro, C.; Martin-Barreiro, C.; Leiva, V. Enhanced spatial clustering for crime analysis: Novel advances in Ward-like and SKATER algorithms for Brazilian public security. IEEE Access 2025, 13, 134846–134863. [Google Scholar] [CrossRef] [Scilit]
  29. Kornwtp. Simcse-Model-Phayathaibert. Available online: https://huggingface.co/kornwtp/simcse-model-phayathaibert (accessed on 15 June 2026).
  30. van der Maaten, L.; Hinton, G. Visualizing data using t-SNE. J. Mach. Learn. Res. 2008, 9, 2579–2605. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.