Chapter 1 Introduction
Chapter 1 Introduction
Introduction
Non-AI vs AI products
Without AI:
Although the code on these IoT devices is becoming smarter with every
upgrade, the devices are not exactly learning autonomously
Advancement in AI will help solve this problem, and soon we will have devices
that will learn from the input of their human creators, as well as from their own
mistakes
→ Today we are surrounded by code, and in the near future, we will be
surrounded by embedded artificially intelligent agents.
No one-size-fits-all solution
https://www.youtube.com/watch?v=EcpTRU4GiuY
- Deep learning model to identify and pick the correct devices from a bin
- Consistent 90% accuracy
How Facebook fight against fake news
https://about.fb.com/news/2018/05/hard-questions-false-news/
https://www.facebook.com/MetaforDevelopers/videos/10155608056828553/
https://about.fb.com/news/2017/12/managing-your-identity-on-facebook-with-face-
recognition-technology/
Discussion
The journey to adopt AI promises to bring major changes to the way your
organization thinks and approaches its future
The plan for achieving this goal can vary from organization to organization, but the
main steps invariably remain the same
An overview of the AI roadmap in business
Defining the
Ideation Data curation Prototyping Production
project
What problem are you Outline specifically Which data is Build an initial version Complete your
trying to solve? which improvements necessary for this of your system prototype and put it in
How do you believe you plan to attain. problem? Improve it time by time action
your organization will Make a project plan as How to obtain the Adjust your approach if Perform technological
be able to benefit from a guiding document data? any problem arises evaluation
AI? for the implementation How to improve the See with actual results, Build user security
What AI technologies of your project. data quality? whether the plan you models
are available to solve defined in the previous Establish testing
these problems? steps have promise framework to ensure
the system works well
Thriving with an AI lifecycle
Maintain your AI system while consistently looking for ways to make it better
Save your experience gained during the implementation of your first AI system for
future projects
Materials
FaceID in iPhone could not recognize you when you wear a facemask. It’s very
inconvenient when you are on the road
Imagine you run a Facebook page of a student club, you post your club activity
news everyday and many students comment on those posts. You don’t want the
hate/profanity speech to be appeared.
The human brain loves a challenge, but only if it is within an optimal zone of
difficulty.
The Goldilocks Rule states that humans experience peak motivation when
working on tasks that are right on the edge of their current abilities. Not too hard.
Not too easy.
Attendance: 10%
1. AI definition
2. AI capabilities
3. Machine learning basis
4. Machine learning algorithms
5. Deep learning
6. AI ethic
AI definition
● Task T:
○ Classification: predict a discrete value / category / class of objects, e.g.:
■ predict a person is positive/negative to Covid-19
■ predict a movie is Romantic/Action/Horror
■ predict a word is Verb/Noun/Adjective
○ Regression: predict a continuous value, e.g.:
■ predict the price of an apartment
■ predict the age of a person
■ predict the stock price
○ Clustering: group data samples into clusters to discover/understand them
○ Others: recommendation systems (Amazon, Youtube,...), generation (translation,
summarization,...)
Machine learning
● Performance measure P
○ The idea of Turing test
○ Regression: MAE, MSE, AUC, ROC
○ Classification: Accuracy, Precision, Recall, F1-score, Confusion matrix
○ Train/test split, k-fold cross validation
○ Underfit, overfit, normal fit
Machine learning algorithms
● Supervised learning:
○ Linear regression
○ K nearest neighbor
○ Decision trees
○ Naive Bayes
● Unsupervised learning:
○ K-means clustering
Deep learning
A subset of Machine learning that use neural networks with hidden layers
Deep learning vs. traditional Machine learning
Useful tool: