Cloud edge cooperation system and method based on artificial intelligence middle table and edge
By introducing the artificial intelligence middle platform and edge inference device AIBox into the cloud-edge collaboration system, the problems of video format adaptation and model acceleration are solved, the efficient operation and rapid implementation of AI models on edge devices are realized, and application costs are reduced.
Patent Information
- Application Number
- CN202410009796.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-03
- Publication Date
- 2024-10-29
AI Technical Summary
The existing technology lacks video format adaptation capabilities in cloud-edge collaboration systems, cannot automatically adapt to multiple video devices, and does not implement automatic format conversion and hardware acceleration of artificial intelligence models.
A cloud-edge collaboration system based on artificial intelligence middle platform and edge is designed, including artificial intelligence middle platform and edge inference device AIBox. The edge inference device is managed through the artificial intelligence middle platform, and an interface is provided for the cloud middle platform to issue models. It receives and Convert the model, manage edge input sources and result outputs, implement model inference calculations, and process and accelerate data such as video streams through the input source management module, model management module, and edge inference engine module.
It realizes the association and file distribution of AI models and edge inference devices, reduces the cost of applying AI models at the edge, improves model operation efficiency, and reduces development costs through automated processing.
Smart Images

Figure CN118869686A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technologies, and in particular to a cloud-edge collaboration system and method based on an artificial intelligence middle platform and edge. Background Art
[0002] Cloud-edge collaboration is the complementary collaboration between cloud computing and edge computing. The introduction of the edge computing model provides a new solution to the shortcomings of the centralized cloud computing model. It is a product that adapts to the needs of technological development, but it cannot completely replace cloud computing. The two operate in collaboration; through the close collaboration of cloud and edge, the needs of various application scenarios can be better met, thereby amplifying the application value of both. The Edge Computing Industry Alliance proposed that cloud-edge collaboration includes multiple collaborations such as infrastructure as a service, platform as a service, and software as a service, and regards networks, infrastructure, services, and applications as objects of collaboration.
[0003] In artificial intelligence technology, a large amount of computing power and data are indispensable. The centralized and shared computing power and data resources on the cloud provide the necessary conditions for building artificial intelligence models. At the same time, edge computing is one of the most important components. Especially for the industrial manufacturing industry, there are very high requirements for the real-time performance of model calculations, and edge computing has advantages in cost, latency, and privacy. By connecting and combining cloud training with real-time edge operation, artificial intelligence results can be quickly implemented and the value of technology can be brought into play.
[0004] Patent document CN115599464A discloses a lightweight cloud-edge collaborative artificial intelligence reasoning task dynamic import system whose structure includes a cloud center node and multiple edge nodes. The cloud center node is used to manage artificial intelligence reasoning models and reasoning tasks, and the edge node is used to obtain artificial intelligence reasoning models and reasoning tasks, and load reasoning tasks in a process manner through dynamic import components, so as to realize the cloud center node to continuously send reasoning tasks to the edge nodes.
[0005] However, patent document CN115599464A lacks the ability to adapt to video formats and fails to automatically adapt to a variety of video devices. At the same time, it fails to achieve automatic format conversion and hardware acceleration for the distributed artificial intelligence model. Summary of the invention
[0006] In view of the defects in the prior art, the purpose of the present invention is to provide a cloud-edge collaboration system and method based on artificial intelligence middle platform and edge.
[0007] According to the present invention, a cloud-edge collaborative system based on an artificial intelligence middle station and an edge includes: an artificial intelligence middle station and an edge reasoning device AIBox;
[0008] The artificial intelligence middle station manages the binding relationship between the edge reasoning device AIBox and the model, and provides a cloud middle station model distribution interface, receives the cloud middle station model in the edge reasoning device AIBox, and converts and accelerates it according to needs, manages edge input sources, result output, and model reasoning calculations.
[0009] Preferably, the edge inference device AIBox includes an input source management module, a model management module, an edge inference engine module and a result output management module;
[0010] The input source management module is used to support the edge inference device AIBox to connect to various input sources;
[0011] The model management module is used to manage the acquisition and storage of model files in the inference device AIBox;
[0012] The edge inference engine module builds the inference task in the device according to the downloaded model in the model management module and the script corresponding to the model, performs inference calculation in combination with the input data, and outputs the recognition result;
[0013] The result output management module outputs the inference results in various forms for the tasks being run by the edge inference engine module, for feedback to users or peripheral systems.
[0014] Preferably, the input source management module includes visual and data interface input modes, and supports data input modes including video stream, industrial camera, network camera and HTTP interface submission.
[0015] Preferably, the model management module selects the available model that is authorized to be downloaded and binds it to the current inference device according to the user binding information, and obtains the files and configuration parameters required for the model operation through the interface. After the model version on the cloud is iterated, the local model version and operation are updated, and the model can be upgraded and updated when a new version of the model is available.
[0016] Preferably, the edge inference engine module is connected to the model inference task according to the managed input source as the input data required for inference, and monitors the running status of the inference task in real time;
[0017] The edge inference engine module collects the abnormal results of the inference output, retains a predetermined time or a predetermined number of abnormal events, and feeds back the abnormal events to the user for review through an online alarm.
[0018] Preferably, the multiple forms of output in the result output management module include socket communication, http web hook interface, and video result streaming display;
[0019] The result output management module combines and processes the alarm results generated during model reasoning to form independent alarm events that are fed back to users or peripheral systems.
[0020] The cloud-edge collaboration method based on artificial intelligence middle platform and edge of the cloud-edge collaboration system based on artificial intelligence middle platform and edge described in the present invention includes:
[0021] Step S1: The AI platform sends the cloud platform model to the edge inference device AIBox;
[0022] Step S2: The edge inference device AIBox receives the cloud-based middle-station model, converts and accelerates the cloud-based middle-station model, manages edge input sources, result output, and edge inference calculations.
[0023] Preferably, constructing the inference task in the device in edge inference computing includes the following sub-steps:
[0024] Step S2.1: Create a new reasoning task according to the task process scheduling manager;
[0025] Step S2.2: Load the corresponding inference model file and the image encoding and decoding module, perform inference operation on the decoded image, and obtain structured data after the inference operation;
[0026] Step S2.3: Generate a corresponding alarm event according to the structured data.
[0027] Preferably, step S2.3 comprises:
[0028] Step S2.3.1: Load the corresponding alarm message queue according to the alarm event;
[0029] Step S2.3.2: performing a process including merging duplicate alarm information and removing abnormal alarm information on the alarm information in the alarm message queue, and unifying the alarm result format;
[0030] Step S2.3.3: Stop the alarm after publishing the alarm results of different protocols according to the alarm message queue.
[0031] Preferably, the model download includes downloading the corresponding model file according to the determined model type, and verifying the model file including the MD5 code, downloading the model after the verification is completed, and completing the model download after converting the model format.
[0032] Compared with the prior art, the present invention has the following beneficial effects:
[0033] 1. The present invention adopts the cloud-edge collaborative architecture of artificial intelligence middle platform and edge devices, and solves the problems of association and file distribution between AI models and edge inference devices through functions such as device management and model distribution, and assists in the rapid implementation of AI capabilities in industrial scenarios.
[0034] 2. The present invention uses modules such as edge device input source management to allow users to connect model reasoning tasks with required recognition data through interface operations, thereby reducing the cost of edge applications of AI models.
[0035] 3. The present invention uses the edge inference engine module to enable the program to automatically obtain the AI model and run the inference work at the edge, which improves the model operation efficiency and reduces the model development cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments made with reference to the following drawings:
[0037] Figure 1 It is a system combination block diagram of the present invention.
[0038] Figure 2 A flowchart is created for the edge inference engine task in the present invention.
[0039] Figure 3 It is a schematic diagram of the alarm result merging processing flow in the present invention.
[0040] Figure 4 It is a schematic diagram of the model downloading process in the present invention. DETAILED DESCRIPTION
[0041] The present invention is described in detail below in conjunction with specific embodiments. The following embodiments will help those skilled in the art to further understand the present invention, but are not intended to limit the present invention in any form. It should be noted that, for those of ordinary skill in the art, several changes and improvements can also be made without departing from the concept of the present invention. These all belong to the protection scope of the present invention.
[0042] The artificial intelligence middle platform and edge cloud edge collaborative architecture in the present invention is used to support the edge distribution of enterprise AI models. The architecture includes an artificial intelligence middle platform system and edge inference equipment, which are used to support the development and distribution of enterprise AI models.
[0043] According to a cloud-edge collaborative system based on artificial intelligence middle platform and edge provided by the present invention, Figure 1As shown, it includes: artificial intelligence middle platform and edge reasoning device AIBox. The artificial intelligence middle platform manages the binding relationship between the edge reasoning device AIBox and the model, and provides a cloud middle platform model delivery interface, receives the cloud middle platform model in the edge reasoning device AIBox, and converts and accelerates it according to needs, manages edge input sources, result output, and model reasoning calculation.
[0044] Among them, the artificial intelligence middle platform includes the following modules:
[0045] Model engine module: The model engine manages model tasks and connects to container clusters of heterogeneous computing resources. The model engine is responsible for directly connecting to computing resources, combining various model training, reasoning, and analysis tasks submitted by the model factory with computing cluster resources for operation.
[0046] Model factory module: provides a model development pipeline for algorithm engineers. The pipeline is used to guide model developers to prepare the content required for model training and reasoning, and apply to the model engine module to execute tasks, and then hand over the tasks to the model engine. The model factory manages and organizes model metadata information, sample data sets required for training, and algorithm programs in combination with training and reasoning requirements, and supports users to organize these resources, complete the training process through the model engine, and form the model files generated after the training is completed, and form available model records in the model market.
[0047] Model Market Module: Collaborate with the AIBox module connected to the middle platform to form a cloud-edge collaboration solution. Help model developers launch the developed models on the market, publish the trained models to the model market module for sharing and display, or purchase models developed by others. The module maintains the basic information of the edge inference device AIBox, including the name, description, URL and other information of the AIBox, and registers it in the middle platform. Users can apply for a license for the registered AIBox for subsequent verification of the AIBox device information. Module management supports users to manage the AIBox under their own tenants, and supports binding the AIBox with the available models in the tenant. Edge device management provides an interface based on license verification for edge devices to obtain the corresponding tenant and model information, and provides the environment, code, model file and other resource downloads required for model operation, which is used for the edge inference engine to start the inference service. The module supports obtaining the operation status of the inference device according to the URL, including the real-time occupation of CPU, memory, GPU, and video memory resources, and supports viewing the operation status of the inference task in the specified device. At the same time, the module supports the ability to summarize and display the device error log based on the interface, which is used to investigate problems during model inference operation.
[0048] The edge inference device AIBox includes an input source management module, a model management module, an edge inference engine module and a result output management module. Among them, the input source management module is used to support the edge inference device AIBox to connect to various input sources. The model management module is used to manage the acquisition and storage of model files in the inference device AIBox. The edge inference engine module builds the inference task in the device according to the downloaded model in the model management module and the script corresponding to the model, performs inference calculations based on the input data, and outputs the recognition result. Specifically, the edge inference engine is responsible for scheduling and running model inference tasks. The result output management module meets the requirements of outputting the inference results in various forms for the tasks in the edge inference engine module, which are used for feedback to users or surrounding systems.
[0049] Specifically, the input source management module includes visual and data interface input methods, and supports data input methods including video streams, industrial cameras, network cameras, and HTTP interface submission. At the same time, the input source management module is adapted to Dahua, Hikvision and other equipment communication protocols, supports users to manually configure the storage of input device name and location and other information descriptions, and supports the setting of rtsp and other information, which is convenient for managing common input device data access model inference tasks.
[0050] The model management module selects the available models that are authorized to download and binds them to the current inference device based on the user binding information, and obtains the files and configuration parameters required for the model operation through the interface. After the model version is iterated on the cloud, the local model version and operation are updated, and the model can be upgraded when a new version of the model is available. At the same time, the model management module can import the model file into the model management module based on the user inserting a USB flash drive or other storage device on the hardware device, and determine whether format conversion is required based on the algorithm and AI framework used by the model. The model is converted into a file suitable for execution on the edge device by executing the script conversion, and the inference is accelerated according to the operator used by the model algorithm.
[0051] The edge inference engine module is based on the imported model file. The algorithm and model type can create inference tasks based on the edge device hardware and computing power, connect with the model inference task according to the managed input source as the input data required for inference, and monitor the operation of the inference task in real time. The edge inference engine module can collect the abnormal results of the inference output, retain the abnormal events of the predetermined time or the predetermined number, and feedback the abnormal events to the user through the online alarm.
[0052] The result output management module has various forms of output, including socket communication, http web hook interface, and video result streaming display, to meet the peripheral system's further processing requirements such as control, collection, and analysis based on the reasoning results. The result output management module merges the alarm results generated during model reasoning to form independent alarm events that are fed back to users or peripheral systems.
[0053] The cloud-edge collaboration method based on artificial intelligence middle station and edge of the cloud-edge collaboration system based on artificial intelligence middle station and edge in the present invention includes:
[0054] Step S1: The artificial intelligence center sends the cloud center model to the edge inference device AIBox.
[0055] Step S2: The edge inference device AIBox receives the cloud-based middleware model, converts and accelerates the cloud-based middleware model, manages edge input sources, result output, and edge inference calculations. Figure 2 As shown in the figure, building the inference task in the device in edge inference computing includes the following sub-steps:
[0056] Step S2.1: Create a new reasoning task according to the task process scheduling manager.
[0057] Step S2.2: Load the corresponding inference model file and image encoding and decoding module, perform inference operation on the decoded image, and obtain structured data after the inference operation.
[0058] Step S2.3: Generate corresponding alarm events according to structured data. Figure 3 As shown, step S2.3 includes:
[0059] Step S2.3.1: Load the corresponding alarm message queue according to the alarm event.
[0060] Step S2.3.2: The alarm information in the alarm message queue is processed by merging duplicate alarm information and removing abnormal alarm information, and the alarm result format is unified.
[0061] Step S2.3.3: Stop the alarm after publishing the alarm results of different protocols according to the alarm message queue.
[0062] Specifically, Figure 4 As shown, the model download includes downloading the corresponding model file according to the determined model type, and verifying the model file including the MD5 code. After the verification is completed, the model is downloaded, and the model format is converted to complete the model download.
[0063] Furthermore, the present invention is described as follows through the application scenario in the delivery link of the mineral powder production line:
[0064] In the delivery process of the mineral powder production line, the mineral powder is loaded into the tank through a lifting cylindrical cone-shaped delivery head, and the driver needs to stop the tank mouth just below the delivery head. In the past, whether the tank mouth and the delivery head are aligned required someone to observe the video image and instruct the driver to adjust the vehicle position, which was time-consuming and inefficient.
[0065] Based on the visual pipeline, users can support self-service training to build models, send edge reasoning, combine with AIBox, quickly connect to the on-site video stream, and output the results to display the centering results in real time, so that the driver can complete the tank mouth centering work by himself. The cloud-edge collaborative architecture allows non-AI professionals to carry out model-related work. Multi-channel video reasoning can be achieved in a single AIBox embedded device, reducing the cost of edge reasoning applications. Through the industry-wide algorithms, online annotation services, and edge reasoning components accumulated by the middle platform, the visual model training and deployment work is shortened from 1 to 2 months to less than a week, greatly improving the efficiency of model building and iteration.
[0066] Those skilled in the art know that, in addition to implementing the system, device and its various modules provided by the present invention in a purely computer-readable program code, it is entirely possible to implement the same program in the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers and embedded microcontrollers by logically programming the method steps. Therefore, the system, device and its various modules provided by the present invention can be considered as a hardware component, and the modules included therein for implementing various programs can also be considered as structures within the hardware component; the modules for implementing various functions can also be considered as both software programs for implementing the method and structures within the hardware component.
[0067] The above describes the specific embodiments of the present invention. It should be understood that the present invention is not limited to the above specific embodiments, and those skilled in the art can make various changes or modifications within the scope of the claims, which does not affect the essence of the present invention. In the absence of conflict, the embodiments of the present application and the features in the embodiments can be combined with each other arbitrarily.
Claims
1. A cloud-edge collaborative system based on artificial intelligence middle platform and edge, characterized in that: include: Artificial intelligence middleware and edge inference device AIBox; The artificial intelligence middle station manages the binding relationship between the edge reasoning device AIBox and the model, and provides a cloud middle station model distribution interface, receives the cloud middle station model in the edge reasoning device AIBox, and converts and accelerates it according to needs, manages edge input sources, result output, and model reasoning calculations.
2. The cloud-edge collaborative system based on artificial intelligence middle platform and edge according to claim 1 is characterized in that: The edge inference device AIBox includes an input source management module, a model management module, an edge inference engine module and a result output management module; The input source management module is used to support the edge inference device AIBox to connect to various input sources; The model management module is used to manage the acquisition and storage of model files in the inference device AIBox; The edge inference engine module builds the inference task in the device according to the downloaded model in the model management module and the script corresponding to the model, performs inference calculation in combination with the input data, and outputs the recognition result; The result output management module outputs the inference results in various forms for the tasks being run by the edge inference engine module, for feedback to users or peripheral systems.
3. The cloud-edge collaborative system based on artificial intelligence middle platform and edge according to claim 2 is characterized in that: The input source management module includes visual and data interface input methods, and supports data input methods including video streams, industrial cameras, network cameras and HTTP interface submissions.
4. The cloud-edge collaborative system based on artificial intelligence middle platform and edge according to claim 2 is characterized in that: The model management module selects the available models that are authorized to be downloaded and binds them to the current inference device based on the user binding information, and obtains the files and configuration parameters required for model operation through the interface. After the model version on the cloud is iterated, the local model version and operation are updated. When a new version of the model is available, the model can be upgraded.
5. The cloud-edge collaborative system based on artificial intelligence middle platform and edge according to claim 2 is characterized in that: The edge inference engine module connects to the model inference task based on the managed input source as the input data required for inference, and monitors the running status of the inference task in real time; The edge inference engine module collects the abnormal results of the inference output, retains a predetermined time or a predetermined number of abnormal events, and feeds back the abnormal events to the user for review through an online alarm.
6. The cloud-edge collaborative system based on artificial intelligence middle platform and edge according to claim 2 is characterized in that: The various forms of output in the result output management module include socket communication, http web hook interface, and video result streaming display; The result output management module combines and processes the alarm results generated during model reasoning to form independent alarm events that are fed back to users or peripheral systems.
7. A cloud-edge collaboration method based on an artificial intelligence middle station and edge according to the cloud-edge collaboration system based on an artificial intelligence middle station and edge according to claim 1, characterized in that: include: Step S1: The AI platform sends the cloud platform model to the edge inference device AIBox; Step S2: The edge inference device AIBox receives the cloud-based middle-station model, converts and accelerates the cloud-based middle-station model, manages edge input sources, result output, and edge inference calculations.
8. The cloud-edge collaboration method based on artificial intelligence middle platform and edge according to claim 7 is characterized in that: Building an inference task on a device in edge inference computing includes the following sub-steps: Step S2.1: Create a new reasoning task according to the task process scheduling manager; Step S2.2: Load the corresponding inference model file and the image encoding and decoding module, perform inference operation on the decoded image, and obtain structured data after the inference operation; Step S2.3: Generate a corresponding alarm event according to the structured data.
9. The cloud-edge collaboration method based on artificial intelligence middle platform and edge according to claim 8 is characterized in that: Step S2.3 includes: Step S2.3.1: Load the corresponding alarm message queue according to the alarm event; Step S2.3.2: performing a process including merging duplicate alarm information and removing abnormal alarm information on the alarm information in the alarm message queue, and unifying the alarm result format; Step S2.3.3: Stop the alarm after publishing the alarm results of different protocols according to the alarm message queue.
10. The cloud-edge collaboration method based on artificial intelligence middle platform and edge according to claim 7 is characterized in that: Model downloading includes downloading the corresponding model file according to the determined model type, and verifying the model file including the MD5 code. After the verification is completed, the model is downloaded, and the model format is converted before completing the model download.
Citation Information
Patent Citations
Lightweight cloud edge collaborative artificial intelligence reasoning task dynamic import system
CN115599464A
