Device supporting environment intelligence

By designing secure processors and firewalls in mobile devices to protect AI models and sensitive data, the problem of always-on artificial intelligence power consumption and data security is solved, and efficient protection and updating of AI models and data are achieved.

CN118780970APending Publication Date: 2024-10-15MEDIATEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310866495.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-04-06
Filing Date
2023-07-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

In the existing technology, always-on artificial intelligence consumes a lot of power when used in mobile devices for environmental intelligence applications such as car accident sensing, and sensitive data and AI models lack effective protection in the sensor hub and are easily attacked, stolen or tampered with. .

Method used

Designed an appliance to support ambient intelligence, including a first secure processor, multiple secure applications associated with the AI ​​model, secure storage, and an AI session manager, protecting the AI ​​executable binary through a firewall and a trusted execution environment and sensitive data, ensuring the security and integrity of the AI ​​model, and providing an update and recovery mechanism.

Benefits of technology

It effectively protects AI models and sensitive data, reduces power consumption, ensures the security of data and models, and avoids the risk of attacks and tampering. It also supports the update and recovery of AI models, improving the security and reliability of the device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118780970A_ABST
    Figure CN118780970A_ABST
Patent Text Reader

Abstract

A device supporting environmental intelligence may include a first secure processor and a secure application embedded in the first secure processor associated with an artificial intelligence (AI) model. Each secure memory stores an AI executable binary file associated with a corresponding AI model, the second secure processor executes the AI executable binary file stored in the secure memory, and the AI session manager receives an AI session from the subsystem for identifying one of the AI models, and preparing and storing an AI executable binary file associated with the AI model into a secure memory corresponding thereto. The subsystem may trigger the second secure processor to execute the AI executable binary file stored in the secure memory.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to neural network (NN), and more particularly, to always-on artificial intelligence (AI) security. Background Art

[0002] The background description provided herein is intended to present the background of the present invention as a whole. The work of the present inventor (within the scope of the content described in this background technology section and not conforming to the description of the prior art at the time of submission) should not be admitted as prior art to the present invention, whether explicitly or implicitly.

[0003] Ambient intelligence (AmI), such as environmental sensing, aims to enhance the way the environment and people interact with each other. Specifically, AmI means intelligent computing that no longer requires explicit input and output devices; instead, various sensors (such as accelerometers, global positioning systems (GPS), microphones, cameras, etc.) and processors can be embedded in everyday electronic devices such as mobile phones, using artificial intelligence (AI) techniques to collect and process contextual information in order to, for example, interpret the state of the environment and the needs of the user. Summary of the invention

[0004] According to the present invention, a device supporting ambient intelligence is provided, which includes: a first security processor; a plurality of security applications embedded in the first security processor, each security application being associated with an artificial intelligence (AI) model; a plurality of security memories coupled to the first security processor, each security memory being configured to store an AI executable binary file, wherein the AI ​​executable binary file is associated with a corresponding AI model; a second security processor coupled to the plurality of security memories, the second security processor being configured to execute the AI ​​executable binary files stored in the plurality of security memories; a subsystem coupled to the second security processor; and an AI session manager coupled to the subsystem and the plurality of security applications, the AI ​​session manager being configured to receive an AI session for identifying one of the AI ​​models from the subsystem, and to prepare and store the AI ​​executable binary file associated with the AI ​​model in a security memory corresponding to the AI ​​executable binary file, wherein the subsystem triggers the second security processor to execute the AI ​​executable binary file stored in the security memory.

[0005] Through the present invention, AI models and sensitive data can be well protected, and the AI ​​models can also be updated or restored.

[0006] This summary of the invention section does not specifically describe every embodiment and / or incremental novel aspect of the disclosed or claimed invention. Instead, this summary of the invention section only provides a preliminary discussion of different embodiments and corresponding novel points relative to conventional techniques. For additional details of the present disclosure and embodiments, reference is made to the detailed description section of the disclosure and corresponding drawings discussed further below. BRIEF DESCRIPTION OF THE DRAWINGS

[0007] Various embodiments of the present disclosure, presented as examples, will be described in detail with reference to the following drawings, wherein like numerals refer to like elements, and wherein:

[0008] Figure 1 is a functional block diagram of an AmI-enabled device (eg, a mobile phone).

[0009] Figure 2 is a functional block diagram of an AmI-enabled device (eg, a mobile phone).

[0010] Figure 3 is a functional block diagram of an AmI-enabled device (eg, a mobile phone) according to some embodiments of the present disclosure.

[0011] Figure 4 is a functional block diagram of an AmI-enabled device (eg, a mobile phone) according to some embodiments of the present disclosure.

[0012] Figure 5 is a functional block diagram of an AmI-enabled device (eg, a mobile phone) according to some embodiments of the present disclosure.

[0013] Figure 6 is a functional block diagram of an AmI-enabled device (eg, a mobile phone) according to some embodiments of the present disclosure.

[0014] Figure 7 is a functional block diagram of an AmI-enabled device (eg, a mobile phone) according to some embodiments of the present disclosure. DETAILED DESCRIPTION

[0015] For example, ambient intelligence (AmI) for environmental sensing aims to enhance the way the environment and people interact with each other. Specifically, AmI means intelligent computing that no longer requires explicit input and output devices; instead, various sensors (such as accelerometers, global positioning systems (GPS), microphones, cameras, etc.) and processors can be embedded in everyday electronic devices such as mobile phones, using artificial intelligence (AI) technology to collect and process contextual information in order to, for example, interpret the state of the environment and the needs of the user.

[0016] For example, the “Personal Safety” app (APP) launched by Google has a function that can sense whether you are in a car accident and call the emergency number on your behalf if you are in a car accident. Another example is the artificial intelligence (AI) and machine learning (ML) algorithms (or models) installed in the camera, for example, by determining whether the image captured by the camera matches the facial biometric pattern of the owner's face, and can recognize the face of its owner.

[0017] In order for the crash sensing function to be actually useful, the mobile phone needs to be able to detect a crash all the time. For example, it can be done by executing always-on artificial intelligence (AI), continuously polling the accelerometer and microphone and then processing the data collected to determine whether a crash has occurred. However, the always-on continuous sensing task consumes a lot of the mobile phone's precious power resources.

[0018] A sensor hub (or context hub) is a low-power subsystem (e.g., a processor) that can be designed to process and interpret the data collected from the sensors and wake up the main application processor (AP) to take action. For example, after processing and interpreting the collected data and determining that a car accident has occurred, the sensor hub can wake up the AP and the mobile phone can call emergency services.

[0019] Figure 1 1 is a functional block diagram of an AmI-enabled device 100 (e.g., a mobile phone). The device 100 may include an AP 110, a low-power subsystem 120 (e.g., a sensor hub) coupled to the AP 110, a signal processor 130 (e.g., a low-power image signal processor (ISP)) coupled to the sensor hub 120, a processor 140 such as an AI accelerator (e.g., a deep learning accelerator (DLA), such as an accelerated processing unit (APU)) coupled to the sensor hub 120, and a memory 150 coupled to the sensor hub 120, the ISP 130, and the APU 140.

[0020] The AP 110 may enable environmental sensing functions, such as an always-on vision (AOV) client 111, and load an AI model 122 to the sensor hub 120, offloading a large amount of data processing collected from embedded sensors (e.g., a camera (not shown)) to the sensor hub 120. In the sensor hub 120, the camera driver 123 may drive the ISP 130 based on the AOV client 111 to process an image captured by the camera (e.g., a user's face) and send the processed image to a camera input 151 of the memory 150. A software development kit (SDK) 121, such as an AI inference SDK, may drive the APU 140 to execute the AI ​​model 122 on the processed image. For example, APU 140 includes an operation buffer 141, which can use an AI executable binary file corresponding to AI model 122 to execute AI model 122 on a processed image transmitted from camera input 151, and generate output 152 (e.g., a classification result), where output 152 is associated with whether the captured user face matches the facial biometric recognition pattern of the owner's face.

[0021] In the device 100, the sensor hub 120 can provide limited flexibility for secure computing. For example, when the mobile phone is running, the security of the sensor hub 120 can be protected by securing the booting stage and providing only fixed functions. Environmental sensing continuously perceives data including user privacy, such as voice, vision, surroundings, location, etc. This data, as well as the AI ​​model 122 loaded into the sensor hub 120, is likely to be attacked, stolen or tampered with if they are not well protected. In addition, the processed image executed by the APU 140 The artificial intelligence model 122 may not be captured from the camera, but transmitted from the outside by the attacker.

[0022] A firewall is a network security device that monitors all incoming and outgoing traffic and accepts, denies, or drops traffic based on a defined set of security rules. For example, a firewall can control network access by monitoring incoming and outgoing packets at any open systems interconnection (OSI) layer (including up to the application layer) and pass or stop incoming and outgoing packets based on the source and destination IP addresses, protocols, ports, and the packet's history in the state table to protect packets from attacks, theft, or tampering. Firewalls can be hardware-based or software-based.

[0023] Figure 2 is a functional block diagram of an AmI-enabled device 200 (e.g., a mobile phone). The difference between the device 200 and the device 100 is that in the device 200, the sensor hub 120 and the memory 150 are well protected, for example, via a firewall 290 (shown with a black background). Therefore, the sensed data and the artificial intelligence model 122 are safe, and an attacker cannot transfer images to the memory 150. However, the artificial intelligence model 122 needs to be restored or updated from time to time (e.g., using a new artificial intelligence model 112) in order to be used to continuously improve performance or security through device training or the Internet. The AP 110 cannot restore or update the AI ​​model 122 stored in the sensor hub 120 because the sensor hub 120 is protected by the firewall 290 and the AP 110 does not have permission to access the sensor hub 120.

[0024] Figure 3 is a functional block diagram of an AmI-enabled device 300 (e.g., a mobile phone) according to some embodiments of the present disclosure. The device 300 may include a secure operating system (OS) 360 that may provide a trusted execution environment (TEE) 393 (shown with a black background) for Android, in which, for example, code and data of trusted applications (TA) are protected in terms of confidentiality and integrity. The secure OS 360 may run on the same processor as the processor running Android (e.g., AP 110), but may be isolated from the rest of the system by hardware and software, where the rest of the system runs a rich OS in a rich execution environment (REE).

[0025] The AI ​​model 322 may be loaded within the TEE 393 provided by the secure OS 360, and an AI executable binary 381 and a control flow (including an AI session 327 such as an identifier (ID) of the AI ​​model 322, and an AI executor 328) for the AI ​​model 322 may be prepared (collectively referred to as AI preparation 361). The AI ​​executable binary 381 may be transferred to the secure memory 380, and the AI ​​session 327 and the AI ​​executor 328 may be transferred to a low-power subsystem 320, such as a sensor hub. A processor 340, such as an AI accelerator (e.g., a DLA, such as an APU), may execute the AI ​​executable binary 381 by determining the AI ​​session 327 and the AI ​​executor 328. In one embodiment, the memory 380 and the APU 340 may be protected (shown with a black background), for example via a first firewall 391, to protect the AI ​​executable binary 381 from attack, theft, or tampering. In Figure 3 In the example embodiment shown, sensor hub 320 is not protected because it only provides control flow to AI model 322, and the control flow does not involve any sensed data. In some embodiments, sensor hub 320 can also be protected, for example, via a firewall. For example, the firewall can provide a lower level of security than first firewall 391 because AI session 327 and AI executor 328 are not as important as AI executable binary file 381.

[0026] Figure 4 4 is a functional block diagram of an AmI-enabled device 400 (e.g., a mobile phone) according to some embodiments of the present disclosure. The device 400 may include a secure OS 460 that may provide a TEE 493 (shown with a black background) for Android. The AI ​​model 462 may be loaded into the TEE 493 provided by the secure OS 460. Data (e.g., facial biometric patterns 463) may also be protected in the TEE 493. An AI executable binary file 481 may be prepared based on the AI ​​model 462 and downloaded to a secure memory 480. The facial biometric patterns 463 may also be downloaded and stored in the secure memory 480.

[0027] The device 400 may also include a low-power subsystem 420, such as a sensor hub. In the sensor hub 420, the camera driver 423 may drive a signal processor 430 (e.g., a low-power ISP) based on the AOV client 111 to process an image (e.g., a user's face) captured by a camera (not shown) and send the processed image to a camera input 451 of a protected memory 450. The SDK 421 (e.g., an AI inference SDK) may drive a processor such as an AI accelerator (e.g., a DLA 440, such as an APU) to execute an AI model 462 on the processed image. For example, the APU 440 may execute the AI ​​model 462 on the processed image transmitted from the camera input 451 using the AI ​​executable binary file 481 and generate an output 452, such as a classification result associated with whether the captured user face matches the owner face (i.e., the facial biometric recognition pattern 463).

[0028] In one embodiment, the secure memory 480 and the APU 440 are well protected, for example, by a first firewall 491 (shown with a black background) to protect the AI ​​executable binary 481 and the facial biometric pattern 463 from damage, theft, and tampering. In another embodiment, the sensor hub 420, the protected memory 450, and the ISP 430 may also be protected, for example, by a second firewall 492 (shown with a gray background) to prevent an attacker from loading images into the ISP 430 and the protected memory 450. For example, the first firewall 491 may provide a higher level of security than the second firewall 492 because the facial biometric pattern 463 and the AI ​​executable binary 481 are more important than the captured image to be recognized by the APU 440.

[0029] In an example embodiment of the device 400, the AI ​​model 462 may be prepared by the TEE 493 provided by the secure OS 460 and protected for access only by the APU 440. In one embodiment, sensitive data (e.g., facial biometric patterns 463) may also be protected for access only by the APU 440.

[0030] Figure 5 is a functional block diagram of an AmI-enabled device 500 (e.g., a mobile phone) according to some embodiments of the present disclosure. The device 500 may include an AP 510 (e.g., may be referred to as a first secure processor), such as a main secured central processing unit (CPU) 510. A secure OS (or a privilege secured app) 560 may be embedded in the main secured CPU 510 to provide a TEE 593 (shown with a black background).

[0031] In one embodiment, two or more security apps may be protected within the TEE 593, and each of them may be associated with an AI model and an AI preparation. For example, a first security app 571A may be associated with a first AI model 522A and a first AI preparation 561A prepared by a security OS 560 based on the first AI model 522A. As another example, a second security app 571B may be associated with a second AI model 522B and a second AI preparation 561B prepared by a security OS 560 based on the second AI model 522B. In one embodiment, the first security app 571A and the second security app 571B may request the security OS 560 to open a specified file with specified access rights. For example, the security OS 560 may allow the request, then open the file and return a handle (e.g., a file descriptor, an index in a file descriptor table) to the first security app 571A and the second security app 571B. Therefore, the first security app 571A and the second security app 571B can access the secure OS 560 using the handle as a token.

[0032] In one embodiment, the first AI executable binary file 581A generated based on the first AI preparation 561A can be sent to the first secure memory 580A, and the second AI executable binary file 581B generated based on the second AI preparation 561B can be sent to the second secure memory 580B. The first AI executable binary file 581A and the second AI executable binary file 581B can be executed by the DLA (e.g., APU). In one embodiment, the first secure memory 580A and the second secure memory 580B can be included in a single memory. In another embodiment, the first secure memory 580A and the second secure memory 580B can be separated from each other. In one embodiment, the first secure memory 580A and the second secure memory 580B can be protected, for example, via a first firewall 591 (shown with a black background) to protect the first AI executable binary file 581A and the second AI executable binary file 581B from attack, theft, or tampering.

[0033] In one embodiment, the device 500 may further include an AI session manager 570 and a low power subsystem 520 (e.g., a sensor hub). The sensor hub 520 may select one or more AI sessions (e.g., a first AI session 527A and a second AI session 527B) from among the multiple AI sessions and send them to the AI ​​session manager 570. Upon receiving the selected AI session, the AI ​​session manager 570 may manage the generation of an AI executable binary file based on the AI ​​preparation associated with the AI ​​session. For example, the sensor hub 520 may select the first AI session 527A and send it to the AI ​​session manager 570, and upon receiving the first AI session 527A, the AI ​​session manager 570 may manage the generation of the first AI executable binary file 581A based on the first AI preparation 561A associated with the first AI session 527A, send the generated first AI executable binary file 581A to the sensor hub 520, and notify the sensor hub 520 that the first AI executable binary file 581A is ready to be executed by a processor such as an AI accelerator (e.g., DLA, such as APU 540).

[0034] exist Figure 5 In the illustrated example embodiment of the device 500, the AI ​​session manager 570 may also be protected within the TEE 593 provided by the secure OS 560. In one embodiment, the sensor hub 520 may also be protected by, for example, a second firewall 592 (shown with a gray background). For example, the second firewall 592 may provide a lower level of security than the first firewall 591 because the control flow (including the first AI session 527A and the second AI session 527B, such as the IDs of the first AI model 522A and the second AI model 522B, and the first AI executor 528A and the second AI executor 528B) is not as important as the first AI executable binary file 581A and the second AI executable binary file 581B.

[0035] In one embodiment, the device 500 may also include an isolated or secure DLA 540, such as an APU, which may utilize one of the first AI executable binary file 581A and the second AI executable binary file 581B to execute one of the first AI model 522A and the second AI model 522B. For example, the first executor 528A or the second AI executor 528B may trigger the APU 540 (e.g., which may be referred to as a second secure processor) to execute the first AI executable binary file 581A or the second AI executable binary file 581B corresponding to the first AI session 527A or the second AI session 527B, respectively. In one embodiment, the APU 540 may also be protected, for example, via a firewall (e.g., the first firewall 591).

[0036] In an example embodiment of the device 500, the first AI model 522A and the second AI model 522B can be protected by the TEE 593. In one embodiment, sensitive data (e.g., facial biometric pattern 463) can also be protected within the TEE 593 and downloaded and stored in the first secure memory 580A and / or the second secure memory 580B. In some embodiments, the first AI model 522A and the second AI model 522B protected within the TEE 593 can be updated or restored, and the new AI model (e.g., Figures 1 to 3 New AI models 112 as shown may also be loaded, with mTEE (secure execution environment) verification or decryption to ensure security and integrity.

[0037] Figure 6 6 is a functional block diagram of an AmI-enabled device 600 (e.g., a mobile phone) according to some embodiments of the present disclosure. Device 600 may be similar to device 500 except for the location of AI session manager 570 and the omission of secure OS 560. Figure 6 In the illustrated example embodiment of the apparatus 600 , the AI ​​session manager 570 is embedded in the secure APU 540 , which can centrally manage the supported multiple OS (hosts).

[0038] Figure 7 is a functional block diagram of an AmI-enabled device 700 (e.g., a mobile phone) according to some embodiments of the present disclosure. Device 700 may be similar to device 500 except for the location of AI session manager 570 and the omission of secure OS 560. Figure 7 In the example embodiment of the device 700 shown, the AI ​​session manager 570 is independent of the main security CPU 510 and the security APU 540.

[0039] Although various aspects of the present disclosure have been described in conjunction with specific embodiments proposed as examples, the examples may be substituted, modified, and altered. Therefore, the embodiments set forth herein are intended to be illustrative rather than restrictive. Various changes may be made without departing from the scope of the claims.

Claims

1. A device supporting ambient intelligence, comprising: First security processor; a plurality of security applications embedded in the first security processor, each security application being associated with an artificial intelligence (AI) model; A plurality of secure memories coupled to the first secure processor, each secure memory being configured to store an AI executable binary file, wherein the AI ​​executable binary file is associated with a corresponding one of the AI ​​models; a second secure processor coupled to the plurality of secure memories, the second secure processor configured to execute the AI ​​executable binary files stored in the plurality of secure memories; a subsystem coupled to the second security processor; as well as an AI session manager coupled to the subsystem and the plurality of secure applications, the AI ​​session manager configured to receive an AI session from the subsystem for identifying one of the AI ​​models, and to prepare and store the AI ​​executable binary file associated with the AI ​​model in a secure memory corresponding to the AI ​​executable binary file, The subsystem triggers the second security processor to execute the AI ​​executable binary file stored in the secure memory.

2. The apparatus of claim 1, further comprising a secure operating system (OS) embedded in the first secure processor, the secure OS being configured to provide a trusted execution environment (TEE), wherein the plurality of secure applications are protected in the TEE.

3. The apparatus of claim 2, wherein the AI ​​session manager is embedded in the first secure processor and protected within the TEE.

4. The device according to claim 2, wherein: The plurality of secure memories and the second secure processor are protected by a first firewall.

5. The device according to claim 4, wherein: The subsystem is protected by a second firewall.

6. The device according to claim 5, wherein: The first firewall provides a higher security level than the second firewall.

7. The apparatus of claim 2, further comprising: A second memory coupled to the second secure processor, the second memory configured to store data, wherein the second secure processor executes the AI ​​executable binary file on the data.

8. The apparatus of claim 7, further comprising: an image signal processor ISP coupled to the second memory, the ISP being configured to process an image and store the processed image in the second memory, and secure facial biometric mode in the TEE, The second security processor executes the AI ​​executable binary file to determine whether any processed image matches the facial biometric pattern.

9. The device of claim 1, wherein: The plurality of secure memories and the second secure processor are protected by a first firewall.

10. The device of claim 9, wherein: The AI ​​session manager is embedded in the second secure processor.

11. The device of claim 9, wherein: The AI ​​session manager is protected by the first firewall.

12. The device of claim 9, wherein: The subsystem is protected by a second firewall therein.

13. The device of claim 12, wherein: The first firewall provides a higher security level than the second firewall.

14. The apparatus of claim 1, wherein the subsystem comprises a sensor hub.

15. The device of claim 1, wherein: The first secure processor comprises a secure central processing unit CPU.

16. The device of claim 1, wherein: The second secure processor includes a secure deep learning accelerator DLA.

17. The device of claim 16, wherein: The DLA includes an accelerated processing unit APU.