TBTaghreed Bagies

Taghreed Bagies

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article


Taghreed Bagies has a total of 7 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Transformer-Based Classification of Security-Related Mobile App Reviews Using Active Learning

    by Taghreed Bagies

    Mobile app user reviews provide valuable insights into software functionality, quality, and security. However, existing approaches for identifying security-related reviews often rely on traditional feature extraction methods, limiting their ability to capture nuanced and implicitly expressed security concerns. This study presents an automated framework for classifying mobile app user reviews into security-related and non-security-related categories. The proposed framework leverages semantic representations and an iterative active learning process to improve annotation efficiency and model performance. A web-based graphical user interface (GUI) integrated with a large language model (LLM) is developed to provide interpretable explanations for model predictions. We collected over one million reviews and applied a three-stage annotation pipeline consisting of keyword-based filtering, expert validation, and iterative active learning using sentence-transformer embeddings enhanced with Low-Rank Adaptation (LoRA). Using the resulting labeled dataset, two transformer-based models (SBERT and Paraphrase) were fine-tuned for binary classification. Under 10-fold cross-validation, SBERT achieved an accuracy of 88.57% and an F1-score of 88.65%, while the Paraphrase model achieved 90.38% accuracy and 90.40% F1-score. On the held-out test set, SBERT obtained 71.43% accuracy and 70.98% F1-score, whereas the Paraphrase model achieved 91.07% for both accuracy and F1-score. These results demonstrate that transformer-based models leveraging sentence embeddings are effective for identifying security-related user reviews, with the Paraphrase model providing superior and more consistent generalization. The integrated GUI and LLM further enhance interpretability, offering a practical tool for supporting security assessment in mobile applications.


  • Open Access

    Predicting Suspicious Arabic X Accounts Using Stylometric Features

    by Taghreed Bagies, Rahaf Alsuhaimi, Miada Almasre, Alaa Bafail

    Some users use the X platform to spread negativity, violence, and hatred. These users may initially conceal their true beliefs in order to gain users’ trust, making traditional content-based detection methods not helpful in identifying these accounts as suspicious (i.e., indicate whether an X account belongs to a terrorist). Stylometric features, which analyze writing styles, can reveal behavioral traits and hidden thoughts. In this paper, we propose a novel model that predicts whether an X Arabic account is suspicious (owned by a terrorist) using 85 stylometric features extracted from 1,500 accounts (750 suspicious, 750 non-suspicious). We utilized a variety of AI techniques, such as machine learning and deep learning to evaluate our approach. We also used NLP techniques for preprocessing and feature extraction. Our results showed that the Random Forest (RF) model achieved the highest accuracy, reaching 98%. This approach can aid cybersecurity efforts by detecting suspicious accounts without relying on content analysis.

  • Open Access

    A Comprehensive Analysis Dashboard for Detecting Similar Saudi Twitter Accounts by Using Stylometric Features

    by Taghreed Bagies, Rahaf Alsuhaimi, Miada Almasre, Alaa Bafail

    Criminals, including terrorists, may use Twitter to communicate and share their ideologies. They often employ multiple accounts for anonymity. While the other accounts hide their identities and use it for different purposes (e.g., communication with unknown criminals), they use one to write tweets revealing their beliefs and spreading evil thoughts (e.g., racism and bullying). Since these multiple accounts will not have the same contents, stakeholders cannot rely on the contents to detect various accounts belonging to the same person. Using stylometric features may help to detect these accounts as they depend on the writing style of a person rather than the content of the words and their meaning. In this article, we build a model and use stylometric features that differ from the state-of-the-art, such as n-gram for part-of-speech tag, frequency of repeated characters, number of emojis, and more. These features distinguish our approach from existing methods. We evaluated different machine and deep learning classifiers to make comparisons. Our results highlight the effectiveness of our feature set, achieving a remarkable accuracy of 96%. Additionally, our findings indicate that machine learning classifiers exhibit superiority over their deep learning counterparts in the context of this study. Furthermore, we developed a comprehensive dashboard that offers users an in-depth analysis of different Twitter accounts and ranks their similarities. The dashboard serves as a valuable tool for gaining insights into the relationships and similarities among the analyzed Twitter accounts.


  • Open Access

    Figure 5: (A–E) Confusion matrix of all models based on sentence transformer.

    by Taghreed Bagies

    Security requirements are considered one of the most important non-functional requirements of software. The CIA (confidentiality, integrity, and availability) triad forms the basis for the development of security systems. Each dimension is expressed as having many security requirements that should be designed, implemented, and tested. However, requirements are written in a natural language and may suffer from ambiguity and inconsistency, which makes it harder to distinguish between different security dimensions. Recognizing the security dimensions in a requirements document should facilitate tracing the requirements and ensuring that a dimension has been implemented in a software system. This process should be automated to reduce time and effort for software engineers. In this paper, we propose to classify the security requirements into CIA triads using Term frequency-inverse document frequency and sentence-transformer embedding as two different technologies for feature extraction. For both techniques, we developed five models by using five well-known machine learning algorithms: (1) support vector machine (SVM), (2) K-nearest neighbors (KNN), (3) Random Forest (RF), (4) gradient boosting (GB), and (5) Bernoulli Naive Bayes (BNB). Also, we developed a web interface that facilitates real-time analysis and classifies security requirements into CIA triads. Our results revealed that SVM with the sentence-transformer technique outperformed all classifiers by 87% accuracy in predicting a type of security dimension.

  • Open Access

    Figure 4: (A–D) The results of experiment#2: Using 10-fold cross validation.

    by Taghreed Bagies

    Security requirements are considered one of the most important non-functional requirements of software. The CIA (confidentiality, integrity, and availability) triad forms the basis for the development of security systems. Each dimension is expressed as having many security requirements that should be designed, implemented, and tested. However, requirements are written in a natural language and may suffer from ambiguity and inconsistency, which makes it harder to distinguish between different security dimensions. Recognizing the security dimensions in a requirements document should facilitate tracing the requirements and ensuring that a dimension has been implemented in a software system. This process should be automated to reduce time and effort for software engineers. In this paper, we propose to classify the security requirements into CIA triads using Term frequency-inverse document frequency and sentence-transformer embedding as two different technologies for feature extraction. For both techniques, we developed five models by using five well-known machine learning algorithms: (1) support vector machine (SVM), (2) K-nearest neighbors (KNN), (3) Random Forest (RF), (4) gradient boosting (GB), and (5) Bernoulli Naive Bayes (BNB). Also, we developed a web interface that facilitates real-time analysis and classifies security requirements into CIA triads. Our results revealed that SVM with the sentence-transformer technique outperformed all classifiers by 87% accuracy in predicting a type of security dimension.

  • Open Access

    Figure 3: (A–D) The results of experiment#1: Using 70% training set and 30% test set.

    by Taghreed Bagies

    Security requirements are considered one of the most important non-functional requirements of software. The CIA (confidentiality, integrity, and availability) triad forms the basis for the development of security systems. Each dimension is expressed as having many security requirements that should be designed, implemented, and tested. However, requirements are written in a natural language and may suffer from ambiguity and inconsistency, which makes it harder to distinguish between different security dimensions. Recognizing the security dimensions in a requirements document should facilitate tracing the requirements and ensuring that a dimension has been implemented in a software system. This process should be automated to reduce time and effort for software engineers. In this paper, we propose to classify the security requirements into CIA triads using Term frequency-inverse document frequency and sentence-transformer embedding as two different technologies for feature extraction. For both techniques, we developed five models by using five well-known machine learning algorithms: (1) support vector machine (SVM), (2) K-nearest neighbors (KNN), (3) Random Forest (RF), (4) gradient boosting (GB), and (5) Bernoulli Naive Bayes (BNB). Also, we developed a web interface that facilitates real-time analysis and classifies security requirements into CIA triads. Our results revealed that SVM with the sentence-transformer technique outperformed all classifiers by 87% accuracy in predicting a type of security dimension.

  • Open Access

    Figure 1: An overview of our approach to developing a model classifying software SRs into CIA.

    by Taghreed Bagies

    Security requirements are considered one of the most important non-functional requirements of software. The CIA (confidentiality, integrity, and availability) triad forms the basis for the development of security systems. Each dimension is expressed as having many security requirements that should be designed, implemented, and tested. However, requirements are written in a natural language and may suffer from ambiguity and inconsistency, which makes it harder to distinguish between different security dimensions. Recognizing the security dimensions in a requirements document should facilitate tracing the requirements and ensuring that a dimension has been implemented in a software system. This process should be automated to reduce time and effort for software engineers. In this paper, we propose to classify the security requirements into CIA triads using Term frequency-inverse document frequency and sentence-transformer embedding as two different technologies for feature extraction. For both techniques, we developed five models by using five well-known machine learning algorithms: (1) support vector machine (SVM), (2) K-nearest neighbors (KNN), (3) Random Forest (RF), (4) gradient boosting (GB), and (5) Bernoulli Naive Bayes (BNB). Also, we developed a web interface that facilitates real-time analysis and classifies security requirements into CIA triads. Our results revealed that SVM with the sentence-transformer technique outperformed all classifiers by 87% accuracy in predicting a type of security dimension.

  • Open Access

    Figure 2: An example of disagreement between five classifiers during the active learning step.

    by Taghreed Bagies

    Security requirements are considered one of the most important non-functional requirements of software. The CIA (confidentiality, integrity, and availability) triad forms the basis for the development of security systems. Each dimension is expressed as having many security requirements that should be designed, implemented, and tested. However, requirements are written in a natural language and may suffer from ambiguity and inconsistency, which makes it harder to distinguish between different security dimensions. Recognizing the security dimensions in a requirements document should facilitate tracing the requirements and ensuring that a dimension has been implemented in a software system. This process should be automated to reduce time and effort for software engineers. In this paper, we propose to classify the security requirements into CIA triads using Term frequency-inverse document frequency and sentence-transformer embedding as two different technologies for feature extraction. For both techniques, we developed five models by using five well-known machine learning algorithms: (1) support vector machine (SVM), (2) K-nearest neighbors (KNN), (3) Random Forest (RF), (4) gradient boosting (GB), and (5) Bernoulli Naive Bayes (BNB). Also, we developed a web interface that facilitates real-time analysis and classifies security requirements into CIA triads. Our results revealed that SVM with the sentence-transformer technique outperformed all classifiers by 87% accuracy in predicting a type of security dimension.

  • Open Access

    Figure 7: (A–E) Confusion matrix of all models based on the TF-IDF without preprocessing.

    by Taghreed Bagies

    Security requirements are considered one of the most important non-functional requirements of software. The CIA (confidentiality, integrity, and availability) triad forms the basis for the development of security systems. Each dimension is expressed as having many security requirements that should be designed, implemented, and tested. However, requirements are written in a natural language and may suffer from ambiguity and inconsistency, which makes it harder to distinguish between different security dimensions. Recognizing the security dimensions in a requirements document should facilitate tracing the requirements and ensuring that a dimension has been implemented in a software system. This process should be automated to reduce time and effort for software engineers. In this paper, we propose to classify the security requirements into CIA triads using Term frequency-inverse document frequency and sentence-transformer embedding as two different technologies for feature extraction. For both techniques, we developed five models by using five well-known machine learning algorithms: (1) support vector machine (SVM), (2) K-nearest neighbors (KNN), (3) Random Forest (RF), (4) gradient boosting (GB), and (5) Bernoulli Naive Bayes (BNB). Also, we developed a web interface that facilitates real-time analysis and classifies security requirements into CIA triads. Our results revealed that SVM with the sentence-transformer technique outperformed all classifiers by 87% accuracy in predicting a type of security dimension.