g10 Part A - Employability Skills
g10 Part A - Employability Skills
🎯 Objective:
To help students practice clear articulation, active listening, asking questions, giving
directions, and handling a real-life conversation confidently.
🧑🤝🧑 Characters:
● Riya – the student who lost her phone
● Rahul – a stranger who found the phone
● Security Guard – helps resolve the situation
● Friend – supports Riya and helps her communicate
Friend: Calm down, Riya. When did you last see it?
Riya: I was using it near the library, then I went to the canteen. Maybe I left it there.
Friend: Let’s go back and check. Don’t worry, someone might have found it.
Rahul: Excuse me, sir. I found this phone near the canteen.
Security Guard: Good of you to return it. Let’s keep it safe until someone reports it missing.
1
ARTIFICIAL INTELLIGENT - CODE 417
Riya: Hello sir, I think I lost my phone. It’s a red phone with a flower sticker on the back.
Security Guard: Describe it a bit more clearly. Any screen lock? Last photo or wallpaper?
Riya: It’s a Samsung. The wallpaper is a picture of me and my dog. The screen lock has a
star pattern.
Rahul: That matches the phone I found! I picked it up just 10 minutes ago.
💡 Skills Focus:
● Verbal clarity
● Polite tone
● Asking and answering questions
● Explaining details clearly
● Expressing gratitude and handling a real-life scenario
2
ARTIFICIAL INTELLIGENT - CODE 417
3
ARTIFICIAL INTELLIGENT - CODE 417
🔹 Emotional Symptoms
● Irritability or anger
● Feeling overwhelmed
● Anxiety or constant worrying
● Mood swings
● Low self-esteem
🔹 Cognitive Symptoms
● Trouble concentrating
● Forgetfulness
● Negative thoughts
● Constant worrying
🔹 Behavioral Symptoms
● Changes in appetite (overeating or undereating)
● Avoiding responsibilities
● Increased use of alcohol, cigarettes, or drugs
● Social withdrawal
● Nail biting or pacing
4
ARTIFICIAL INTELLIGENT - CODE 417
2. Physical Activity
3. Time Management
4. Healthy Lifestyle
5. Social Support
7. Positive Thinking
5
ARTIFICIAL INTELLIGENT - CODE 417
2. Explain ‘SMART’ goals in your own expression & Visual map of the
same. DATE:
S Specific
M Measurable
A Attainable
R Relevant
T Time-Bound
6
ARTIFICIAL INTELLIGENT - CODE 417
1. Draw a computer with its peripheral devices and write the function
of each peripheral separately.
7
ARTIFICIAL INTELLIGENT - CODE 417
2. Practical Work: Creating, Modifying & Deleting Files and Folders.
🔹 1. Create a Folder
● Right-click on the desktop or inside any drive (e.g., D:).
● Click on New → Folder.
● Name the folder as: My_Practical_Work.
✅ Learning Outcome
● Understand how to manage files and folders.
● Gain confidence in basic file operations.
● Learn to organize digital content on their own.
8
ARTIFICIAL INTELLIGENT - CODE 417
9
ARTIFICIAL INTELLIGENT - CODE 417
1. Make a list of waste material that is thrown away. Now think of
creative ideas in which you can use the waste material to make something
useful.
● Organic Waste Food scraps, fruit and vegetable peels, garden waste, tea leaves,
eggshells
● Metal Waste Tin cans, aluminum foil, metal scraps, old tools
10
ARTIFICIAL INTELLIGENT - CODE 417
● Cardboard boxes Build storage organizers, drawer dividers, or playhouses for kids.
● Used glass jars Turn them into spice containers, candle holders, or mini terrariums.
● Old clothes/ fabric Make tote bags, cushion covers, or patchwork quilts.
● Broken crayons Melt and reshape into rainbow crayons or use for art textures.
● Toilet paper rolls Create napkin holders, cable organizers, or small plant pots.
● Old magazines Cut out images for collages, vision boards, or handmade
envelopes.
11
ARTIFICIAL INTELLIGENT - CODE 417
Objective:
To develop an AI system that can predict the risk of chronic diseases such as diabetes, heart
disease, or hypertension by analyzing an individual’s lifestyle habits and medical history.
Chronic diseases are a leading cause of death globally, but many can be prevented or
managed with early detection. AI can play a key role in early risk prediction, enabling
people to take proactive health measures.
Category Examples
Lifestyle Data Diet habits, physical activity, sleep patterns, smoking, alcohol use
Medical History Family history of diseases, past diagnoses, blood pressure, blood sugar
Wearable Data Data from fitness trackers (e.g., steps, calories burned, heart activity)
2. Data Sources
Health Apps (e.g., Fitbit, Apple Health) Lifestyle and wearable data
12
ARTIFICIAL INTELLIGENT - CODE 417
3. AI Techniques Used
Technique Purpose
Neural Networks For complex pattern detection in health and behavior data
4. Ethical Framework
Privacy and Health and lifestyle data must be collected with full consent and stored
Consent securely
Bias and Fairness Model must be trained on diverse data to avoid race, gender, or age bias
Accessibility The tool should be available to people across all income and education
levels
Data Accuracy Inaccurate input (e.g., self-reported data) must be managed with care
Real-life Example:
The HealthifyMe Smart Plan uses AI to analyze diet and activity data to warn users of
potential lifestyle diseases and suggests personalized changes.
Conclusion:
Using AI to predict chronic disease risk based on lifestyle offers powerful tools for early
prevention, but must be used with ethical responsibility and data care. When combined
with health education, this technology has the potential to transform global healthcare.
13
ARTIFICIAL INTELLIGENT - CODE 417
14
ARTIFICIAL INTELLIGENT - CODE 417
2. Show AI Modeling and its categories through a Concept map and give
examples of each sub category.
Classification: ____________________________________________________________
Regression: ____________________________________________________________
Clustering: ____________________________________________________________
Association : ____________________________________________________________
15
ARTIFICIAL INTELLIGENT - CODE 417
1. Calculate Recall, Accuracy, Precision and F1 Score from the following
Confusion Matrix.
Reference →
Prediction
Confusion Matrix
Yes No
Data Given →
ACCURACY : TP + TN / TP+TN+FP+FN
_____________________
_____________________
RECALL : TP / TP + FN
_____________________
_____________________
PRECISION: TP / TP + FP
_____________________
_____________________
_____________________
_____________________
16
ARTIFICIAL INTELLIGENT - CODE 417
2. Explore the internet to find some scenarios related to natural disasters.
Take any one out of them and make a prediction-reality comparison.
draw a confusion matrix for it to show prediction results.
A recent study (published in April 2025) evaluated an LSTM‑based flood prediction system
called Crisis‑Connect. It used historical hydrometeorological data to predict whether a flood
would occur. When tested, it achieved:
● Accuracy: 82.86%
● F1‑Score: 82.35%
They also published its confusion matrix, showing counts of true positives, false positives,
false negatives, and true negatives.
Predicted: Flood TP = 80 FP = 14
Predicted: No Flood FN = 20 TN = 86
17
ARTIFICIAL INTELLIGENT - CODE 417
Discussion:
Prediction vs. Reality in Practical UseIn practice, this model shows strong performance: it
catches most floods while keeping false alarms moderate. However:
● Missing 20% of actual floods can lead to inadequate early warning, which may have
severe consequences.
Conclusion
This example demonstrates how machine learning (specifically LSTM) can predict floods in
Indian contexts with reasonably high accuracy. The confusion matrix helps clarify strengths
and limitations: the model reliably identifies most floods (good recall), but still misses some,
and generates some false alarms.
Such evaluation is essential in natural disaster systems, where false negatives (missed events)
often pose the greatest risk. Improved feature selection, increased data, ensemble methods or
hybrid architectures could help raise performance further, as seen in other studies using
Random Forest, Gradient Boosting, etc.
18
ARTIFICIAL INTELLIGENT - CODE 417
1. Write about the various Widgets that are used in “Orange Data
Mining” tool
Orange is a free and easy-to-use tool for data analysis and machine learning. It uses
widgets, which are like building blocks, to help you do tasks like loading data, cleaning it,
making graphs, and training AI models.
Each widget does a specific job, and you can connect them together to make a full AI
workflow — just like connecting blocks in Scratch or diagrams in flowcharts.
In Orange Data Mining, widgets are the building blocks of your data analysis project.
● Reading data
● Cleaning data
● Making graphs
● Building machine learning models
● Testing results
○ By connecting these widgets, you can create a data science workflow — just
like creating a flowchart!
1. Data Widgets
19
ARTIFICIAL INTELLIGENT - CODE 417
These are used to clean and prepare your data before analysis.
3. Visualization Widgets
These widgets help you see patterns and trends in your data through charts and graphs.
These are used to train machine learning models using your data.
20
ARTIFICIAL INTELLIGENT - CODE 417
5. Evaluation Widgets
These widgets are used when there are no labels in the data — the AI finds patterns on its
own.
These are used to work with text data (like reviews or messages).
21
ARTIFICIAL INTELLIGENT - CODE 417
Summary Table
Widget Type Example Widgets Use
22
ARTIFICIAL INTELLIGENT - CODE 417
23
ARTIFICIAL INTELLIGENT - CODE 417
Step 10: Click the Close button in the Data Table dialog box.
STAGE 4 → Modelling
The Steps for models are as follows:
Step 11: Drag and drop the Select Column widget onto the canvas.
Step 12: Connect these File widget to the Select Column widget.
Step 13: Double-Click the Select Column widget.
Step 14: Move the Food Price Index to Target value as we are trying to predict the
price value.
24
ARTIFICIAL INTELLIGENT - CODE 417
Step 15: Click the Close button in the Select Column dialog box.
Step 16: Drag and drop the Linear Regression widget onto the canvas.
Step 17: Connect these Select Column widget to the Linear Regression widget.
25
ARTIFICIAL INTELLIGENT - CODE 417
Step 24: Drag and drop the Prediction widget onto the canvas.
Step 25: Connect these Test and Score widget to the Prediction widget.
Step 26: Double-Click the Prediction widget to view the prediction.
26
ARTIFICIAL INTELLIGENT - CODE 417
Step 27: Click on the Close button to close the prediction dialog box.
STAGE 6 → Deployment
Once the best-performing model is identified, the next step involves deploying the
model to make predictions on new data or integrating it into a larger system.
27
ARTIFICIAL INTELLIGENT - CODE 417
255 255 255 #FFFFFF ● This is pure white, the brightest color in the
RGB.
● All three RGB components are at their max value
(255).
0 255 255 #00FFFF ● This is pure cyan, formed by max green and
blue, with no red.
● It’s a secondary color in the RGB color model
(Green + Blue = Cyan).
28
ARTIFICIAL INTELLIGENT - CODE 417
29
ARTIFICIAL INTELLIGENT - CODE 417
Step 6: double click the renamed training data icon to open its configuration
window
Step 7: Click on the browse button the select top level directory dialogue box
appears
Step 8: Navigate the location containing your training data set
Step 9: Click on the select folder button
Step 10: Click the close button to close the training data dialogue box
Step 11: Drag and drop the image viewer widget on the Canvas.
Step 12: Connect the training data to the image viewer.
Step 13: Double click the image viewer to view the images in the training data
set.
Step 14 : Click the close button to close the image VU at the dialogue box.
Step 15: Drag and draw the image embedding widget on the Canvas.
30
ARTIFICIAL INTELLIGENT - CODE 417
Step 17 : Drag and drop the data table widget on the Canvas.
Step 18 : Connect the image embedding we check to the data table.
31
ARTIFICIAL INTELLIGENT - CODE 417
Step 19 : Double click the data table widget to view the detailed features
representation of the images.
Step 20 : Click the close button to close the data table dialogue box.
STAGE 4 → Modelling
In this stage are a machine learning model is created using the process to data set
the feature extracted during data exploitation or used for training the model the
steps to build models or as follows:
Step 21: Drag and draw the test and score with jet on to the Canvas.
Step 22 : Connect the image embedding to the test and score with jet
Step 23 : Drag and drop which is for the following classification algorithm
● Logistic regression
● Random forest
● Support vector machine SVM
Step 24 : Connect these algorithm widget to the test and score widget
Step 25 : Double click on the test and score widget to VU the evaluation Matrix
for all three algorithms.
32
ARTIFICIAL INTELLIGENT - CODE 417
STAGE 5 → Evaluation
In this step the performance of different algorithm is evaluated to determine the best
model for the toss the steps for model evaluation or as follows
Step 26: Drag and drop the confusion matrix widget on to the Canvas
Step 27: Connect the test and score with jet to the confusion matrix widget
Step 28: Double click on the confusion Matrix widget to open it
33
ARTIFICIAL INTELLIGENT - CODE 417
You will see a table showing the distribution of correct and incorrect predictions for each
class typically as follows:
● True positive TP correctly predicted instances of the positive class
● False positive FB incorrectly predictor instant of the positive class
● False negative FN incorrectly predictor instances of the negative class
● True negative TN correctly predicted instances of the negative class
The confusion matrix will first show the result for the logistic regression algorithm
similarly SPM algorithm and lastly random forest algorithm
Step 29: Click the closed button to close the confusion matrix dialogue box
Once you have built and evaluated your model then you need to apply the model to new
unseen test data in order to make predictions.
34
ARTIFICIAL INTELLIGENT - CODE 417
The image viewer widget will show the test data set that you selected allowing you to
visually inspect the images that will be used for predictions.
35
ARTIFICIAL INTELLIGENT - CODE 417
Step 37: Drag and drop the image embedding we check to the Canvas which will
convert the images into numerical features for prediction.
Step 38: Connect the test data widget test data set to the image embedding with jet
which processes the images into numerical representations that can be used by the model.
Step 39: Drag and drop the prediction with on to the Canvas this will allow you to make
predictions based on the trend model.
Step 40: Connect the image embedding widget to the prediction widget the sister input
data for making prediction.
Step 41: Drag and drop the logistic regression visit to the Canvas.
Step 42: Connect the logistic regression widget to the prediction widget. This will
apply the logistic regression model to the process to test data for classification.
Step 43: Connect the image embedding in the widget to the logistic regression widget
this allows the logistic regression model to learn from the features extracted during
training.
Step 44: Double click on the predictions widgets to view the output the table will
display the predictions for the test data including the predicted classes based on the
logistic regression model.
Step 45: Click on the close button to close the prediction dialogue box.
36
ARTIFICIAL INTELLIGENT - CODE 417
STAGE 6 → Deployment
Once the best-performing model is identified, the next step involves deploying the
model to make predictions on new data or integrating it into a larger system.
37
ARTIFICIAL INTELLIGENT - CODE 417
Example
You can use sentiment analysis to analyse consumer comments, for example you can
run sentiment analysis algorithms on such text snippets after collecting input through
various mediums such as Twitter and Facebook to assess your customers’ attitudes
toward your product.
38
ARTIFICIAL INTELLIGENT - CODE 417
So Movie Review Analysis is a type of customer feedback analysis here, we’ll walk
through the steps of creating a model that can perform sentiment analysis on a big
movie database. The
information was
gathered from the
Internet Movie
Database (IMDb).
Problem Statement
The main goal is to
estimate the sentiment
of many movie
reviews from the
Internet Movie
Database (IMDb).
Dataset
Based on the content of the reviews, this dataset contains 50,000 movie reviews that
have been pre-labeled with “good” and “negative” sentiment class labels.
39
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM1 :
print("List S1 ***")
All=S1+S2
print(All,len(All))
OUTPUT:
List S1 ***
40
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 2:
import statistics
d=[95,90,49,71,90,100,55]
m1=statistics.mean(d)
m2=statistics.median(d)
m3=statistics.mode(d)
OUTPUT:
41
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 3:
factorial = 1
if n < 0:
elif n == 0:
else:
factorial = factorial * i
OUTPUT:
Enter a number: 9
42
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 4:
import numpy as np
x= np.array([2,3,9,101])
y=x+2
plt.plot(x, y)
plt.show()
OUTPUT:
43
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 5:
import numpy as np
x = np.array([2,9,8,5,6])
y = np.array([5,10,3,7,18])
plt.scatter(x, y)
plt.show()
OUTPUT:
44
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 6:
def reverse_string(str):
str1 = ""
for i in str:
str1 = i + str1
return str1
OUTPUT:
45
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 7:
import cv2
import numpy as np
img = cv2.imread(r'D:\LONDON.jpg', 0)
plt.imshow(img, cmap='gray')
plt.axis('off')
plt.show()
OUTPUT:
46
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 8:
else: greater = y
while True:
lcm = greater
break
greater += 1
num2))
OUTPUT:
47
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 9:
no_of_people_voted = [23, 45, 31, 40, 35] # Create the bar chart
plt.title('Bar Chart')
plt.xlabel('Area Covered')
plt.show()
OUTPUT:
48
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 10:
import numpy as np
fig= plt.figure()
ax=fig.add_axes([0,0,1,1])
ax.axis('equal')
data=[45,23,41,78,65]
ax.pie(data,autopct='%1.2f%%')
plt.show()
OUTPUT:
49
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 11:
Weight = [34,41,45,56,39]
Height = [4.5,5.2,4.1,3.5,5]
plt.title('Scatter plot')
plt.xlabel('Height')
plt.ylabel('Weight')
plt.show()
OUTPUT:
50
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 12:
import numpy as np
import statistics
a = np.array([95,90,49,71,80])
m = statistics.mean(a)
OUTPUT:
51
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 13:
import cv2
if img is None: print("Error: Image not found. Check the file path.")
else:
plt.imshow(img_rgb)
plt.axis('off')
plt.show()
OUTPUT:
52
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 14:
import cv2
import numpy as np
plt.axis('off')
OUTPUT:
53
ARTIFICIAL INTELLIGENT - CODE 417
PROGRAM 15:
import pandas as pd
df= pd.read_csv('D:/Data.csv')
print(df)
OUTPUT:
NAME CITY
0 AARAV DELHI
1 PRIYA MUMBAI
2 RAHUL BENGALURU
3 NEHA CHENNAI
4 ARJUN KOLKATA
5 SNEHA HYDERABAD
6 VIJAY PUNE
7 ROHIT AHMEDABAD
8 DEEPIKA SURAT
54