Real-time audio-visual stream processing system for IoT devices based on artificial intelligence
By adopting a real-time processing system based on artificial intelligence on IoT devices and using the AI cloud server to process audio-visual streams, the delay problem caused by insufficient computing power of the device is solved, low-cost and efficient real-time streaming media processing is achieved, and better services are provided. user experience.
Patent Information
- Application Number
- CN202210375466.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2042-04-11
AI Technical Summary
The limited computing power of IoT devices results in large delays when artificial intelligence processes audio-visual streams. Traditional methods have bottlenecks in high-cost local processing or cloud processing, making it difficult to implement real-time streaming media processing on low-cost mobile devices.
Adopt a real-time processing system for audio-visual streams of Internet of Things devices based on artificial intelligence. Through the WEBSOCKET connection between the collection module, user terminal equipment and AI cloud server, the audio-visual stream is processed in real time, and the AI cloud server is used for inference processing, and the results are transmitted back to the user. Terminal device display avoids the delay of local processing and the high cost of cloud processing.
Real-time processing of audio-visual streams on IoT devices is achieved, reducing latency and avoiding high-cost processing requirements, providing a better streaming experience.
Smart Images

Figure CN114844873B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of information technology, and in particular relates to a real-time processing system for audiovisual streams of Internet of Things devices based on artificial intelligence. Background Art
[0002] Streaming technology is not a new concept, and many solutions for streaming video and audio have been created for transmitting data over wireless connections using different transmission protocols. Similarly, although developed later, some of these protocols can be used to achieve audiovisual streaming from robots and connected / IoT devices, but the difficulty of solving the connection problems of these devices and trying to maintain a constant transmission rate increases, and the limited computing power of IoT devices may hinder the fast encoding of the stream. With the advancement of artificial intelligence in recent years, and the realization of real-time performance for processing audiovisual data and receiving AI results, the addition of AI processes has added another level of complexity to the entire streaming process, requiring a different approach.
[0003] Some traditional successful approaches to applying AI to audio and video streams from a camera / microphone combination connected to a static processing system, where the data is processed locally immediately after acquisition, using the processing resources of the processing system, such as a standalone computer or in a local server connected to the local network to process the stream and apply them before transmitting the stream over the Internet by visualizing or modifying the audio to combine the original stream with the results, after which the end user can see the modified stream on their end device. For example, someone streaming from their computer using an online conferencing application such as Zoom will record video and audio using the camera and microphone connected to the computer, the application will then use AI to detect people in the video stream, will remove backgrounds and add virtual backgrounds, and may even process the sound locally to remove background noise, and transmit the processed video and audio streams to another computer or smartphone using the Zoom app for viewing. This process is common and works well in systems where the AI model can run locally in a processing unit with sufficient processing power. Latency depends on the processing power of the local system. The lower the processing power, the greater the latency. Therefore, in order to reduce latency, the local processing system may require a higher cost. In the case of low-cost mobile robots or other IoT devices that we usually do not have high processing power, this may introduce a large delay, making the AI process very slow and adding a large delay to the entire streaming experience. In some cases where the processing power is insufficient, this may even hinder the completion of the entire process because the device does not have enough processing power to complete the AI process. In this way, traditional methods cannot be applied to robots or Internet of Things (IOT) devices. In addition to the above process, there are other methods, including the data collection device transmitting the audio-visual stream to the cloud server and using the computing power of the cloud server to complete the artificial intelligence process. After the AI processing is completed, the results are merged with the original stream and the final stream is sent to the end user's device for display. This process can avoid the complexity of the entire AI process and streaming on the original local system, and the AI process on the cloud server can indeed occur very quickly, but there is also a large cost to using cloud processing. Summary of the invention
[0004] The purpose of the embodiments of the present invention is to provide an artificial intelligence-based real-time audio-visual stream processing system for IoT devices, aiming to solve the problems raised in the above-mentioned background technology.
[0005] To achieve the above object, the present invention provides the following technical solutions:
[0006] The real-time audio-visual stream processing system for IoT devices based on artificial intelligence includes:
[0007] A collection module, the collection module is used to collect the audio-visual stream, and the collection module transmits the audio-visual stream to the user terminal device through the real-time streaming protocol;
[0008] A user terminal device, the user terminal device is used to run the WEBRTC graphic client, and the user terminal device accesses the collection module and the AI cloud server by connecting to the network;
[0009] An AI cloud server for performing inference on a CPU or GPU and a compute-optimized chip that supports a machine learning framework.
[0010] Furthermore, the collection module is an IOT device or a robot.
[0011] Furthermore, the system of the user terminal device is used to process audio-visual streams, isolate video frame sequences and audio clips in real time.
[0012] Furthermore, a WEBSOCKET connection is established between the user terminal device and the AI cloud server.
[0013] Furthermore, the user terminal device extracts data blocks from the stream and sends them to the AI cloud server via WEBSOCKET for calculation, and the AI cloud server sends the inference results back to the user terminal device via WEBSOCKET for display.
[0014] Furthermore, the specific steps of real-time processing of audio-visual streams are as follows:
[0015] 1) A P2P connection is initiated between the IoT device and the user terminal device;
[0016] 2) The real-time stream is received on the user terminal device and displayed directly to the user;
[0017] 3) The user terminal device extracts data blocks from the real-time stream and sends them to the AI cloud server;
[0018] 4) The AI cloud server processes the data blocks and sends the inference results back to the user terminal device;
[0019] 5) The user terminal device processes the inference results and displays the output on top of the stream.
[0020] Furthermore, the specific steps of interaction between IoT devices, user terminal devices and AI cloud servers are as follows:
[0021] a. WEBRTC handshake: The IoT device and the user terminal device use a third-party server to exchange WEBRTC handshakes for discovery. If the handshake is successful, the user terminal device establishes a WEBSOCKET connection with the AI cloud server;
[0022] b. Video stream establishment: The IoT device and the user terminal device are exchanging video streams, and the video is displayed on the user terminal device layer;
[0023] c. Frame extraction and calculation: The user terminal device extracts frames from the video stream and sends them to the AI cloud server through WEBSOCKET for calculation;
[0024] d. AI information display: After the calculation is completed, the AI cloud server sends the information back to the user terminal device through WEBSOCKET for display.
[0025] Compared with the prior art, the present invention has the following beneficial effects:
[0026] This artificial intelligence-based real-time processing system for audio-visual streams of IoT devices processes the audio-visual streams through collection modules, user terminal devices and AI cloud servers, providing better services for users, solving the subsequent high cost problem caused by the processing power of data acquisition equipment, and avoiding delays in transmitting audio-visual streams to user terminal devices. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 This is a structural diagram of the real-time processing system of audio-visual streams for IoT devices based on artificial intelligence.
[0028] Figure 2 Schematic diagram of the streaming layer and AI display layer on the user terminal device in the real-time audio-visual stream processing system for IoT devices based on artificial intelligence.
[0029] In the figure: 01-AI cloud server, 02-user terminal device, 03-IOT device. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0031] The specific implementation of the present invention is described in detail below in conjunction with specific embodiments.
[0032] like Figure 1 and Figure 2 As shown, a real-time processing system for audiovisual streams of IoT devices based on artificial intelligence is provided as an embodiment of the present invention, comprising:
[0033] A collection module, the collection module is used to collect the audio-visual stream, and the collection module transmits the audio-visual stream to the user terminal device 02 through a real-time streaming protocol;
[0034] User terminal device 02, the user terminal device 02 is used to run the WEBRTC graphic client, and the user terminal device 02 accesses the collection module and the AI cloud server 01 by connecting to the network;
[0035] AI cloud server 01, the AI cloud server 01 is used to perform reasoning on a CPU or GPU and a computing optimized chip that supports a machine learning framework.
[0036] In an embodiment of the present invention, preferably, the system of the user terminal device 02 uses local resources to process the separated data streams through the AI cloud server 01, or transmits the separated data to the cloud, the cloud processes it according to the network performance, and the processed results are sent back to the user terminal device 02, the user terminal device 02 combines the processed results with the original stream, and reproduces the final stream for the user to watch and listen.
[0037] like Figure 1 As shown, as a preferred embodiment of the present invention, the collection module is an IOT device 03 or a robot.
[0038] In an embodiment of the present invention, preferably, the audiovisual stream is collected by a robot or an IoT device and transmitted directly to an end-user device using a real-time streaming protocol.
[0039] like Figure 1 As shown, as a preferred embodiment of the present invention, the system of the user terminal device 02 is used to process audio-visual streams, isolate video frame sequences and audio clips in real time.
[0040] In an embodiment of the present invention, preferably, the system of the user terminal device 02 is responsible for processing the stream, isolating the video frame sequence and the audio clip, after which the system uses the local resources of the user terminal device 02 to process the separated streams through AI or transmit some isolated data to the cloud, which processes them according to the network performance and sends the results back to the local device, combines them with the original stream, and reproduces the final stream for the end user to listen and watch.
[0041] like Figure 1 As shown, as a preferred embodiment of the present invention, a WEBSOCKET connection is established between the user terminal device 02 and the AI cloud server 01.
[0042] In the embodiment of the present invention, preferably, WEBSOCKET is a protocol for full-duplex communication on a single TCP connection.
[0043] like Figure 1As shown, as a preferred embodiment of the present invention, the user terminal device 02 extracts the data block from the stream and sends it to the AI cloud server 01 through WEBSOCKET for calculation, and the AI cloud server 01 sends the inference result back to the user terminal device 02 through WEBSOCKET for display.
[0044] In the embodiment of the present invention, preferably, the user terminal device 02 has WEBSOCKET support.
[0045] like Figure 1 As shown, as a preferred embodiment of the present invention, the specific steps of real-time processing of audio-visual streams are as follows:
[0046] 1) A P2P connection is initiated between the IOT device 03 and the user terminal device 02;
[0047] 2) The real-time stream is received on the user terminal device 02 and displayed directly to the user;
[0048] 3) The user terminal device 02 extracts data blocks from the real-time stream and sends them to the AI cloud server 01;
[0049] 4) AI cloud server 01 processes the data block and sends the inference result back to user terminal device 02;
[0050] 5) The user terminal device 02 processes the inference result and displays the output on top of the stream.
[0051] In the embodiments of the present invention, preferably, P2P is the abbreviation of Peer-to-Peer, which means "point-to-point" or "end-to-end". In a P2P network, the status of all nodes is equal, and each node acts as both a server and a client, which can relieve the pressure on the central server and make resource or task processing more decentralized.
[0052] like Figure 2 As shown, as a preferred embodiment of the present invention, the specific steps of interaction between the IOT device 03, the user terminal device 02 and the AI cloud server 01 are as follows:
[0053] a. WEBRTC handshake: The IoT device and the user terminal device use a third-party server to exchange WEBRTC handshakes for discovery. If the handshake is successful, the user terminal device establishes a WEBSOCKET connection with the AI cloud server;
[0054] b. Video stream establishment: The IoT device and the user terminal device are exchanging video streams, and the video is displayed on the user terminal device layer;
[0055] c. Frame extraction and calculation: The user terminal device extracts frames from the video stream and sends them to the AI cloud server through WEBSOCKET for calculation;
[0056] d. AI information display: After the calculation is completed, the AI cloud server sends the information back to the user terminal device through WEBSOCKET for display.
[0057] In an embodiment of the present invention, preferably, the user device extracts frames from the stream and sends them to the AI cloud server 01 through a WEBSOCKET connection for calculation. During this period, the video stream is still displayed, and new extraction is performed only after receiving a reply from the AI cloud server 01. After the calculation is completed, the AI cloud server 01 sends the information back to the user device through the WEBSOCKET for display. Since the video is already displayed on one layer, another layer is added on it to display the AI information. Under normal circumstances, the delay of the WEBRTC stream is about 0.2 seconds, the request to the AI cloud server 01 takes about 0.2 seconds, and the AI reasoning takes 0.1 seconds.
[0058] The working principle of the present invention is:
[0059] This artificial intelligence-based real-time processing system for audio-visual streams of IoT devices processes the audio-visual streams through the collection module, user terminal device 02 and AI cloud server 01, providing better services for users, solving the subsequent high cost problem caused by the processing capacity of data acquisition equipment, and avoiding the delay in transmitting the audio-visual stream to the user terminal device 02.
[0060] The above are only preferred embodiments of the present invention. It should be pointed out that, for those skilled in the art, several modifications and improvements can be made without departing from the concept of the present invention. These should also be regarded as the protection scope of the present invention. These will not affect the effect of the implementation of the present invention and the practicality of the patent.
Claims
1. Real-time processing system of audio-visual stream of IoT devices based on artificial intelligence, characterized by: include: A collection module, the collection module is used to collect the audio-visual stream, and the collection module transmits the audio-visual stream to the user terminal device through the real-time streaming protocol; A user terminal device, the user terminal device is used to run the WEBRTC graphic client, and the user terminal device accesses the collection module and the AI cloud server by connecting to the network; AI cloud servers for performing inference on CPUs or GPUs and compute-optimized chips that support machine learning frameworks; The system of the user terminal device is used to process audiovisual streams in real time, isolate video frame sequences and audio clips; A WEBSOCKET connection is established between the user terminal device and the AI cloud server; The user terminal device extracts data blocks from the stream and sends them to the AI cloud server via WEBSOCKET for calculation, displays the video stream on one layer, and the user terminal device performs new extraction after receiving a reply from the AI cloud server; the AI cloud server sends the inference result back to the user terminal device via WEBSOCKET for display, and adds another layer to the already displayed layer to display AI information; The specific steps for interaction between IoT devices, user terminal devices, and AI cloud servers are as follows: a. WEBRTC handshake: The IoT device and the user terminal device use a third-party server to exchange WEBRTC handshakes for discovery. If the handshake is successful, the user terminal device establishes a WEBSOCKET connection with the AI cloud server; b. Video stream establishment: The IoT device and the user terminal device are exchanging video streams, and the video is displayed on the user terminal device layer; c. Frame extraction and calculation: The user terminal device extracts frames from the video stream and sends them to the AI cloud server through WEBSOCKET for calculation; d. AI information display: After the calculation is completed, the AI cloud server sends the information back to the user terminal device through WEBSOCKET for display.
2. The system for real-time processing of audiovisual streams of IoT devices based on artificial intelligence according to claim 1 is characterized in that: The collection module is an IOT device or a robot.
