Cyberbullying Detection on Twitter Using ML
Cyberbullying Detection on Twitter Using ML
1. INTRODUCTION
Social media platforms are nowadays used by almost every single person on earth.
People use it to express their feelings and attitudes towards everything, including
other people, products, weather, social events, and political issues. Natural language
processing and new techniques have also led to the development of many new
technological advancements that are used by all people in their ordinary life. Most
and modern techniques used by people worldwide are Machine translation,
information extraction, information retrieval, question answering, text memorization,
automatic assistance, and recommendation chat-bots and apps, etc. Together Social
media platforms with and have made a lot of things easier to people, like fast
communication across different countries, giving people the ability to know news
that happens everywhere on spot, not just that but it gave them the ability to express
what they think and feel using posts and comments.
1.1 Purpose
Social media networks such as Facebook, Twitter, Flickr, and Instagram have become
the preferred online platforms for interaction and socialization among people of all
ages. While these platforms enable people to communicate and interact in previously
unthinkable ways, they have also led to malevolent activities such as cyber-bullying.
Cyberbullying is a type of psychological abuse with a significant impact on society.
Cyber-bullying events have been increasing mostly among young people spending
most of their time navigating between different social media platforms. Particularly,
social media networks such as Twitter and Facebook are prone to CB because of their
popularity and the anonymity that the Internet provides to abusers. In India, for
example, 14 percent of all harassment occurs on Facebook and Twitter, with 37
percent of these incidents involving youngsters. Moreover, cyberbullying might lead
to serious mental issues and adverse mental health effects. Most suicides are due to
the anxiety, depression, stress, and social and emotional difficulties from cyber-
bullying events.
1
Introduction Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
1.2 Scope
This motivates the need for an approach to identify cyberbullying in social media
messages (e.g., posts, tweets, and comments). In this article, we mainly focus on the
problem of cyberbullying detection on the Twitter platform. As cyberbullying is
becoming a prevalent problem in Twitter, the detection of cyberbullying events from
tweets and provisioning preventive measures are the primary tasks in battling
cyberbullying threats. Therefore, there is a greater need to increase the research on
social networks-based CB in order to get greater insights and aid in the development
of effective tools and approaches to effectively combat cyberbullying problem.
Manually monitoring and controlling cyberbullying on Twitter platform is virtually
impossible. Furthermore, mining social media messages for cyberbullying detection
is quite difficult. For example, Twitter messages are often brief, full of slang, and
may include emojis, and gifs, which makes it impossible to deduce individuals’
intentions and meanings purely from social media messages. Moreover, bullying can
be difficult to detect if the bully uses strategies like sarcasm or passive-aggressiveness
to conceal it. Despite the challenges that social media messages bring, cyberbullying
detection on social media is an open and active research topic. Cyberbullying
detection within the Twitter platform has largely been pursued through tweet
classification and to a certain extent with topic modeling approaches. Text
classification based on supervised machine learning (ML) models are commonly used
for classifying tweets into bullying and non-bullying tweets. Deep learning (DL)
based classifiers have also been used for classifying tweets into bullying and non-
bullying tweets. Supervised classifiers have low performance in case the class labels
are unchangeable and are not relevant to the new events.
directional Long Short Term Memory (Bi-LSTM), SVM, Multinomial Naive Bayes
(MNB), and Random Forests (RF). The experimental findings consistently
demonstrate the superior performance of DEA-RNN across various scenarios.
Notably, in scenario 3, the model exhibited exceptional accuracy, precision, recall,
F1-score, and specificity, achieving an average of 90.45%, 89.52%, 88.98%, 89.25%,
and 90.94% respectively. Defines the critical issue of CB on social media platforms
and proposes a cutting-edge solution in the form of the DEA-RNN hybrid deep
learning model. Through meticulous experimentation and comparative analysis, the
effectiveness of the proposed model is established, showcasing its superiority over
existing approaches in detecting instances of CB on the Twitter platform.
3
Introduction Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
The study concluded that the emotional feature does not impact the detection rate.
Despite its efficiency, this model is limited to a small dataset with fewer class labels.
Disadvantages
• The system is not implemented properly cyberbullying detection due to absence of an
effective ML classifiers.
• Difficulty in acquiring large, high-quality labeled datasets.
• High computational resource requirements for training and inference.
• Lack of interpretability in the model's predictions.
• Challenges in hyperparameter tuning and optimization.
• Variability in effectiveness across different linguistic and cultural contexts.
4
Introduction Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Advantages
• An effective models help in processing to extract meaningful topics.
• An effective system than which is mainly tested and trained by SVM, Multinomial
Naive Bayes (MNB),Random Forests (RF) classifiers.
• Enhanced capability to capture hierarchical features and temporal dependencies in
Twitter data.
• Improved accuracy in identifying cyberbullying instances.
• Robust performance across diverse cyberbullying scenarios and linguistic variations
• Potential for real-time processing and scalability in handling large-scale Twitter data
streams.
5
Introduction Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
1.4 Architecture
Fig.1.4 Architecture
6
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
7
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
• Presents a "Black Box" view, focusing on the external behavior and functionality
of the product without delving into its internal workings.
8
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
• Interpreters
• Post-editors
• Translation buyers
• Translation managers
• Higher-level
2.4 Modules
Data Collection and Preprocessing Module
This module collects twitter data and perform preprocessing by removing irrelevant
information as URLs, hashtags, mentions.
9
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Input Design:
Input design facilitates interaction between the information system and users,
establishing processes for data preparation and entry. It involves methods to
transform transaction data into usable formats, such as reading from documents or
direct entry. Input design aims to streamline processes, minimize errors, and ensure
user security and privacy. Key considerations include:
10
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
• Regulatory Compliance: Ensuring the system adheres to relevant regulations or
standards.
• Maintainability: Ease of maintaining and updating the system over time.
• Serviceability: The ease with which the system can be repaired or serviced.
• Utility: The usefulness and value provided by the system to users.
• Availability: Ensuring the system is accessible and operational when needed.
• Usability: The system's ease of use and user experience.
• Interoperability: The system's ability to interact and operate with other systems
or components.
• Environmental Considerations: Factors related to the environmental impact of
the system, such as energy consumption or sustainability.
11
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
[Link] Requirements
12
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
The Software Development Life Cycle (SDLC) is a series of stages that provide a
structured approach to the software development process. It encompasses
understanding the business requirements, eliciting needs, converting concepts into
functionalities and features, and ultimately delivering a product that meets business
needs. A proficient software developer should possess adequate knowledge to select
the appropriate SDLC model based on project context and business requirements.
Therefore, it is essential to select the right SDLC model tailored to the specific
concerns and requirements of the project to ensure its success. To explore more about
choosing the right SDLC model, you can follow this link for additional information.
Furthermore, to delve deeper into software lifecycle testing and SDLC stages, follow
the highlighted links here.
The exploration will cover various types of SDLC models, their benefits,
disadvantages, and when to use them. SDLC models can be viewed as tools to enhance
product delivery. Therefore, understanding each model, its advantages, disadvantages,
and the appropriate usage is crucial to determine which one suits the project context.
13
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
• Waterfall Model
• V-Shaped Model
• Evolutionary Prototyping Model
• Spiral Method (SDM)
• Iterative and Incremental Method
• Agile development
• Analysis
• Design
• Implementation
• Testing
• Operation
14
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Advantages
• Simple to clarify for the clients.
• Structures approach.
• Stages and exercises are distinct.
• Assists with arranging and timetable the task.
15
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
The feasibility study evaluates the practicality of the project and enhances fundamental
understanding through a comprehensive approach. During system assessment, the integrity
evaluation of the proposed structure is crucial to ensure it does not burden the organization.
Three key assessments conducted during feasibility appraisal are:
• Economic Feasibility
• Technical Feasibility
• Social Feasibility
Economic Feasibility
This study examines the financial impact of the system on the organization. It assesses the
resources available for system development and justifies expenses. The design should be
economically viable, leveraging freely available enhancements wherever possible, with
consideration given to necessary purchases.
Technical Feasibility
This study assesses the specific requirements of the system and ensures it does not overly
strain existing technical resources. Excessive demands on technical resources can lead to
burdens on users. The design should have modest technical requirements, minimizing
unnecessary changes.
Social Feasibility
This aspect examines the level of acceptance of the system by users. It involves
establishing effective means to familiarize users with the system and ensuring they
perceive it as a necessity rather than a threat. User confidence should be bolstered
through clear communication and user training. Social feasibility encompasses
analyzing how individuals interact within the system or organization and evaluating
social impacts to understand.
16
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Step 1: If all objects in S belong to the same class (e.g., Ci), the decision tree for S
comprises a leaf labeled with this class.
Step 2: Otherwise, select a test (T) with potential outcomes (O1, O2,…, On). Each
object in S has a specific outcome for test T, thus partitioning S into subsets (S1,
S2,…, Sn), where each object in Si corresponds to outcome Oi for test T. Test T
becomes the root of the decision tree, and for each outcome Oi, a subsidiary decision
tree is constructed by recursively invoking the same procedure on set Si.
Root Node: It represents the entire population or sample and this further gets divided
into two or more homogeneous sets.
17
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Decision Node: When a sub-node splits into further sub-nodes, then it is called the
decision node.
Leaf / Terminal Node: Nodes do not split is called Leaf or Terminal node.
Gradient boosting
Gradient boosting is a versatile machine learning technique employed in regression
and classification tasks, among others. It constructs a prediction model in the form of
an ensemble of weak prediction models, typically decision trees. When using decision
trees as the weak learner, the resulting algorithm is referred to as gradient-boosted
trees, often surpassing the performance of random forests. The construction of a
gradient-boosted trees model occurs in a stage-wise manner, similar to other boosting
methods, but it stands out by allowing the optimization of an arbitrary differentiable
loss function.
Logistic regression
Logistic regression analysis explores the relationship between a categorical dependent
variable and a set of independent variables. The term "logistic regression" is applied
when the dependent variable has only two values, such as 0 and 1, or Yes and No. On
the other hand, "multinomial logistic regression" is used when the dependent variable
has three or more unique values, like Married, Single, Divorced, or Widowed. While
the nature of data for the dependent variable differs from that of multiple regressions,
the practical application of the procedure remains similar.
18
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Naive Bayes
The naive Bayes approach is a supervised learning method founded on a simple
assumption: it presumes that the presence or absence of one feature of a class is
independent of the presence or absence of any other feature. Despite its simplicity, it
demonstrates robustness and efficiency comparable to other supervised learning
techniques. One explanation often highlighted in the literature is based on
representation bias.
The naive Bayes classifier operates as a linear classifier, akin to linear discriminant
analysis, logistic regression, or linear support vector machines (SVMs). However, the
distinction lies in the method used to estimate the classifier's parameters, known as
the learning bias. Although the naive Bayes classifier finds extensive use in the
research community due to its ease of programming, parameter estimation simplicity,
rapid learning even with large datasets, and reasonably good accuracy compared to
other methods, it remains less popular among practitioners seeking practical results.
Researchers appreciate its simplicity and efficacy. However, practitioners often
struggle with its interpretability and deployment, as they may not grasp its relevance
or utility.
Random forests
Random forests, also known as random decision forests, represent an ensemble
learning technique used for classification, regression, and other tasks. They function
by constructing numerous decision trees during training. For classification tasks, the
output of the random forest is determined by the class selected by the majority of
trees. Conversely, for regression tasks, the mean or average prediction of the
individual trees is returned. Random decision forests aim to mitigate the issue of
decision trees overfitting to their training set.
19
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
In general, random forests tend to outperform individual decision trees, although they
may have lower accuracy compared to gradient boosted trees. Nonetheless, the
performance of random forests can be influenced by the characteristics of the data.
The concept of random decision forests was first introduced in 1995 by Tin Kam Ho,
who utilized the random subspace method. This method, as formulated by Ho, serves
as an implementation of the "stochastic discrimination" approach to classification
initially proposed by Eugene Kleinberg.
20
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
What Is a Script?
A script is a text file containing instructions that form a Python program, allowing
you to execute the program immediately in an interactive mode. Here are key points
about scripts:
Reusability: Scripts can be executed repeatedly without the need to retype the entire
code each time.
Editability: Scripts are editable, enabling you to make multiple versions by changing
statements from one file to another using a word processor. This facilitates the
creation of various tasks with minimal effort.
Creation Tools: Any text editor, such as Microsoft Notepad, Microsoft WordPad,
Microsoft Word, or any word processor, can be used to create Python script files.
Distinguishing Between a Script and a Program
Script:
Scripts are distinct from the core code of the application, often written or modified
near the end-user. They are typically translated from source code or bytecode, while
the applications they control are compiled to native machine code.
Program:
A program has an executable format that the computer can directly use to execute the
instructions. It can exist in both its logical source code form and as compiled
executable programs.
Python Overview:
Python is an open-source, general-purpose programming language known for its
simplicity and versatility. Here are some key features and concepts about Python
21
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
However, Python eliminates the need for such explicit declarations. Variables in
Python are simply named containers that hold values. Python's interpreter
dynamically determines the data type of each variable based on the value assigned to
it. This flexibility allows Python to handle various data types seamlessly, even if they
change during program execution.
For example, if a variable is declared as a float but later assigned a value that exceeds
the range of a float, Python automatically promotes it to a double without requiring
explicit intervention. This dynamic behavior extends to operations like arithmetic,
where Python automatically adjusts the data type to accommodate the operands.
Numbers: Python's numeric data types store numerical values and are created when a
value is assigned to them.
22
SRS Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Lists: Lists are versatile data structures that can hold elements of different data types.
They are enclosed in square brackets and support indexing and slicing operations.
Tuples: Tuples are similar to lists but are immutable, meaning their elements cannot
be modified after creation. They are enclosed in parentheses and are often used for
fixed collections of data.
Dictionaries: Dictionaries are key-value pairs that allow mapping between keys and
corresponding values. They are enclosed in curly braces and support efficient lookup
operations
23
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
3. System Design
3.1 Database Design (E-R Diagram)
An Entity-Relationship (ER) model illustrates the structure of a database using a
visual representation known as an Entity-Relationship Diagram (ER Diagram). This
model serves as a blueprint for designing the database schema and capturing the
relationships between different entities and attributes.
3.1.1 ER model
1. The Emergency Room model corresponds to an Entity-Relationship model,
serving as a high-level representation of data structures. It is utilized to illustrate
the data components and relationships within a defined system.
2. It establishes a structured framework for the database. Moreover, it provides a
straightforward and easily understandable perspective on the data.
3. In Entity-Relationship modeling, the organizational database structure is
depicted through a design known as an Entity-Relationship diagram.
4. For instance, consider designing a school database. An educational record could
be represented as an entity with attributes such as name, ID, age, etc. Similarly,
the address could be another entity with attributes like city, street name, zip code,
etc., and there would be a relationship between them.
24
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Component of ER Diagram
1. Entity
A substance may be anything, class, individual or spot. In the ER frame, a substance
can be tended to as square shapes.
Think about a relationship as a delineation chief, thing, specialist, office, etc can be
taken as a substance.
25
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
[Link] Entity
A substance that depends upon another component called a frail substance. The frail
element contains no critical trait of its own. The feeble substance is addressed by a
twofold square shape.
2. Characteristic
The quality is utilized to depict the property of a section. Obscure is utilized to
address a quality.
For example, id, age, contact number, name, etc can be attributes of a student.
26
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
a. Key Attribute
The key quality is used to address the essential ascribes of a substance. It tends to a
fundamental key. The key property is tended to by a circle with the text underlined.
b. Composite Attribute
A property that made from various attributes is known as a composite quality. The
composite trademark is tended to by an oval, and those circles are related with a
circle.
27
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
c. Multivalued Attribute
A quality can have more than one worth. These qualities are known as a multivalued
property. The twofold oval is used to address multivalued property. For example, a
student can have more than one phone number.
d. Determined Attribute
A property that can be gotten from another quality is known as a decided attribute. It
will in general be tended to by a ran circle.
For example, a singular's age changes long term and can be gotten from one more
quality like Date of birth.
28
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
3. Relationships
A relationship is used to depict the connection between substances. Important stone
or rhombus is utilized to address the relationship.
teacher 1 1 student
teach
b. One-to-many Relationship
Exactly when simply a solitary illustration of the substance on the left, and more than
one event of a component on the right associates with the relationship then this is
known as a one-to-various connections.
For example, Scientist can envision various manifestations, but the improvement is
done by the really express analyst.
Tweet server
1 1 m Remote user
has
29
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
c. Many-to-One Relationship
Exactly when more than one event of the component on the left, and simply a solitary
event of a substance on the right associates with the relationship then it is known as a
many-to-one relationship.
For example, Student enrolls for only a solitary course, but a course can have various
students.
user M 1 Service
Reques provider
t
d. Many-to-Many Relationship
At the point when more than one event of the substance on the left, and more than one
event of a component on the right associates with the relationship then it is known as
a many-to-various connections.
For example, Employee can allot by numerous exercises and project can have various
specialists.
m users M M logins
has
30
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
31
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
3.2 Normalization
Normalization is the primary method for optimizing data in a database to fulfill two
essential criteria:
Data dependencies are logical, ensuring that all related data items are stored together.
Normalization is crucial for various reasons, primarily because it enables databases to
occupy minimal disk space, resulting in enhanced performance.
The three primary types of normalization are outlined below. Note: "NF" stands for
"Normal Form."
32
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Tables in 2NF ought to be in 1NF and not have any most of the way dependence (e.g.,
each non-prime quality ought to be dependent upon the table's fundamental key).
1 11 ******** Sign_up
2 12 ******** Sign_up
3 13 ******** Sign_up
4 14 ******** Sign_up
5 15 ******** Sign_up
33
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
User Details
USER PASSSWORD LOGIN
ID
Unnormalized Form (UNF): The initial state of a table where data is not organized
according to any specific rules.
First Normal Form (1NF): In 1NF, each column contains atomic values, and there
are no repeating groups or arrays within a row.
Second Normal Form (2NF): 2NF requires that every non-key attribute be fully
functionally dependent on the primary key.
Fourth Normal Form (4NF): To achieve 4NF, a table must be in BCNF and should
not have multi-valued dependencies.
34
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Normal Description
Form
Essential Tuple Normal Form (ETNF): ETNF is a condition where each attribute in a
tuple is essential to the understanding of the tuple itself.
35
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Benefits of Normalization:
Reduction of data redundancy: Normalization helps eliminate redundant data by
organizing it efficiently across tables. Improved overall database organization: By
structuring data according to normalization rules, databases become more organized
and easier to manage. Data consistency within the database:
Normalization ensures that data remains consistent across tables, reducing the risk of
inconsistencies. More flexible database design:
Disadvantages of Normalization:
Careless decomposition: If normalization is done without a clear understanding of
user requirements, it can lead to excessive decomposition and unnecessary
complexity in the database design.
36
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
3.3 UML Diagrams
The UML diagrams are arranged into fundamental charts, social frameworks, and
besides correspondence frame graphs. The diagrams are logically organized in the
going with figure:
37
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Use Case Diagram
A use case diagram in the Unified Modeling Language (UML) is a type of behavioral
diagram described and expressed using a Use-case analysis. Its objective is to present
a graphical representation of the value provided by a system in terms of actors, their
goals (represented as use cases), and any relationships between those use cases. The
primary purpose of a use case diagram is to illustrate which system functions are
performed for which actor.
register
login
Predict Dataset
User
View Dataset
View Accuracy
logut
38
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Class Diagram
In computer programming, a class diagram in the Unified Modeling Language (UML)
is a type of static structural diagram that illustrates the architecture of a system by
displaying the structure's classes, their properties, operations (or methods), and the
relationships among the classes. It delineates which class holds data.
user
username
password
emailid
phone number
adress
gender
Register()
Predict data()
Report()
logut()
39
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Sequence Diagram
A sequence diagram in Unified Modeling Language (UML) is a type of
communication diagram that illustrates how processes interact with each other and
the order in which they occur. It is a variation of a Message Sequence Chart.
Sequence diagrams are sometimes referred to as event diagrams, event scenarios, or
timing diagrams.
user dataset
register
login
Predict Message
View Result
Accuracy
logout
40
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Component Diagram
A component diagram is used to break down a large object-oriented system into
smaller components, making them more manageable. It provides a physical view of a
system, such as executables, files, libraries, etc., that reside within the node.
It visualizes not only the relationships but also the organization between the
components present in the system. It assists in forming an executable system. A
component is a single unit of the system, which is replaceable and executable. The
implementation details of a component are hidden, and it requires an interface to
interact and execute a function. It operates like a black box whose behavior is
understood by the inputs and required interfaces.
[Link]:Component Diagram
41
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Deployment Diagram
The deployment diagram illustrates the physical hardware on which the software will
be deployed. It represents the static deployment view of a system, depicting the nodes
and their relationships. It details how software is distributed across the hardware. The
deployment diagram maps the software architecture created in design to the physical
system architecture, where the software will be executed as a node. As it involves
multiple nodes, the relationships are depicted using communication pathways.
42
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Collaboration Diagram
in a collaboration diagram, the sequence of method calls is depicted using a numbering
technique to illustrate how methods are called sequentially. This numbering indicates the
order in which the methods are invoked. Let's consider the order management system to
describe the collaboration diagram. The method calls in a collaboration diagram resemble
those in a sequence diagram. However, the key difference lies in the fact that while the
sequence diagram focuses solely on method invocation, the collaboration diagram provides
additional information by illustrating the organization of objects involved in the interactions.
43
System design Detection and prediction of Future Mental disorder from Social Media Data
Using Machine Learning, Ensemble Learning, and Large Language Models.
Activity Diagram
ADMIN SYSTEM
Login
Pre-processing the data
View result
44