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.
Latest IMAM ABDULRAHMAN BIN FAISAL UNIVERSITY Patents:
- SYSTEM AND METHOD FOR REDUCING RISK OF ANTERIOR CRUCIATE LIGAMENT (ACL) INJURY OF USER
- Method for treating blastocystis
- Phthalocyanine-based composite membranes for oil-water separation
- Graphene-based electrodes for electroencephalogram-based brain computer interface systems
- Zinc-vanadium-nickel oxide nano-flakes in flexible biochar matrix for supercapacitors
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 INVENTORSAspects 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 FieldThe 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 ArtThe “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.
SUMMARYAn 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.
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:
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
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
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
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.
Referring now to
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.
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.
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.
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.
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 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
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
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
Referring now to
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
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
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
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.
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.
Referring now to
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
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
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
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
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
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,
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.
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
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,
In an embodiment, the Elbow method is used to determine the range of clusters.
Referring now to
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.
Referring now to
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.
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.
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 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.
Referring now to
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,
Referring now to
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.
Referring now to
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 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.
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.
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.
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.
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
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
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.
In
For example,
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
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
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.
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