IP Library › Granted Patent US 12,254,312
Granted Patent B2
US 12,254,312 · App. 17/806,794 · Granted Mar 18, 2025

Scenario aware dynamic code branching of self-evolving code

Inventors: Saraswathi Sailaja Perumalla (Visakhapatnam, IN); Sarbajit K. Rakshit (Kolkata, IN); Sowjanya Rao (Hyderabad, IN)
Assignee: International Business Machines Corporation
G06F8/71G06F8/30G06F11/3013G06F11/302G06F11/3409G06F8/60G07C5/0808
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,254,312
App. No.
17/806,794
Granted
Mar 18, 2025
Kind
B2
Abstract

Computer technology for performing dynamic code branching of self-adapted code upon successful execution of a contextual scenario by artificial intelligence (AI) enabled edge device (for example, an autonomous vehicle or an industrial robotic device). predicting a second contextual scenario where the AI enabled edge device can perform a predetermined activity, and proactively deploying self-adapted code on the AI enabled edge device.

Claims (49)

1. A computer-implemented method (CIM) comprising:

monitoring, using a set of sensor device(s), an artificial intelligence (AI) enabled edge device from a set of AI enabled edge devices storing edge device control code in a code repository including a plurality of code branches corresponding to a plurality of contextual scenarios;

during the monitoring, operating the AI enabled edge device in a first contextual scenario;

analyzing, by the AI enabled edge device and based on the monitoring, performance of the AI enabled edge device in the first contextual scenario to identify a code branch name for the first contextual scenario;

detecting that the AI enabled edge device is self-adapting code for the first contextual scenario; and

in response to the detecting and based on the identified code branch name, determining whether the plurality of code branches in the code repository includes a branch corresponding to the first contextual scenario.

2. The CIM of claim 1 further comprising:

using an ontology hierarchy of the plurality of contextual scenarios to segment the contextual scenarios;

using the ontology hierarchy of the plurality of contextual scenarios to correlate how the contextual scenarios are related; and

creating a first hierarchical code branch in a version control tool system corresponding to the first contextual scenario.

3. The CIM of claim 1 further comprising:

predicting a second contextual scenario where the AI enabled edge device can perform a predetermined activity; and

proactively deploying self-adapted code on the AI enabled edge device.

4. The CIM of claim 1 further comprising:

performing dynamic code branching of self-adapted code upon successful execution of the first contextual scenario by the AI enabled edge device.

5. The CIM of claim 1 wherein the set of sensor device(s) includes a video camera that outputs a visual feed.

6. The CIM of claim 1 wherein the set of sensor device(s) includes an Internet of Things (IoT) sensor device.

7. A computer-implemented method (CIM) comprising:

monitoring, using a set of sensor device(s), an artificial intelligence (AI) enabled autonomous vehicle (AV) from a set of AI enabled AVs storing edge device control code in a code repository including a plurality of code branches corresponding to a plurality of contextual scenarios;

during the monitoring, operating the AV in a first contextual scenario;

analyzing, by the AV and based on the monitoring by the set of sensor device(s), performance of the AV in the first contextual scenario to identify a code branch name for the first contextual scenario;

detecting that the AV is self-adapting code for the first contextual scenario; and

in response to the detecting and based on the identified code branch name, determining whether the plurality of code branches in the code repository includes a branch corresponding to the first contextual scenario.

8. The CIM of claim 7 further comprising:

using an ontology hierarchy of the plurality of contextual scenarios to segment the contextual scenarios;

using the ontology hierarchy of the plurality of contextual scenarios to correlate how the contextual scenarios are related; and

creating a first hierarchical code branch in a version control tool system corresponding to the first contextual scenario.

9. The CIM of claim 7 further comprising:

performing dynamic code branching of self-adapted code upon successful execution of the first contextual scenario by the AV.

10. The CIM of claim 7 wherein the set of sensor device(s) includes a video camera that outputs a visual feed.

11. A computer-implemented method (CIM) comprising:

monitoring, using a set of sensor device(s), an artificial intelligence (AI) enabled industrial robotic device (IRD) from a set of AI enabled IRDs storing edge device control code in a code repository including a plurality of code branches corresponding to a plurality of contextual scenarios;

during the monitoring, operating the IRD in a first contextual scenario;

analyzing, by the IRD and based on the monitoring, performance of the IRD in the first contextual scenario to identify a code branch name for the first contextual scenario;

detecting that the IRD is self-adapting code for the first contextual scenario; and

in response to the detecting and based on the identified code branch name, determining whether the plurality of code branches in the code repository includes a branch corresponding to the first contextual scenario.

12. The CIM of claim 11 further comprising:

using an ontology hierarchy of the plurality of contextual scenarios to segment the contextual scenarios;

using the ontology hierarchy of the plurality of contextual scenarios to correlate how the contextual scenarios are related; and

creating a first hierarchical code branch in a version control tool system corresponding to the first contextual scenario.

13. The CIM of claim 11 further comprising:

performing dynamic code branching of self-adapted code upon successful execution of the first contextual scenario by the IRD.

14. The CIM of claim 11 wherein the set of sensor device(s) includes an Internet of Things (IoT) sensor device.

15. The CIM of claim 1 , further comprising updating the code repository based on the self-adapted code.

16. The CIM of claim 15 , wherein the updating comprises:

in response to determining that the plurality of code branches does not include the branch corresponding to the first contextual scenario, creating a hierarchical code branch corresponding to the first contextual scenario in the code repository; and

storing the self-adapted code in the hierarchical code branch.

17. The CIM of claim 15 , wherein the updating comprises, in response to determining that the plurality of code branches includes the branch corresponding to the first contextual scenario, applying changes to code stored in the branch based on the self-adapting.

18. The CIM of claim 15 , further comprising deploying the self-adapted code on a second device from the set of AI enabled edge devices in response to determining that the second device is operating in the first contextual scenario.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 14, 2022
From: PERUMALLA, SARASWATHI SAILAJA; RAKSHIT, SARBAJIT K.; RAO, SOWJANYA
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 060192/0874 →
Continuity (1)
Related Publication 20230401909A1 · Dec 14, 2023
References Cited (15)
US 11088784B1 · Gopalan · 2021 [cited by applicant]
US 20080234998A1 · Cohen · 2008 [cited by examiner]
US 20150277915A1 · Kelm · 2015 [cited by examiner]
US 20160321038A1 · Ge · 2016 [cited by examiner]
US 20180210734A1 · Jiang · 2018 [cited by examiner]
US 20200371906A1 · Tertzakian · 2020 [cited by examiner]
US 20210179144A1 · Kain · 2021 [cited by applicant]
US 20210325901A1 · Gyllenhammar · 2021 [cited by examiner]
US 20220327826A1 · Chaterji · 2022 [cited by examiner]
US 20230192147A1 · Raina · 2023 [cited by examiner]
US 20230252280A1 · Donderici · 2023 [cited by examiner]
CN 112114791A · 2020 [cited by applicant]
CN 112744226A · 2021 [cited by applicant]
Becker, K., “Using Artificial Intelligence to Write Self-Modifying/Improving Programs”, Artificial Intelligence, Programming, Software Development , Primary Objects, Jan. 27, 2013, 36 pgs., <http://www.primaryobjects.co… [cited by applicant]
Real, et al., “AutoML-Zero: Evolving Code that Learns”, Google AI Blog, Google Research, Jul. 9, 2020, 4 pgs., https://ai.googleblog.com/2020/07/automl-zero-evolving-code-that-learns.html>. [cited by applicant]