SYSTEM AND METHOD OF HYBRID TOPIC MODELING BASED ON DIRICHLET MULTINOMIAL MIXTURE AND FUZZY MATCH ALGORITHM FOR SHORT TEXT CLUSTERING

A system and method of identifying topics in Arabic microblog text includes submitting Arabic text into online microblog. The method includes periodically downloading Arabic microblog text documents from online sources. Further, the method includes determining prespecified number of topics by applying topic modeling algorithm to microblog text documents. The method includes clustering words in documents to obtain words associated with each initial cluster. Further, the method includes outputting a set of clustered topics as a result of clustering. The method includes revising set of clustered topics using Levenshtein Distance algorithm. Further, the method includes determining, in parallel, number of documents in each topic and marking topics that have less than or equal to a threshold as outliers and saving outliers in outlier list. The method includes moving document from outlier list to appropriate topic by comparing outlier list with top 10 words from each topic.

Skip to: Description  ·  Claims  · Patent History  ·  Patent History
Description
CROSS REFERENCE TO RELATED APPLICATIONS

This application claims the benefit of priority to provisional application No. 63/793,363 filed Apr. 23, 2025, the entire contents of which are incorporated herein by reference.

STATEMENT REGARDING PRIOR DISCLOSURE BY THE INVENTORS

Aspects of this technology are described in an article “Hybrid topic modeling method based on dirichlet multinomial mixture and fuzzy match algorithm for short text clustering,” Journal of Big Data (2024). The article is incorporated herein by reference in its entirety.

BACKGROUND Technical Field

The present disclosure is directed to social media, and more particularly to a method and a system for identifying topics in Arabic microblog text.

Description of Related Art

The “background” description provided herein is for the purpose of generally presenting the context of the disclosure. Work of the presently named inventors, to the extent it is described in this background section, as well as aspects of the description which may not otherwise qualify as prior art at the time of filing, are neither expressly or impliedly admitted as prior art against the present invention.

Microblogging platforms have become primary channels for real-time discourse and information dissemination. Users publish short, rapidly produced posts that reference evolving events, opinions, and multimedia content. Organizations increasingly rely on such content streams to detect emerging topics, monitor public sentiment, and triage high-priority incidents. Automatic topic discovery is therefore essential for transforming large volumes of short, noisy texts into coherent themes that can be searched, summarized, or used to drive notifications. While a broad body of work exists for English and other well-resourced languages, Arabic microblogs present additional linguistic and operational challenges such as Dialectal variation, non-standard orthography, frequent code-switching, diacritics, elongations, emojis, hashtags, and links complicate tokenization, normalization, and modeling. Further, microblog posts are intentionally short, often lacking the length and context that conventional topic models assume, which degrades clustering quality and stability.

Topic modeling methods have become very effective in finding hidden semantics and latent patterns in textual data. However, topic modeling is extremely challenging for microblogs, especially in Arabic microblogs. With the rise of social media, researchers have turned their attention to clustering short text using topic modeling methods for extracting semantic subjects. The main challenges of clustering the short text are fewer word co-occurrence, sparseness problems, a limited number of words in each text, and difficulty in finding semantically related words. In addition, topic modeling is especially difficult due to the common occurrence of documents deviating significantly from the norm, as outliers.

Conventional topic modeling pipelines struggle to deliver high-quality, operationally reliable topics for Arabic microblogs at scale. Short documents lead to sparse word co-occurrence statistics and weak signal-to-noise ratios. Topic counts are difficult to set a priori and can drift with corpus changes over time. Real streams require periodic re-ingestion under provider rate and recency limits, producing batches whose distributions vary, which destabilizes models trained on earlier windows. Outliers and tiny clusters proliferate, either because noisy posts slip into existing topics or because overly granular topics form around ephemeral terms, both outcomes impair downstream search, alerting, and analytics. Finally, organizations need interpretable topics and actionable diagnostics e.g., top words, representative examples, intrinsic quality scores, and visual summaries to support auditing, governance, and human curation. Existing pipelines rarely couple topic discovery with robust post-hoc refinement and principled handling of outliers, leading to incoherent topic inventories, inconsistent alerting, and excessive manual cleanup.

A conventional approach applies probabilistic topic models such as Latent Dirichlet Allocation (LDA) to bag-of-words or TF-IDF features. The LDA assumes relatively longer documents and sufficiently rich word co-occurrence, such that in the case of microtexts, effects where topics become diffuse, top words lack specificity, and per-document mixtures are unstable occur. Heuristics such as aggressive stop-wording, n-grams, or increased priors can partially mitigate these effects but often at the cost of problems such as over-smoothing or vocabulary explosion. Another conventional approach to applying topic models employs short-text models like Gibbs Sampling Dirichlet Multinomial Mixture (GSDMM) that treat each document as coming from a single topic, which may better fit the case of microblogs. However, GSDMM is sensitive to initialization and hyperparameters, may overproduce small, brittle clusters, and still admits misassignments when posts are noisy or off-topic.

Some practitioners apply unsupervised clustering (e.g., K-Means on embeddings) and select the number of clusters via distortion “elbow” heuristics. While simple, these clustering methods provide limited guarantees on semantic coherence and do not natively manage outliers. Intrinsic metrics such as Silhouette Index or Davies-Bouldin Index are used to gauge cohesion/separation, yet they do not themselves repair poor assignments or remove weak clusters. Some workflows introduce manual review loops in which curators inspect top words and a handful of examples to rename, merge, or delete topics. Manual curation is slow, inconsistent, and difficult to reproduce. Also, manual curation does not scale to continuously refreshed corpora.

Recent advances in topic modeling increasingly rely on embedding-based and neural approaches, including BERTopic, Top2Vec, and Contextualized Topic Models (CTM). While these methods leverage powerful sentence embeddings and density-based clustering, they remain highly sensitive to UMAP and HDBSCAN hyperparameters, often producing unstable topic structures, fragmented micro-topics, and substantial proportions of unassigned documents. More sophisticated self-supervised clustering techniques-such as DeepCluster, DEC/IDEC, SCAN, and DINO-based contrastive clustering-learn strong representations, yet they typically output a fixed hard partition and provide no intrinsic mechanisms for topic refinement, outlier correction, or merging of semantically redundant clusters, particularly for sparse short texts.

LLM-driven topic discovery methods, including zero-shot clustering and GPT-assisted topic extraction, offer richer semantic interpretations but frequently suffer from non-deterministic outputs, strong dependence on prompt design, and limited reproducibility. Similarly, hybrid neural topic models such as ProdLDA, CTM, LF-DMM, and GSDMM-BERT improve lexical coherence through deep contextualization but still require a predefined number of topics and lack dynamic topic-number adjustment, explicit outlier detection, and document-level reassignment mechanisms. Collectively, these limitations highlight the need for hybrid frameworks that can self-correct cluster assignments, identify outliers, and adaptively determine the optimal number of topics in short, noisy text corpora.

To address misfits with microblogs, practioners sometimes employ ad-hoc text similarity checks (e.g., cosine similarity to cluster centroids) to reassign documents. The checks depend heavily on feature choices and thresholds that are brittle across dialects, scripts, and noise patterns typical of Arabic microblogs. Moreover, when small topic clusters are detected, documents are often dropped entirely or merged by naive nearest-neighbor rules without considering topic interpretability or a principled notion of acceptable similarity. As a result, conventional solutions tend to yield topic sets that drift over time, contain many small or noisy topioc clusters, and require substantial human intervention hindering reliable alerting, longitudinal analysis, and deployment in production environments.

Accordingly, it is one object of the present disclosure to provide methods and systems for identifying topics in Arabic microblog text. A further object is a system that combines DMM models and a Fuzzy matching algorithm to address two key challenges in topic modeling, including the outlier problem in topic modeling methods, and the problem of determining the number of topics.

SUMMARY

An aspect is a method of identifying topics in Arabic microblog text. The method includes submitting, by at least one blogging device, Arabic text into an online microblog. Further, the method includes periodically downloading a plurality of Arabic microblog text documents from one of more online sources. The method includes determining, by processing circuitry, a prespecified number of topics by applying a topic modeling algorithm to the plurality of microblog text documents. Further, the method includes clustering, by the processing circuitry, words in the documents to obtain words associated with each cluster. The method further includes outputting, by the processing circuitry, a set of clustered topics as a result of the clustering. The method includes revising, by the processing circuitry, the set of topics using Levenshtein Distance algorithm. Further, the method includes determining, in parallel, the number of documents in each topic and marking the topics that have less than or equal to a mindoc threshold as outliers and saving the outliers in an outlier list. The method includes moving, by the processing circuitry, a document from the outlier list to an appropriate topic by comparing the outlier list with top 10 words from each topic.

A further aspect is a method for receiving notification for topics of interest in microblogs is disclosed. The method includes inputting, by a user interface of a mobile device, one or more topics of interest. Further, the method includes periodically downloading a plurality of Arabic microblog text documents from one of more online sources. The method includes determining, by processing circuitry, a prespecified number of topics by applying a topic modeling algorithm to the plurality of microblog text documents. Further, the method includes clustering, by the processing circuitry, words in the documents to obtain words associated with each cluster. The method includes outputting, by the processing circuitry, a set of clustered topics as a result of the clustering. Further, the method includes revising, by the processing circuitry, the set of topics using Levenshtein Distance algorithm. The method further includes determining, in parallel, the number of documents in each topic and marking the topics that have less than or equal to a mindoc threshold as outliers and saving the outliers in an outlier list. Further, the method includes moving, by the processing circuitry, a document from the outlier list to an appropriate topic by comparing the outlier list with top 10 words from each topic. The method further includes matching, by the processing circuitry, the topics of interest to the set of topics and outputting an alert when at least one document in the topic matches the topics of interest. Further, the method includes displaying, by the mobile device, the alert with a link to a list of documents.

A further aspect is a system for identifying topics in Arabic microblog text is disclosed. The system includes at least one blogging device configured to submit Arabic text into an online microblog. Further, the system includes a mobile device configured to view a document in the online microblog. The system includes a server computer including communication circuitry configured to periodically download a plurality of Arabic microblog text documents from one of more online sources. Further, the server processing circuitry configured to determine a prespecified number of topics by applying a topic modeling algorithm to the plurality of microblog text documents. The server processing circuitry configured to cluster words in the documents to obtain words associated with each cluster. Further, the server processing circuitry configured to output a set of clustered topics as a result of the clustering. The server processing circuitry configured to revise the set of topics using Levenshtein Distance algorithm. The server processing circuitry further configured to determine, in parallel, the number of documents in each topic and mark the topics that have less than or equal to a mindoc threshold as outliers and save the outliers in an outlier list. Further, the server processing circuitry configured to move a document from the outlier list to an appropriate topic by comparing the outlier list with top 10 words from each topic.

The foregoing general description of the illustrative embodiments and the following detailed description thereof are merely exemplary aspects of the teachings of this disclosure, and are not restrictive.

BRIEF DESCRIPTION OF THE DRAWINGS

A more complete appreciation of this disclosure and many of the attendant advantages thereof will be readily obtained as the same becomes better understood by reference to the following detailed description when considered in connection with the accompanying drawings, wherein:

FIG. 1 is an exemplary diagram of a system configured for identifying topics in Arabic microblog text, according to certain embodiments;

FIG. 2 is an exemplary flow diagram for identifying topics in Arabic microblog text, according to certain embodiments;

FIG. 3 is an exemplary block diagram of a Latent Dirichlet Allocation (LDA) graphical model, according to certain embodiments;

FIG. 4A is an exemplary graphical representation of an influence of an acceptable distance ratio using a Topic Clustering based on Levenshtein distance (TCLD)-TW Gibbs Sampling Dirichlet Multinomial Mixture (GSDMM) based on a biomedical dataset, according to certain embodiments;

FIG. 4B is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a google news dataset, according to certain embodiments;

FIG. 4C is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a pascal_flickr dataset, according to certain embodiments;

FIG. 4D is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a search snippet dataset, according to certain embodiments;

FIG. 4E is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a stack overflow dataset, according to certain embodiments;

FIG. 4F is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a tweet dataset, according to certain embodiments;

FIG. 5A is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a biomedical dataset, according to certain embodiments;

FIG. 5B is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a google news dataset, according to certain embodiments;

FIG. 5C is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a pasacal_flickr dataset, according to certain embodiments;

FIG. 5D is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a search snippet dataset, according to certain embodiments;

FIG. 5E is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a stack overflow dataset, according to certain embodiments;

FIG. 5F is an exemplary graphical representation of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a tweet dataset, according to certain embodiments;

FIG. 6 is an exemplary graphical representation of a distortion score elbow for K-Means clustering, according to certain embodiments;

FIG. 7A is an exemplary graphical representation of number of topics generated by GSDMM using 50 and 100 iterations based on a silhouette score, according to certain embodiments;

FIG. 7B is an exemplary graphical representation of number of topics generated by GSDMM using 50 and 100 iterations based on a davies-bouldin index, according to certain embodiments;

FIG. 8A is an exemplary graphical representation of silhouette score of GSDMM with 500 iterations, according to certain embodiments;

FIG. 8B is an exemplary graphical representation of davies-bouldin index of GSDMM with 500 iterations, according to certain embodiments;

FIG. 9 is an exemplary graphical representation of distribution of documents over the selected 9 topics, according to certain embodiments;

FIG. 10 is an exemplary flow diagram of a method of identifying topics in Arabic microblog text, according to certain embodiments;

FIG. 11 is an exemplary flow diagram of a method for receiving notification for topics of interest in microblogs, according to certain embodiments;

FIG. 12 is a diagram of a microblogging system, according to certain embodiments;

FIG. 13 is a block diagram of a mobile device, according to certain embodiments;

FIG. 14 is an illustration of a non-limiting example of details of computing hardware used in the computing system, according to certain embodiments;

FIG. 15 illustrates user interfaces for a microblog notification system, according to certain embodiments;

FIG. 16 is an example user interface for a mobile app, according to certain embodiments;

FIG. 17 is an exemplary schematic diagram of a data processing system used within the computing device, according to certain embodiments;

FIG. 18 is an exemplary schematic diagram of a processor used with the computing device, according to certain embodiments; and

FIG. 19 is an illustration of a non-limiting example of distributed components which may share processing with a controller, according to certain embodiments.

DETAILED DESCRIPTION

In the drawings, like reference numerals designate identical or corresponding parts throughout the several views. Further, as used herein, the words “a,” “an” and the like generally carry a meaning of “one or more,” unless stated otherwise.

Furthermore, the terms “approximately,” “approximate,” “about,” and similar terms generally refer to ranges that include the identified value within a margin of 20%, 10%, or preferably 5%, and any values therebetween.

Aspects of this disclosure are directed to a system and a method for identifying topics in Arabic microblog text. The method uses the initial clustered topics generated by Dirichlet Multinomial Mixture (DMM) models and then evaluates the semantic relationships between documents using Levenshtein Distance. Subsequent to the evaluation, the method determines whether to keep the document in the same cluster, relocate it to another cluster, or mark it as an outlier.

More specifically, the method includes submitting, by at least one blogging device, Arabic text into an online microblog. Further, the method includes periodically downloading Arabic microblog text documents from one of more online sources. The method includes determining, by processing circuitry, a prespecified number of topics by applying a topic modeling algorithm to the microblog text documents. Further, the method includes clustering, by the processing circuitry, words in the documents to obtain words associated with each cluster. The method further includes outputting, by the processing circuitry, a set of clustered topics as a result of the clustering. The method includes revising, by the processing circuitry, the set of topics using Levenshtein Distance algorithm. Further, the method includes determining, in parallel, the number of documents in each topic and marking the topics that have less than or equal to a mindoc threshold as outliers and saving the outliers in an outlier list. The method includes moving, by the processing circuitry, a document from the outlier list to an appropriate topic by comparing the outlier list with top 10 words from each topic.

Referring now to FIG. 1, the present disclosure provides an exemplary diagram of a system 100 configured for identifying topics in Arabic microblog text, according to certain embodiments.

A system to identify topics in Arabic microblog text may include a computing device 102 configured for microblogging. In some embodiments, the computing device 102 may be a network connected device. The computing device 102 is configured to identify topics in Arabic microblog text. Examples of the computing device 102 may include a desktop, a laptop, a tablet, a smartphone, and the like. In an embodiment, the computing device 102 may include at least one of a mobile device, a server computer, and a server processing circuitry.

In an embodiment, a hybrid short-text topic-modeling framework Topic Clustering based on Levenshtein Distance (TCLD), post-processes base topics from GSDMM or LDA and refines document assignments using a Levenshtein distance ratio driven controller. The framework preprocesses texts (cleaning/normalization/stemming), generates initial topics with GSDMM or LDA (e.g., GSDMM with k as an upper bound; LDA with a, R priors), and for each topic computes pairwise Levenshtein distance ratios among documents. Items whose ratio falls below an acceptable distance threshold are pushed to an outlier list, items at or above the threshold are retained. Two relocation strategies are supported including TCLD-RD, which compares each outlier against a representative document of every topic, and TCLD-TW, which compares each outlier against each topic's Top 10 words. When a sufficiently similar match is found, the outlier is moved to the corresponding topic, otherwise it remains an outlier. Topics with document count≤mindoc (e.g., 10) are marked as weak and their contents are recycled through the same matching routine until assignments stabilize. An acceptable distance ratio is tuned empirically; sweeping, in the range 0.30-0.60, shows a stable operating band around 0.4-0.5 (too low; no outliers detected, too high:over-extraction that degrades cohesion).

In operation, the TCLD improves both intrinsic and extrinsic quality across six English benchmarks, where it raises SI and lowers DBI, and, in particular, TCLD-TW over GSDMM yields the best overall extrinsic scores (e.g., mean improvements up to 83% in purity and 67% in NMI versus strong baselines).

A case study on Arabic tweets further demonstrates practicality of the disclosed system, in which the system selects an initial topic range with an elbow method, runs GSDMM/LDA, and then TCLD reduces noise and determines a compact set of valid topics (e.g., nine topics retained) while flagging true outliers for exclusion or review. Collectively, the disclosed system optimizes topic count, mitigates outliers, and enhances short-text clustering by coupling probabilistic topic models with an efficient, per-topic LD ratio filter using either representative-document or top-words matching.

To identify the topics in Arabic microblog text, initially, the computing device 102 may be configured to submit Arabic text into an online microblog. In a representative implementation, the computing device (or a backend service it invokes) issues parameterized API queries, optionally constrained by language=Arabic and geo-filters, and ingests the returned posts as short-text documents.

Further, a mobile device as the computing device 102 may be configured to view a document in the online microblog. The mobile device may render a microblog using a document viewer that authenticates to the online microblog service (e.g., Twitter) and displays Arabic posts as short text “documents” together with key metadata (timestamp, author handle, geo-hint). The viewer supports dataset-aware overlays, e.g., per-topic assignment badges, intrinsic metric summaries (Silhouette, Davies-Bouldin), and 2-D projections for quick inspection of cluster cohesion. The presentation is fed by texts collected via the microblog API (Arabic-only queries), de-duplicated to a unique-tweet set, and preprocessed by cleaning, normalization, and light stemming to handle slang, diacritics, elongations, links/ads, and non-Arabic noise before modeling.

In an embodiment, the server computer as the computing device 102 may include a communication circuitry configured to periodically download Arabic microblog text documents from one of more online sources. The communication circuitry may authenticate with one or more microblog provider APIs (e.g., Twitter) and periodically download Arabic short-text documents according to provider rate/recency limits. The communication circuitry issues parameterized API queries that constrain language to Arabic and may include geographic filters.

Further, the server processing circuitry as the computing device 102 may be configured to determine a prespecified number of topics by applying a topic modeling algorithm to the microblog text documents. First, the circuitry computes an initial range of plausible topic counts using an elbow analysis (i.e., distortion vs. k) on vector embeddings to detect the point of diminishing returns within-cluster error, yielding a candidate k band for downstream modeling. Next, the server processing circuitry applies short-text topic models, GSDMM and/or LDA within that band. The LDA is run with a predefined K (from the elbow band) per the standard Dirichlet-multinomial formulation with α,β priors. The GSDMM, in contrast, requires only an upper bound K and self-prunes the effective number of clusters via the Movie Group Process during Gibbs sampling (documents gravitate to denser, more word-coherent topics while empty/weak topics collapse).

In an embodiment, the server processing circuitry may be configured to cluster words in the documents to obtain words associated with each cluster. The server processing circuitry converts the corpus into numeric features (e.g., TF-IDF or word/sentence embeddings) and then runs a clustering/topic model (such as K-Means, GSDMM, or LDA). Words are grouped by their similarity/co-occurrence patterns, and for each cluster the server processing circuitry selects the most representative terms (e.g., the highest weight/most central “top N” words). The result is a set of clusters, each labeled by its associated word list that succinctly describes the cluster's theme.

Further, the server processing circuitry may be configured to output a set of topic clusters as a result of the clustering. The server processing circuitry outputs a set of topic clusters as the final result of the clustering stage. For each topic, the output includes a unique topic identifier, the top N representative words (e.g., top ten), one or more exemplar documents, and summary statistics such as document count and average confidence. The output also flags any outlier documents left unassigned after refinement.

Alongside the textual descriptors, the server processing circuitry may emit 2-D projections (for visualization) and intrinsic quality metrics (e.g., Silhouette, Davies-Bouldin) to indicate cohesion and separation. Results are published via an API or stored in a repository as a JSON file or a comma-separated value (CSV) file for downstream search, monitoring, and reporting. In a user interface, the topics are presented as cards or a table, enabling filtering, sorting, and drill-down into the underlying documents. Periodic re-runs update the topic set, preserving identifiers where possible to maintain continuity over time.

In an embodiment, the server processing circuitry may be configured to revise the set of topics using a Levenshtein Distance algorithm. In an embodiment, the server processing circuitry revises the initially discovered topics using a Levenshtein Distance-based refinement pass. For each topic, it computes Levenshtein distance ratios either among documents inside the topic or between each document and a compact topic signature (e.g., the topic's top N words). Any document whose similarity falls below an acceptable distance ratio (e.g., ~0.40-0.50) is flagged as an outlier. Each outlier is then compared against all topic signatures, if the ratio meets or exceeds the threshold for a different topic, the document is reassigned to that topic, otherwise it remains unassigned for later review. Topics that fall below a minimum document count (“mindoc”) are dissolved and their documents are recycled through the same matching loop. The procedure iterates until no further moves between topics occur, yielding a cleaner, more coherent topic set, refreshed top-word lists, and improved cohesion/separation metrics, with thresholds and actions logged for auditability and reproducibility.

Further, the server processing circuitry may be configured to determine, by parallel processing, the number of documents in each topic and mark the topics that have less than or equal to a mindoc threshold as outliers and save the outliers in an outlier list. In an embodiment, the server processing circuitry computes by parallel processing, the document count for every topic produced by the clustering stage. Each processor scans its assigned shard of documents, increments thread-safe/atomic counters for the corresponding topic IDs, and returns partial tallies that are reduced to a global per-topic count map. As known in the art, a shard is a horizontal partition of data in a database. In this case the data is documents and each document is partitioned into blocks of a maximum word or character count, and the blocks are spread across multiple server processors. Subsequently, each shard (block) may be processed on a separate processor instance, to spread load. Using the per-topic count map, the server processing circuitry compares each topic's count against a configurable mindoc threshold (e.g., mindoc=10). Topics with count≤mindoc are marked as outliers and are appended to an outlier list together with their member document IDs and summary statistics (e.g., count, top words, timestamp). The documents from the undersized topics are then flagged for recycling in the refinement loop (e.g., Levenshtein-based reassignment), while non-outlier topics are preserved as currently valid. All actions, counts, threshold, moved topic IDs, and resulting lists are logged with versioned metadata to ensure auditability and reproducibility, and to support incremental re-runs when new microblog data is ingested.

In an embodiment, the server processing circuitry may be configured to move a document from the outlier list to an appropriate topic by comparing the outlier list with top 10 words from each topic. The server processing circuitry further configured to compare documents in the outlier list with a representative document in each topic. The server processing circuitry is further configured to compare documents in the outlier list with the top 10 words from each topic.

In an embodiment, the server processing circuitry implements a two-stage reassignment controller for documents held in an outlier list. For each outlier document, the circuitry first executes the Top-Words (TW) matching pass (TCLD-TW), builds a compact signature for every topic from its top 10 words (optionally weighted), and computes a Levenshtein distance ratio between the outlier and each topic signature. If the best-matching topic achieves an acceptable distance ratio at or above a configurable threshold (e.g., 0.40-0.50), the document is moved into that topic, and the topic's statistics (count, centroid/top-words) are updated atomically.

If no topic clears the threshold in the TW pass, the server processing circuitry performs a Representative-Document (RD) matching pass (TCLD-RD). For each topic it compares the outlier to that topic's representative document (e.g., medoid/exemplar) using the same Levenshtein ratio and reassigns the outlier if a topic meets the threshold. When both passes yield candidates, tiebreakers prefer the higher ratio, then the topic with higher internal cohesion, then the one with greater document count. If no candidate passes, the document remains in the outlier list for manual review or later reruns. The controller iterates until no further moves occur, topics that fall≤mindoc are marked weak, dissolved, and their documents are recycled through the same TW/RD matching loop to ensure a clean, coherent final topic set.

Further, the server processing circuitry is configured to compute a Levenshtein distance ratio between pairs of documents in each clustered topic. The server processing circuitry is configured to keep documents with an acceptable distance ratio in the same topic and save the rest in an outlier list. Further, the server processing circuitry is configured to find representative documents among all documents in each topic. The server processing circuitry is configured to compute the Levenshtein distance ratio between each document in the outlier list with the representative documents in each topic, when the acceptable distance ratio is found, the document will be moved to the corresponding topic. Further, the server processing circuitry is configured to determine the number of documents in all topics and mark the topics that have less than or equal to the mindoc threshold as outliers, then repeat the computing step to handle these documents, in which the mindoc threshold is a minimum number of documents needed to keep the topic. The acceptable distance ratio is the Levenshtein distance ratio between two documents that is greater than or equal to 0.35.

In some embodiments, the server processing circuitry is configured to compute the Levenshtein distance ratio between pairs of documents in each clustered topic. Further, the server processing circuitry is configured to keep documents with an acceptable distance ratio in the same topic and save the rest in an outlier list. The server processing circuitry is configured to find the documents with 10 top words among all documents in each topic. Further, the server processing circuitry is configured to compute the Levenshtein distance ratio between the documents in the outlier list with the documents with 10 top words in each topic, when the acceptable distance ratio is found, the document will be moved to the corresponding topic. The server processing circuitry is configured to determine the number of documents in each topic and mark the topics that have less than or equal the mindoc threshold as outliers, then repeat the computing step to handle these documents, in which the mindoc threshold is a minimum number of documents needed to keep the topic.

In an embodiment, the computing device 102 may include the mobile device including a user interface configured to input one or more topics of interest. Further, the server processing circuitry is configured to match the topics of interest to the set of topics and output an alert when at least one document in the topic matches the topics of interest. Further, the mobile device is configured to display the alert with a link to a list of documents. The mobile device is further configured to display the alert in a display of the mobile device, and when the link is invoked, display the list of documents. The mobile device is further configured to display a button having a function to retrieve all topics related to a document in the list. Further, the mobile device is configured to select a document in the list, and when the button is invoked, display a list of the topics related to the selected document.

In an embodiment, the computing device 102 is configured to receive the Arabic text and the online microblog from the server 112 over a network 116. Examples of the server 112 may include, but are not limited to, a cloud service, cluster of server computers, a desktop, and the like. Examples of the network 116 may include, but are not limited to, a Wide Area Network (WAN), a Local Area Network (LAN), a wireless network, a mobile network, a Virtual Private Network (VPN), an internet, an intranet, a public network, a private network, a packet-switched network, a circuit-switched network, an ad hoc network, an infrastructure network, a Public-Switched Telephone Network (PSTN), a cable network, a cellular network, a satellite network, a fiber optic network, or some combination thereof. The complete method of identifying topics in Arabic microblog text is further explained in detail in conjunction with FIG. 2 to FIG. 19.

The memory 104 may be a volatile memory, such as a Random-Access Memory (RAM), or a non-volatile memory such as a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash memory, and the like. The memory 104 may be configured to store one or more computer-readable instructions or routines that when executed may cause the computing device 102 to identify topics in Arabic microblog text. The memory 104 may identify topics with a processing circuitry 106. In other words, the processing circuitry 106 may be configured to execute the one or more computer-readable instructions stored within the memory 104. The processing circuitry 106 may be implemented as one or more microprocessors, microcomputers, microcontrollers, Digital Signal Processors (DSPs), Central Processing Units (CPUs), logic circuitries, and/or any devices that process data based on operational instructions.

In an embodiment, the computing device 102 may also include an Input/Output (1/O) unit 108. The I/O unit 108 may be used by the user to provide inputs (such as microblog, Arabic test, AI/ML model and the like) to the computing device 102. Further, the I/O unit 108 may include a display 110. The display 110 may be used to display topic-model outputs and diagnostics, including histograms of document counts per topic and corpus-level distributions over the selected topics (e.g., nine topics retained), 2-D projections (e.g., t-SNE) that visualize the clustered documents, and intrinsic metrics such as Silhouette and Davies-Bouldin used during tuning. The views are generated based on processing performed by the computing device 102 using topic modeling (GSDMM or LDA) together with Topic Clustering based on Levenshtein Distance (TCLD). The device computes Levenshtein distance ratios in-topic, places low-similarity items into an outlier list, and applies an acceptable distance threshold (e.g., 50%) when comparing each outlier against a representative document or the topic's top 10 words to reassign or exclude documents and prune topics below a minimum size (mindoc). The display presents refined topics and visual diagnostics after the TCLD reassignment/pruning step.

Referring now to FIG. 2, the present disclosure provides an exemplary flow diagram 200 of a computer-implemented method for identifying topics in Arabic microblog text, according to certain embodiments. In this disclosure a microblog, a Tweet, or Post is considered as short text due to character limits, as well as being limited to short status updates for social networking. The character limit in a microblog, Tweet, or Post is generally a few hundred characters, e.g., 280 characters in a Tweet or Post, but may be 500 characters in some microblogs.

At step 202, short-text datasets are input and preprocessed in a preprocessing module. The server computer reads raw Arabic microblogs (and any benchmark corpora) and applies a language-aware cleaning pipeline such as URL/mention/hashtag/emojis removal, Unicode filtering to Arabic letters+space, diacritic and elongation normalization, collapsing repeated characters, punctuation/digit stripping, and light stemming/lemmatization. Implementation may use streaming tokenizers and regex rules, with per-post metadata kept (ID, time, author). A quality function guards deduplicate near-identical posts (hash or MinHash) and drops empty/noisy items. Further, outputs of the preprocessing module are normalized tokens, vocab stats, and a document index.

At step 204, a modeling module performs initial topic modeling. For microtexts, the system runs GSDMM (documents assumed to have a single topic) with an upper bound K. The Gibbs sampling function concentrates documents into dense topics while empty one's collapse. Optionally, the LDA function is run with priors α,β, when mixtures are desired. A quick elbow scan (distortion vs. k) or prior runs provides K hints. Features are TF-IDF or sentence embeddings, and runs are performed by parallel processing across seeds. The output of the modeling module is topic IDs per document plus preliminary N top-words per topic, where N is a predetermined number of words.

At step 206, the TCLD refinement is performed by a post-processing controller. The TCLD goal is to audit within-topic textual consistency and fix misassignments produced by step 204, without re-training the base model.

At step 208, intra-topic Levenshtein distance ratios are computed by a Levenshtein distance function that calculates Levenshtein distances and manages stored distances. For each topic, pairs of documents (or each document vs. a topic signature) are compared using edit distance normalized to [0,1] similarity. To scale, strings are lowercased, stop-phrases trimmed, and comparisons are vectorized/batched. For large topics, a sample or banded Wagner-Fischer is used. The per-document mean/median ratio becomes its “fit score.”

At step 210, an outlier list is maintained in a memory. Documents whose fit score is below an acceptable distance ratio (configurable, typically in a range 0.40-0.50) are flagged as poor fits. Documents having extremely low ratios may be dropped as noise. The outlier list stores doc ID, current topic, fit score, and snippets for later matching and audit.

At step 212, each outlier document is compared across all topics using compact signatures to avoid costs for full pairwise matching. Two signatures are maintained per topic and tested in order to achieve high efficiency.

At step 214, a signature matching function is executed via alternatives, such as Top 10 Words (TCLD-TW), which build a weighted string from a topic's ten most representative words (based on TF-IDF or probability weights) then computes the Levenshtein ratio between the outlier text and each topic's top-words (TW) string and Representative Document (TCLD-RD) including, if TW yields no candidate above a threshold, compare the outlier document to each topic's medoid/centroid exemplar (chosen by minimal average distance). The best topic is selected based on a maximum ratio, where ties are decided based on a topic having higher internal cohesion (e.g., Silhouette per topic) and then by larger topic size.

At step 216, a reassignment function is applied to outlier documents. If the best ratio meets/exceeds the threshold, the outlier document is moved into that topic, otherwise it remains on the outlier list. Document moves are transactional and include steps of update topic counts, refresh top-words (incremental TF-IDF), and cache the topic signature. A reassignment loop iterates until there are no further outlier document moves, with concurrency control (locks/atomics) to avoid race conditions.

At step 218, a pruning of topics based on a mindoc threshold is performed. The system tallies documents per topic by parallel processing. Any topic with document count≤mindoc (e.g., 10) is marked weak, dissolved, and its documents are recycled, preventing the final document inventory from retaining fragile, low-evidence clusters.

At step 220, an evaluation is reported including intrinsic metrics such as a Silhouette Index and Davies-Bouldin which are further computed over the refined assignments (using cosine or edit-based distances). If labels exist, extrinsic metrics (Purity, NMI, AMI, F1) are emitted. The system also produces QA artifacts such as topic counts, outlier rate, before/after deltas, and 2-D projections (UMAP/t-SNE) for operator review. The final deliverable is a compact, coherent topic set, together with audit logs of thresholds, moves, and any pruned topics.

In an embodiment, the TCLD is improves the clustered topics based on semantic similarity. After applying topic modelling, the semantic similarities between documents will be measured. FIG. 2 serves as an illustrative example show the TCLD method, starting from calculating Levenshtein Distance, and highlighting its role in identifying outlier documents (Documents deviating significantly from the norm). In this embodiment, the data set includes nine documents distributed across three topics generated by topic modeling (denoted as Topic 1, Topic 2, and Topic 3). Each document is labeled as D1(topic)1(document) (e.g., D11, D12, . . . , D33). The TCLD method may include computing the Levenshtein distance ratio between all documents in each clustered topic. The documents with an acceptable distance ratio are kept in the same topic, and the rest are saved in an outlier list. Further, the representative documents (or 10 top words) are found among all documents in each topic. The TCLD may further compute the Levenshtein distance ratio between the documents in the outlier list with the representative documents (or 10 top words) in each topic. When an acceptable distance ratio is found, the document will be moved to the corresponding topic. Finally, the TCLD may check the number of documents in all topics and mark the topics that have less than or equal a mindoc threshold number of documents as outliers. The mindoc is a threshold that represents the minimum number of documents needed to keep the topic. In this embodiment, the mindoc is set to 10. Further, the acceptable distance ratio means that the Levenshtein distance ratio between two documents is greater than or equal to 0.35. The thresholds are determined by testeingand tuning in experiment analysis. The representative document is the document that has the greatest Levenshtein distance ratio from other documents in each topic.

Referring now to FIG. 3, the present disclosure provides an exemplary block diagram 300 of a Latent Dirichlet Allocation (LDA) graphical model, according to certain embodiments. In an embodiment, the computing device 102 may implement the LDA model to identify topics in Arabic microblog text. The LDA model may be a probabilistic generative model of a corpus. A fundamental concept is that texts are modeled as random mixtures over latent topics, with each topic being defined by a distribution over words.

In an embodiment, β 302 may represent a Dirichlet hyperparameter that governs the concentration of the topic-word distributions. Intuitively, the β 302 controls how peaked or diffuse each topic's vocabulary is, small β favors sparse topics with a few high-probability words, and large β yields flatter topics. Further, α 306 represents a Dirichlet hyperparameter that governs the concentration of the document-topic distributions. Small α favors documents that focus on few topics, and large α encourages topic mixtures spread across many topics. Within k, φ 304 denotes the topic-word multinomial for each topic k∈{1, . . . , K}. Each φk is sampled once per topic from Dirichlet(β) 302 and defines a probability over the fixed vocabulary (e.g., V words). The observable variable of the LDA may include φ corresponding to the topic word distribution, θ corresponding the document topic distribution with parameters α and β, k corresponding to the predefined number of topics, D corresponding to the short text corpus consisting of N words, and nd corresponding to the number of words in document d.

In an embodiment, D 308 denotes replication over documents d∈{1, . . . , D}. Further, θd 310 is the document-topic multinomial for document d. It is drawn once per document from Dirichlet(α) 304. Further, nd indicates replication over the tokens (word positions) inside document d, and t 312 may denote the latent topic assignment for the nth token of document d. It is sampled from the document mixture td,n~Categorical(θd) 310. Further, w 314 denotes the observed word token at position n of document d. Conditioned on the chosen topic td,n=k, the word is emitted from that topic's vocabulary distribution wd,n~Categorical(φk) 304.

In some embodiments, for every topic (t) 312, the LDA may generate the Dirichlet distribution on words, ~Dirichlet (β) 302. Further, the LDA may generate a vector of Dirichlet distribution on topics θd 310~Dirichlet(α) 306, for every document (d). For every word wn out of the N words, the LDA may select a random topic td~Multinomial (θ). Further, the LDA may select a word (wn) from p(wn|td, β), a multinomial probability that depends on the topic td.

In an embodiment, a Gibbs Sampling Dirichlet Multinomial Mixture (GSDMM) shows good performance in dealing with highly sparse short text. The GSDMM uses Gibbs sampling to assign a topic to each short text. The DMM is a probabilistic generative model for short text. Each short text is produced by a mixture model, and each mixture component has one cluster. The process of the GSDMM is represented in the Algorithm 1.

Algorithm 1    D: Documents as input Itr: number of iterations Nd: number of words in document d Z: Topics of each document initialize the following as zero for each topic t: mt : number of documents in topic t nt : number of words in topic t n t w : number ⁢ of ⁢ occurrences ⁢ of ⁢ word ⁢ w ⁢ in ⁢ topic ⁢ t zd : multinomial variable for document d foreach d in D: // for each document in D  model a topic for document d :   zd ← t~Multinomial(1/K)   mt ← mt + 1   nt ← nt + Nd  foreach w in d: // foreach word in d    n t w ← n t w + N d w for i = 1 to Itr  foreach d in D: // for each document in D   save d: t = zd // current topic   mt ← mt − 1   nt ← nt − Nd   foreach w in d: //for each word in document d     n t w ← n t w + N d w    model a topic for document d:    zd ← t~p(zd = t | z¬d, D) (Equation 1)   mt ← mt + 1   nt ← nt + Nd   foreach w in d: //for each word in document d     n t w ← n t w + N d w Endfor

In some embodiments, in the Algorithm 1, firstly, the documents are assigned randomly to K clusters, then the parameters such as T, mt, nt, and nwt are initialized. In each iteration, the topic t is reassigned for the document d based on the p(zd=t|Z¬d, D), which represents the conditional distribution, where all topics of all documents are represented by Z and ¬d indicate the topic of document d is removed from Z. A topic t is reassigned to document d and the corresponding variables are updated each time such as Z, mt, nt, and nwt. Finally, the nonempty topics in Z may be considered as the output of the model. The GSDMM conditional probability distribution is represented in Equation 1.

P ⁡ ( z d = t ⁢ ❘ "\[LeftBracketingBar]" Z ¬ d , D ) ∝ m t , ¬ d + α N - 1 + K α ⁢ ∏ w ∈ d ∏ j = 1 n d w ( n t w , ¬ d + β + i - 1 ) ∏ i = 1 n d ( n t , ¬ d + V ⁢ β + i - 1 ) ( 1 )

where, P(zd=t|Z¬d,D) is derived from the DMM model, the DMM chooses Dirichlet distribution for φ and θ, respectively, as a pre-distribution with parameters α and β. A topic zd is sampled in the DMM for document d by θ and then generates all words in document d from topic zd by φzd.

After clustering the topics with both clustering algorithms and topic modeling, an improvement of the resulting set of topics uses the LDA. The details of the LDA and the GSDMM approach may include an Edit distance algorithm which is conventionally utilized in textual similarity recognition, featuring diverse edit operations such as insertions, deletions, and substitutions, each associated with its specific cost. The cost is determined by the number of steps required to transform one text into another, reflected in the edit distance score. Employing edit distance metrics for parsing and document analysis is a suitable approach for quantifying semantic similarities between documents. The LDA is used to measure the separation of two sequences of words. The LDA between two words is the minimum number of edits of a single character required to change one word into another. Mathematically, the LDA is illustrated in Equation 2.

D s ⁢ 1 , s ⁢ 2 ( i , j ) ⁢ { Max ⁡ ( i , j ) Min ⁢ { D s ⁢ 1 , s ⁢ 2 ( i - 1 , j ) + 1 D s ⁢ 1 , s ⁢ 2 ( i , j - 1 ) + 1 D s ⁢ 1 , s ⁢ 2 ( i - 1 , j - 1 ) + 1 s ⁢ 1 i ≠ s ⁢ 2 j ⁢ otherwise ( 2 )

where the comparison is between the two strings; s1 and s2, also, i and j are the current indexes to be evaluated, starting at |s1| and |s2| respectively. Moreover, the theoretical maximum of the Levenshtein distance is the longer string length, so if the strings have no common characters, all the characters in the shorter string have to be initially substituted, and then the rest must be added. The upper limit allows defining a similarity ratio between both strings s1 and s2 as in Equation 3.

D ratio ( s ⁢ 1 , s ⁢ 2 ) = 1 - D s ⁢ 1 , s ⁢ 2 ( ❘ "\[LeftBracketingBar]" s ⁢ 1 ❘ "\[RightBracketingBar]" , ❘ "\[LeftBracketingBar]" s ⁢ 2 ❘ "\[RightBracketingBar]" ) Max ⁡ ( ( ❘ "\[LeftBracketingBar]" s ⁢ 1 ❘ "\[RightBracketingBar]" , ❘ "\[LeftBracketingBar]" s ⁢ 2 ❘ "\[RightBracketingBar]" ) ) ( 3 )

In some embodiments, clustering performance is evaluated by relying on intrinsic and extrinsic measures. Intrinsic measures inspect the separation and compaction of the clusters and do not require ground truth labels. A Silhouette score (SI) and Davies-Bouldin Index (DBI) are used as intrinsic or internal measures. The indication value of SI ranges between 1 and −1, where 1 is the best value, the worst is −1, and the overlapping clusters are indicated by values close to 0. On the other hand, DBI is a ratio calculated between the cluster scatter and the separation of the cluster, where a lower value of DBI indicates better clustering. The extrinsic and external measures require the ground truth labels to be compared with the predicted clusters. The Normalized Mutual Information (NMI), Adjusted Mutual Information (AMI), Homogeneity score (HS), and purity are used as extrinsic measures. Where the higher values of NMI, AMN/I, HS, and purity indicate a better clustering quality.

Table 1 shows the performance with clustering algorithms of LDA and GSDMMN/relying on purity, Homogeneity, NMI, AMI, SI, and DBI. Besides the results of the LDA for improving the Topic Clustering (TCLD). The TCLD is applied to the output from GSDMM and LDA.

TABLE 1 TCLD-TW TCLD-RD Dataset GSDMM LDA GSDMM LDA GSDMM LDA SearchSnippets Purity 0.81 0.349 0.854 0.376 0.805 0.349 Homogeneity 0.694 0.118 0.754 0.137 0.668 0.118 NMI 0.431 0.087 0.433 0.096 0.38 0.087 AMI 0.426 0.082 0.421 0.091 0.367 0.082 SI −0.226 −0.397 0.022 −0.001 0.021 0.001 DBI 26.038 30.019 3.798 10.178 4.376 7.915 Time(sec) — — 42.984 99.532 58.714 76.433 StackOverflow Purity 0.625 0.299 0.633 0.299 0.621 0.298 Homogeneity 0.529 0.219 0.544 0.219 0.529 0.219 NMI 0.478 0.237 0.496 0.237 0.483 0.236 AMI 0.473 0.232 0.492 0.232 0.478 0.231 SI −0.22 −0.101 −0.003 0.008 −0.003 0.006 DBI 40.319 42.036 8.241 6.922 8.133 6.805 Time(sec) — — 39.67 67.958 39.448 70.537 Biomedicine Purity 0.503 0.147 0.51 0.162 0.509 0.158 Homogeneity 0.427 0.072 0.433 0.078 0.432 0.075 NMI 0.378 0.075 0.379 0.075 0.378 0.073 AMI 0.372 0.07 0.372 0.07 0.371 0.068 SI −0.324 −0.12 −0.002 −0.003 −0.002 −0.002 DBI 30.575 39.114 7.377 14.739 7.383 13.65 Time(sec) — — 80.873 270.829 81.829 218.393 Tweet Purity 0.815 0.597 0.869 0.646 0.843 0.61 Homogeneity 0.856 0.587 0.892 0.633 0.875 0.603 NMI 0.873 0.633 0.896 0.671 0.884 0.648 AMI 0.848 0.569 0.872 0.61 0.859 0.585 SI −0.049 −0.039 0.066 0.032 0.065 0.032 DBI 9.657 10.814 2.964 4.948 3.357 4.943 Time(sec) — — 3.197 4.947 3.528 4.312 GoogleNews Purity 0.702 0.243 0.803 0.248 0.799 0.247 Homogeneity 0.81 0.297 0.867 0.294 0.863 0.298 NMI 0.852 0.396 0.886 0.383 0.881 0.394 AMI 0.835 0.363 0.869 0.348 0.863 0.36 SI −0.042 −0.012 0.067 0.012 0.068 0.013 DBI 15.971 23.107 3.7 7.683 3.846 6.951 Time(sec) — — 34.616 59.894 33.904 55.094 PascalFlickr Purity 0.341 0.111 0.401 0.114 0.344 0.113 Homogeneity 0.334 0.056 0.386 0.054 0.332 0.055 NMI 0.364 0.073 0.425 0.066 0.36 0.067 AMI 0.355 0.063 0.415 0.056 0.346 0.058 SI −0.089 −0.046 0 0.001 0.004 0.002 DBI 17.744 21.605 5.127 9.986 5.627 9.557 Time(sec) — — 8.049 14.188 9.479 13.081

Table 1 show the comparison of two methods dealing with the documents in the outlier list, using the top 10 words from each topic (TCLD-TW) and using the representative document in each topic (TCLD-RD). The GSDMM demonstrates superior performance, as indicated by the valuation metrics. The results of both GSDMM and LDA are further enhanced with the application of the TCLD technique. The improvement is attributed to the TCLD, which evaluates each document in existing topic modeling solutions, thereby enhancing clustering results. Additionally, GSDMM with TCLD-TW performs better than GSDMM with TCLD-RD, demonstrating that moving a document from the outlier list to the appropriate topic may be accomplished by comparing the outlier list with the top 10 words from each topic. In and embodiment, the impact of the acceptable distance ratio on the performance of TCLD is explored, taking into consideration the execution time, the time used to generate the results of the TCLD-TW is acceptable because the processing may be for each topic individually.

Referring now to FIG. 4A, the present disclosure provides an exemplary graphical representation 400A of an influence of an acceptable distance ratio using a TCLD-TW Gibbs Sampling Dirichlet Multinomial Mixture (GSDMM) based on a biomedical dataset, according to certain embodiments. The graphical representation 400A depicts how the acceptable distance ratio (horizontal axis which varied from 0.30 to 0.60) affects clustering quality, measured by the Silhouette Index (SI) (vertical axis), when applying TCLD-TW as a post-processing step on GSDMM topics for a biomedical short-text dataset. The biomedical dataset information is provided on the official BioASQ website. Within TCLD, documents inside each topic are pairwise compared using the Levenshtein distance ratio. The documents failing the acceptable distance ratio threshold are placed into an outlier list and then may be reassigned by matching against each topic's top 10 words (the “TW” variant).

The plotted curve remains nearly flat and maximal (SI 0.021-0.024) across 0.30≤ratio≤0.50, indicating stable, well-separated clusters when the threshold is in this range. Around a ratio slightly above 0.50, the curve drops sharply toward 0.00 as the ratio approaches 0.60, indicating degraded cohesion/separation of clusters. The behavior reflects the algorithmic effect that increasing the threshold extracts more documents as outliers and causes excessive reassignment, which harms cluster structure, conversely, if the threshold is too low, few or no outliers are detected. The present disclosure identifies 0.40-0.50 as the generally favorable operating band across datasets when SI is used as the intrinsic metric.

Referring now to FIG. 4B, the present disclosure provides an exemplary graphical representation 400B of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a google news dataset, according to certain embodiments. The graphical representation 400B depicts the effect of the acceptable distance ratio (horizontal axis, swept from 0.30 to 0.60) on clustering quality measured by the Silhouette Index (SI) (vertical axis), when the TCLD-TW post-processing is applied to GSDMM topics for a Google News short-text dataset. The Google News dataset may be automatically grouped into clusters on the Google News website. In the TCLD procedure, pairwise Levenshtein distance ratios are computed within each topic, documents failing the acceptable distance ratio threshold are placed in an outlier list and then re-matched to topics by comparing against each topic's top ten words (the “TW” variant).

At low thresholds (~0.30-0.38), SI is consistently negative and near its minimum (≈-0.005), indicating weak cohesion/separation when too few documents are flagged as outliers. Around 0.40, SI rises sharply, reflecting improved cluster quality as the method begins to meaningfully extract and reassign inconsistent documents. From ~0.45 to ~0.55, SI continues an upward trend toward 0.00 (near neutral), with a small dip/oscillation near the upper end, indicating sensitivity to how many documents are being reassigned at high thresholds. Overall, the FIG. 4B shows that the Google News dataset benefits from moderate-to-higher thresholds (≈0.45-0.55), approaching its best SI near the top of the tested range, albeit still around zero (short news snippets remain hard to separate perfectly). The SI ratios in the 0.4-0.5 band tend to be a favorable operating region. If the ratio is too low, no outliers are detected, and if pushed higher, too many documents are extracted and reassigned, which may degrade the SI.

Referring now to FIG. 4C, the present disclosure provides an exemplary graphical representation 400C of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a Pascal_Flickr dataset, according to certain embodiments. The graphical representation 400C depicts the effect of the acceptable distance ratio (horizontal axis, swept from 0.30 to 0.60) on clustering quality measured by the Silhouette Index (SI) (vertical axis), when applying the TCLD-TW post-processing to GSDMM topics for the Pascal Flickr short-text dataset. The Pascal_Flickr short-text dataset may be used to assess the effectiveness of short text clustering. In TCLD, documents within each topic are compared using the Levenshtein distance ratio, items falling outside the acceptable distance ratio are placed in an outlier list and are then reassigned by matching them against each topic's top ten words (the “TW” variant).

At low thresholds (≈0.30-0.38), the SI values are negative to near-zero, indicating weak cluster separation when too few documents are flagged and corrected. Beginning around 0.40-0.46, the SI rises steadily, reflecting improved cohesion/separation as inconsistent documents are properly extracted and reassigned. The curve peaks around ~0.50-0.53 (SI≈0.002-0.0025), then exhibits small oscillations and a gradual decline toward ~0.58-0.60, suggesting that overly high thresholds start to over-extract documents and destabilize topic structure. The pattern aligns with the present disclosure's cross-dataset observation that 0.4-0.5 is generally a favorable operating band. For Pascal_Flickr under TCLD-TW GSDMM, selecting an acceptable distance ratio around 0.48-0.53 balances outlier detection and reassignment to achieve near-peak SI, while ratios approaching 0.60 are disfavored due to the observed volatility and drop-off.

Referring now to FIG. 4D, the present disclosure provides an exemplary graphical representation 400D of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a search snippet dataset, according to certain embodiments. The graphical representation 400D illustrates the influence of the acceptable distance ratio on clustering quality measured by the Silhouette Index (SI), when applying TCLD-TW as a post-processing step to GSDMM topics for the search snippets short-text dataset. The search snippets dataset may be selected from the outcomes of an online search transaction using predetermined terms from 8 distinct domains. Business, computers, culture-arts, education-science, engineering, health, politics-society, and sports are the eight areas, in that order. In TCLD, intra-topic similarities are computed using the Levenshtein distance ratio, documents meeting an acceptable distance ratio are retained in their topics, while others are pushed to an outlier list and then re-matched to topics by comparing them against each topic's top ten words (the “TW” variant).

Along the horizontal axis, the acceptable distance ratio is swept from 0.30 to 0.60. The vertical axis reports SI. The sweep is the standard protocol used across all six datasets to study parameter sensitivity of TCLD-TW over GSDMM and LDA. The SI is used as an intrinsic metric since the method should not reveal the true number of topics. The SI curve exhibits a stable, high plateau from roughly 0.30-0.46, indicating that moderate thresholds yield cohesive and well-separated clusters after outlier detection/reassignment. Near 0.47-0.50, the curve begins to roll over, and beyond ~0.50 the SI drops sharply, reaching its lowest values as the threshold approaches 0.60. The pattern reflects the TCLD mechanism, if the threshold is too low, few outliers are extracted, and if too high, too many documents are ejected and reassigned, which erodes cluster structure. The present disclosure generally identify the 0.40-0.50 band as the favorable operating region, where SI tends to stabilize before degrading at larger ratios.

Referring now to FIG. 4E, the present disclosure provides an exemplary graphical representation 400E of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a stack overflow dataset, according to certain embodiments. The graphical representation 400E depicts the influence of the acceptable distance ratio (horizontal axis, varied from 0.30 to 0.60) on clustering quality measured by the Silhouette Index (SI) (vertical axis), when applying TCLD-TW as a post-processing step to GSDMM topics for the Stack Overflow short-text dataset. In the TCLD procedure, pairwise Levenshtein distance ratios are computed among documents within each topic, documents meeting the acceptable distance ratio remain in-topic, while others are placed on an outlier list and then re-matched to topics by comparing them against each topic's top-10 words (the “TW” variant).

The curve shows a high, stable plateau for SI at ~0.30-0.46, followed by a gentle rollover near ~0.47-0.50 and then a pronounced decline beyond ~0.50, with SI dropping steadily toward the upper end of the sweep. The pattern reflects the TCLD mechanism, too-low thresholds extract few outliers and thus change little, moderate thresholds (~0.40-0.50) enable effective identification and reassignment of inconsistent documents, and over-high thresholds (>~0.50) eject too many documents, destabilizing topics and degrading SI. The behavior aligns with the present disclosure's cross-dataset finding that performance is most favorable when the acceptable distance ratio lies between 0.4 and 0.5, beyond which SI typically worsens.

Referring now to FIG. 4F, the present disclosure provides an exemplary graphical representation 400F of an influence of an acceptable distance ratio using a TCLD-TW GSDMM based on a tweet dataset, according to certain embodiments. The graphical representation 400F depicts the influence of the acceptable distance ratio (horizontal axis, swept from 0.30 to 0.60) on clustering quality reported by the Silhouette Index (SI) (vertical axis), when applying TCLD-TW as a post-processing step to GSDMM topics for a Tweet short-text dataset. The Twitter API may be used to collect Arabic tweets, tweets were downloaded using the Python package (tweepy). The language in the tweets was Arabic. It is important to note that the search procedure of Twitter API, returns a maximum of 18 k tweets and only the data of the previous 6 to 9 days. Thus, the process was run several times, collecting 21,303 tweets based on specific geographic locations. Then, duplicated tweets were deleted, and the number of unique tweets became 17,753 In TCLD, intra-topic textual similarities are computed via the Levenshtein distance ratio; documents meeting the acceptable distance ratio remain in-topic, while others are placed on an outlier list and then reassigned by comparing them against each topic's top ten words (the “TW” variant).

The SI is low and nearly flat from about 0.30-0.36, indicating limited improvement when the threshold is too strict (few documents are flagged as outliers). Around 0.38-0.42, SI shows a modest rise, followed by a small dip near ~0.44, then a pronounced jump beginning ~0.48. From ~0.50 to ~0.60, SI continues an upward trend with minor oscillations, reaching the panel's highest values near the upper end of the sweep. The pattern indicates that the Tweet dataset being short, noisy, and lexically variable, benefits from higher thresholds that extract and reassign more inconsistent documents before topic structures stabilize. Table 2 may show a summary of the used dataset. Table 2 may include the number of topics, the number of documents, the average and maximum length per document, and the vocabulary size.

TABLE 2 avg/max Vocabulary Dataset #Topics # Documents length size Full Arabic unknowing 17,753 9.9/69 37,389 Tweets

In an embodiment, a preprocessing task for the collected tweets is a very important task that may be performed since the Arabic tweets are usually not standard and complicated due to the existence of slang, diacritical marks, elongations, spelling mistakes, dialect text, and extra characters. Tweets contain much noise, including elongations, hashtags, emojis, links, non-Arabic text, digits, punctuation marks, and other marks. Thus, each Arabic tweet is read character-by-character and checks if it belongs to the Arabic aliphatic and white space or not, along with removing the URLs and advertisements. Further, a tweet normalization may be performed to make the text more reliable by removing diacritical marks, extra white spaces, and duplicates, and also to convert each letter to its standard form. Further, a light stemmer for Arabic words may be used to convert the inflected Arabic word to a common canonical form (Stem). The stemmer is utilized for stemming Arabic words without relying on a root dictionary.

Table 3 shows the number of topics and the number of documents, and the AvgLength and MaxLength related to the average and maximum length of each document, and the vocabulary size, respectively.

TABLE 3 Vocabulary Dataset #Topics # Documents AvgLength MaxLength size Search Snippets 8 12,295 14.4 37 5,547 StackOverflow 20 16,407 5.03 17 2,638 Biomedicine 20 19,448 7.44 28 4498 Tweet 89 2,472 8.55 20 5,096 GoogleNews 152 11,109 6.23 14 8,110 PascalFlickr 20 4,834 5.37 19 3,431

Referring now to FIG. 5A, the present disclosure provides an exemplary graphical representation 500A of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a biomedical dataset, according to certain embodiments. The graphical representation 500A illustrates the effect of the acceptable distance ratio (horizontal axis, varied from 0.30 to 0.60) on clustering quality measured by the Silhouette Index (SI) (vertical axis), when TCLD-TW is applied as a post-processing step to LDA topics for a Biomedical short-text dataset. In the TCLD workflow, documents within each topic are compared using the Levenshtein distance ratio to detect internally inconsistent items, such items are placed into an outlier list and then re-matched to topics by comparing them against each topic's top ten words (the “TW” variant).

From ~0.30 to ~0.44, the SI remains near-flat and slightly positive, indicating little change when the threshold is conservative (few documents are flagged as outliers). Around ~0.46-0.48, the SI shows a distinct peak (best cohesion/separation after reassignment). Beyond ~0.50, SI declines sharply, crossing into negative values as the ratio approaches 0.60, which reflects over-extraction and unstable reassignment when the threshold is too permissive. The pattern is consistent with the present disclosure's cross-dataset guidance that performance stabilizes in the 0.4-0.5 band and deteriorates if the ratio is pushed higher.

Referring now to FIG. 5B, the present disclosure provides an exemplary graphical representation 500B of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a Google News dataset, according to certain embodiments. The graphical representation 500B illustrates the effect of the acceptable distance ratio (horizontal axis, swept from 0.30 to 0.60) on clustering quality reported by the Silhouette Index (SI) (vertical axis), when TCLD-TW is applied as a post-processing step to LDA topics for a Google News short-text dataset. In TCLD-TW, documents within each LDA topic are pairwise compared using a Levenshtein distance ratio, documents that fail the acceptable distance ratio threshold are placed into an outlier list and then re-matched against each topic's top ten words (“TW”), thereby refining topic assignments.

From about 0.30-0.42, the SI remains high and essentially flat (~0.008), reflecting stable cluster cohesion/separation when the threshold is conservative. Near ~0.44, the curve shows a sudden dip, followed by a partial recovery across ~0.46-0.52 (moderate thresholds begin extracting and correctly reassigning inconsistent documents). Beyond ~0.52, SI declines steadily, and as the ratio approaches 0.60 the SI drops toward ~0.002, indicating that overly permissive thresholds over-extract documents and destabilize topic structure. The panel exemplifies the study's general finding that SI tends to be most favorable when the acceptable distance ratio lies in the ~0.40-0.50 band and worsens when pushed higher.

Referring now to FIG. 5C, the present disclosure provides an exemplary graphical representation 500C of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a Pasacal_Flickr dataset, according to certain embodiments. The graphical representation 500C illustrates how the acceptable distance ratio (horizontal axis, swept from 0.30 to 0.60) affects clustering quality measured by the Silhouette Index (SI) (vertical axis), when TCLD-TW is applied as a post-processing step to LDA topics for the Pascal_Flickr short-text dataset. In TCLD-TW, intra-topic text similarity is computed via the Levenshtein distance ratio, items meeting the acceptable distance ratio remain in-topic, while others are moved to an outlier list and then re-matched to topics by comparing them against each topic's top ten words (“TW”).

From roughly 0.30 to ~0.47, the SI stays near its maximum and almost flat (slightly positive), indicating stable cohesion/separation when the threshold is conservative. As the ratio crosses ~0.50, SI begins to roll over, and near ~0.52-0.55 the curve plunges below zero, with a brief oscillation thereafter, before settling at negative values as it approaches 0.60. The sharp decline reflects over-extraction, excessively permissive thresholds mark too many documents as outliers and reassign them, disrupting topic structure and degrading SI. The study generally finds a favorable operating band around 0.40-0.50 where SI is stable across datasets.

Referring now to FIG. 5D, the present disclosure provides an exemplary graphical representation 500D of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a Search Snippet dataset, according to certain embodiments. The graphical representation 500D illustrates the sensitivity of clustering quality to the acceptable distance ratio when TCLD-TW is applied as a post-processing refinement to LDA topics for the Search Snippets short-text dataset. The horizontal axis sweeps the acceptable distance ratio from 0.30 to 0.60, and the vertical axis reports the Silhouette Index (SI), an intrinsic metric that measures intra-cluster cohesion and inter-cluster separation (higher is better; values near zero indicate overlapping clusters).

From about 0.30-0.38, SI sits on a low, flat plateau (≈0.031), indicating limited change when the threshold is conservative (few documents are flagged as outliers). Around ~0.40, a shallow dip is observed, followed by a steady climb beginning ~0.42-0.46. The curve reaches local maxima near ~0.48-0.52, where SI is highest in the panel, then shows small oscillations and a gradual decline as the ratio approaches 0.60. The pattern reflects the TCLD mechanism, thresholds that are too low under-detect outliers, moderate thresholds enable effective extraction/reassignment, and over-high thresholds eject too many documents, destabilizing topics and lowering SI. The present disclosure generally identifies ~0.40-0.50 as the favorable operating band across datasets.

Referring now to FIG. 5E, the present disclosure provides an exemplary graphical representation 500E of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a stack overflow dataset, according to certain embodiments. The graphical representation 500E illustrates the influence of the acceptable distance ratio on clustering quality reported by the Silhouette Index (SI), when TCLD-TW is applied as a post-processing refinement to LDA topics for a Stack Overflow short-text dataset. The horizontal axis sweeps the acceptable distance ratio from 0.30 to 0.60, and the vertical axis plots SI.

Across ~0.30-0.45, the curve forms a high, flat plateau (SI≈0.014-0.015), indicating stable topic cohesion/separation when the threshold is conservative (few items flagged as outliers). Near ~0.46-0.48, the curve shows a gentle rollover, followed by a distinct drop just past ~0.48-0.50 as more documents are extracted and reassigned. From ~0.50 to 0.60, SI declines steadily, reaching its lowest value at the upper end of the sweep, which reflects over-extraction.

Referring now to FIG. 5F, the present disclosure provides an exemplary graphical representation 500F of an influence of an acceptable distance ratio using a TCLD-TW LDA based on a tweet dataset, according to certain embodiments, the graphical representation 500F shows the effect of the acceptable distance ratio (0.30-0.60) on the Silhouette Index when TCLD-TW refines LDA topics for a Tweet (microtext) dataset.

From ~0.30-0.46, SI remains high and essentially flat (≈0.062-0.063), indicating that conservative thresholds already yield stable clusters. Around ~0.47-0.50, the curve exhibits a sharp step-down to ~0.059, suggesting that increased extraction begins to disturb assignments. Between ~0.50-0.56 the curve oscillates with a slight downward trend (local dips near ~0.055-0.056), and by ~0.58-0.60 it remains below the early plateau, evidencing that over-permissive thresholds degrade topic quality for noisy, short tweets.

In an embodiment, FIG. 4A to 5F depicts the results of TCLD-TW GSDMM and TCLD-TW LDA when varying the acceptable distance ratio from 30 to 60 measured by SI on the six datasets. The evaluation matrix may be chosen based on the fact that the model should not reveal the true value of the topics. Observing the results, both TCLD-TW GSDMM and TCLD-TW LDA demonstrate effectiveness within a favorable range when the ratio is between 0.4 and 0.5. When the ratio is insufficient, there may be no document outliers in the cluster. The higher the ratio, the greater the number of document outliers extracted. When SI stabilized, the ratio was between 0.4 and 0.5, and if the ratio increased, the results became worse, indicating that the model accepts samples with small distances, and this worsens the results.

In another embodiment, the results of the best-performing algorithm TCLD-TW GSDMM are compared with other topic modeling. The approaches that showed the most promise for short-text topic modeling include the latent-feature Dirichlet multinomial model (LF-DMM), generalized Polya urn DMM (GPU-DMM), and other topic modeling conducted in the survey such as Biterm Topic Modeling (BTM), Self-aggregation based topic modeling (SATM) and pseudo-document-based topic modeling (PTM). Table 4 shows the results measured by purity and NMI on the six datasets.

TABLE 4 TCLD- Evaluation LF- GPU- TW Dataset Metrics DMM DMM BTM SATM PTM GSDMM SearchSnippets Purity 0.762 0.751 0.765 0.459 0.674 0.854 NMI 0.579 0.561 0.566 0.205 0.457 0.433 StackOverflow Purity 0.518 0.511 0.537 0.505 0.481 0.633 NMI 0.443 0.429 0.456 0.366 0.442 0.496 Biomedicine Purity 0.421 0.433 0.458 0.384 0.425 0.51 NMI 0.348 0.366 0.38 0.27 0.353 0.433 Tweet Purity 0.856 0.83 0.814 0.392 0.839 0.869 NMI 0.843 0.81 0.808 0.507 0.846 0.896 GoogleNews Purity 0.828 0.818 0.849 0.654 0.807 0.803 NMI 0.875 0.852 0.875 0.76 0.866 0.867 PascalFlickr Purity 0.381 0.395 0.392 0.237 0.359 0.401 NMI 0.365 0.37 0.368 0.186 0.336 0.425 Mean value Purity 0.628 0.623 0.636 0.439 0.598 0.678 NMI 0.576 0.565 0.576 0.382 0.55 0.592

As observed from Tables 4 and 83% of the results achieved by the TCLD-TW GSDMM outperform other models in terms of purity and 67% in terms of NMI. The computed mean values of purity and NMI confirm that the present method improves the results in both purity and NMI when considering purity, the TCLD-TW GSDMM achieved the best mean value followed by in order BTM, LF-DMM, GPU-DMM, PTM then SATM. Also, in terms of NMI the TCLD-TW GSDMM achieved the best mean value followed by in order LF-DMM, BTM, GPU-DMM, PTM then SATM.

Referring now to FIG. 6, the present disclosure provides an exemplary graphical representation 600 of a distortion score elbow for K-Means clustering, according to certain embodiments. The graphical representation 600 illustrates selection of the number of clusters k for a K-Means clustering procedure using the elbow method. The horizontal axis denotes the number of clusters k examined over a sweep (e.g., k=20 to k=1000). The left vertical axis reports the distortion score (also called inertia or within-cluster sum of squared distances), while the right vertical axis reports the fit time in seconds required to train K-Means at each k.

As k, increases, the distortion score monotonically decreases with a steep drop for small k (large quality gains per added cluster) and a gradually flattening tail for larger k (diminishing returns). Further, the time to fit increases roughly linearly with k (more centroids to update and assignments to compute), with occasional spikes attributable to initialization or system effects. A dashed vertical indicator marks the elbow point at approximately k=86 with a corresponding distortion score of about 756.564. The location represents the onset of diminishing returns to the left of the elbow, adding clusters yields substantial reductions in distortion, to the right, additional clusters produce only marginal improvements while computational cost rises.

In an embodiment, FIG. 6 demonstrates a trade-off between cluster quality and runtime. In an embodiment, the system 100 computes K-Means over a predefined range of k, records the distortion and fit time for each k, detects the elbow (e.g., via maximum curvature or “knee detection”), and selects the elbow k as the recommended cluster count. Selecting k≈86 k, thus yields a near-optimal balance. It achieves most of the attainable reduction in distortion while avoiding the rapidly increasing runtime and minimal quality gains observed for larger k.

In an embodiment, the Elbow method is used to determine the range of clusters. FIG. 6 shows the sum of squared distance and the number of clusters (in the range of 2-1000). After identifying the initial number of topics, the GSDMM method is applied, where the parameter settings for LDA and GSDMM models are trained according to the parameters such as alpha: 0.1 and beta: 0.01. Testing both algorithms is conducted with two different values of iterations such as 50 and 100. Further, the hyper-parameters are executed to train the model. Really low alpha values mean that a document may have one topic, while for a large alpha value, the topics become uniform.

Referring now to FIG. 7A, the present disclosure provides an exemplary graphical representation 700A of number of topics generated by GSDMM using 50 and 100 iterations based on a silhouette score, according to certain embodiments. The graphical representation 700A depicts the evolution of the number of active topics produced by a GSDMM short-text clustering model across 50 sampling iterations. The horizontal axis denotes Iterations (1-50) and the vertical axis denotes the Number of Topics that remain non-empty after each iteration. In an embodiment, the GSDMM is initialized with a relatively high topic cap (e.g., ≈85-90). During sampling, low-probability or redundant topics collapse to empty and are pruned, so the curve naturally trends downward.

The trace shows a rapid contraction in the first ~10-12 iterations (from ≈86 down to ≈50 topics), indicating early consolidation of documents into coherent topics. Between iterations ~12-30, the count oscillates mildly around the high-40s/low-50s as marginal topics appear and disappear while assignments settle. From ~30-50, the series stabilizes near ~44-48 topics with small fluctuations, evidencing convergence of the sampler. The Silhouette Index (SI) is computed in the background to monitor cohesion/separation, the iteration horizon of 50 is selected because the topic count and SI both plateau by that point, offering a good trade-off between stability and runtime. FIG. 7A demonstrates the self-pruning nature of GSDMM on short texts and shows that most structural change occurs early, with practical convergence by ~30-40 iterations, continuing to 50 iterations yields a stable solution without unnecessary computation.

Referring now to FIG. 7B, the present disclosure provides an exemplary graphical representation 700B of number of topics generated by GSDMM using 50 and 100 iterations based on a davies-bouldin index, according to certain embodiments. The graphical representation 700B illustrates the same quantity-active topic count vs. iteration for a 100-iteration GSDMM run, with clustering quality monitored using the Davies-Bouldin Index (DBI) (lower is better). The horizontal axis shows Iterations (1-100) and the vertical axis shows the Number of Topics.

As in 7A, the curve begins near ≈86 topics, undergoes a steep reduction over the first ~10 iterations (to ≈55-60), and then settles into the ~48-53 range with small, persistent oscillations through iteration 100. Occasional small bumps reflect transient empty/non-empty transitions of borderline topics as assignments are resampled. Extending beyond 50 iterations produces only incremental adjustments in topic count while incurring additional runtime. The accompanying DBI trend (not shown in the panel but used for monitoring) typically flattens in the same region, confirming diminishing returns. FIG. 7B depicts that, under a DBI-monitored regime, structural convergence of GSDMM is likewise achieved well before 100 iterations. The steady band around ~50 topics indicates a stable clustering solution. Hence, for production use, 50 iterations (as in FIG. 7A) are generally sufficient, 100 iterations may be reserved for datasets needing extra stabilization or when strict DBI targets are required.

In an embodiment, the results of using GSDMM and LDA with different numbers of topics and different numbers of iterations are represented in Table 5. The performance of both topic modeling methods is better when the number of iterations is 50 compared with 100 iterations. In addition, upon comparing the results based on the number of topics, the optimal outcomes were observed when the number of topics was set at 51, outperforming configurations with 43 and 86 topics.

TABLE 5 #Iterations #Topics GSDMM LDA 50 43 SI −0.0817 −0.0709 DBI 14.1254 15.7441 51 SI −0.0002 −0.0007 DBI 10.0631 8.1954 86 SI −0.0160 −0.0029 DBI 15.5930 9.5644 100 43 SI −0.0817 −0.0258 DBI 14.1254 20.0367 51 SI −0.0018 −0.0145 DBI 12.4406 20.3461 86 SI −0.0789 −0.0709 DBI 12.8088 15.7441

The findings reveal that the models do not produce good outcomes. Because there is not enough word co-occurrence, the documents are sparse, and the number of words in each document is limited. After manually checking the produced topics, it is observed that the documents are not effectively grouped, leading to suboptimal results. The outcome is attributed to the large number of topics represented. Some topics are incorrectly grouped with other documents, hence, an enhancement of the clustering results is needed, specifically TCLD. At this stage, the disclosed TCLD is applied. Utilizing the output from the topic modeling, the Levenshtein distance ratio is calculated for each document within a topic. The Levenshtein distance serves to measure the difference between documents. The method is employed to filter out irrelevant and duplicated documents in the cluster, considering a Levenshtein distance ratio of less than 15%. Subsequently, the identified irrelevant documents are assigned to the outlier list. The outlier list has contained irrelevant documents and has been excluded from the dataset when the documents do not have an acceptable distance ratio (50% in this work) compared to the representative document in each topic. The representative document determines that the document has a greater distance ratio compared with other documents in each topic. Finally, the topics that have less than or equal to a mindoc number of documents are marked as outliers. The computational time cost of the method is acceptable because the execution may be performed in parallel for all topics. The final results using the disclosed method are listed in Table 6.

TABLE 6 LDA- TCLD GSDMM - TCLD SI 0.5488 0.750806 DBI 1.01957 0.840491

Table 6 shows that the SI and DBI are improved, and the number of topics is reduced. Finally, the labeled dataset with the most topics that may be represented is summarized in Table 7. The dataset has been validated using eyeballing, intrinsic evaluation metrics, and human judgments.

TABLE 7 avg/max Vocabulary Dataset #Topics # Documents length size Generated Arabic 9 1,421 12.5/39 6,680 Tweets dataset

Referring now to FIG. 8A, the present disclosure provides an exemplary graphical representation 800A of silhouette score of GSDMM with 500 iterations, according to certain embodiments. The graphical representation 800A depicts the Silhouette score achieved by the GSDMM short-text clustering model as a function of the number of sampling iterations executed. The horizontal axis enumerates checkpoints in the training schedule (e.g., 30, 40, 50, 60, 100, 150, 200, 250, 300, 350, 400, 450, 500 iterations). The vertical axis reports the Silhouette score (SI), where higher values indicate better intra-cluster cohesion and inter-cluster separation. The solid markers indicate measured SI at each checkpoint, and the dashed line provides a visual trend of progression.

In the early phase (approximately 30 to 60 iterations), the dashed line rises from around −0.0072 toward roughly −0.0061. The improvement signifies that the sampler rapidly consolidates short texts into more coherent topics, low-mass or redundant topics collapse, and documents migrate to better-fitting clusters, which increases cohesion without yet incurring significant overlap. Further, a transition follows between about 60 and 100 iterations, where the score drops to near −0.0079. The temporary degradation reflects the stochastic exploration inherent in Gibbs sampling as borderline topics are merged or dissolved and assignments are re-evaluated, some documents occupy less discriminative boundaries, modestly reducing the measured separation.

From roughly 100 to 400 iterations, the curve flattens into a narrow band (about −0.0076 to −0.0078), demonstrating structural stability of the learned topic configuration. Additional sampling during this plateau produces only noise-level variations, indicating practical convergence of the model with respect to the Silhouette metric for this dataset of short, lexically overlapping texts. In the late phase (around 400 to 500 iterations), the trajectory shows a slight recovery toward approximately −0.0072. While the movement confirms that the chain continues to mix, the net gain is marginal compared to the early improvements. Accordingly, FIG. 8A supports an operational policy in which GSDMM is monitored at scheduled checkpoints and may be terminated once successive Silhouette deltas fall below a tolerance often by 50-150 iterations, thereby achieving a balanced trade-off between clustering quality and computation time.

Referring now to FIG. 8B, the present disclosure provides an exemplary graphical representation 800B of davies-bouldin index of GSDMM with 500 iterations, according to certain embodiments. The graphical representation 800B shows how the Davies-Bouldin Index (DBI) evolves as the GSDMM short-text clustering model proceeds through an extended sampling schedule of up to 500 iterations. The abscissa lists evaluation checkpoints (30, 40, 50, 60, 100, 150, 200, 250, 300, 350, 400, 450, 500 iterations). The ordinate reports DBI, an intrinsic clustering metric where lower values indicate better quality (low intra-cluster dispersion relative to inter-cluster separation). The solid markers denote the measured DBI at each checkpoint, and the dashed trace summarizes the trend.

In the early phase (≈30-60 iterations), the curve moves downward from roughly 20.0 at 30 iterations to a local minimum near ~18.7-18.8 at 40-50 iterations. The early drop indicates that the GSDMM rapidly collapses redundant topics and relocates borderline documents, tightening clusters and reducing within-cluster scatter. Across the mid phase (≈60-350 iterations), the series exhibits small oscillations within a narrow band (≈18.9-19.9). The fluctuations are expected with Gibbs sampling as low-mass topics merge or dissolve and a few documents are reassigned, compactness and separation trade off slightly from checkpoint to checkpoint. Notably, no sustained drift is observed, the metric stays stable overall, which reflects a converged topic structure for this dataset.

In the late phase (~350-500 iterations), the DBI again oscillates mildly (peaks around ~20.0 near 420-450 iterations and a dip near ~19.1-19.3 at 500 iterations). The magnitude of change remains modest relative to the early improvement, evidencing diminishing returns beyond a couple hundred iterations. FIG. 8B supports a practical early-stopping policy, monitors DBI at scheduled checkpoints and terminate when consecutive changes fall below a tolerance, typically by ≈100-200 iterations for this workload. In combination with the Silhouette behavior of FIG. 8A (which shows an early rise then long plateau), the FIG. 8B confirms that most useful refinement occurs early, while later iterations mainly validate stability rather than delivering substantial quality gains.

Referring now to FIG. 9, the present disclosure provides an exemplary graphical representation 900 of distribution of documents over the selected 9 topics, according to certain embodiments. The graphical representation 900 depicts the distribution of documents across nine selected topics produced by the topic-modeling pipeline. The horizontal axis enumerates the topics (Topic 1 through Topic 9). The vertical axis represents the document count assigned to each topic after convergence and any post-processing (e.g., TCLD-TW reassignment). Each vertical bar corresponds to one topic, with the count annotated at the top of the bar to aid visual verification.

In the illustrated embodiment, the per-topic counts are: Topic 1=114, Topic 2=102, Topic 3=232, Topic 4=370, Topic 5=12, Topic 6=127, Topic 7=49, Topic 8=89, and Topic 9=328. The chart reveals a skewed distribution such as Topics 4 and 9 are the most populous (370 and 328 documents, respectively), collectively capturing a large share of the corpus, whereas Topic 5 is sparsely populated (12 documents), and Topic 7 and Topic 8 are minor clusters (49 and 89 documents, respectively). Topics 1, 2, and 6 form a mid-sized band (≈100-130 documents), while Topic 3 is upper-mid (232 documents).

The distribution is operationally significant. In an embodiment, the controller may flag extremely small topics (e.g., Topic 5) for consolidation or review, cap or split overly broad topics (e.g., Topic 4 or 9) if their vocabularies exhibit multi-modal subthemes, and/or apply class-imbalance handling for downstream classifiers e.g., reweighting loss, stratified sampling, or macro-averaged metrics, so minority topics are not underrepresented. The histogram also serves as a quality-assurance checkpoint, unusually small topics may indicate overly strict thresholds or niche noise, while very large topics may suggest semantic overlap that may be reduced by higher granularity (increasing k or tightening acceptable-distance criteria).

In an embodiment, the dataset with ground-truth labels and the generated dataset is utilized to validate the results of the proposed algorithm based on extrinsic evaluation measures. The measures evaluate clustering performance by comparing the ground truth-labels and predicted labels. The methods used to evaluate the dataset are LDA and GSDMM for topic modeling. Table 8 shows the performance of clustering algorithms relying on purity, homogeneity, NMI, and AMI.

TABLE 8 TCLD-RD TCLD-TW GSDMM LDA GSDMM LDA GSDMM LDA Purity 0.774 0.427 0.803 0.695 0.814 0.707 Homogeneity 0.704 0.153 0.644 0.548 0.651 0.558 NMI 0.432 0.144 0.606 0.519 0.622 0.528 AMI 0.283 0.134 0.602 0.513 0.618 0.521

Table 8 shows that the method of GSDMM has superior performance. There is approx. 15% enhancement in the NMI and AMI scores when the results of GSDMM are compared with the LDA model. Also, Table 5 shows the results of the proposed Levenshtein Distance for the Improvement of Topic Clustering (TCLD). The TCLD is applied to the output from GSDMM and LDA. The results show the comparison of two methods of dealing with the documents in the outlier list, including comparing documents in the outlier list with the representative document in each topic by the TCLD-RD, and comparing documents in the outlier list with the top 10 words from each topic by the TCLD-TW.

As shown in Table 8, the external measures indicate that the results of GSDMM and LDA are improved using the proposed TCLD method because the TCLD method evaluates each document in the current solutions provided by the topic modeling and enhances the clustering output. Moreover, GSDMM with TCLD-TW performs better than GSDMM with TCLD-RD, which means comparing the outlier list with the top 10 words of each topic can move the document correctly from the outlier list to the relevant topic. The TCLD-TW yielded 76 documents as outliers. Upon manual inspection, only 52 documents are correctly identified as outliers. As shown in Table 8, the optimal outcome is achieved when comparing the performance of the algorithms against clustering algorithms and TCLD GSDMM emerged as the best performer and observed superior results with TCLD-TW compared to TCLD-RD.

FIG. 10 is an exemplary flow diagram of a method of identifying topics in Arabic microblog text, according to certain embodiments. The method 1100 may be implemented by the computing device 102 of the system 100.

At step 1102, an Arabic text is submitted into an online microblog by at least one blogging device. In an example, a user (or an app on their phone) posts Arabic messages to an online microblog platform (e.g., Twitter/X). Each post is short, like a tweet and contains everyday Arabic, including slang, emojis, hashtags, and links.

At step 1104, a plurality of Arabic microblog text documents are periodically downloaded from one of more online sources. In an example, a server connects to the microblog's official API on a schedule (e.g., hourly/daily) and pulls batches of recent Arabic posts. The server respects the platform's limits, stores the raw posts safely, removes duplicates, and keeps only the Arabic text needed for analysis.

At step 1106, a prespecified number of topics are determined by applying a topic modeling algorithm to the plurality of microblog text documents. Before clustering, the server estimates a good number of topics for the dataset. The server may then try standard topic models (e.g., GSDMM or LDA) and checks quality scores to pick a sensible topic count (not too few, not too many), so that themes are neither overly broad nor fragmented.

At step 1108, words in the documents are clustered to obtain words associated with each cluster. In an example, the server converts documents into numerical features (like TF-IDF or embeddings) and groups similar content together. For each group (cluster/topic), the server finds the most representative words, these “top words” summarize what that cluster is about.

At step 1110, a set of clustered topics is outputted as a result of the clustering. The system produces a clean list of topics, each with a topic ID, top words, example posts, and how many documents belong to it. The system may also flag tiny or noisy groups as outliers, provide simple charts (e.g., counts per topic), and export everything (e.g., JSON/CSV) for dashboards, search, or reports.

At step 1112, the set of topics are revised using Levenshtein Distance algorithm. The Levenshtein Distance algorithm includes computing a Levenshtein distance ratio between pairs of documents in each clustered topic. Further, the Levenshtein Distance algorithm include keeping documents with an acceptable distance ratio in the same topic and saving the rest in an outlier list. Further, the Levenshtein Distance algorithm includes finding representative documents among all documents in each topic. The Levenshtein Distance algorithm includes computing the Levenshtein distance ratio between each document in the outlier list with the representative documents in each topic, when the acceptable distance ratio is found, the document will be moved to the corresponding topic. Further, the Levenshtein Distance algorithm includes determining the number of documents in all topics and mark the topics that have less than or equal to the mindoc threshold as outliers, then repeat the computing step to handle these documents, in which the mindoc threshold is a minimum number of documents needed to keep the topic. The acceptable distance ratio is the Levenshtein distance ratio between two documents that is greater than or equal to 0.35.

In some embodiments, the Levenshtein Distance algorithm includes computing a Levenshtein distance ratio between pairs of documents in each clustered topic. Further, the Levenshtein Distance algorithm includes keeping documents with an acceptable distance ratio in the same topic and saving the rest in an outlier list. The Levenshtein Distance algorithm includes finding the documents with 10 top words among all documents in each topic. Further, the Levenshtein Distance algorithm includes computing the Levenshtein distance ratio between the documents in the outlier list with the documents with 10 top words in each topic, when the acceptable distance ratio is found, the document will be moved to the corresponding topic. Further, the Levenshtein Distance algorithm includes determining the number of documents in each topic and mark the topics that have less than or equal the mindoc threshold as outliers, then repeat the computing step to handle these documents, in which the mindoc threshold is a minimum number of documents needed to keep the topic.

At step 1114, the number of documents are determined in each topic and marking the topics that have less than or equal to a mindoc threshold as outliers and saving the outliers in an outlier list. In an example, the system first counts how many documents belong to each topic such as “Topic A has 127 posts, Topic B has 8 posts,” and so on. It then compares each count to a small cutoff called mindoc (for example, mindoc=10). Any topic with count≤mindoc is treated as too small to be reliable. Those tiny topics and all their documents are marked as outliers and placed into an outlier list.

At step 1116, a document is moved from the outlier list to an appropriate topic by comparing the outlier list with top 10 words from each topic. The method 1100 may include comparing documents in the outlier list with a representative document in each topic. Next, the system tries to rescue documents from the outlier list by finding a better-fitting topic for each one. For every normal topic, the system keeps a short “signature” list of its top 10 words. It compares the outlier document to each signature (using a text-similarity test like a Levenshtein-ratio threshold). If one topic's top 10 words match well enough, the document is moved into that topic. If the top 10 words didn't yield a clear match, the system compares the outlier to a representative document (an exemplar) from each topic. If the similarity passes the threshold, it assigns the document to that topic.

FIG. 11 is an exemplary flow diagram of a method for receiving notification for topics of interest in microblogs, according to certain embodiments. The method 1200 may be implemented by the computing device 102 of the system 100.

At step 1202, one or more topics of interest are inputted by a user interface of a mobile device. In an example, On the phone, the user types or selects the subjects they care about (for example, “sports tech,” “storm alerts,” or “education policy”). These become the “watch list” for notifications.

At step 1204, a plurality of Arabic microblog text documents are periodically downloaded from one of more online sources. In an example, a backend server connects to approved microblog APIs on a schedule (e.g., hourly/daily) and downloads recent Arabic posts. The server stores them safely, removes duplicates, and keeps only the text and basic metadata needed for analysis.

At step 1206, a prespecified number of topics are determined by applying a topic modeling algorithm to the plurality of microblog text documents. The server estimates a sensible number of themes in the new data using standard topic-modeling methods (e.g., GSDMM or LDA) and simple quality checks, so topics aren't too broad or too fragmented.

At step 1208, words in the documents are clustered to obtain words associated with each cluster. The texts are turned into numerical features (like TF-IDF or embeddings) and grouped. For each group, the system extracts the most representative words (“top words”) that summarize what that theme is about.

At step 1210, a set of clustered topics are outputted as a result of the clustering. The system produces a list of topics with IDs, top words, example posts, and how many posts each topic contains, becoming the working catalog of themes.

At step 1212, the set of topics are revised using Levenshtein Distance algorithm. To clean up noisy assignments, the system checks text similarity (using a Levenshtein-ratio threshold). Weakly fitting posts are flagged as outliers and candidates are reassigned to better-matching topics and the topic lists and counts are updated.

At step 1214, the number of documents are determined in each topic and marking the topics that have less than or equal to a mindoc threshold as outliers and saving the outliers in an outlier list. In an example, the server counts documents per topic. Any topic with a count less than or equal to a small cutoff (mindoc) is marked as an outlier. The topics and their posts are put into an outlier list for reprocessing.

At step 1216, a document from the outlier list is moved to an appropriate topic by comparing the outlier list with top 10 words from each topic. In an example, each outlier post is compared to every topic's top 10 words (and, if needed, a representative example). If similarity is high enough, the post is moved into that topic, otherwise it stays on the outlier list for later review.

At step 1218, the topics of interest are matched to the set of topics and outputting an alert when at least one document in the topic matches the topics of interest. In an embodiment, the cleaned topics are compared to the user's “watch list.” If any topic contains a document that matches the user's interests (by keywords or similarity), the system generates an alert.

At step 1220, the alert with a link is displayed to a list of documents. The displaying includes displaying the alert in a display of the mobile device, and when the link is invoked, displaying the list of documents. The method 1200 further includes displaying a button having a function to retrieve all topics related to a document in the list. In an embodiment, the method 1200 may include selecting a document in the list, and when the button is invoked, displaying a list of the topics related to the selected document. In an embodiment, the phone shows a notification with a link. Tapping the link opens the list of matching documents. A button on this screen lets the user “See all topics for this document.” When pressed, the app displays every topic associated with the selected post, so the user can explore related themes quickly.

FIG. 12 is a system diagram for a microblogging system, according to certain embodiments. A microblog is a social media platform to which a blog user makes short, frequent text posts. A microblog is an internet site where users share frequent, brief, and concise updates with a limited character count, often in real-time, serving as a quick way to share thoughts, news, and interact with others. Examples of popular microblogging platforms include Twitter, Instagram, and Tumblr, which support text.

Entry of text in a microblog can be made using any device that has an internet connection.

In an example, a blogging device is a smartphone 1302 or a laptop computer 1306. The smartphone 1302 is in communication with the blogging service, for example hosted in a cloud service 1308.

The smartphone is in communication through a wireless connection 1318. In some embodiments, the blogging service may be maintained in a server 1304 and microblog posts may be stored in a database 1320. The laptop computer 1306 may also post microblog entries using an internet connection 1316.

FIG. 13 is a block diagram of a mobile device, for example a smartphone. In one implementation, the functions and processes of the mobile device 1302 may be implemented by a processing circuit board. A processing circuit board includes one or more integrated silicon devices, referred to as System on Chip 1410 (SoC). The system-on-chip is configured different special purpose processors, including, but not limited to a digital signal processor 1413, graphics processing unit 1411 (GPU), machine learning engine 1432 (also referred to as a neural engine), multi-core CPU 1415, and other special purpose processors. Note that circuitry refers to a circuit or system of circuits. Herein, the circuitry may be in one computer system or may be distributed throughout a network of computer systems.

The System-on-Chip (SoC) 1410 performs the processes described herein. The process data and instructions may be stored in memory (RAM) 1407. These processes and instructions may also be stored on a portable storage medium or may be stored remotely. In addition, the SoC 1410 is incorporated with cache memory including but not limited to a system cache and a level two cache.

Further, the memory is not limited by the form of the computer-readable media on which the instructions of the inventive process are stored. For example, the instructions may be stored in FLASH memory, Secure Digital Random Access Memory (SDRAM), Random Access Memory (RAM), Read Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), Electrically Erasable Programmable Read Only Memory (EEPROM), solid-state hard disk or any other information processing device with which the SoC 1410 communicates, such as a server or computer.

Further, the program instructions may be provided as a utility application, background daemon, or component of an operating system, or combination thereof, executing in conjunction with SoC 1410 and a mobile operating system such as Android, Microsoft® Windows® Mobile, Apple iOS® and other systems known to those skilled in the art.

The hardware elements may be realized by various circuitry elements, known to those skilled in the art. For example, SoC 1410 may be a Qualcomm mobile processor, a Nvidia mobile processor, an Atom® processor from Intel Corporation of America, a Samsung mobile processor, or an Apple A-series mobile processor, or may be other processor types that would be recognized by one of ordinary skill in the art. Alternatively, the SoC 1410 may be implemented on an Field-Programmable Gate Array (FPGA), Application Specific Integrated Circuit (ASIC), Programmable Logic Device (PLD) or using discrete logic circuits, as one of ordinary skill in the art would recognize. Further, SoC 1410 may be implemented with multiple core processors cooperatively working in parallel to perform the instructions of the inventive processes described above.

The processing circuit board may include various types of communications processors for wireless communications including 3G, 4G and 5G wireless modems 1421, WiFi® and Bluetooth® 1427, GPS 1425, or any other wireless form of communication that is known.

The processing circuit includes a Universal Serial Bus (USB) controller 1431 which may be managed by the SoC 1410.

The processing circuit board further includes a video processor 1423, such as a NVIDIA® GeForce® GTX or Quadro® graphics adaptor from NVIDIA Corporation of America for interfacing with a touchscreen display. An I/O interface interfaces with buttons, such as for volume control. In addition to the I/O interface and the touchscreen display, the processing circuit board may further include a microphone and one or more cameras 1440. The microphone may have associated circuitry for processing the sound into digital signals. Similarly, the camera 1440 may include a camera controller for controlling image capture operation of the camera 1440. In an exemplary aspect, the camera 1440 may include a Charge Coupled Device (CCD). The processing circuit board may include an audio circuit for generating sound output signals and may include an optional sound output port or speaker.

Next, further details of the hardware description of a computing environment according to exemplary embodiments is described with reference to FIG. 14. In FIG. 14, a controller 1500 is described as representative of the system 100 of FIG. 1 in which the controller 1500 is a computing device which includes a CPU 1501 which performs the processes described above/below. The process data and instructions may be stored in a memory 1502. These processes and instructions may also be stored on a storage medium disk 1504 such as a Hard Disk Drive (HDD) or a portable storage medium or may be stored remotely.

Further, the claims are not limited by the form of the computer-readable media on which the instructions of the inventive process are stored. For example, the instructions may be stored on Compact Disks (CDs), Digital Versatile Discs (DVDs), in a Flash memory, a RAM, a ROM, a Programmable Read-Only Memory (PROM), an EPROM, an Electrically Erasable Programmable Read-Only Memory (EEPROM), a hard disk or any other information processing device with which the computing device communicates, such as a server or a computer.

Further, the claims may be provided as a utility application, background daemon, or component of an operating system, or combination thereof, executing in conjunction with the CPU 1501, a CPU 1503 and an operating system such as Microsoft Windows, UNIX, Solaris, LINUX, Apple MAC-OS and other systems known to those skilled in the art.

The hardware elements in order to achieve the computing device may be realized by various circuitry elements, known to those skilled in the art. For example, the CPU 1501 or the CPU 1503 may be a Xenon or a Core processor from Intel of America or an Opteron processor from Advanced Micro Devices (AMD) of America, or may be other processor types that would be recognized by one of ordinary skill in the art. Alternatively, the CPU 1501, the CPU 1503 may be implemented on a Field-Programmable Gate Array (FPGA), an Application-Specific Integrated Circuit (ASIC), a Programmable Logic Device (PLD) or using discrete logic circuits, as one of ordinary skill in the art would recognize. Further, the CPU 1501, the CPU 1503 may be implemented as multiple processors cooperatively working in parallel to perform the instructions of the inventive processes described above.

The computing device in FIG. 14 also includes a network controller 1506, such as an Intel Ethernet Professional (PRO) network interface card from an Intel Corporation of America, for interfacing with a network 1560. As can be appreciated, the network 1560 can be a public network, such as the Internet, or a private network such as a LAN or a WAN, or any combination thereof and can also include a PSTN or an Integrated Services Digital Network (ISDN) sub-networks. The network 1560 can also be wired, such as an Ethernet network, or can be wireless such as a cellular network including EDGE, Third Generation (3G) and Fourth Generation (4G) wireless cellular systems. The wireless network can also be a WiFi, a Bluetooth, or any other wireless form of communication that is known.

The computing device further includes a display controller 1508, such as a NVIDIA GeForce Giga Texel Shader Extreme (GTX) or a Quadro graphics adaptor from a NVIDIA Corporation of America for interfacing with a display 1510, such as a Hewlett Packard HPL2445w Liquid Crystal Display (LCD) monitor. A general purpose I/O interface 1512 interfaces with a keyboard and/or mouse 1514 as well as a touch screen panel 1516 on or separate from display 1510. The general purpose I/O interface 1512 also connects to a variety of peripherals 1518 including printers and scanners, such as an OfficeJet or DeskJet from HP.

A sound controller 1520 is also provided in the computing device such as a Sound Blaster X-Fi Titanium from Creative, to interface with speakers/microphone 1522 thereby providing sounds and/or music.

A general purpose storage controller 1524 connects the storage medium disk 1504 with a communication bus 1526, which may be an Industry Standard Architecture (ISA), an Extended Industry Standard Architecture (EISA), a Video Electronics Standards Association (VESA), a Peripheral Component Interconnect (PCI), or similar, for interconnecting all of the components of the computing device. A description of the general features and functionality of the display 1510, keyboard and/or mouse 1514, as well as the display controller 1508, the general purpose storage controller 1524, the network controller 1506, the sound controller 1520, and the general purpose I/O interface 1512 is omitted herein for brevity as these features are known.

The exemplary circuit elements described in the context of the present disclosure may be replaced with other elements and structured differently than the examples provided herein. Moreover, circuitry configured to perform features described herein may be implemented in multiple circuit units (e.g., chips), or the features may be combined in circuitry on a single chipset.

FIG. 15 illustrates user interfaces for a microblog notification system, according to certain embodiments. In the example notification system, a blogging device 1610 is used to make an entry into a microblog, hosted in a clous service 1620. The microblog is configured to send a notification to a user mobile device 1630 of a microblog post that is of interest. In an embodiment, the notification is triggered based on a topic that a blog user has registered as a topic of interest.

FIG. 16 is an example user interface for a mobile app, according to certain embodiments. The mobile app is configured to display an interactive user interface in which a user can register. A further interactive user interface is configured for a user to enter a list of topics of interest 1701. In an embodiment, an entry form 1703 is a dropdown list. The interactive user interface may also include an entry 1705 for mobile number to which text messages may be sent to receive notifications about topics of interest.

FIG. 17 shows a schematic diagram of a data processing system 1800, according to certain embodiments, for performing the functions of the exemplary embodiments. The data processing system 1800 is an example of a computer in which code or instructions implementing the processes of the illustrative embodiments may be located.

In FIG. 17, the data processing system 1800 employs a hub architecture including a North Bridge and a Memory Controller Hub (NB/MCH) 1825 and a south bridge and an I/O Controller Hub (SB/ICH) 1820. The CPU 1830 is connected to the NB/MCH 1825. The NB/MCH 1825 also connects to a memory 1845 via a memory bus and connects to a graphics processor 1850 via an Accelerated Graphics Port (AGP). The NB/MCH 1825 also connects to the SB/ICH 1820 via an internal bus (e.g., a unified media interface or a direct media interface). The CPU 1830 may contain one or more processors and even may be implemented using one or more heterogeneous processor systems.

For example, FIG. 18 shows one implementation of the CPU 1530. In one implementation, an instruction register 1938 retrieves instructions from a fast memory 1940. At least part of these instructions is fetched from the instruction register 1938 by a control logic 1936 and interpreted according to the instruction set architecture of the CPU 1830. Part of the instructions can also be directed to a register 1932. In one implementation, the instructions are decoded according to a hardwired method, and in another implementation, the instructions are decoded according to a microprogram that translates instructions into sets of CPU configuration signals that are applied sequentially over multiple clock pulses. After fetching and decoding the instructions, the instructions are executed using an Arithmetic Logic Unit (ALU) 1934 that loads values from the register 1932 and performs logical and mathematical operations on the loaded values according to the instructions. The results from these operations can be feedback into the register 1932 and/or stored in the fast memory 1940. According to certain implementations, the instruction set architecture of the CPU 1830 can use a reduced instruction set architecture, a complex instruction set architecture, a vector processor architecture, and a very large instruction word architecture.

Furthermore, the CPU 1830 can be based on a Von Neuman model or a Harvard model. The CPU 1830 can be a digital signal processor, an FPGA, an ASIC, a Programmable Logic Array (PLA), a PLD, or a Complex Programmable Logic Device (CPLD). Further, the CPU 1830 can be an x86 processor by the Intel or by the AMD; an Advanced Reduced Instruction Set Computing (RISC) Machine (ARM) processor, a power architecture processor by, e.g., an International Business Machines Corporation (IBM); a Scalable Processor Architecture (SPARC) processor by Sun Microsystems or by Oracle; or other known CPU architecture.

Referring again to FIG. 17, the data processing system 1800 can include that the SB/ICH 1820 is coupled through a system bus to an I/O Bus, a ROM 1856, a Universal Serial Bus (USB) port 1864, a flash Binary Input/Output System (BIOS) 1868, and a graphics controller 1858. PCI/PCIe devices can also be coupled to SB/ICH 1888 through a PCI bus 1862.

The PCI devices may include, for example, Ethernet adapters, add-in cards, and Personal Computer (PC) cards for notebook computers. The HDD 1860 and an optical drive 1866 (e.g., CD-ROM) can use, for example, an Integrated Drive Electronics (IDE) or a Serial Advanced Technology Attachment (SATA) interface. In one implementation, and I/O bus can include a super I/O (SIO) device.

Further, the HDD 1860 and the optical drive 1866 can also be coupled to the SB/ICH 1820 through a system bus. In one implementation, a keyboard 1870, a mouse 1872, a serial port 1876, and a parallel port 1878 can be connected to the system bus through the I/O bus. Other peripherals and devices that can be connected to the SB/ICH 1820 using a mass storage controller such as the SATA or a Parallel Advanced Technology Attachment (PATA), an Ethernet port, an ISA bus, a Low Pin Count (LPC) bridge, a System Management (SM) bus, a Direct Memory Access (DMA) controller, and an Audio Compressor/Decompressor (Codec).

Moreover, the present disclosure is not limited to the specific circuit elements described herein, nor is the present disclosure limited to the specific sizing and classification of these elements. For example, the skilled artisan will appreciate that the described system and methodologies may be adapted based on the availability of different neuroimaging modalities, the selection of genetic or multi-omics datasets, or the specific clinical requirements associated with distinguishing among dementia subtypes or predicting disease progression.

The functions and features described herein may also be executed by various distributed components of a system. For example, one or more processors may execute these system functions, wherein the processors are distributed across multiple components communicating in a network. The distributed components may include one or more client and server machines, which may share processing, as shown by FIG. 19, in addition to various human interface and communication devices (e.g., display monitors, smart phones, tablets, personal digital assistants (PDAs)). More specifically, FIG. 19 illustrates client devices including a smart phone 2011, a tablet 2012, a mobile device terminal 2014 and fixed terminals 2016. These client devices may be commutatively coupled with a mobile network service 2020 via a base station 2056, an access point 2054, a satellite 2052 or via an internet connection. The mobile network service 2020 may comprise central processors 2022, a server 2024 and a database 2026. The fixed terminals 2016 and the mobile network service 2020 may be commutatively coupled via an internet connection to functions in cloud 2030 that may comprise a security gateway 2032, a data center 2034, a cloud controller 2036, a data storage 2038 and a provisioning tool 2040. The network may be a private network, such as the LAN or the WAN, or may be the public network, such as the Internet. Input to the system may be received via direct user input and received remotely either in real-time or as a batch process. Additionally, some implementations may be performed on modules or hardware not identical to those described. Accordingly, other implementations are within the scope that may be disclosed.

The above-described hardware description is a non-limiting example of corresponding structure for performing the functionality described herein.

Numerous modifications and variations of the present disclosure are possible in light of the above teachings. It is therefore to be understood that the invention may be practiced otherwise than as specifically described herein.

Claims

1. A computer implemented method of identifying topics in Arabic microblog text, comprising:

submitting, by at least one blogging device, Arabic text into an online microblog;
periodically downloading a plurality of Arabic microblog text documents from one of more online sources;
determining, by processing circuitry, a prespecified number of topics by applying a topic modeling algorithm to the plurality of microblog text documents;
clustering, by the processing circuitry, words in the documents to obtain words associated with each initial cluster;
outputting, by the processing circuitry, a set of clustered topics as a result of the clustering;
revising, by the processing circuitry, the set of clustered topics using a Levenshtein Distance algorithm by moving at least one document to or between the set of clustered topics;
determining, in parallel, the number of documents in each topic and marking the topics that have less than or equal to a predetermined threshold number of documents as outliers, and saving the outliers in an outlier list; and
moving, by the processing circuitry, a document from the outlier list to an appropriate topic by comparing the outlier list with a predetermined number of top words from each topic.

2. The method of claim 1, wherein the moving includes comparing documents in the outlier list with a representative document in each topic.

3. The method of claim 1, further comprising

comparing documents in the outlier list with the top 10 words from each topic as the predetermined number of top words from each topic.

4. The method of claim 1, wherein the Levenshtein Distance algorithm includes

computing a Levenshtein distance ratio between pairs of documents in each clustered topic;
keeping documents with an acceptable distance ratio in the initial cluster, and saving the rest of the documents in an outlier list;
finding representative documents among all documents in each topic;
computing the Levenshtein distance ratio between each document in the outlier list with the representative documents in each topic, when the acceptable distance ratio is found, the document will be moved to the corresponding topic; and
determining the number of documents in each topic and mark the topics that have less than or equal to the predetermined threshold as outliers, then repeat the computing step to handle the documents in each topic, in which the predetermined threshold is a minimum number of documents needed to keep the topic.

5. The method of claim 1, wherein the Levenshtein Distance algorithm includes

computing a Levenshtein distance ratio between pairs of documents in each clustered topic;
keeping documents with an acceptable distance ratio in the same topic, and saving the rest in an outlier list;
finding the documents with 10 top words among all documents in each topic;
computing the Levenshtein distance ratio between the documents in the outlier list with the documents with the 10 top words in each topic, when the acceptable distance ratio is found, the document will be moved to the corresponding topic; and
determining the number of documents in each topic and mark the topics that have less than or equal the predetermined threshold as outliers, then repeat the computing step to handle the documents in each topic, in which the predetermined threshold is a minimum number of documents needed to keep the topic.

6. The method of claim 4, wherein the acceptable distance ratio is the Levenshtein distance ratio between two documents that is greater than or equal to 0.35.

7. A computer implemented method for receiving notification for topics of interest in microblogs, comprising:

inputting, by a user interface of a mobile device, one or more topics of interest;
periodically downloading a plurality of Arabic microblog text documents from one of more online sources;
determining, by processing circuitry, a prespecified number of topics by applying a topic modeling algorithm to the plurality of Arabic microblog text documents;
clustering, by the processing circuitry, words in the documents to obtain words associated with each cluster;
outputting, by the processing circuitry, a set of clustered topics as a result of the clustering;
revising, by the processing circuitry, the set of clustered topics using a Levenshtein Distance algorithm by moving at least one document to or between the set of clustered topics;
determining, in parallel, the number of documents in each topic and marking the topics that have less than or equal to a predetermined threshold number of documents as outliers, and saving the outliers in an outlier list;
moving, by the processing circuitry, a document from the outlier list to an appropriate topic by comparing the outlier list with a predetermined number of top words from each topic;
matching, by the processing circuitry, the topics of interest to the set of topics and outputting an alert when at least one document in the topic matches the topics of interest; and
displaying, by the mobile device, the alert with a link to a list of documents.

8. The method of claim 7, wherein the displaying includes displaying the alert in a display of the mobile device, and when the link is invoked, displaying the list of documents.

9. The method of claim 8, further comprising displaying a button having a function to retrieve all topics related to a document in the list.

10. The method of claim 9, further comprising:

selecting a document in the list; and
when the button is invoked, displaying a list of the topics related to the selected document.

11. A system for identifying topics in Arabic microblog text, comprising:

at least one blogging device configured to submit Arabic text into an online microblog;
a mobile device configured to view a document in the online microblog;
a server computer including communication circuitry configured to periodically download a plurality of Arabic microblog text documents from one of more online sources; server processing circuitry configured to determine a prespecified number of topics by applying a topic modeling algorithm to the plurality of microblog text documents; cluster words in the documents to obtain words associated with each initial cluster; output a set of clustered topics as a result of the clustering; revise the set of clustered topics using Levenshtein Distance algorithm by moving at least one document to or between the set of clustered topics; determine, in parallel, the number of documents in each topic and mark the topics that have less than or equal to a predetermined threshold as outliers, and save the outliers in an outlier list; move a document from the outlier list to an appropriate topic by comparing the outlier list with a predetermined number of top words from each topic.

12. The system of claim 11, the server processing circuitry further configured move a document by comparing documents in the outlier list with a representative document in each topic.

13. The system of claim 11, the server processing circuitry further configured to compare documents in the outlier list with top 10 words from each topic as the predetermined number of top words from each topic.

14. The system of claim 11, wherein the server processing circuitry further configured to

compute a Levenshtein distance ratio between pairs of documents in each clustered topic;
keep documents with an acceptable distance ratio in the initial cluster, and save the rest in an outlier list;
find representative documents among all documents in each topic;
compute the Levenshtein distance ratio between each document in the outlier list with the representative documents in each topic, when the acceptable distance ratio is found, the document will be moved to the corresponding topic; and
determine the number of documents in each topic and mark the topics that have less than or equal to the predetermined threshold as outliers, then repeat the computing step to handle the documents in each topic, in which the predetermined threshold is a minimum number of documents needed to keep the topic.

15. The system of claim 11, wherein the server processing circuitry is further configured to

compute a Levenshtein distance ratio between pairs of documents in each clustered topic;
keep documents with an acceptable distance ratio in the same topic, and save the rest in an outlier list;
find the documents with 10 top words among all documents in each topic;
compute the Levenshtein distance ratio between the documents in the outlier list with the documents with the 10 top words in each topic, when the acceptable distance ratio is found, the document is moved to the corresponding topic; and
determine the number of documents in each topic and mark the topics that have less than or equal the predetermined threshold as outliers, then repeat the computing step to handle the documents in each document, in which the predetermined threshold is a minimum number of documents needed to keep the topic.

16. The system of claim 14, wherein the acceptable distance ratio is the Levenshtein distance ratio between two documents that is greater than or equal to 0.35.

17. The system of claim 11, further comprising:

the mobile device including a user interface configured to input one or more topics of interest;
the server processing circuitry further configured to
match the topics of interest to the set of topics and output an alert when at least one document in the topic matches the topics of interest; and
the mobile device is further configured to display the alert with a link to a list of documents.

18. The system of claim 17, further comprising:

the mobile device configured to
display the alert in a display of the mobile device, and
when the link is invoked, display the list of documents.

19. The system of claim 18, wherein the mobile device is further configured to display a button having a function to retrieve all topics related to a document in the list.

20. The system of claim 19, wherein the mobile device is further configured to:

select a document in the list, and
when the button is invoked, display a list of the topics related to the selected document.
Patent History
Publication number: 20260377487
Type: Application
Filed: Feb 6, 2026
Publication Date: Nov 26, 2026
Applicant: IMAM ABDULRAHMAN BIN FAISAL UNIVERSITY (Dammam)
Inventors: Mutasem Khalil Sari ALSMADI (Dammam), Malek Ali Ahmad FEHAID (Dammam), Maram Abdulaziz ALWOHAIBI (Dammam), Sana Ibrahim Ali JAWARNEH (Dammam), Ibrahim Abood Eid ALMARASHDEH (Dammam)
Application Number: 19/532,163
Classifications
International Classification: G06F 16/954 (20190101);