IP Library Granted Patent US 12,645,563
Granted Patent B1
US 12,645,563 · App. 19/201,770 · Granted Jun 2, 2026

Application performance automation system

Inventor: Leonid Kuperman (North York, CA)
Assignee: Cast AI Group Inc.
G06F11/3612G06F16/284G06F11/3419H04L41/5054H04L43/0817H04L51/214H04L63/029
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,645,563
App. No.
19/201,770
Granted
Jun 2, 2026
Kind
B1
Abstract

A system and method for autonomous application performance optimization are disclosed. The system collects telemetry data about an application running in a production environment and analyzes this data to detect performance inefficiencies. Based on the detected inefficiencies, the system identifies a potential intervention and deploys it to the application in a sandbox environment for validation. It then collects telemetry data with the intervention applied in the sandbox, analyzes the data to assess the impact, and determines whether the application's performance has improved by at least a predetermined threshold. In response to improvement by at least the predetermined threshold, the system deploys the intervention to the production environment. Otherwise, the system identifies an alternative intervention and repeats the validation process in the sandbox environment.

Claims (80)

1 . A method for autonomous application performance optimization, the method comprising:

collecting production telemetry data about an application in a production environment, the telemetry data including one or more of a latency, CPU utilization, memory utilization, throughput, or error rate;

analyzing the production telemetry data to detect performance inefficiencies of the application in the production environment,

wherein the production telemetry data is analyzed using one or more large language models;

identifying a first intervention based on the detected performance inefficiencies,

wherein identifying the first intervention comprises modifying code of the application using the one or more large language models to modify a parameter of the application;

deploying the first intervention onto an application in a sandbox environment for validation;

collecting sandbox telemetry data about the application with the first intervention applied in the sandbox environment;

analyzing the sandbox telemetry data to assess impact of the first intervention in the sandbox environment;

determining whether performance of the application with the first intervention has improved by at least a predetermined threshold, the predetermined threshold associated with at least one of: a latency reduction, a CPU utilization reduction, a memory utilization reduction, a throughput increase, or an error rate reduction;

in response to determining that the performance of the application with the first intervention has improved by at least a predetermined threshold, deploying the first intervention to the application in the production environment;

in response to determining that the performance of the application with the first intervention has not improved by the predetermined threshold,

identifying a second intervention based on the detected performance inefficiencies of the application without the first intervention and the assessed impact of the first intervention; and

deploying the second intervention onto the application in the sandbox environment for validation.

2 . The method of claim 1 , wherein collecting production telemetry data comprises:

deploying agents onto Kubernetes clusters in the production environment configured to collect one or more of logs, metrics, and traces of corresponding Kubernetes clusters.

3 . The method of claim 1 , wherein analyzing the telemetry data comprises identifying anomalous patterns using a machine learning model trained on historical performance data.

4 . The method of claim 1 , wherein sandbox environment comprises a container that mirrors the production environment, and the application is deployed to the container and the first intervention is applied to the application within the sandbox environment without impacting workloads in the production environment.

5 . The method of claim 1 , wherein the intervention comprises selecting a large language model (LLM) from a plurality of LLMs based on one or more of response latency, cost-per token, or GPU resource utilization associated with each of the plurality of LLMs.

6 . The method of claim 5 , wherein the intervention comprises:

selecting a geographic region from a plurality of geographic regions that offer compute instances with GPU resources;

provisioning a compute instance with GPU resources within the selected geographic region; and

deploying the selected LLM onto the provisioned compute instance.

7 . The method of claim 6 , wherein the geographic region is selected based on one or more of: GPU availability, current GPU utilization rates, historical failure rates, eviction trends, network latency, provisioning latency, or spot instance interruption rates.

8 . The method of claim 1 , wherein the intervention comprises applying security patches.

9 . The method of claim 8 , wherein applying security patches comprises:

parsing infrastructure-as-code (IaC) configuration files associated with Kubernetes clusters;

identifying security misconfigurations within the parsed IaC configuration files; and

generating code changes that modify lines of code in the IaC configuration files.

10 . The method of claim 1 , further comprising:

receiving comments, from a client device of a user, on a first pull request;

generating a third intervention based on the comments on the first pull request; and

generating a second pull request based on the third intervention.

11 . The method of claim 1 , wherein the intervention comprises:

identifying a previously deployed version of the application with stable performance metrics; and

initiating a rollback operation to restore the application to the previous deployed version.

12 . The method of claim 1 , wherein the intervention comprises refactoring a recursive function into an iterative implementation to reduce latency.

13 . The method of claim 1 , wherein the intervention further comprises modifying a configuration parameter of the application, the configuration parameter including at least one of: CPU resource limits, memory allocation, or database query caching.

14 . The method of claim 1 , wherein the predetermined threshold comprises at least a predetermined percentage of reduction in latency or compute resource consumption.

15 . A non-transitory computer readable storage medium having instructions encoded thereon that, when executed by one or more processors, cause the one or more processors to perform steps comprising:

collecting production telemetry data about an application in a production environment;

analyzing the production telemetry data to detect performance inefficiencies of the application in the production environment,

wherein the production telemetry data is analyzed using one or more machine learning models;

generating, using the one or more machine learning models, a first intervention comprising a code refactor to address at least one detected performance inefficiency,

wherein generating the first intervention comprises modifying code of the application using the one or more machine learning models based on analyzing the production telemetry data;

deploying the first intervention onto an application in a sandbox environment for validation;

collecting sandbox telemetry data about the application with the first intervention applied in the sandbox environment;

analyzing the sandbox telemetry data to assess impact of the first intervention in the sandbox environment;

determining whether performance of the application with the first intervention has improved by at least a predetermined threshold, compared to previous performance in the production environment;

in response to determining that the performance of the application with the first intervention has improved by at least a predetermined threshold, deploying the first intervention to the application in the production environment;

in response to determining that the performance of the application with the first intervention has not improved by the predetermined threshold,

identifying a second intervention based on the detected performance inefficiencies of the application without the first intervention and the assessed impact of the first intervention; and

deploying the second intervention onto the application in the sandbox environment for validation.

16 . The non-transitory computer readable storage medium of claim 15 , wherein collecting production telemetry data comprises:

deploying agents onto Kubernetes clusters in the production environment configured to collect one or more of logs, metrics, and traces of corresponding Kubernetes clusters.

17 . The non-transitory computer readable storage medium of claim 15 , wherein analyzing the telemetry data comprises identifying anomalous patterns using a machine learning model trained on historical performance data.

18 . The non-transitory computer readable storage medium of claim 15 , wherein sandbox environment comprises a container that mirrors the production environment, and the application is deployed to the container and the first intervention is applied to the application within the sandbox environment without impacting workloads in the production environment.

19 . The non-transitory computer readable storage medium of claim 15 , wherein the intervention comprises selecting a large language model (LLM) from a plurality of LLMs based on one or more of response latency, cost-per token, or GPU resource utilization associated with each of the plurality of LLMs.

20 . The non-transitory computer readable storage medium of claim 19 , wherein the intervention comprises:

selecting a geographic region from a plurality of geographic regions that offer compute instances with GPU resources;

provisioning a compute instance with GPU resources within the selected geographic region; and

deploying the selected LLM onto the provisioned compute instance.

21 . The non-transitory computer readable storage medium of claim 20 , wherein the geographic region is selected based on one or more of: GPU availability, current GPU utilization rates, historical failure rates, eviction trends, network latency, provisioning latency, or spot instance interruption rates.

22 . The non-transitory computer readable storage medium of claim 15 , wherein the intervention comprises applying security patches.

23 . A computing system, comprising:

one or more processors; and

a non-transitory computer readable storage medium having instructions encoded thereon that, when executed by one or more processors, cause the one or more processors to perform steps comprising:

collecting production telemetry data about an application in a production environment, the telemetry data including one or more of a latency, CPU utilization, memory utilization, throughput, or error rate;

analyzing the production telemetry data to detect performance inefficiencies of the application in the production environment,

wherein the production telemetry data is analyzed using one or more machine learning models;

identifying a first intervention based on the detected performance inefficiencies,

wherein identifying the first intervention comprises modifying code of the application using the one or more machine learning models based on analyzing the production telemetry data;

deploying the first intervention onto an application in a sandbox environment for validation;

collecting sandbox telemetry data about the application with the first intervention applied in the sandbox environment;

analyzing the sandbox telemetry data to assess impact of the first intervention in the sandbox environment;

determining whether performance of the application with the first intervention has improved by at least a predetermined threshold, the predetermined threshold associated with at least one of: a latency reduction, a CPU utilization reduction, a memory utilization reduction, a throughput increase, or an error rate reduction;

in response to determining that the performance of the application with the first intervention has improved by at least a predetermined threshold, deploying the first intervention to the application in the production environment;

in response to determining that the performance of the application with the first intervention has not improved by the predetermined threshold,

identifying a second intervention based on the detected performance inefficiencies of the application without the first intervention and the assessed impact of the first intervention; and

deploying the second intervention onto the application in the sandbox environment for validation.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 18, 2025
From: KUPERMAN, LEONID
To: CAST AI GROUP, INC.
Reel/Frame 072045/0826 →
Continuity (1)
Provisional Application 63754652 · Feb 6, 2025
References Cited (31)
US 11620207B2 · Vega et al. · 2023 [cited by applicant]
US 11966776B2 · Amarnath et al. · 2024 [cited by applicant]
US 12236193B1 · Kuperman et al. · 2025 [cited by applicant]
US 12367396B1 · Rachmayr et al. · 2025 [cited by applicant]
US 20170034023A1 · Nickolov · 2017 [cited by examiner]
US 20190095478A1 · Tankersley · 2019 [cited by examiner]
US 20200394130A1 · Pande · 2020 [cited by examiner]
US 20210182729A1 · George et al. · 2021 [cited by applicant]
US 20220038434A1 · Murray · 2022 [cited by examiner]
US 20220121455A1 · Hoban · 2022 [cited by examiner]
US 20220201673A1 · Pandey et al. · 2022 [cited by applicant]
US 20220237044A1 · Shah et al. · 2022 [cited by applicant]
US 20220269548A1 · Dwivedi et al. · 2022 [cited by applicant]
US 20230236902A1 · Zhao et al. · 2023 [cited by applicant]
US 20230342278A1 · Padmanabha Iyer et al. · 2023 [cited by applicant]
US 20240111263A1 · Namburi et al. · 2024 [cited by applicant]
US 20240232039A1 · Isaac · 2024 [cited by applicant]
US 20240291839A1 · Yagnik · 2024 [cited by examiner]
US 20250045256A1 · Gottlob et al. · 2025 [cited by applicant]
US 20250053870A1 · Sahin et al. · 2025 [cited by applicant]
US 20250117699A1 · Cheng et al. · 2025 [cited by applicant]
US 20250146842A1 · Ding et al. · 2025 [cited by applicant]
US 20250148222A1 · Schornig et al. · 2025 [cited by applicant]
US 20250173173A1 · Geckeler et al. · 2025 [cited by applicant]
US 20250173183A1 · Trikande et al. · 2025 [cited by applicant]
US 20250175423A1 · Vippagunta et al. · 2025 [cited by applicant]
US 20250190257A1 · Ananthanarayanan et al. · 2025 [cited by applicant]
US 20250238638A1 · Ouyang · 2025 [cited by applicant]
US 20250240220A1 · Poothiyot et al. · 2025 [cited by applicant]
Cao Dong, CN 114612450 (translation), Sep. 5, 2023, 19 pgs <CN_114612450.pdf>. [cited by examiner]
United Sates Patent Office, Office Action, U.S. Appl. No. 19/201,778, Aug. 15, 2025, 33 pages. [cited by applicant]