In the world of safety-critical systems, such as autonomous vehicle control, energy infrastructure management, or medical devices, the ability to formally verify system behavior is essential. One of the most powerful tools for this task is Linear Temporal Logic (LTL), a formal language that describes properties that must hold over time, such as 'whenever event A occurs, eventually B occurs' or 'C must never happen.' Learning these specifications from system demonstrations or traces is an active research area, but a fundamental challenge arises: what happens when the demonstrations are uncertain or incomplete?
Traditionally, LTL learning methods assume that the provided traces are correct or that errors are only classification mistakes. However, in real-world environments, sensors may fail, measurements may contain noise, or data may be lost during transmission. This introduces uncertainty that, if not properly managed, can lead to incorrect specifications and ultimately catastrophic failures. Our proposal is based on a novel framework that models uncertainty using Hamming distance, generating plausible estimates around each observed trace. These estimates are then grouped with constraints requiring that at least one trace per group is consistent with the learned LTL formula. The problem is reduced to a pseudo-Boolean optimization, allowing minimal formulas that better align with the underlying ground truth.
This approach not only has academic implications but also offers tangible value for companies developing software and intelligent systems. At Q2BSTUDIO, as a software and technology development company, we are committed to creating robust and reliable solutions. Our experience in custom software has taught us that data quality and uncertainty management are critical factors for project success. Learning temporal specifications from uncertain data fits perfectly with our areas of expertise, such as artificial intelligence, cybersecurity, and cloud computing.
The integration of advanced LTL learning techniques into the development of AI agents allows these systems to learn from experience in a safe and verifiable manner. For example, an autonomous agent operating in a warehouse must comply with safety rules that can be extracted from demonstrations with imperfect sensors. Our framework helps obtain these rules even when data contains errors. This is especially relevant in cloud environments, where AWS or Azure services provide the infrastructure needed to process large volumes of traces and run optimization algorithms. At Q2BSTUDIO we offer cloud services with AWS and Azure that facilitate this type of analysis.
Cybersecurity also benefits from this technique. Temporal specifications can describe malicious behaviors or system anomalies. By learning these specifications from uncertain traces, we can generate more accurate detection rules that adapt to real network conditions. At Q2BSTUDIO, our cybersecurity team uses penetration testing and vulnerability analysis methodologies that can be complemented with formal verification of temporal properties. The ability to handle uncertainty is key to avoiding false positives and not missing real threats.
Another area where this research has impact is business intelligence and data analysis. LTL specifications can model temporal patterns in sales time series, inventories, or user behavior. If historical data contains gaps or measurement errors, our approach allows extracting reliable rules. At Q2BSTUDIO we offer Business Intelligence solutions with Power BI that help companies visualize and understand these patterns, but automated specification generation from uncertain data would take analysis to another level, automating the detection of hidden business rules.
The learning process begins with collecting system traces, which can come from logs, sensors, or simulations. Each trace is a sequence of states or events. Our algorithm generates, for each trace, a set of plausible traces within a given Hamming distance, reflecting sensor uncertainty. Then, through group constraints, we ensure that at least one of these candidate traces is consistent with the final formula. Pseudo-Boolean optimization searches for the smallest possible formula that satisfies all constraints, using Boolean variables to represent the presence or absence of operators and propositions. This approach is computationally manageable for moderate-sized problems and can scale with relaxation or pruning techniques.
Compared to previous methods that assume perfect data or only classification errors, our framework is more robust against real noise. For example, in an experiment with autonomous vehicle data, where distance sensors can intermittently fail, our method recovered safety specifications with significantly higher accuracy than alternatives. This demonstrates that investing in uncertainty management translates into more reliable systems.
At Q2BSTUDIO, we offer process automation services that can benefit from this capability. Automating the verification of temporal properties from uncertain data allows processes to dynamically adapt to changing conditions without sacrificing safety. For instance, a production line using sensors can learn correct sequence rules even when some sensors report erroneous values. This aligns with our offering of process automation.
Finally, the combination of LTL with artificial intelligence and cloud computing opens the door to self-improving autonomous systems. AI agents can re-learn their specifications as they receive new data, adapting to non-stationary environments. At Q2BSTUDIO, we develop AI solutions that integrate machine learning and formal reasoning, offering our clients a real competitive advantage. Uncertainty is not an obstacle; it is another piece of data that we can model and exploit.




