Mock Deep Testing: Toward Separate Development of Data and Models for Deep Learning

This technology enables automated, independent testing of deep learning data and models using configurable mock models and synthetic data, quickly diagnosing and fixing issues in data preparation, model design, and training—improving reliability and efficiency in AI development workflows.


 

2025-048 Innovation Gateway Image

The Problem

Despite the importance of rigorous testing, current approaches to quality assurance in DL workflows are fraught with challenges. Traditional integrated testing methods often conflate issues arising from data preparation with those stemming from model design, making it difficult to pinpoint the root cause of training failures or suboptimal performance. Bugs such as missing values, incorrect feature scaling, or architectural misconfigurations can manifest as similar symptoms—like non-convergence or erratic loss patterns—during model training. Furthermore, the lack of clear interfaces between data and model components hinders independent unit testing and slows down debugging. Existing tools are typically limited to either static code analysis or coarse-grained validation, offering little support for unit testing. As a result, developers frequently resort to resource-intensive ad-hoc experiments and end-to-end evaluation runs, which impede rapid iteration and increase the risk of undetected errors propagating into production systems.

The Solution

This technology provides an automated methodology for unit testing deep learning workflows by decoupling data preparation from model design using well-defined interfaces and mock objects. It introduces a rules-based decision matrix that configures lightweight mock models and generates synthetic mock data tailored to the specific problem type, such as regression or classification, and model architecture, such as fully-connected or convolutional neural networks. The system implements bidirectional testing: real preprocessed data is fed into mock models to isolate data quality issues, while synthetic mock data is used to test real models for architectural integrity and compatibility. Training behavior is closely monitored for anomalies like non-convergence or gradient problems, and the system produces detailed diagnostic reports highlighting the issues and recommending remediation actions.

The Opportunity

The methodology is implemented as a unit testing framework for Keras and is named KUnit, which integrates with Python’s unittest library and provides a comprehensive suite of assertions to detect a wide range of deep learning bugs.

Meet the Team

Ruchira Manke
Ruchira Manke
PhD Candidate

Headshot portrait of John Scott.
John Scott
Technology Commercialization

Associate Director, Office of Intellectual Property Management
 

Contact Us Today

Talk to a Tulane Innovation Institute Program Director to learn more and get connected to the inventor.

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
SCOTT CLARK, TULANE

C. Scott Clark, MBA

Venture Lab Program Director

cclark16@tulane.edu