Professional Documents
Culture Documents
Introduction To Data Science Module 3
Introduction To Data Science Module 3
SCIENCE
MODULE 3
BY Safi Kasongo
ARTIFICIAL INTELLIGENCE AND MACHINE
LEARNING
Machine Learning is the field of study that gives computers the ability to
learn without being explicitly programmed.
Just like human being, ML enables computers learn how to do a given task
without being programmed to do so.
APPLICATIONS OF AI
• Agriculture
• Some of the ways that AI is being used in agriculture include:
• Crop yield improvement: Analyzing data on soil conditions, weather patterns, and crop
growth with AI models and tools could help to develop strategies that can improve crop yields
• Cost reduction: Automating tasks with AI, such as harvesting and irrigation, which can
reduce labor costs
• Environmental protection: Monitoring and managing natural resources, such as water and
soil
• Health and Medicine
the technology is helping medical practitioners in analyzing trends or flagging
events that may help in improved patient diagnoses and treatment. ML
algorithms even allow medical experts to predict the lifespan of a patient
suffering from a fatal disease with increasing accuracy.
• Retail
Retail websites extensively use machine learning to recommend items based
on users’ purchase history. Retailers use ML techniques to capture data,
analyze it, and deliver personalized shopping experiences to their customers.
They also implement ML for marketing campaigns, customer insights,
customer merchandise planning, and price optimization.
• Entertainment:AI is extensively used in entertainment platforms such as
YouTube, Netflix and Amazon Prime Video to provide personalised
recommendations to users. By analysing user preferences, browsing history,
and behaviour, AI algorithms can suggest movies, TV shows, music, books,
and other content that users are likely to enjoy.
• Fitness: Smartwatches and fitness trackers equipped with AI algorithms
can provide users with valuable insights into their health and fitness. They
can monitor heart rate, sleep patterns, and activity levels, allowing users to
make informed decisions about their lifestyle.
• Gymbuddy AI is a mobile app that uses artificial intelligence to create
personalized workout programs for users. The app aims to offer enjoyable
and effective workouts tailored to each user's fitness level and goals.
Types of Machine Learning
• Data gathering: This involves collecting relevant data for the task at hand. The data
can come from various sources like databases, surveys, sensor readings, or web
scraping.
• Data cleaning and pre-processing: Raw data often contains errors, inconsistencies,
or missing values. This stage involves cleaning the data, handling missing entries, and
ensuring it's in a format suitable for the machine learning algorithm.
2. Model Selection and Training:
• Model selection: Choosing the right machine learning algorithm depends
on the type of problem you're trying to solve. Common algorithms include
decision trees, linear regression, support vector machines, and neural
networks.
• Training the model: The prepared data is divided into two sets: training
data and testing data. The training data is used to "train" the machine
learning model. The algorithm learns by analyzing patterns and
relationships within the training data.
• 3. Model Evaluation and Tuning:
• Model testing: The trained model is evaluated using the testing data. This
helps assess how well the model performs on unseen data and identifies
potential areas for improvement.
• Model tuning: Based on the evaluation results, the model can be further
tuned by adjusting its parameters or even trying different algorithms. The
goal is to optimize the model's performance and accuracy.
• 4. Deployment and Monitoring:
• Deployment: Once a satisfactory level of performance is achieved, the
model can be deployed into production. This means integrating it into an
application or system where it can be used to make predictions or
classifications on new, real-world data.
• Monitoring and maintenance: The deployed model's performance should
be monitored over time. As new data becomes available, the model might
need to be retrained or updated to maintain its effectiveness.
Training machines to recognize pattern