Introduction To AI
Introduction To AI
Here are some of the capabilities you need to find your dog:
If you see any animals, you should be able to identify if it’s a dog
or not. If it’s a dog, you need to further identify if it’s your dog.
· If you don’t find him, then search in play area where you usually
go with your dog.
For example, if it’s raining, and you know that your dog does not
prefer to get wet, you will focus your search on shaded places.
· The moment you see a dog you will try to identify if it’s your dog
or not.
For example:
If we could do that, next time you lose your dog, your robot friend
might just find him using its artificial intelligence.
What is AI?
Artificial intelligence is when machines/computers mimic the
way humans think and make decisions.
Ever notice how Netflix suggests shows you might enjoy? Or how
Facebook’s suggested feed seems to know exactly what you want
to see — that’s AI at play!
Have you ever wondered how online stores suggest products you
might buy?
When your smartphone suggests the next word you want to type,
that’s AI predicting what you might say next.
Healthcare Diagnostics
Learning Style:
Memory Skills:
• AI: Remembers facts and figures but not with memories and
feelings. It’s a robot recalling programmed info rather
than cherishing a moment.
Feeling Emotions:
• AI: Knows what it’s learned but might miss tricky situations,
for example reading between the lines, understanding inside
jokes or cultural nuances.
• Humans: We understand everything — jokes, feelings, and
culture. Our brains is a complete packages that have a bit of
everything!
Types of AI
Artificial Intelligence is divided based on two main categorization
— based on capabilities and based on functionally of AI.
1. Narrow AI
• Self-driving cars
• Google search
• Conversational bots
Almost all the AI-based systems built till this date fall under
the category of Weak AI.
2. General AI
3. Super AI
Super AI:
1. Reactive Machines
2. Limited Memory
4. Self-Aware AI
Summary
With this first step, we’ve taken the first step on a journey to
understand Generative AI. We learnt what AI is and explored
its fundamental concepts. We learnt types of AI based on
different categories and also understood how AI is different from
human intelligence.
Step 2 - Understanding Machine Learning
1. Supervised learning
2. Unsupervised learning
3. Reinforcement learning.
Supervised Learning
Let’s take the same example where we enabled the robot to
identify an animal.
Image Classification
Speech Recognition
Unsupervised Learning
Let’s understand this from a kid’s school example. When kids go
to their class first day, they meet lots of classmates. At first all
classmates are same to them. But with time, they themselves
categorized them in different groups:
• And so on…
When kids categorized their classmates, nobody told them
how to do that. They did that without anyone’s help. — This is
how unsupervised learning works.
Recommendation Systems
Reinforcement Learning
Imagine teaching a dog a new trick — you reward it with a treat
when it does the trick correctly and give no treat when it
doesn’t. Over time, the dog learns to perform the trick to get
more treats.
• Just as you might train a dog with treats for learning tricks
In reinforcement learning, there’s an agent (for example a robot or
computer program) that interacts with an environment. Let’s take
an example of teaching a computer program to play a game, for
example chess.
Summary
Can the machine learn the way we human (human brain) learn
things? — This was the idea behind innovation of Deep Learning.
These neurons take in many inputs, from what we see and hear to
how we feel to everything in-between, and then send messages to
other neurons, which react in turn. Working neural networks are
what enable humans to think, and more importantly, learn.
Artificial Neural Network (ANN)
Artificial neural network is a computational network
designed based on biological neural networks in human brain.
Now, let’s attach this pipe thing to a water tap. The pipes, which
are of different-size, let the water move at different speeds. If we
close the switches, the water won’t move.
The first layer, called the Input Layer, represent the bottom slice
of bread. It takes in information.
The third layer, called the Output Layer, represent the top slice of
bread. It gives us the final result.
In a nutshell:
Input Layer
• This is where information goes into the artificial neural
network.
• It’s the starting point, where the network receives the data it
needs to work on.
Output Layer
Hidden Layers
Scoring Approach:
Here “Deep” means it has multiple layers between the input and
output, making it capable of learning complex patterns.
Subset of ML
Generative Models
Generative AI uses different types of machine learning models,
called Generative Models.
Video Generation
Generative models can be used to create whole videos from
scratch. It stitches together scenes, characters, and actions to
make a story. These videos can be used for entertainment,
advertisements, or even training simulations. Video game
development is one field which is heavily using generative AI.
Some generative models can be used to create new videos by
learning from existing videos. This can be used for video
prediction if an existing video such as security clip is damaged.
Voice Generation
Generative AI can also mimic voices or generate a whole new
voice! It can learn how people talk by analysing audio data, and
then generate voice in same style or create entirely new voices.
Healthcare Applications
Generative AI models can be used to generate synthetic data
samples that resemble real data. This can be very useful in
medical field, where sometimes collecting real-world data is
expensive or limited. For example, generative AI can be used to
generating synthetic patient data for research purposes.
Drug Discovery
Generative AI is being used in drug discovery to generate new
molecular structures with desired properties. This helps
accelerate the process of drug development by exploring vast
chemical spaces and identifying promising drug candidates.
Gaming
Generative AI has truly changed the world of gaming. It is
increasingly being used in the gaming industry to accelerate
game production and create unique experiences.
Art Generation
This is one major usage that distinguish generative AI from regular
AI. Generative AI has the capability of creative thinking like we
human do. Various generative models are used in generative
artistic artifacts such as paintings, poetries, stories, and other
multimedia-based arts.
Software Development
Generative AI has totally changed the way we write code and
build software. With Generative AI tools such as GitHub Copilot,
ChatGPT, AlphaCode, we can write code much faster with fine
details.
Generative AI tools can assist developers by generating code
snippets, enhancing software testing efficiency by identifying
more defects, and suggesting optimal solutions to coding
challenges. This results in faster development cycles and higher
code quality, ultimately leading to improved software products
and enhanced user experiences.
Finance
Financial institutions are using generative AI to analyse market
trends, forecast stock movements with a high accuracy rate, and
refine trading strategies. The technology also helps us having
better risk assessment, fraud detection, and portfolio
optimization, leading to increased efficiency, reduced costs,
more profitability and better investment choices.
ChatGPT
The free version of ChatGPT is based on GPT 3.5, while the more
advanced GPT-4 based version, is provided to paid subscribers
under the commercial name “ChatGPT Plus”.
AlphaCode
Bard
Microsoft Copilot
DALL-E
StyleGAN
The most unique and powerful point about large language models
is their ability to generate human-like text, summarize, and
predict content based on vast amounts of data. LLMs
can process and analyze vast amounts of text data, making them
highly proficient in language processing tasks such as text
generation, summarization, translation, and sentiment analysis.
Virtual Assistants
LLMs models are the engine that power virtual assistants for
example Siri, Alexa, or Google Assistant. It’s the LLM models that
analyze the human command and interpret the meaning out of it,
helping these virtual assistants to perform several actions on
user’s behalf.
Chatbots
ChatGPT is not a new word anymore. Most of us have used it or
similar AI conversational chatbots. These chatbots uses large
language models to understand human questions and response
in a way that mimic human-language.
Language Translation
Text Generation
Summarization
Sentiment Analysis
Content Recommendations
Large language models (LLMs) are being increasingly used by
platforms such as Netflix, YouTube, Amazon etc., for content
recommendations to provide users with more personalized and
relevant suggestions. These models capture the relationships
between words, phrases, and topics, allowing them to
understand the meaning and context of content. When it comes
to content recommendations, LLMs analyze a user’s interactions
with content, such as articles they’ve read, products they’ve
bought, or videos they’ve watched. Based on this data, LLMs can
predict what other content a user might be interested in and
suggest relevant options.
Introduction
Have you seen the movie I, Robot? If yes, you will immediately
understand the below image. For people who have not seen the
movie, let me brief it.
However, the real problem could be that you don’t know how
to ask the right question or how to give right set of commands.
• or commands
Let’s take one more example. Below image shows a prompt used
by DALL-E to generate an image — “An astronaut riding a horse in
photorealistic style.”
The more specific and detailed your prompt is, the better the
AI can understand what you want it to create.
What is Prompt Engineering?
Prompt engineering:
• in a strategic manner
To summarize:
Specificity
Contextualization
Fine-tuning
After getting the response, you might notice it’s too general or not
exactly what you wanted. This is where fine-tuning comes in. You
can adjust your prompt to give ChatGPT more guidance.
For example:
Sure, here are some examples of good and bad prompts you can
try with ChatGPT.
Provide Context
Use Examples
Include Constraints
There are some major principles involved in ethical AI. Let’s take
a look into them.
Fairness and Bias Mitigation
Plagiarism
Reverse Engineering
Deepfakes
Privacy Violations
Training Time
Generative AI models are trained on huge datasets, often
consisting of millions or even billions of examples. The training
process can take weeks or even months, depending on the
complexity of the model and the available computational
resources.
Hardware Requirements
Training and running generative AI models require substantial
computational resources. It includes high-performance CPUs or
GPUs, memories, and other hardware components. These
resources are often expensive to acquire and maintain. It’s one of
the reasons that only big organizations are able to build the
generative AI models who can afford huge cost and other
resources.
Energy Consumption
Training generative AI models consumes a significant amount of
energy. This also leads to environmental concerns, particularly
the carbon emissions.
Ethical Considerations and Challenges
This is probably the most critical challenge we are facing with
generative AI. Due to lack of regulations, there are many ways
generative AI can be misused. Copyright and data theft Issues,
plagiarism, distribution of harmful content, deepfakes, identity
theft are some of the major ethical concern we have.
Summary
With this final step, we have completed the . Hope you have a
crystal clear understanding of generative AI and all its related
concepts.