Nowadays, we are witnessing a resurgence of interest and progress in new technologies related to artificial intelligence, especially in the use of neural networks. We can observe their power in image classification and object recognition. At first glance, we might think that these neural networks are very powerful and infallible. This article aims to understand the challenges and impacts that adversarial examples can have.
However, with the rapid developments in artificial intelligence (AI) and deep learning (DL) techniques, it is essential to ensure the security and robustness of deployed algorithms. It would be legitimate to question and investigate the potential limitations and performance issues associated with their use.
What is an “adversarial example”?
An “adversarial example” is an example of an object capable of deceiving and fooling a neural network algorithm into believing it should be classified as a certain object when it is not.
An “adversarial example” is a set of correctly initialized data to which an imperceptible perturbation has been added by the neural network to induce incorrect classification.
When you ask a human to describe how they detect a panda in an image, they may look for physical features such as round ears, black eye patches, the snout, furry skin, and provide other information like the type of habitat where they expect to see a panda and the kind of poses it takes.
For an artificial neural network, as long as applying pixel values to the equation yields the correct answer, it is convinced that what it sees is indeed a panda. In other words, by altering the pixel values of the image in the right way, you can deceive the AI into thinking it doesn’t see a panda.
In the case of the adversarial example we will see in the rest of the article, AI researchers added a layer of noise to the image. This noise is barely perceptible to the human eye. However, when the new pixel values pass through the neural network, they produce the result of a gibbon, even though it’s actually a panda.
Adversarial examples make machine learning models vulnerable to attacks, as in the following scenarios:
1. A self-driving car collides with another car because it fails to recognize a stop sign.
– Someone placed an image on the stop sign that looks like a stop sign to humans but was designed to resemble a no-parking sign for the car’s sign recognition software.
2. A spam detector fails to classify an email as spam.
– The spam email was designed to look like a normal email, but with the intent to deceive the recipient.
3. An AI-powered scanner at the airport scans luggage for weapons.
– A knife was designed to evade detection by making the system believe it’s an umbrella.
4. An automated AI that doesn’t detect a disease (e.g., in radiology) when it actually corresponds to a serious illness.
Let’s now look at some concrete examples that have fooled neural networks.
In the example below, we can see that with a slight perturbation invisible to the naked eye, it was possible to deceive the neural network, which classified a picture of a dog as an ostrich.
Source: ICHI.PRO
Let’s take another example of image classification with pandas that a neural network correctly recognizes as a panda with a confidence rate of 57.7%.
If we add a carefully constructed perturbation, the same neural network now classifies the image as a gibbon with a confidence of 99.3%!
It’s clearly an optical illusion, but only for the neural network. We can confidently say that both of these images are indeed pandas. In fact, we can’t even perceive that a slight perturbation was added to the original image on the left to create the adversarial example on the right!
Source: arxiv
In the following example, you can see the impact this can have in everyday life on self-driving cars that misinterpret a traffic sign.
Source: arxiv
In the case above, the perturbation perceptible to the human eye was not detected by the neural network. The stop sign on the right above was classified as a 45 km/h speed limit sign. We can still see the challenges and limitations that neural networks can face in image classification.
Machine Learning Training
How are adversarial examples created?
It is crucial to understand the distinction between targeted and non-targeted attacks.
A non-targeted attack simply aims to induce misclassification, regardless of the specific category. The goal is solely to achieve an incorrect classification of the object by the neural network.
In contrast, a targeted attack intends to trigger a misclassification in a particular category. For example, a non-targeted attack on an image of a dog would seek to get a classification other than “dog” by the neural network. Conversely, a targeted attack on the same dog image would aim to classify the dog as an ostrich, but not as a cat, for example.
There are several methods to create adversarial examples, including those used in cyberattacks, such as data poisoning, Generative Adversarial Networks (GANs), and robot manipulation.
How can I protect myself against adversarial examples?
There are several ways to defend against adversarial examples, but it’s important to note that the fight against these attacks remains a rapidly evolving research area.
Adversarial training is one of the simplest and most natural defense methods. It involves putting oneself in the attacker’s shoes by generating adversarial examples against one’s own neural network and then training the model on these generated data. While this can help improve the model’s robustness, attackers can still find subtle perturbations to deceive the network.
Another defensive approach is defensive distillation. It entails creating a second model whose decision boundary is smoothed in directions susceptible to attack. This model acts as an additional filter to detect anomalies in inputs, making it more challenging for attackers to spot modifications that would lead to misclassification.
However, it’s important to note that research in this field is continually evolving. New attacks are regularly developed to circumvent new defenses, making the security of neural networks an ongoing challenge.
Conclusion
Adversarial examples highlight surprising vulnerabilities in many modern machine learning algorithms. These failures demonstrate that even simple algorithms can behave unexpectedly compared to the intentions of their designers. This is why Data Scientists are encouraged to engage in research and design methods to prevent adversarial examples, reducing the gap between designers’ intentions and the actual behavior of algorithms.
If you want to master the Deep Learning techniques discussed in this article, we invite you to inquire about our Data Scientist training program.
Become a Data Scientist
The newsletter of the future
Get a glimpse of the future straight to your inbox. Subscribe to discover tomorrow’s tech trends, exclusive tips, and offers just for our community.
Take your future into your own hands. Choose your desired start date, and begin your application by filling out the appointment form.
Bootcamp
Tuesday 5 May 2026
Analytics Engineer
Remote
English
Bootcamp
Tuesday 7 July 2026
Analytics Engineer
Remote
English
Bootcamp
Tuesday 8 September 2026
Analytics Engineer
Remote
English
Bootcamp
Tuesday 3 November 2026
Analytics Engineer
Remote
English
Upcoming starting dates
Take your future into your own hands. Choose your desired start date, and begin your application by filling out the appointment form.
No upcoming dates
THE TEaM
They won’t leave until you land your dream job and celebrate with you 🍾
Liora is more than a training. It’s a whole team walking forward with you, step by step, until you get hired. Mentors, coaches, instructors… all committed to your success.
Estelle
Career Associate
Vincent
Career Associate
Magali
Career Associate
Bilal
Career Associate
Kahina
Career Associate
THE SUPPORT
Support built for your success
Our structured support and expert training open real career opportunities in data, cyber, and tech.
Premium resources just for you
A private platform with exclusive insights on market shifts and career strategy.
A Slack space to log in, ask questions, and grow with fellow learners.
Stay updated with expert tips on trends, events, and career moves.
Individual career coaching, tailored for you
From day one, our Career Team supports you with personalized coaching. We help you:
Shape your career path around your goals and experience.
Find the right opportunities and fine-tune your job search strategy.
Get personalized advice to level up your job hunt.
High-impact career workshops
Our expert-led group sessions help you prepare for the job market: from polishing your CV and LinkedIn to nailing interviews, building a smart job search strategy, crafting your pitch, and building your network.
A strong network that opens doors
We connect you with recruiters through job fairs, speed-dating sessions, and curated industry events.
The impact of our support in numbers
52k€
Average gross salary of our alumni
Real proof that our programs lead to high-quality, high-paying jobs in data, tech, and AI.
9.53/10
Satisfaction for individual coaching
With 1000+ coachings delivered each year, our live support gives you direct access to industry experts to ask, unblock, and accelerate your job hunting process.
9.1/10
Satisfaction for group workshops
Hands-on sessions that help you improve your CV, LinkedIn, interview skills, and job search strategy.
71%
Employment rate
within 6 months of graduating a clear sign of how effective our training and career support really are.
70+
career-focused workshops every year
covering key topics like employability, networking, career transitions, and personal branding tailored to every learner.
4
recruitment fairs per year
Whether online or in person, these exclusive events create real connections between our talent and recruiters.
They benefited from our Career Support
Great Training Bootcamp! Thanks to the way Datascientest teaches and the constant support provided by the teachers, I was able to get the practical da…
James
I learned a lot in the program it is really an amazing platform to grow with your career and start with potential. I really felt helped and received a…
Rajini Sharma
I am really amazed by the human quality of the Hack A Boss team, Selene, Dmitry, Pablo and Daniel are amazing people who are willing to help and teach…
Simon Cariou
I recently finished my Bootcamp for Data Analyst and I am very happy with the knowledge I gained and experience it gave me. The modules were very clea…
Matea Mutz
I find this platform is the best because it's an intelligent way of learning in this era, just text content plus some needed short tutorial videos. al…
Ahmed
I am really amazed by the human quality of the Hack A Boss team, Selene, Dmitry, Pablo and Daniel are amazing people who are willing to help and teach…
Lautaro Martinez
Just finished training yesterday (3 + 2 days). Group interactivity was effective, the instructor was very responsive. His experience in business as co…
Stéphane Bourain
Finance Controller
I would like to share with you a great experience lived recently by following "Data Analyst Training". I have learnt lots of skills (Python, Data Anal…
Khalid
Very high-quality training. Thank you for the presentation. I strongly recommend this training provider. It covers nearly all the key aspects needed t…
Mohamed Haijoubi
Data Engineer
I completed a Data Engineer training program at DataScientest, and overall, the course is well-structured — a balanced mix of projects, theory, and …
Moustafa B
SRE Lead
Now certified and very satisfied with the Data Scientist training, I’ve decided to continue my journey with DataScientest by enrolling in the MLOps …
Alexandre L
An excellent training provider for Data-related careers. The courses are well-designed, and you’re quickly challenged through exams after each modul…
Rémy
The training offers a solid overview of various Machine Learning techniques, and access to a wealth of content — including coaching sessions, alumni…
Anonymous
The bootcamp program is really intensive, specially for a person who has no programming background, but the course is definitely worth it. It helped m…
Shiva
As part of my career transition, I pursued my DevOps training through a work-study program at DataScientest. I chose to follow both courses with DataS…
Nicolas Utter
Content Creator
Awesome education, awesome people.
Alexander P
I'm delighted to share my experience with this bootcamp! After completing my bachelor's degree, I was searching for a way to work with computers and d…
Dotun Olujide
A lot of things to learn and a lot of information! was an amazing experience.
Tiago R
I’d like to share my feedback following the high-quality training I completed on Microsoft Power BI, delivered by DataScientest. This experience was…
Anonymous
Excellent course with practical focus! Really enhanced my data science skills, directly applicable to my research. Highly recommend DataScientest for …
Lina Livdane
Overall impression is good. The course content is well-organized, thoroughly designed and challenging as well. In the end, I believe I am well-prepare…
Khoa Tran
I really enjoyed the course material and the fact that everything was remote. Well I haven’t finished the MLOps part yet. The data science part was …
Marius
Onboarding was smooth & lessons on your own & remote were particularly adequate to me
Clément Dué
Loved the format which was perfect for me – as a young parent. Additionally, I found the resources (platform) to be very good, and the instructors to …
Christian Müller
AI Scientist
I successfully completed my Data Analyst training last month and was very satisfied — within just six months, I was able to learn the key fundamenta…
Henry
Angelika Tabak
DataScientist.com is always interested in maintaining a good reputation and producing good graduates. But don’t be afraid, the instructors are very …
Baris Ersoy
PL/SQL Developer
I’m really glad I chose DataScientest. Balancing work, family, languages – and now data – learning is challenging, and their flexible format makes i…
Debora Ferreira
Probably the best Data & AI training course out there. Loved the structure, depth and hands-on approach of the Data Science & MLOps course. I …
Benjamin S.
Data Scientist
The content of the module undoubtedly covers the most important aspects of Machine Learning and MLOps. The final project allows you to put into practi…
Darwin Oca
As a seasoned software engineer with many years of experience, I was looking to refresh my IT skills and deepen my knowledge in data-related technolog…