DevOps.com

Where the world meets DevOps

  • Latest
    • Articles
    • Features
    • Most Read
    • News
    • News Releases
  • Topics
    • AI
    • Continuous Delivery
    • Continuous Testing
    • Cloud
    • Culture
    • DevSecOps
    • Enterprise DevOps
    • Leadership Suite
    • DevOps Practice
    • ROELBOB
    • DevOps Toolbox
    • IT as Code
  • DevOps Chats
  • Webinars
    • Upcoming
    • On-Demand Webinars
  • Library
  • Events
    • Virtual Summits
    • Conferences
  • Sponsored Communities
    • CloudBees
    • IT as Code
  • Related Sites
    • MediaOps
    • Container Journal
    • Security Boulevard
    • SweetCode.io
    • Digital Anarchist
    • DevOps TV on YouTube
    • DevOps Chat on SoundCloud
    • DevOps Connect
    • DevOps Dozen
  • Media Kit
  • Follow Us
    • Twitter
    • Google News
    • LinkedIn
    • Facebook
    • DevOps TV on YouTube
    • Email
MENUMENU
  • AI
    • Pitfalls to Avoid While Building Out Your AI Tools

      6 Common Pitfalls to Avoid While Building Out Your AI Tools

      Better CX with AIOps

      Build Better CX Across the Entire User Journey with AIOps

      Putting Customer Communication at the Core of New Apps

      Putting Customer Communication at the Core of New Apps

      AIoT and Intelligence on the Edge

      AIoT and Intelligence on the Edge

      Threading the Needle on Kubernetes Complexity with AI-Powered Observability

      Threading the Needle on Kubernetes Complexity with AI-Powered Observability

  • Cloud
    • Data fabric_developers

      Data: The Fabric of Developers’ Lives

      Multi-Cloud Cost Optimization

      Multi-Cloud Cost Optimization For The Enterprise

      Self-Service Portal From env0 Reins in Public Cloud Costs

      Self-Service Portal From env0 Reins in Public Cloud Costs

      Data Self-Service Program

      How to Implement a Data Self-Service Program

      JFrog DevOps

      JFrog Makes Free DevOps Resources Available for COVID-19 Projects

  • Continuous Delivery
    • SDM’s Holistic Approach

      How SDM’s Holistic Approach Connects Organizations and Streamlines Delivery Processes

      CD Foundation

      CD Foundation Serves Up Tekton Pipelines Beta

      GitLab Features - Core Open Source Platform

      GitLab Shifts 18 Features Into Core Open Source Platform

      CircleCI DevOps

      CircleCI Surfaces More DevOps Insights

      SignalFX

      OverOps Allies With SonarQube To Improve Application Quality

  • Continuous Testing
    • Shift-Right Testing - TestOps

      Shift-Right Testing: The Emergence of TestOps

      What Developers Should Take Away from the Iowa Caucus App Debacle

      What Developers Should Take Away from the Iowa Caucus App Debacle

      survey testing

      Survey Sees Little Progress in Drive to Shift Testing Left

      DevOps Software Testing

      DevOps Places Software Testing in the Crosshairs

      testing

      DevOps Chats: Enterprise Continuous Testing With a Shift-Right Mindset

  • DevSecOps
    • Enterprise Inertia Slowing Down DevSecOps

      Enterprise Inertia Slowing Down DevSecOps Integration

      Top iOS Security

      Top iOS Security Gotchas

      ClickShare Vulnerabilities

      ClickShare Vulnerabilities May Have Been Patched, But They Mask a Much Bigger Problem

      2020 DevSecOps Community Survey: Of 5,045 Developers, Guess How Many Are Happy?

      2020 DevSecOps Community Survey: Of 5,045 Developers, Guess How Many Are Happy?

      vault

      HashiCorp Strengthens Vault Secrets Management

  • Leadership Suite
    • IT budgets

      Despite Downturn, Enterprise IT Budgets Remain Intact

      Employment in the Age of Automation

      Metropolis Now: The Two Worlds of Employment in the Age of Automation

      Digital Resiliency Wins

      The Way Forward: Digital Resiliency Wins

      Software delivery metrics

      Is It Time to End the Software Metric Madness?

      DevOps Institute

      DevOps Institute Cert Exams Now Available for Open Testing

  • Practices
    • Pitfalls to Avoid While Building Out Your AI Tools

      6 Common Pitfalls to Avoid While Building Out Your AI Tools

      DevOps_Value of Organizational Data

      3 Ways DevOps Can Increase the Value of Organizational Data

      Software Testing

      Software Testing: The Comeback Kid of the 2020s

      SDM’s Holistic Approach

      How SDM’s Holistic Approach Connects Organizations and Streamlines Delivery Processes

      Data fabric_developers

      Data: The Fabric of Developers’ Lives

  • ROELBOB
    • system-configuration

      System Configuration

      role-of-bots

      The Role of Bots

      excuses

      Root Cause

      archived

      Archived

      scales

      Scales

  • Toolbox
    • Pulumi

      Pulumi Tightens DevOps Platform Integration

      GitHub private repositories

      GitHub Makes Private Repositories Free for Unlimited Users

      GitLab GitHub

      GitLab Responds To GitHub Making Teams Free – We All Win

      Copado

      Copado Launches DevOps COVID-19 Initiative

      CircleCI DevOps

      CircleCI Surfaces More DevOps Insights

  • IT as Code
  • More Topics
    • Application Performance Management/Monitoring
    • Culture
    • Enterprise DevOps

Home » Blogs » AI » 6 Common Pitfalls to Avoid While Building Out Your AI Tools

Pitfalls to Avoid While Building Out Your AI Tools

6 Common Pitfalls to Avoid While Building Out Your AI Tools

Ramprakash RamamoorthyBy Ramprakash Ramamoorthy on April 24, 2020 1 Comment

Enterprise-level companies, with thousands of employees across the globe, can have their AI framework replicated by B2B companies of nearly any size. In fact, even without access to a ton of proprietary data and immense computational power, you can build out effective AI tools.

Related Posts
  • Building Your Data Science Team from Within
  • The Barriers to Robotic Process Automation, Part 2
  • Impact of Visual AI on Test Automation Shows 5.8x Faster Authoring, 5.9x Better Test Code Efficiency, and a 4.6x Increase in Test Stability
    Related Categories
  • AI
  • Blogs
  • DevOps Practice
    Related Topics
  • ai
  • AI tools
  • artificial intelligence
  • data leakage
  • personal data
Show more
Show less

To begin with, you can introduce publicly available datasets from movie review websites, e-commerce review sites and elsewhere to train your system. When doing so, be sure to double check the license details of such publicly available corpuses, as some will not allow commercial usage. Then, during the preprocessing stage—after removing swear words, jargon and other irrelevant elements from your corpus—you can add noise and slightly alter your existing data to create even more relevant data points in your corpus. 

After this, you can build a semi-supervised learning algorithm through techniques such as tri-training. In tri-training, we essentially train three different neural networks over binary classification data. Once two models agree with one another, the data is introduced to the third network and then re-trained until all three models are in agreement. However, before your AI tools are up and running, it’s important to be mindful of the following common pitfalls.  

Overfitting AI Models

It may seem counterintuitive, but you really do not want your AI model to be too accurate. If your cross validation score is anything above 100, then you might need to reconsider deploying the model, since it might be prone to overfitting. If your training data is overfit, one small change can render the entire model useless. Your model should be accurate. However, it cannot be too accurate, as it needs to be adaptive. 

Class Imbalance

When training your AI tools, it sometimes makes sense to include a disproportionate amount of your target variable. For example, perhaps you’re training your computer vision AI tool to recognize planks of wood in a warehouse. Even if planks of wood only account for 1% of your total inventory, you’ll want to oversample the minority class. In this case, you’ll likely want 60% of your sample to be planks of woods. You really want to amplify this number to ensure you have the right class balance. 

Data Leakage

Another common misstep is the failure to capture data leakage, which can occur in any number of ways. A common instance occurs when an element used to test the model slips into the training data. This generally causes your model to appear to be performing well. However, its predictions might not be as good when deployed in production. To rectify this, it is vital that you keep track of any changes to your AI tools. In addition to your organization’s code reviews and configuration change reviews, you should have data set reviews to ensure your AI engineering is being done properly. Any parameter change within your AI tools needs to be fastidiously documented. 

Concept Drift

All AI tools are dependent upon the shape of the data that comes into your system. For example, perhaps your AI model was trained for response times being between 1-100 seconds, and all of a sudden the response times are between 1-1,000 seconds. In this case, your model will likely fail to capture the new data points. It’s important to be aware of such an occurrence, so that you can retrain your model accordingly. 

There are many techniques that can be used to identify instances of concept drift. Rather than waiting for feedback from your customers, you can set up anomaly detection in a way that it identifies concept drift on incoming data and automatically updates your AI model.

Using Personal Data

With the CCPA and GDPR in place and a federally mandated U.S. data privacy law on the horizon, organizations are wary of using their customers’ data to train their AI tools. It’s prudent to train your AI system with anonymized data; this way, you won’t set yourself up for problems down the road. 

Failing to Ensure All Your AI Decisions Are Explainable

Most AI-enabled decisions are enacted upon by teams rather than individuals. Hence, it’s vital that your AI model’s recommended courses of action come with explanations. Additionally, these explanations should have confidence intervals, making it easier to interpret results. 

During root cause analysis and remediation, it’s often unclear which team is ultimately responsible for the issue at hand. If the AI’s suggested course of action comes with an explanation, this helps immensely during the remediation process. For example, if the starter event is a network build-up, the issue likely lies with the engineering team. Alternatively, if the starter event is a network configuration change, the network team is the likely culprit. By closely monitoring your AI tools’ performance and ensuring that all AI decisions are explainable, you can quickly solve issues and course correct.

Filed Under: AI, Blogs, DevOps Practice Tagged With: ai, AI tools, artificial intelligence, data leakage, personal data

  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • More
  • Click to share on Pinterest (Opens in new window)
  • Click to share on Tumblr (Opens in new window)

Like this:

Like Loading...
Sponsored Content
Featured eBook
The State of Open Source Vulnerabilities 2020

The State of Open Source Vulnerabilities 2020

Open source components have become an integral part of today’s software applications — it’s impossible to keep up with the hectic pace of release cycles without them. As open source usage continues to grow, so does the number of eyes focused on open source security research, resulting in a record-breaking ... Read More
« 3 Ways DevOps Can Increase the Value of Organizational Data
IBM Boosts Security and Productivity with Red Hat OpenShift 4.3 on IBM Cloud »

TechStrong TV – Live Streaming

TechStrong TV - All Episodes

Top Stories of the Week

  • View DevOps.com Privacy Policy

Upcoming Webinars

Mon 27

An Open Source DevSecOps Platform for Securing Code & Dependencies

Mon, April 27, 1:00 pm - 2:00 pm EDT
Tue 28

Breakthrough DevOps – Successful DevOps Adoption Strategies

Tue, April 28, 8:00 am - 9:00 am EDT
Tue 28

Effective Cost Management for Azure Databricks

Tue, April 28, 1:00 pm - 2:00 pm EDT

More Webinars

Past Webinars

Latest from DevOps.com

GigaSpaces Embraces Kubernetes Alternative for DataOps
April 24, 2020 | Mike Vizard
6 Common Pitfalls to Avoid While Building Out Your AI Tools
April 24, 2020 | Ramprakash Ramamoorthy
3 Ways DevOps Can Increase the Value of Organizational Data
April 24, 2020 | Aaron Williams
Software Testing: The Comeback Kid of the 2020s
April 24, 2020 | Wolfgang Platz
System Configuration
April 24, 2020 | ROELBOB

Most Read on DevOps.com

Metropolis Now: The Two Worlds of Employment in the Age of A...
April 21, 2020 | Bob Reselman
Open Source Vulnerabilities Were Up 50% in 2019 — How Will I...
April 20, 2020 | Jeffrey Martin
DevOps Deeper Dive: Git Turns 15
April 20, 2020 | Mike Vizard
Five Attributes of a Great DevOps Platform
April 21, 2020 | Pavan Belagatti
Accelerating IoT by Switching Gears to 5G
April 20, 2020 | Sridhar Asvathanarayanan

On-Demand Webinars

DevOps.com Webinar ReplaysDevOps.com Webinar Replays