×
1 Choose EITC/EITCA Certificates
2 Learn and take online exams
3 Get your IT skills certified

Confirm your IT skills and competencies under the European IT Certification framework from anywhere in the world fully online.

EITCA Academy

Digital skills attestation standard by the European IT Certification Institute aiming to support Digital Society development

LOG IN TO YOUR ACCOUNT

CREATE AN ACCOUNT FORGOT YOUR PASSWORD?

FORGOT YOUR PASSWORD?

AAH, WAIT, I REMEMBER NOW!

CREATE AN ACCOUNT

ALREADY HAVE AN ACCOUNT?
EUROPEAN INFORMATION TECHNOLOGIES CERTIFICATION ACADEMY - ATTESTING YOUR PROFESSIONAL DIGITAL SKILLS
  • SIGN UP
  • LOGIN
  • INFO

EITCA Academy

EITCA Academy

The European Information Technologies Certification Institute - EITCI ASBL

Certification Provider

EITCI Institute ASBL

Brussels, European Union

Governing European IT Certification (EITC) framework in support of the IT professionalism and Digital Society

  • CERTIFICATES
    • EITCA ACADEMIES
      • EITCA ACADEMIES CATALOGUE<
      • EITCA/CG COMPUTER GRAPHICS
      • EITCA/IS INFORMATION SECURITY
      • EITCA/BI BUSINESS INFORMATION
      • EITCA/KC KEY COMPETENCIES
      • EITCA/EG E-GOVERNMENT
      • EITCA/WD WEB DEVELOPMENT
      • EITCA/AI ARTIFICIAL INTELLIGENCE
    • EITC CERTIFICATES
      • EITC CERTIFICATES CATALOGUE<
      • COMPUTER GRAPHICS CERTIFICATES
      • WEB DESIGN CERTIFICATES
      • 3D DESIGN CERTIFICATES
      • OFFICE IT CERTIFICATES
      • BITCOIN BLOCKCHAIN CERTIFICATE
      • WORDPRESS CERTIFICATE
      • CLOUD PLATFORM CERTIFICATENEW
    • EITC CERTIFICATES
      • INTERNET CERTIFICATES
      • CRYPTOGRAPHY CERTIFICATES
      • BUSINESS IT CERTIFICATES
      • TELEWORK CERTIFICATES
      • PROGRAMMING CERTIFICATES
      • DIGITAL PORTRAIT CERTIFICATE
      • WEB DEVELOPMENT CERTIFICATES
      • DEEP LEARNING CERTIFICATESNEW
    • CERTIFICATES FOR
      • EU PUBLIC ADMINISTRATION
      • TEACHERS AND EDUCATORS
      • IT SECURITY PROFESSIONALS
      • GRAPHICS DESIGNERS & ARTISTS
      • BUSINESSMEN AND MANAGERS
      • BLOCKCHAIN DEVELOPERS
      • WEB DEVELOPERS
      • CLOUD AI EXPERTSNEW
  • FEATURED
  • SUBSIDY
  • HOW IT WORKS
  •   IT ID
  • ABOUT
  • CONTACT
  • MY ORDER
    Your current order is empty.
EITCIINSTITUTE
CERTIFIED

What is underfitting?

by George Tsolakis / Tuesday, 27 May 2025 / Published in Artificial Intelligence, EITC/AI/TFF TensorFlow Fundamentals, Introduction to TensorFlow, Basic computer vision with ML

Underfitting is a concept in machine learning and statistical modeling that describes a scenario where a model is too simple to capture the underlying structure or patterns present in the data. In the context of computer vision tasks using TensorFlow, underfitting emerges when a model, such as a neural network, fails to learn or represent important features from image data, resulting in poor predictive performance on both the training set and unseen data.

Definition and Characteristics

Underfitting occurs when a model is unable to attain a low error rate even on the training data. This typically happens when the model lacks sufficient complexity—either due to a limited number of parameters, insufficient training time, or excessive regularization. The hallmark of underfitting is consistently high error rates on both the training and validation or test datasets. Unlike overfitting, where the model memorizes the training data without generalizing well, underfitting signifies that the model does not even adequately model the training data.

Causes of Underfitting

Several factors can contribute to underfitting:

1. Model Simplicity: Using a model that is too simplistic for the problem at hand. For example, a linear regression model might be employed to fit data that exhibits clear nonlinear relationships. In the context of computer vision, attempting to classify images with a single-layer perceptron when the task requires recognition of complex patterns will result in underfitting.

2. Insufficient Training: If training is stopped prematurely—before the model has had a chance to learn the patterns in the data—underfitting can occur. This might happen when training is halted after only a few epochs, leading to suboptimal performance.

3. High Regularization: Techniques such as L1 or L2 regularization are used to prevent overfitting by penalizing large weights. However, if the regularization parameter is set too high, it may overly constrain the model, preventing it from learning even the basic structure of the data.

4. Inadequate Features: In machine learning, features are the variables used for prediction. If important features are omitted, or if the features provided are not descriptive enough, the model cannot learn the underlying relationships, leading to underfitting.

5. Low Model Capacity: In deep learning, model capacity refers to the ability of a network to approximate complex functions. Capacity is influenced by the number of layers (depth) and the number of units per layer (width). A shallow or narrow network might not be sufficient for tasks such as image classification in computer vision, especially when the dataset involves complex structures.

Implications in Computer Vision with TensorFlow

In computer vision, models are typically tasked with understanding and interpreting visual information, such as images or videos. Datasets in this domain, such as MNIST (handwritten digits), CIFAR-10 (object classes), or ImageNet (large-scale object categories), contain intricate and high-dimensional data. Using TensorFlow, practitioners design neural networks to identify patterns—edges, shapes, textures, or objects.

If a neural network is underfitting, it may fail to recognize even basic shapes or textures in images. For instance, when training a convolutional neural network (CNN) on the MNIST dataset, if a simple logistic regression model (which is linear) is used, the model will not be able to capture the nuances of handwritten digits, manifesting as high error rates across the board.

Detecting Underfitting

The process of identifying underfitting involves monitoring the model's performance metrics during training and validation. Typical indicators include:

– High training loss: The model does not perform well even on the data it was trained on.
– High validation/test loss: The poor performance extends to data the model has not seen.
– Accuracy metrics stagnate at low values: The accuracy fails to improve with continued training.
– Similar loss/accuracy values for both training and validation sets: This suggests that the model is not overfitting (memorizing the data), but rather is unable to capture fundamental patterns.

Examples of Underfitting

1. Image Classification with Insufficient Model Depth: Suppose a simple neural network with only one hidden layer and very few neurons is trained to classify CIFAR-10 images, which consist of 32×32 pixel color images across 10 categories. Such a network lacks the capacity to learn the hierarchical and spatial features necessary for accurate classification. Both training and test accuracy will remain low, reflecting underfitting.

2. Handwritten Digit Recognition with Linear Models: Attempting to use linear regression to classify the MNIST dataset will result in poor performance, as the relationships between pixel values and digit classes are highly nonlinear.

3. Over-regularized Convolutional Neural Network: Training a CNN with very high values for L2 regularization (weight decay) may suppress the learning of meaningful features. The weights will be driven towards zero, limiting the model's expressiveness, and resulting in high loss values during both training and evaluation.

Mitigating Underfitting

When underfitting is detected, several strategies can be employed to address the issue:

– Increase Model Complexity: Augment the number of layers or neurons in the network. For computer vision, deeper CNN architectures such as VGG, ResNet, or Inception are often more suitable for complex image tasks.
– Reduce Regularization: Lower the strength of regularization parameters, allowing the model more freedom to learn from the data.
– Feature Engineering: In traditional machine learning, providing more informative features can be beneficial. In deep learning, employing advanced architectures that automatically extract features can help.
– Extend Training Time: Allow the model to train for more epochs, ensuring it has enough opportunity to learn patterns in the data.
– Data Augmentation: Increase the diversity and size of the training data through augmentation techniques such as rotation, flipping, scaling, or cropping. While this primarily helps with generalization, sometimes a richer dataset can assist a model in learning more effectively.

Contrast with Overfitting

It is useful to distinguish underfitting from overfitting. Underfitting, as described, is characterized by poor performance on both the training and validation sets due to the model's limited capacity. Overfitting, on the other hand, occurs when the model performs very well on the training data but poorly on new, unseen data due to memorizing noise or irrelevant details. The goal in machine learning is to achieve a balance—sufficiently capturing the complexity of the data without succumbing to noise.

TensorFlow Implementation Perspective

When utilizing TensorFlow for image classification or other computer vision tasks, underfitting can be observed during the training process by plotting training and validation loss curves. For example, using TensorFlow's Keras API, one can monitor the 'loss' and 'accuracy' metrics for both the training and validation sets at each epoch. If both curves plateau at high loss levels and low accuracy, underfitting is likely present.

Consider the following code snippet, which illustrates a typical training loop in TensorFlow:

python
import tensorflow as tf
from tensorflow.keras import layers, models

# Simple model for MNIST
model = models.Sequential([
    layers.Flatten(input_shape=(28, 28)),
    layers.Dense(10, activation='softmax')
])

model.compile(optimizer='adam',
              loss='sparse_categorical_crossentropy',
              metrics=['accuracy'])

history = model.fit(train_images, train_labels, epochs=5,
                    validation_data=(test_images, test_labels))

In this example, the model consists only of an input layer and an output layer—essentially a logistic regression. For a task like MNIST, such a model may underfit, especially if the dataset was more complex or noisy. The 'history' object can be used to plot the loss and accuracy:

python
import matplotlib.pyplot as plt

plt.plot(history.history['loss'], label='Training Loss')
plt.plot(history.history['val_loss'], label='Validation Loss')
plt.legend()
plt.show()

If the plot reveals both losses remain high without improvement, it indicates underfitting.

Further Considerations

Underfitting is not exclusive to neural networks. It can occur in any machine learning method, including decision trees, support vector machines, or ensemble methods. The phenomenon is particularly relevant in computer vision due to the high dimensionality and complexity of image data. Ensuring the model architecture is appropriate for the task, selecting suitable hyperparameters, and providing sufficient and informative data are all necessary steps in mitigating underfitting.

It is also worth noting that sometimes apparent underfitting can be due to issues such as data preprocessing errors, mislabeled data, or inadequate optimization. Ensuring data integrity and proper preprocessing (such as normalization of pixel values in images) is a prerequisite for effective model training.

Summary Paragraph

Underfitting represents a fundamental challenge in machine learning and computer vision, particularly when using frameworks such as TensorFlow. By understanding its causes, identifying its symptoms, and applying appropriate remedies, practitioners can design models that effectively capture the underlying structure of visual data, leading to improved performance and more reliable predictions.

Other recent questions and answers regarding Basic computer vision with ML:

  • In the example keras.layer.Dense(128, activation=tf.nn.relu) is it possible that we overfit the model if we use the number 784 (28*28)?
  • How to determine the number of images used for training an AI vision model?
  • When training an AI vision model is it necessary to use a different set of images for each training epoch?
  • Why do we need convolutional neural networks (CNNs) to handle more complex scenarios in image recognition?
  • How does the activation function "relu" filter out values in a neural network?
  • What is the role of the optimizer function and the loss function in machine learning?
  • How does the input layer of the neural network in computer vision with ML match the size of the images in the Fashion MNIST dataset?
  • What is the purpose of using the Fashion MNIST dataset in training a computer to recognize objects?

More questions and answers:

  • Field: Artificial Intelligence
  • Programme: EITC/AI/TFF TensorFlow Fundamentals (go to the certification programme)
  • Lesson: Introduction to TensorFlow (go to related lesson)
  • Topic: Basic computer vision with ML (go to related topic)
Tagged under: Artificial Intelligence, Computer Vision, Deep Learning, Machine Learning, TensorFlow, Underfitting
Home » Artificial Intelligence » EITC/AI/TFF TensorFlow Fundamentals » Introduction to TensorFlow » Basic computer vision with ML » » What is underfitting?

Certification Center

USER MENU

  • My Account

CERTIFICATE CATEGORY

  • EITC Certification (117)
  • EITCA Certification (9)

What are you looking for?

  • Introduction
  • How it works?
  • EITCA Academies
  • EITCI DSJC Subsidy
  • Full EITC catalogue
  • Your order
  • Featured
  •   IT ID
  • EITCA reviews (Medium publ.)
  • About
  • Contact

EITCA Academy is a part of the European IT Certification framework

The European IT Certification framework has been established in 2008 as a Europe based and vendor independent standard in widely accessible online certification of digital skills and competencies in many areas of professional digital specializations. The EITC framework is governed by the European IT Certification Institute (EITCI), a non-profit certification authority supporting information society growth and bridging the digital skills gap in the EU.
Eligibility for EITCA Academy 90% EITCI DSJC Subsidy support
90% of EITCA Academy fees subsidized in enrolment

    EITCA Academy Secretary Office

    European IT Certification Institute ASBL
    Brussels, Belgium, European Union

    EITC / EITCA Certification Framework Operator
    Governing European IT Certification Standard
    Access contact form or call +32 25887351

    Follow EITCI on X
    Visit EITCA Academy on Facebook
    Engage with EITCA Academy on LinkedIn
    Check out EITCI and EITCA videos on YouTube

    Funded by the European Union

    Funded by the European Regional Development Fund (ERDF) and the European Social Fund (ESF) in series of projects since 2007, currently governed by the European IT Certification Institute (EITCI) since 2008

    Information Security Policy | DSRRM and GDPR Policy | Data Protection Policy | Record of Processing Activities | HSE Policy | Anti-Corruption Policy | Modern Slavery Policy

    Automatically translate to your language

    Terms and Conditions | Privacy Policy
    EITCA Academy
    • EITCA Academy on social media
    EITCA Academy


    © 2008-2026  European IT Certification Institute
    Brussels, Belgium, European Union

    TOP

    We care about your privacy

    EITCI uses cookies and similar technologies to keep this site secure, remember your choices, provide personalized experience, measure the traffic, serve more relevant content and certification programmes. You can accept all cookies or customize your preferences. Cookies are variables used to store website specific information on your device to facilitate processing of data for personalized website visit, such as login to your account, accessing the programmes, placing enrolment orders in chosen programmes and improving your EITC certification journey. You can change or withdraw your consent at any time by clicking the Consent Preferences button at the left-bottom of your screen. We respect your choices and are committed to providing you with a transparent and secure browsing experience, which may be limited when cookies aren't accepted. For more details refer to the Privacy Policy
    Customize Consent Preferences
    We use cookies to help you navigate efficiently and perform certain functions. You will find detailed information about all cookies under each consent category below.
    The cookies categorized as Necessary are stored on your browser as they are essential for enabling the basic functionalities of the site.
    To learn more about how Google processes personal information, visit: Google privacy policy

    Necessary

    Always Active

    Necessary cookies are required to enable the basic features of this site, such as providing secure log-in or adjusting your consent preferences. These cookies do not store any personally identifiable data.

    Functional

    Functional cookies help perform certain functionalities like sharing the content of the website on social media platforms, collecting feedback, and other third-party features.

    Preferences

    Stores personalization choices such as interface preferences.

    External media and social features

    Allows embedded video, social, chat, and external interactive services that may set their own cookies. Keep off until the user chooses these features.

    Analytics

    Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

    Marketing and conversions

    Advertisement cookies are used to provide visitors with customized advertisements based on the pages you visited previously and to analyze the effectiveness of the ad campaigns.

    CHAT WITH SUPPORT
    Do you have any questions?
    Attach files with the paperclip or paste screenshots into the message box (Ctrl+V). Max 5 file(s), 10 MB each.
    We will reply here and by email. Your conversation is tracked with a support token.