1 of 21

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios

JUNE 2023

Carrie Gardner

Tyler Brooks

© 2023 Carnegie Mellon University

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

1

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

2 of 21

Document Markings

Copyright 2023 Carnegie Mellon University.

This material is based upon work funded and supported by the Department of Defense under Contract No. FA8702-15-D-0002 with Carnegie Mellon University for the operation of the Software Engineering Institute, a federally funded research and development center.

NO WARRANTY. THIS CARNEGIE MELLON UNIVERSITY AND SOFTWARE ENGINEERING INSTITUTE MATERIAL IS FURNISHED ON AN "AS-IS" BASIS. CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER EXPRESSED OR IMPLIED, AS TO ANY MATTER INCLUDING, BUT NOT LIMITED TO, WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY, OR RESULTS OBTAINED FROM USE OF THE MATERIAL. CARNEGIE MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

This material may be reproduced in its entirety, without modification, and freely distributed in written or electronic form without requesting formal permission. Permission is required for any other use. Requests for permission should be directed to the Software Engineering Institute at permission@sei.cmu.edu.

Carnegie Mellon® is registered in the U.S. Patent and Trademark Office by Carnegie Mellon University.

DM23-0567

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

2

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

3 of 21

Welcome

Carrie Gardner

SEI AI Division

Technical Manager – AI Mission Center

cgardner@sei.cmu.edu

Tyler Brooks

SEI AI Division

Software Developer

tdbrooks@sei.cmu.edu

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

3

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

4 of 21

The Software Engineering Institute (SEI) is a trusted advisor to the U.S. Government on AI

As a Federally Funded Research and Development Center (FFRDC), we are committed to conducting technical analyses and providing an objective perspective on urgent issues and to develop creative, cost-effective solutions.

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

4

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

5 of 21

Within the SEI AI Division, we translate the state of the possible for AI technology into the state of practice for AI engineering

AI Engineering Best Practices

Workforce Development

Counter / Adversarial AI

Next-Gen Hardware

Human-Machine Teaming

Prototype Development

Test & Evaluation

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

5

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

6 of 21

Guiding Themes of Well-Engineered AI Systems

Scalable

Accommodate the size, speed, and complexity of mission needs

  • Scalable management of data and models
  • Enterprise scalability of AI development and deployment
  • Scalable algorithms and infrastructure 

Robust and Secure

Operate reliably when faced with uncertainty or threat

  • Robustness of AI components and systems
  • Designing for security challenges in modern AI systems
  • Testing, evaluating, and analyzing AI systems 

Human-Centered

Designed with the goal of working with, and for, people 

  • Understand context of use, sense changes over time
  • Scope and facilitate human-machine teaming
  • Methods, mechanisms, and mindsets for critical oversight

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

6

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

7 of 21

AI for Mission focuses on how to…

Design: Synthesize Warfighter needs, technology capabilities, and industry best practices to create reference design material

Prototype: Implement code, infrastructure, and configuration to create functional systems for demonstration

Field: Conduct test and evaluate activities and define quality acceptance criteria and requirements

Scale: Conceptualize how might a mission partner productionize AI system development, controlling for quality and efficiency (like an AI Factory)

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

7

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

8 of 21

Learning from Recent Missions

  • Three unique missions deploying AI (land, air, sea)
  • Three sets of unique and overlapping challenges
  • Dozens of lessons learned

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

8

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

9 of 21

Mission 1 – Land — Context

Mission Objective

Prototype & field AI-enabled threat detection capability for constrained edge warfare

Engineering Activities

    • Collect and label data with new targets
    • Fine-tune model with collected data
    • Test and evaluate candidate models

Challenges

  • Edge hardware
  • Brittle software
  • Mixed-Skilled stakeholders

Operational Process

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

9

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

10 of 21

Mission 1 – Land — Lessons Learned

Technical Debt vs Speed to Launch – design and code for extensibility

Match Train Context to Deploy Context – development data and models should match production context

Automate & Enforce Quality Management Practices – automate unit and integration tests, conduct a peer review coding process

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

10

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

11 of 21

Mission 2 – Air — Context

Mission Objective

Design and Prototype MLOps pipeline for AI/ Autonomy T&E

Engineering Activities

  • Design and build CI/CD pipeline
  • Deploy and evaluate MLOps Services
  • Design and implement ML prototypes

Challenges

  • Secure computing environments
  • Low AI Literacy
  • Data ownership / sharing

Example MLOps Pipeline

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

11

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

12 of 21

Mission 2 – Air — Lessons Learned

AI & ML Literacy – educate everyone managing, building, and using ML pipelines and systems on the fundamentals of AI Engineering

Spot & Bridge Silos Between Stakeholders – enable multi-disciplinary collaboration and communication between team members, as well as stakeholders

Design for sharing/reuse – implement systems that foster reuse of data, models, or pipelines across multiple teams and/or organizations

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

12

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

13 of 21

Mission 3 – Sea — Context

Mission Objective

Integrate and field Unmanned Surface Vessels (USVs) for maritime domain awareness

Engineering Activities

  • Integrate disparate USV systems
  • Visualize live object detection
  • Collect raw data for future use

Challenges

  • Edge hardware
  • Network latency, bandwidth
  • Interoperability, capability management

Functional USV Network Map

Design view

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

13

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

14 of 21

Mission 3 – Sea — Lessons Learned

Define the right requirements – flesh out use cases with input from all stakeholders before finalizing system requirements

Match test and evaluation criteria to quality and functional needs – design requirements/systems to meet appropriate standards for operationalization

Design and implement for robust data management needs – engineer pipelines to efficiently capture, store, utilize, and share data sets/streams

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

14

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

15 of 21

Using Lessons Learned to shape the �Discipline of AI Engineering

    • Engaging with Mission enables the advancement of AI Engineering
    • Lessons learned help improve internal processes and drives internal strategy
    • Mission experience improves the ability to support other customer work and helps direct research and engineering efforts

Identified areas for Improvement

    • Matching training context to deployment context
    • Performing system tests that match deployment conditions
    • Enabling proper data management
    • Writing good acquisition requirements
    • Implementing appropriate Training and Evaluation processes
    • AI & ML Literacy

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

15

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

16 of 21

Integrating Lessons Learned into our AI Engineering Curriculum

Mission Engagement enhances Workforce Development

Mission 1:

Designing for the use case, identifying potential risk (i.e. data drift), planning for constrained environments

Mission 2:

Multi-disciplinary teams, proper project planning, defining and building appropriate pipelines

Mission 3:

Data management/governance, properly defining requirements, necessity of T&E processes

Above: Flyer for Introduction to AI Engineering course

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

16

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

17 of 21

The Value of Mission Deployments

  • Mission deployments are a key part of designing and implementing strategy and research in this space

  • Without a clear view into the actual “state of the art”, R&D strategy is directed by assumption or internal interest

  • Lessons learned from these deployments directly identify potential areas of work, research, or collaboration

  • Facetime with stakeholders enables the establishment and/or strengthening of a community of partners

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

17

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

18 of 21

Thanks + Contact

Carrie Gardner

SEI AI Division

Technical Manager – AI For Mission

cgardner@sei.cmu.edu

Tyler Brooks

SEI AI Division

Software Developer

tdbrooks@sei.cmu.edu

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

18

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

19 of 21

Mission 1 – Land — Original

Mission Objective:

    • Assist with the CV prototype development and fielding at the edge
      • Model fine-tuning
      • T&E for candidate model selection
  • Practices, Processes, Tools
    • ?

  • Identified areas for Improvement
    • Matching training context to deployment context
    • Performing system tests that match deployment conditions

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

19

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

20 of 21

Mission 2 – Air

  • Mission Objective:
    • Assist in the planning and deployment of MLOps and DevSecOps pipelines

  • Practices, Processes, Tools
    • ?

  • Identified areas for Improvement
    • Building AI and ML literacy for decision makers
    • Removing silos/walls between scientists, developers, and engineers

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

20

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.

21 of 21

Mission 3 – Sea

  • Mission Objective:
    • Deploy and interconnecting commercial USVs in the maritime domain while leveraging live CV to assist in decision-making

  • Practices, Processes, Tools
    • ?

  • Identified areas for Improvement
    • Enabling proper data management
    • Writing good acquisition requirements
    • Implementing appropriate Training and Evaluation processes

Advancing AI Engineering using Lessons Learned from Real Mission Scenarios�© 2023 Carnegie Mellon University

21

[DISTRIBUTION STATEMENT A] This material has been approved for public release and unlimited distribution. Please see Copyright notice for non-US Government use and distribution.