# Data Augmentation is decreasing my accuracy?

**URL:** <https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395>\
**Category:** Convolutional Neural Networks\
**Tags:** week-module-2, coursera-platform\
**Created:** [March 14, 2025, 7:40pm UTC](https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395 "2025-03-14T19:40:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![shreyas\_yesade](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@shreyas\_yesade](https://community.deeplearning.ai/u/shreyas_yesade)\
**Post date:** [March 14, 2025, 7:40pm UTC](https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395/1 "2025-03-14T19:40:08Z")

</div>

In the transfer learning programming exercise i was playing around when i found out that instead of using data augmentation on dataset and directly passing the dataset to preprocessing of mobileNetV2 is actually increasing my accuracy in contrast using data augmentation is decreasing my accuracy. why is it happening?

without data augmentation -

 ![Screenshot 2025-03-15 010600](https://global.discourse-cdn.com/dlai/original/3X/3/7/37aa91c11e3eba6f794a2b3c99b7af479f1c69f9.png)

with data augmentation -

 ![Screenshot 2025-03-15 010758](https://global.discourse-cdn.com/dlai/original/3X/3/c/3c1902748d6c13b8797f6af31debd6566c645817.png)

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [March 14, 2025, 8:27pm UTC](https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395/2 "2025-03-14T20:27:53Z")

</div>

Perhaps your accuracy is decreasing because your model does not fit the more complicated dataset as well.

Essentially, the un-augmented data may have caused overfitting.

---

<div class="post-metadata">

**Author:** ![shreyas\_yesade](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@shreyas\_yesade](https://community.deeplearning.ai/u/shreyas_yesade)\
**Post date:** [March 14, 2025, 8:35pm UTC](https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395/3 "2025-03-14T20:35:04Z")

</div>

but the difference between train and validation loss & accuracy is ~2%, can that be considered overfitting ?

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [March 14, 2025, 8:55pm UTC](https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395/4 "2025-03-14T20:55:33Z")

</div>

Perhaps not.

But a more complex data set (i.e. one that you’ve augmented) may require a more complex model.

---

<div class="post-metadata">

**Author:** ![Prashant\_Upadhyaya](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/prashant_upadhyaya/32/165584_2.png) [@Prashant\_Upadhyaya](https://community.deeplearning.ai/u/Prashant_Upadhyaya)\
**Post date:** [March 14, 2025, 9:24pm UTC](https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395/5 "2025-03-14T21:24:40Z")

</div>

@shreyas_yesade as already explained by the @TMosh  
**There can be several factors :**

1. When we apply data augmentation the data distribution of the images is changed (i.e., we use random rotations, brightness changes, and flips etc), therefore making it harder for the model to learn meaningful patterns. This may be one of the reason for getting the lower accuracy.
2. Since you are using the transfer learning approach the model already has learned useful features from ImageNet, and additional variations may introduce noise rather than meaningful diversity.

Now, a very important point, Since you were doing some sort of experiments with and without data augmentation and you were expecting the accuracy was droping unexpectedly, then you should try clearing the Cache.  
3. **So, clearing the cache is a good troubleshooting step.**

If the result remain the same then you have to examine with the dataset that how you’ve augmented it. 🫠

---

<div class="post-metadata">

**Author:** ![TMosh](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/tmosh/32/9321_2.png) [@TMosh](https://community.deeplearning.ai/u/TMosh)\
**Post date:** [March 14, 2025, 11:31pm UTC](https://community.deeplearning.ai/t/data-augmentation-is-decreasing-my-accuracy/785395/6 "2025-03-14T23:31:37Z")

</div>

That is an excellent point by @Prashant_Upadhyaya.

Any time you modify code that affects either the model or the dataset, you must restart the kernel and re-run all of the cells.
