Jump to content

Understanding Risk, Artificial Intelligence, and Improving Software Quality


Recommended Posts

  • Publishers
Posted

The software discipline has broad involvement across each of the NASA Mission Directorates. Some recent discipline focus and development areas are highlighted below, along with a look at the Software Technical Discipline Team’s (TDT) approach to evolving discipline best practices toward the future.

Understanding Automation Risk

Software creates automation. Reliance on that automation is increasing the amount of software in NASA programs. This year, the software team examined historical software incidents in aerospace to characterize how, why, and where software or automation is mostly likely to fail. The goal is to better engineer software to minimize the risk of errors, improve software processes, and better architect software for resilience to errors (or improve fault-tolerance should errors occur).

techup2023-pg50-51-art1.png

Some key findings shown in the above charts, indicate that software more often does the wrong thing rather than just crash. Rebooting was found to be ineffective when software behaves erroneously. Unexpected behavior was mostly attributed to the code or logic itself, and about half of those instances were the result of missing software—software not present due to unanticipated situations or missing requirements. This may indicate that even fully tested software is exposed to this significant class of error. Data misconfiguration was a sizeable factor that continues to grow with the advent of more modern data-driven systems. A final subjective category assessed was “unknown unknowns”—things that could not have been reasonably anticipated. These accounted for 19% of software incidents studied.

The software team is using and sharing these findings to improve best practices. More emphasis is being placed on the importance of complete requirements, off-nominal test campaigns, and “test as you fly” using real hardware in the loop. When designing systems for fault tolerance, more consideration should be given to detecting and correcting for erroneous behavior versus just checking for a crash. Less confidence should be placed on rebooting as an effective recovery strategy. Backup strategies for automations should be employed for critical applications—considering the historic prevalence of absent software and unknown unknowns. More information can be found in NASA/TP-20230012154, Software Error Incident Categorizations in Aerospace.

Employing AI and Machine Learning Techniques

The rise of artificial intelligence (AI) and machine learning (ML) techniques has allowed NASA to examine data in new ways that were not previously possible. While NASA has been employing autonomy since its inception, AI/ML techniques provide teams the ability to expand the use of autonomy outside of previous bounds. The Agency has been working on AI ethics frameworks and examining standards, procedures, and practices, taking security implications into account. While AI/ML generally uses nondeterministic statistical algorithms that currently limit its use in safety-critical flight applications, it is used by NASA in more than 400 AI/ML projects aiding research and science. The Agency also uses AI/ML Communities of Practice for sharing knowledge across the centers. The TDT surveyed AI/ML work across the Agency and summarized it for trends and lessons.

Common usages of AI/ML include image recognition and identification. NASA Earth science missions use AI/ML to identify marine debris, measure cloud thickness, and identify wildfire smoke (examples are shown in the satellite images below). This reduces the workload on personnel. There are many applications of AI/ML being used to predict atmospheric physics. One example is hurricane track and intensity prediction. Another example is predicting planetary boundary layer thickness and comparing it against measurements, and those predictions are being fused with live data to improve the performance over previous boundary layer models.

techup2023-pg50-51-art2.png?w=1815
Examples of how NASA uses AI/ML. Satellite images of clouds with estimation of cloud thickness (left) and wildfire detection (right).
techup2023-pg50-51-art3.png?w=2048
NASA-HDBK-2203, NASA Software Engineering and Assurance Handbook (https://swehb.nasa.gov)

The Code Analysis Pipeline: Static Analysis Tool for IV&V and Software Quality Improvement

The Code Analysis Pipeline (CAP) is an open-source tool architecture that supports software development and assurance activities, improving overall software quality. The Independent Verification and Validation (IV&V) Program is using CAP to support software assurance on the Human Landing System, Gateway, Exploration Ground Systems, Orion, and Roman. CAP supports the configuration and automated execution of multiple static code analysis tools to identify potential code defects, generate code metrics that indicate potential areas of quality concern (e.g., cyclomatic complexity), and execute any other tool that analyzes or processes source code. The TDT is focused on integrating Modified Condition/Decision Coverage analysis support for coverage testing. Results from tools are consolidated into a central database and presented in context through a user interface that supports review, query, reporting, and analysis of results as the code matures.

The tool architecture is based on an industry standard DevOps approach for continuous building of source code and running of tools. CAP integrates with GitHub for source code control, uses Jenkins to support automation of analysis builds, and leverages Docker to create standard and custom build environments that support unique mission needs and use cases.

Improving Software Process & Sharing Best Practices

The TDT has captured the best practice knowledge from across the centers in NPR 7150.2, NASA Software Engineering Requirements, and NASA-HDBK-2203, NASA Software Engineering and Assurance Handbook (https://swehb.nasa.gov.) Two APPEL training classes have been developed and shared with several organizations to give them the foundations in the NPR and software engineering management. The TDT established several subteams to help programs/projects as they tackle software architecture, project management, requirements, cybersecurity, testing and verification, and programmable logic controllers. Many of these teams have developed guidance and best practices, which are documented in NASA-HDBK-2203 and on the NASA Engineering Network.

NPR 7150.2 and the handbook outline best practices over the full lifecycle for all NASA software. This includes requirements development, architecture, design, implementation, and verification. Also covered, and equally important, are the supporting activities/functions that improve quality, including software assurance, safety configuration management, reuse, and software acquisition. Rationale and guidance for the requirements are addressed in the handbook that is internally and externally accessible and regularly updated as new information, tools, and techniques are found and used.

The Software TDT deputies train software engineers, systems engineers, chief engineers, and project managers on the NPR requirements and their role in ensuring these requirements are implemented across NASA centers. Additionally, the TDT deputies train software technical leads on many of the advanced management aspects of a software engineering effort, including planning, cost estimating, negotiating, and handling change management.

View the full article

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Similar Topics

    • By NASA
      5 min read
      Preparations for Next Moonwalk Simulations Underway (and Underwater)
      Jeremy Frank, left, and Caleb Adams, right, discuss software developed by NASA’s Distributed Spacecraft Autonomy project. The software runs on spacecraft computers, currently housed on a test rack at NASA’s Ames Research Center in California’s Silicon Valley, and depicts a spacecraft swarm virtually flying in lunar orbit to provide autonomous position navigation and timing services at the Moon. NASA/Brandon Torres Navarrete Talk amongst yourselves, get on the same page, and work together to get the job done! This “pep talk” roughly describes how new NASA technology works within satellite swarms. This technology, called Distributed Spacecraft Autonomy (DSA), allows individual spacecraft to make independent decisions while collaborating with each other to achieve common goals – all without human input. 
      NASA researchers have achieved multiple firsts in tests of such swarm technology as part of the agency’s DSA project. Managed at NASA’s Ames Research Center in California’s Silicon Valley, the DSA project develops software tools critical for future autonomous, distributed, and intelligent swarms that will need to interact with each other to achieve complex mission objectives. 
      “The Distributed Spacecraft Autonomy technology is very unique,” said Caleb Adams, DSA project manager at NASA Ames. “The software provides the satellite swarm with the science objective and the ‘smarts’ to get it done.”  
      What Are Distributed Space Missions? 
      Distributed space missions rely on interactions between multiple spacecraft to achieve mission goals. Such missions can deliver better data to researchers and ensure continuous availability of critical spacecraft systems.  
      Typically, spacecraft in swarms are individually commanded and controlled by mission operators on the ground. As the number of spacecraft and the complexity of their tasks increase to meet new constellation mission designs, “hands-on” management of individual spacecraft becomes unfeasible.  
      Distributing autonomy across a group of interacting spacecraft allows for all spacecraft in a swarm to make decisions and is resistant to individual spacecraft failures. 
      The DSA team advanced swarm technology through two main efforts: the development of software for small spacecraft that was demonstrated in space during NASA’s Starling mission, which involved four CubeSat satellites operating as a swarm to test autonomous collaboration and operation with minimal human operation, and a scalability study of a simulated spacecraft swarm in a virtual lunar orbit. 
      Experimenting With DSA in Low Earth Orbit
      The team gave Starling a challenging job: a fast-paced study of Earth’s ionosphere – where Earth’s atmosphere meets space – to show the swarm’s ability to collaborate and optimize science observations. The swarm decided what science to do on their own with no pre-programmed science observations from ground operators.  
      “We did not tell the spacecraft how to do their science,” said Adams. “The DSA team figured out what science Starling did only after the experiment was completed. That has never been done before and it’s very exciting!”  
      The accomplishments of DSA onboard Starling include the first fully distributed autonomous operation of multiple spacecraft, the first use of space-to-space communications to autonomously share status information between multiple spacecraft, the first demonstration of fully distributed reactive operations onboard multiple spacecraft, the first use of a general-purpose automated reasoning system onboard a spacecraft, and the first use of fully distributed automated planning onboard multiple spacecraft. 
      During the demonstration, which took place between August 2023 and May 2024, Starling’s swarm of spacecraft received GPS signals that pass through the ionosphere and reveal interesting – often fleeting – features for the swarm to focus on. Because the spacecraft constantly change position relative to each other, the GPS satellites, and the ionospheric environment, they needed to exchange information rapidly to stay on task.   
      Each Starling satellite analyzed and acted on its best results individually. When new information reached each spacecraft, new observation and action plans were analyzed, continuously enabling the swarm to adapt quickly to changing situations. 
      “Reaching the project goal of demonstrating the first fully autonomous distributed space mission was made possible by the DSA team’s development of distributed autonomy software that allowed the spacecraft to work together seamlessly,” Adams continued.
      Caleb Adams, Distributed Spacecraft Autonomy project manager, monitors testing alongside the test racks containing 100 spacecraft computers at NASA’s Ames Research Center in California’s Silicon Valley. The DSA project develops and demonstrates software to enhance multi-spacecraft mission adaptability, efficiently allocate tasks between spacecraft using ad-hoc networking, and enable human-swarm commanding of distributed space missions. NASA/Brandon Torres Navarrete Scaling Up Swarms in Virtual Lunar Orbit  
      The DSA ground-based scalability study was a simulation that placed virtual small spacecraft and rack-mounted small spacecraft flight computers in virtual lunar orbit. This simulation was designed to test the swarm’s ability to provide position, navigation, and timing services at the Moon. Similar to what the GPS system does on Earth, this technology could equip missions to the Moon with affordable navigation capabilities, and could one day help pinpoint the location of objects or astronauts on the lunar surface.   
      The DSA lunar Position, Navigation, and Timing study demonstrated scalability of the swarm in a simulated environment. Over a two-year period, the team ran close to one hundred tests of more complex coordination between multiple spacecraft computers in both low- and high-altitude lunar orbit and showed that a swarm of up to 60 spacecraft is feasible.  
      The team is further developing DSA’s capabilities to allow mission operators to interact with even larger swarms – hundreds of spacecraft – as a single entity. 
      Distributed Spacecraft Autonomy’s accomplishments mark a significant milestone in advancing autonomous distributed space systems that will make new types of science and exploration possible. 
      NASA Ames leads the Distributed Spacecraft Autonomy and Starling projects. NASA’s Game Changing Development program within the agency’s Space Technology Mission Directorate provides funding for the DSA experiment. NASA’s Small Spacecraft Technology program within the Space Technology Mission Directorate funds and manages the Starling mission and the DSA project. 
      Share
      Details
      Last Updated Feb 04, 2025 Related Terms
      Ames Research Center CubeSats Game Changing Development Program Small Spacecraft Technology Program Space Technology Mission Directorate Explore More
      2 min read NASA Awards Contract for Airborne Science Flight Services Support
      Article 23 hours ago 4 min read NASA Flight Tests Wildland Fire Tech Ahead of Demo
      Article 4 days ago 4 min read NASA Space Tech’s Favorite Place to Travel in 2025: The Moon!
      Article 2 weeks ago Keep Exploring Discover More Topics From NASA
      Ames Research Center
      Space Technology Mission Directorate
      STMD Small Spacecraft Technology
      Starling
      View the full article
    • By NASA
      3 min read
      NASA’s Cloud-based Confluence Software Helps Hydrologists Study Rivers on a Global Scale
      The Paraná River in northern Argentina. Confluence, which is open-source and free to use, allows researchers to estimate river discharge and suspended sediment levels in Earth’s rivers at a global scale. NASA/ISS Rivers and streams wrap around Earth in complex networks millions of miles long, driving trade, nurturing ecosystems, and stocking critical reserves of freshwater.
      But the hydrologists who dedicate their professional lives to studying this immense web of waterways do so with a relatively limited set of tools. Around the world, a patchwork of just 3,000 or so river gauge stations supply regular, reliable data, making it difficult for hydrologists to detect global trends.
      “The best way to study a river,” said Colin Gleason, Armstrong Professional Development Professor of Civil and Environmental Engineering at the University of Massachusetts, Amherst, “is to get your feet wet and visit it yourself. The second best way to study a river is to use a river gauge.”
      Now, thanks to Gleason and a team of more than 30 researchers, there’s another option: ‘Confluence,’ an analytic collaborative framework that leverages data from NASA’s Surface Water and Ocean Topography (SWOT) mission and the Harmonized Landsat Sentinel-2 archive (HLS) to estimate  river discharge and suspended sediment levels in every river on Earth wider than 50 meters. NASA’s Physical Oceanography Distributed Active Archive Center (PO.DAAC) hosts the software, making it open-source and free for users around the world.
      By incorporating both altimetry data from SWOT which informs discharge estimates, and optical data from HLS, which informs estimates of suspended sediment data, Confluence marks the first time hydrologists can create timely models of river size and water quality at a global scale. Compared to existing workflows for estimating suspended sediment using HLS data, Confluence is faster by a factor of 30.
      I can’t do global satellite hydrology without this system. Or, I could, but it would be extremely time consuming and expensive.
      Colin Gleason

      Nikki Tebaldi, a Cloud Adoption Engineer at NASA’s Jet Propulsion Laboratory (JPL) and Co-Investigator for Confluence, was the lead developer on this project. She said that while the individual components of Confluence have been around for decades, bringing them together within a single, cloud-based processing pipeline was a significant challenge.
      “I’m really proud that we’ve pieced together all of these different algorithms, got them into the cloud, and we have them all executing commands and working,” said Tebaldi.
      Suresh Vannan, former manager of PO.DAAC and a Co-Investigator for Confluence, said this new ability to produce timely, global estimates of river discharge and quality will have a huge impact on hydrological models assessing everything from the health of river ecosystems to snowmelt.
      “There are a bunch of science applications that river discharge can be used for, because it’s pretty much taking a snapshot of what the river looks like, how it behaves. Producing that snapshot on a global scale is a game changer,” said Vannan.
      While the Confluence team is still working with PO.DAAC to complete their software package, users can currently access the Confluence source code here. For tutorials, manuals, and other user guides, visit the PO.DAAC webpage here.
      All of these improvements to the original Confluence algorithms developed for SWOT were made possible by NASA’s Advanced Intelligent Systems Technology (AIST) program, a part of the agency’s Earth Science Technology Office (ESTO), in collaboration with SWOT and PO.DAAC.
      To learn more about opportunities to develop next-generation technologies for studying Earth from outer space, visit ESTO’s solicitation page here.
      Project Lead: Colin Gleason / University of Massachusetts, Amherst
      Sponsoring Organization: Advanced Intelligent Systems Technology program, within NASA’s Earth Science Technology Office
      Share








      Details
      Last Updated Feb 04, 2025 Related Terms
      Science-enabling Technology Earth Science Oceanography SWOT (Surface Water and Ocean Topography) Explore More
      15 min read Summary of the 53rd U.S.–Japan ASTER Science Team Meeting


      Article


      2 weeks ago
      23 min read Summary of the 2024 Quadrennial Ozone Symposium


      Article


      2 weeks ago
      2 min read An Introduction to NASA Citizen Science for Service Members, Veterans and their Families


      Article


      2 weeks ago
      View the full article
    • By NASA
      For astronauts aboard the International Space Station, staying connected to loved ones and maintaining a sense of normalcy is critical. That is where Tandra Gill Spain, a computer resources senior project manager in NASA’s Avionics and Software Office, comes in. Spain leads the integration of applications on Apple devices and the hardware integration on the Joint Station Local Area Network, which connects the systems from various space agencies on the International Space Station. She also provides technical lead support to the Systems Engineering and Space Operations Computing teams and certifies hardware for use on the orbiting laboratory. 

      Spain shares about her career with NASA and more. Read on to learn about her story, her favorite project, and the advice she has for the next generation of explorers. 
      Tandra Spain’s official NASA portrait. NASA Where are you from? 
      I am from Milwaukee, Wisconsin. 

      Tell us about your role at NASA. 
      I am the Apple subsystem manager where I lead the integration of applications on Apple devices as well as the hardware integration on the Joint Station Local Area Network. We use a variety of different software but I work specifically with our Apple products. I also provide technical lead support to the Systems Engineering and Space Operations Computing teams. In addition, I select and oversee the certification of hardware for use on the International Space Station, and I research commonly used technology and assess applicability to space operations.   

      How would you describe your job to family or friends who may not be familiar with NASA? 
      I normalize living and working in space by providing the comforts and conveniences of living on Earth.
      Tandra spain
      Computer Resources Senior Project Manager
      I get the opportunity to provide the iPads and associated applications that give astronauts the resources to access the internet. Having access to the internet affords them the opportunity to stay as connected as they desire with what is going on back home on Earth (e.g., stream media content, stay in touch with family and friends, and even pay bills). I also provide hardware such as Bluetooth speakers, AirPods, video projectors, and screens. 

      How long have you been working for NASA? 
      I have been with the agency for 30 years, including 22 years as a contractor. 
      What advice would you give to young individuals aspiring to work in the space industry or at NASA? 
      I have found that there is a place for just about everyone at NASA, therefore, follow your passion.  Although many of us are, you don’t have to be a scientist or engineer to work at NASA. Yearn to learn.  Pause and listen to those around you. You don’t know what you don’t know, and you will be amazed what gems you’ll learn in the most unexpected situations. 

      Additionally, be flexible and find gratitude in every experience. Many of the roles that I’ve had over the years didn’t come from a well-crafted, laid-out plan that I executed, but came from taking advantage of the opportunities that presented themselves and doing them to the best of my ability. 
      Tandra Spain and her husband, Ivan, with NASA astronaut and Flight Director TJ Creamer when she was awarded the Silver Snoopy Award. What was your path to NASA? 
      I moved to Houston to work at NASA’s Johnson Space Center immediately upon graduating from college. 

      Is there someone in the space, aerospace, or science industry that has motivated or inspired you to work for the space program? Or someone you discovered while working for NASA who inspires you?  
      I spent over half of my career in the Astronaut Office, and I’ve been influenced in different ways by different people, so it wouldn’t be fair to pick just one! 

      What is your favorite NASA memory? 
      I’ve worked on so many meaningful projects, but there are two recent projects that stand out.

      Humans were not created to be alone, and connection is extremely important. I was able to provide a telehealth platform for astronauts to autonomously video conference with friends and family whenever an internet connection is available. Prior to having this capability, crew were limited to one scheduled video conference a week. It makes me emotional to think that we have moms and dads orbiting the Earth on the space station and they can see their babies before they go to bed, when they wake up in the morning, or even in the middle of the night if needed.  

      In addition, since iPads are used for work as well as personal activities on station, it is important for my team to be able to efficiently keep the applications and security patches up to date. We completed the software integration and are in the process of wrapping up the certification of the Mac Mini to provide this capability. This will allow us to keep up with all software updates that Apple releases on a regular basis and minimize the amount of crew and flight controller team time associated with the task by approximately 85%. 
      Tandra Spain, her mother, Marva Herndon, and her daughter, Sasha, at her daughter’s high school graduation in 2024. What do you love sharing about station? What’s important to get across to general audiences to help them understand the benefits to life on Earth? 
      When I speak to the public about the space station, I like to compare our everyday lives on Earth to life on the station and highlight the use of technology to maintain the connection to those on Earth. For example, most people have a phone. Besides making a phone call, what do you use your phone for? It is amazing to know that the same capabilities exist on station, such as using apps, participating in parent teacher conferences, and more. 

      If you could have dinner with any astronaut, past or present, who would it be? 
      I would have dinner with NASA astronaut Ron McNair. He graduated from the same university as I did, and I’ve heard great stories about him. 

      Do you have a favorite space-related memory or moment that stands out to you? 
      As I mentioned previously, human connection is extremely important. As an engineer in the Astronaut Office, I worked on a project that provided more frequent email updates when Ku-Band communication was available. Previously, email was synced two to three times a day, and less on the weekend. When the capability went active, I sent the first email exchange. 

      What are some of the key projects you’ve worked on during your time at NASA? What have been your favorite?  
      There have been so many projects over the past 30 years that I don’t think I could select just one. There is something however, that I’ve done on many occasions that has brought me pure joy, which is attending outreach events as Johnson’s “Cosmo” mascot, especially Houston Astros games.    
      Tandra Spain representing NASA as “Cosmo” the astronaut mascot at a Houston Astros baseball game. What are your hobbies/things you enjoy outside of work? 
      I enjoy crafting, traveling, mentoring students in Pearland Independent School District, spending time with family, and my Rooted Together community. 

      Day launch or night launch?  
      Night launch! 

      Favorite space movie? 
      Star Wars (the original version) 

      NASA “worm” or “meatball” logo? 
      Meatball 
      Every day, we’re conducting exciting research aboard our orbiting laboratory that will help us explore further into space and bring benefits back to people on Earth. You can keep up with the latest news, videos, and pictures about space station science on the Station Research & Technology news page. It’s a curated hub of space station research digital media from Johnson and other centers and space agencies.  

      Sign up for our weekly email newsletter to get the updates delivered directly to you.  

      Follow updates on social media at @ISS_Research on Twitter, and on the space station accounts on Facebook and Instagram.  
      View the full article
    • By Space Force
      The Department of Air Force updated a medical guidance memorandum, Jan. 24, 2025, to offer healthcare providers additional guidance when evaluating Airmen and Guardians for a Pseudofolliculitis Barbae (PFB) diagnosis.

      View the full article
    • By European Space Agency
      A key element of ESA’s role as Europe’s space agency is the expansion of space knowhow, by encouraging new actors into the field. Case in point: a Polish software company previously specialising in smartphone apps took on the challenge of designing the operating system for the main instrument of Proba-3 – an ambitious double spacecraft mission to reveal secrets of the Sun’s fiery atmosphere, the corona.
      View the full article
  • Check out these Videos

×
×
  • Create New...