System Testing Using Generative Models
Project description
stgem: System Testing Using Generative Models
stgem is a tool for runtime verification of cyber-physical systems. It supports falsification of requirements described
in Signal Temporal Logic (STL) and other runtime monitors using robustness semantics. This is achieved by training a generative machine learning
model online to produce system inputs that yield a low robustness.
This repository contains stgem implementing the API Version 2.
The INSTALLATION.md file describes how to set up stgem.
Documentation
Use the generate-docs.sh script to build stgem documentation, available in the docs folder.
Please refer to the demo folder for a demonstration on how to setup a system under test, use stgem in conjunction with a test generator to search for inputs that violate a specified safety requirements and subsequently how to analyze the results.
Research Articles
stgem has been used in the folling research articles:
Main algorithms
-
J. Peltomäki, I. Porres. Requirement falsification for cyber-physical systems using generative models. Autom. Softw. Eng 32(33) (2025). DOI, Preprint. The code specific for this paper is available here.
-
J. Peltomäki, I. Porres. Learning test generators for cyber-physical systems (2024), submitted. Preprint
Benchmarks
-
T. Khandait, F. Formica, P. Arcaini, S. Chotaliya, G. Fainekos, A. Hekal, A. Kundu, E. Lew, M. Loreti, C. Menghi, L. Nenzi, G. Pedrielli, J. Peltomäki, I. Porres, R. Ray, V. Soloviev, E. Visconti, M. Waga, Z. Zhang. ARCH-COMP 2024 category report: Falsification. Proceedings of 11th International Workshop on Applied Verification of Continuous and Hybrid Systems, ARCH24. EPiC Series in Computing, Vol. 103, 122-144 (2024). DOI. The code specific for this paper is available here.
-
C. Menghi, P. Arcaini, W. Baptista, G. Ernst, G. Fainekos, F. Formica, S. Gon, T. Khandait, A. Kundu, G. Pedrielli, J. Peltomäki, I. Porres, R. Ray, M. Waga, Z. Zhang. ARCH-COMP 2023 category report: Falsification. Proceedings of 10th International Workshop on Applied Verification of Continuous and Hybrid Systems, ARCH23. EPiC Series in Computing, Vol. 96, 151-169 (2023). DOI. The code specific for this paper is available here.
Applications
-
J. Winsten, I. Porres. Unified Search for Multi-requirement Falsification for Cyber-Physical Systems. Proceedings of International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2025 (2025). DOI. The code specific for this paper is available here.
-
J. Winsten, V. Soloviev, J. Peltomäki, I. Porres. Adaptive test generation for unmanned aerial vehicles using WOGAN-UAV. The 17th Intl. Workshop on Search-Based and Fuzz Testing, SBFT 2024 (2024). DOI. The code specific for this paper is available here.
-
J. Peltomäki, J. Winsten, M. Methais, I. Porres. Testing cyber-physical systems with explicit output coverage. Proceedings of International Conference on Software Testing, Verification and Validation Workshops, ICSTW 2024 (2024). DOI. The code specific for this paper is available here.
-
J. Winsten, I. Porres. WOGAN at the SBFT 2023 tool competition - Cyber-physical systems track. The 16th Intl. Workshop on Search-Based and Fuzz Testing, SBFT 2023 (2023). DOI, Preprint.
-
J. Peltomäki, F. Spencer, I. Porres. Wasserstein generative adversarial networks for online test generation for cyber physical systems. The 15th Intl. Workshop on Search-Based Software Testing, SBST 2022 (2022). DOI, Preprint.
-
J. Peltomäki, F. Spencer, I. Porres. WOGAN at the SBST 2022 CPS tool competition. The 15th Intl. Workshop on Search-Based Software Testing, SBST 2022 (2022). DOI, Preprint.
-
J. Peltomäki, I. Porres. Falsification of multiple requirements for cyber-physical systems using online generative adversarial networks and multi-armed bandits. The 6th. Intl. Workshop on Testing Extra-Functional Properties and Quality Characteristics of Software Systems, ITEQS 2022 (2022). DOI, Preprint.
Contact us
stgem is developed at Åbo Akademi University. Contact Ivan Porres ivan.porres@abo.fi for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stgem-2.0.1.tar.gz.
File metadata
- Download URL: stgem-2.0.1.tar.gz
- Upload date:
- Size: 108.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b329c8b4da37d1e417b2b5602256a726423822a077bd9e8c3f5516edca8f25e8
|
|
| MD5 |
4dd513ab97d314488e3c9b30c917c078
|
|
| BLAKE2b-256 |
f32f2ee3feb013a9816f0406179b4f53320d86198eaa20e8f0103afb1e826525
|
File details
Details for the file stgem-2.0.1-py3-none-any.whl.
File metadata
- Download URL: stgem-2.0.1-py3-none-any.whl
- Upload date:
- Size: 114.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba8c1deefbf6583a3e1359a8f1741536065b916c364c69cbeebd265341a8ac9f
|
|
| MD5 |
179a27c2a0a5e5b721c1f4e146d84b47
|
|
| BLAKE2b-256 |
42f5623c79a74db1fcb10463c920fe3c788e352c0964ec71abc2365bc5e75bd8
|