A method and system for detecting anomaly in IoT data based on serverless architecture
The serverless architecture automatically generates and deploys training cloud functions and inference cloud functions on the Alibaba Cloud function computing platform, solving the problems of traditional IoT cloud platforms not supporting machine learning algorithm deployment and resource waste, and realizing low-cost and efficient IoT cloud functions. Internet data anomaly detection.
Patent Information
- Application Number
- CN202110908593.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-09
- Publication Date
- 2024-08-16
- Estimated Expiration
- 2041-08-09
AI Technical Summary
Traditional IoT cloud platforms do not support the deployment of machine learning algorithms, resulting in the inability to effectively detect data anomalies. Moreover, traditional cloud services have problems with ‘idle time billing’ and resource waste.
Adopting a serverless architecture, accessing devices through a third-party IoT cloud platform, using the Alibaba Cloud function computing platform to implement anomaly detection, automatically generating and deploying training cloud functions and inference cloud functions, and billing based on the number of calls, avoiding idle time billing. and reduce system deployment and operating costs.
It realizes the combination of machine learning and traditional IoT cloud platform, reduces device access and management costs, avoids waste of resources, improves detection speed and concurrency performance, and is suitable for the low-frequency and periodic request characteristics of IoT scenarios.
Smart Images

Figure CN113687989B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of computer technology and relates to a method and system for detecting anomaly in Internet of Things data based on a serverless architecture. Background Art
[0002] With the continuous advancement of science and technology and economic construction, the Internet of Things technology is booming. Some experts and scholars have proposed the concept of artificial intelligence Internet of Things, aiming to empower the traditional Internet of Things industry through artificial intelligence technology. Anomaly detection of IoT data is one of the fields in which the Internet of Things and artificial intelligence are combined. The Internet of Things system is composed of a large number of resource-constrained terminal nodes, which convert physical information into digital information in real time and send it to the cloud or edge storage for artificial intelligence application analysis. However, in actual scenarios, due to the influence of factors such as the external environment, network communication, equipment failure or malicious attacks, the data collected by IoT devices often contains anomalies, that is, data values that are significantly deviated from the data in the normal mode. Anomaly detection in the Internet of Things scenario is very important. Anomalies can indicate the occurrence of valuable events such as sudden changes in the external environment, sensor node failures, and equipment intrusion or attacks. This is of great significance to improving the overall security and stability of the Internet of Things system, as well as the accuracy of the analyzed data.
[0003] Although traditional IoT cloud platforms are quite mature in terms of device access and management, data collection, and command issuance, they do not support the deployment of machine learning algorithms. Machine learning and deep learning technologies are currently one of the important ways to process and analyze big data, but traditional IoT cloud platforms represented by OneNET only support querying and processing device data through SQL queries, which is difficult to meet the needs of today's IoT applications. Therefore, how to combine new technologies such as machine learning and deep learning with traditional IoT cloud platforms for anomaly detection tasks is a problem to be solved by the present invention.
[0004] Traditional IoT data anomaly detection systems are usually deployed on IaaS virtual machines or PaaS application platforms. Before deploying the anomaly detection program, developers need to pre-purchase a certain amount of cloud computing resources (computing resources, storage resources, network resources, etc.) based on the estimated system request volume to support the operation of the system. However, this approach has the following problems: First, IoT devices usually report data periodically at a fixed frequency. The anomaly detection program deployed in the above manner needs to run in the server background 24 hours a day, 7 days a week. During the period when no data is reported, it will cause a great waste of computing resources and produce the problem of "idle time billing"; secondly, the cloud computing resources purchased according to the estimated request volume may not meet the service needs during peak request times, and may also cause a waste of resources during low request times. How to avoid the above problems is another problem to be solved by the present invention. Summary of the invention
[0005] In order to solve the deficiencies in the prior art, the object of the present invention is to provide an IoT data anomaly detection method and system based on a serverless architecture.
[0006] The method provided by the present invention comprises the following steps:
[0007] Step 1: Use a third-party IoT cloud platform as the access point for IoT devices. All IoT devices access the third-party IoT cloud platform through a specific protocol and report the collected data to the third-party IoT cloud platform.
[0008] Step 2: The user selects a suitable anomaly detection algorithm for any IoT device connected to the system and configures the corresponding parameters;
[0009] Step 3: Use a serverless architecture to build a data anomaly detection terminal, and automatically generate and deploy training cloud functions and inference cloud functions for anomaly detection for the device based on the algorithm and parameters. After deployment, the training cloud function will train the anomaly detection model based on the device's historical data and save it in the NAS file storage service for inference cloud function calls.
[0010] Step 4: All new data points reported by the devices on which the anomaly detection algorithm is deployed will be forwarded to the inference cloud function through the third-party IoT cloud platform data push service for anomaly detection. The inference cloud function reads the trained anomaly detection model from the NAS file storage service to perform anomaly detection on the new data and return the detection results.
[0011] The IoT cloud platform refers to third-party IoT cloud platforms such as China Mobile OneNET, Alibaba Cloud IoT, and Amazon IoT; the device access end is implemented using a third-party IoT cloud platform, and the data anomaly detection end is implemented using Alibaba Cloud Function Computing Platform.
[0012] In step 1, the specific protocol specifically refers to communication protocols such as MQTT, Modbus, HTTP, etc.; the collected data is various types of numerical data collected by IoT devices in different scenarios.
[0013] In step 2, the anomaly detection algorithms include IForest, CBLOF, OCSVM, AutoEncoder, DBSCAN, etc.; the configured parameters include data contamination rate and training parameters required for each anomaly detection algorithm, etc.
[0014] In step 3, the training and reasoning of the detection model are implemented through cloud functions in the serverless architecture, and the cloud functions are charged according to the number of calls.
[0015] The training cloud function and the inference cloud function are automatically generated according to the template and deployed to the serverless computing platform; the template is preset in the system in the form of a text file, and the specific parameters therein are placeholders in the form of a template string; the training cloud function and the inference cloud function are automatically generated when the algorithm is deployed by replacing the placeholders in the template according to the specific parameters passed by the front end, and automatic deployment is achieved through the SDK provided by the Alibaba Cloud Function Computing Platform.
[0016] a) Implementation method of device access based on traditional IoT cloud platform:
[0017] The present invention uses China Mobile's OneNET IoT cloud platform as the access terminal of the device. All IoT devices use a specific protocol to access the OneNET cloud platform. All data collected by IoT devices are reported to the OneNET cloud platform. The devices are managed through the OneNET cloud platform, and the data is pushed to the anomaly detection terminal for anomaly detection through the data push function of the OneNET cloud platform. OneNET is an IoT application development platform launched by China Mobile IoT. It aims to provide secure and reliable device connection and communication capabilities for IoT applications. It supports multiple device protocols such as MQTT, TCP, EDP, NB-IoT, Modbus, etc. It provides device access and management, data collection, command issuance and other services for various hardware terminals in IoT scenarios, and provides rich APIs and SDKs for application development.
[0018] b) Implementation method of anomaly detection based on serverless architecture:
[0019] In order to combine machine learning, deep learning and other technologies with traditional IoT cloud platforms such as the OneNET cloud platform, and further reduce the deployment and operation costs of the system, the present invention adopts a serverless architecture to implement the anomaly detection end of the system. Serverless does not mean that the backend server is no longer needed, but that developers can get rid of the server settings and management work required for developing applications, and hand over these operations to the cloud service provider, while the developers themselves focus on the development of specific businesses. Serverless architecture is an event-driven cloud computing model that organizes a series of "cloud functions" into microservices to support applications by deploying them on the cloud and binding corresponding event sources. Each triggered execution of a cloud function will be scheduled to a new temporary container, and the operating environment will be recycled by the cloud service provider within a period of time after the execution is completed, so the cloud function itself is stateless. The stateless feature allows cloud functions to be quickly instantiated in multiple containers during peak requests, thereby supporting large-scale concurrent requests. When there is no request, the cloud function will not be scheduled for execution. When there is a sudden large number of requests, the cloud service provider will create enough running instances to meet the demand. Since the scheduling and execution of cloud functions is at the millisecond level, the automatic scaling feature of the serverless architecture can almost perfectly fit the load changes. Cloud functions are generally charged according to the number of calls or call time. No fees are incurred when they are not called, which solves the problem of "off-peak billing" in traditional cloud services and greatly saves usage costs. The anomaly detection system implemented by the present invention is deployed on the Alibaba Cloud Function Computing Platform, which is a server-free architecture cloud service provided by Alibaba Cloud.
[0020] c) Method for automatically generating and deploying training cloud functions and inference cloud functions in anomaly detection systems:
[0021] Due to the adoption of a serverless architecture, the anomaly detection end of the anomaly detection system implemented in the present invention is deployed on the Alibaba Cloud function computing platform in the form of cloud functions (the structure of the cloud function is as follows: Figure 2 As shown in the figure), after the anomaly detection algorithm is deployed for the IoT device, a training cloud function and an inference cloud function will be deployed for each device on the Alibaba Cloud Function Compute Platform, which are used for training the anomaly detection model and calling the trained anomaly detection model to perform anomaly detection on new data. The present invention realizes the automatic generation and deployment of training cloud functions and inference cloud functions. All algorithms supported in the anomaly detection system implemented by the present invention include two templates, a training cloud function template and an inference cloud function template. When deploying the algorithm, the corresponding algorithm parameters will be filled into the template to generate the corresponding training cloud function code and inference cloud function code, and then automatically deployed through the SDK provided by the Alibaba Cloud Function Compute Platform, such as Figure 5 shown.
[0022] The present invention adopts the OneNET Internet of Things cloud platform as the access end of the Internet of Things devices. All Internet of Things devices are connected to the OneNET cloud platform through a specific protocol and report data to the OneNET platform, which is then forwarded to the server-free anomaly detection end for anomaly detection through the data push function of the OneNET platform.
[0023] The present invention uses the serverless cloud service provided by Alibaba Cloud Function Computing Platform to implement the data anomaly detection end, which mainly trains and calls the anomaly detection model by the training cloud function and the inference cloud function corresponding to the device one by one. The cloud function in the serverless architecture is charged according to the number of calls, and no charge is made when it is not called, which greatly reduces the cost.
[0024] The present invention supports the deployment of multiple anomaly detection algorithms. All anomaly detection algorithm programs implemented based on Python can extract the algorithm body from the training code and reasoning code and save it as a template. When the model is deployed, the specific algorithm is selected and the parameters of the specific algorithm are filled into the template to generate the training cloud function code and the reasoning cloud function code.
[0025] The present invention supports automatic deployment of training cloud functions and inference cloud functions. The training cloud function code and inference cloud function code generated by the template can be automatically deployed to the cloud through the SDK provided by the Alibaba Cloud Function Computing Platform, without the need for manual deployment by users.
[0026] The timing of the IoT data anomaly detection system based on the serverless architecture in the present invention is as follows: Figure 3 As shown, it includes: 1. System users create virtual devices and set up message push; 2. Third-party IoT platform feedbacks successful setting; 3. IoT devices access the platform through specific protocols; 4. IoT devices upload a certain amount of device data; 5. Third-party IoT cloud platform forwards data to Alibaba Cloud FaaS; 6. Alibaba Cloud FaaS feedbacks successful reception; 7. Alibaba Cloud FaaS stores data in Alibaba Cloud BaaS; 8. System users configure and deploy anomaly detection algorithms for devices; 9. Alibaba Cloud FaaS saves the device algorithm configuration; 10. Alibaba Cloud FaaS requests Historical data of the device; 11. Alibaba Cloud BaaS returns the historical data of the device; 12. Alibaba Cloud FaaS trains and exports the detection model; 13. The IoT device uploads new data to the third-party IoT cloud platform; 14. The third-party IoT cloud platform forwards data and triggers detection; 15. Alibaba Cloud FaaS feedback is received successfully; 16. Alibaba Cloud BaaS loads the detection model; 17. Alibaba Cloud FaaS issues an abnormal alarm; 18. The third-party IoT cloud platform issues commands to the IoT device; 19. The third-party IoT cloud platform issues an abnormal alarm to the system users.
[0027] The present invention also provides a system for implementing the above method, wherein the system includes a data transfer module, an algorithm deployment module, a cloud function automatic generation and deployment module, and a training and reasoning module.
[0028] The data transfer module is responsible for receiving IoT device data pushed by the third-party IoT cloud platform and storing it in the database for subsequent deployment of algorithms and training models;
[0029] The algorithm deployment module provides a window for deploying anomaly detection algorithms in the form of a Web page for system users, in which system users can modify or input the anomaly detection algorithms and corresponding parameters to be selected;
[0030] The cloud function automatic generation and deployment module is responsible for automatically generating the code of the training cloud function and the inference cloud function according to the template and the parameters passed by the front end, and automatically deploying them to the cloud through the SDK provided by the function computing platform;
[0031] The training and inference modules are deployed in the Alibaba Cloud Function Computing platform in the form of training cloud functions and inference cloud functions, which are responsible for training the anomaly detection model and calling the model for anomaly detection respectively.
[0032] The present invention also proposes a hardware system for implementing the above method, comprising: a memory and a processor; a computer program is stored in the memory, and when the computer program is executed by the processor, the above method is implemented.
[0033] The present invention also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above method is implemented.
[0034] The beneficial effects of the present invention include: the present invention combines the traditional IoT cloud platform and the emerging serverless architecture, reduces the cost of device access and management by adopting the traditional IoT cloud platform as the device access terminal, and greatly reduces the deployment and operation costs of the system by building an anomaly detection terminal through the serverless architecture. The cloud functions in the serverless architecture are executed on demand, and do not have the "idle time billing" problem like traditional cloud servers. It is very suitable for scenarios such as the Internet of Things where requests are low-frequency and periodic. Moreover, the serverless architecture has more advantages than the traditional cloud computing model in terms of concurrency performance and response speed, and can detect abnormal data reported by IoT devices more quickly. In the existing technology, there is no way to reduce the cost of the IoT data anomaly detection system and improve the system detection speed by introducing a serverless architecture. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is an architecture diagram of the Internet of Things data anomaly detection system based on a serverless architecture of the present invention.
[0036] Figure 2 It is a structural diagram of the cloud function in the Internet of Things data anomaly detection system based on the serverless architecture of the present invention.
[0037] Figure 3 It is a timing diagram of the IoT data anomaly detection system based on a serverless architecture of the present invention.
[0038] Figure 4 It is a schematic diagram of the operation interface of the device algorithm deployment module of the present invention.
[0039] Figure 5 It is a schematic diagram of the automatic generation and deployment of the training and inference cloud functions of the present invention. DETAILED DESCRIPTION
[0040] The present invention is further described in detail with reference to the following specific examples and drawings. The process, conditions, experimental methods, etc. for implementing the present invention, except for the contents specifically mentioned below, are all common knowledge and common common sense in the art and are not particularly limited by the present invention.
[0041] OneNET platform is an open IoT platform created by China Mobile IoT Co., Ltd. based on IoT technology and industry characteristics. It supports rapid access and big data services for various sensors and smart hardware, provides a wealth of APIs and application templates to support the development of various industry applications and smart hardware, and can effectively reduce the cost of IoT application development and deployment. The device side can upload data to the cloud through a variety of transmission protocols.
[0042] Therefore, China Mobile's OneNET IoT cloud platform is used as the access end for devices. All IoT devices are connected to the OneNET cloud platform using specific protocols. All data collected by IoT devices are reported to the OneNET cloud platform. The devices are managed through the OneNET cloud platform, and the data is pushed to the anomaly detection end for anomaly detection through the data push function of the OneNET cloud platform.
[0043] The method and system for detecting anomaly in IoT data based on a serverless architecture in the present invention include the following contents:
[0044] 1. Use the traditional IoT cloud platform to realize device access:
[0045] The present invention uses China Mobile's OneNET IoT cloud platform as the access terminal of the device. All IoT devices use a specific protocol to access the OneNET cloud platform. All data collected by IoT devices are reported to the OneNET cloud platform. The devices are managed through the OneNET cloud platform, and the data is pushed to the anomaly detection terminal for anomaly detection through the data push function of the OneNET cloud platform. OneNET is an IoT application development platform launched by China Mobile IoT. It aims to provide secure and reliable device connection and communication capabilities for IoT applications. It supports multiple device protocols such as MQTT, TCP, EDP, NB-IoT, Modbus, etc. It provides device access and management, data collection, command issuance and other services for various hardware terminals in IoT scenarios, and provides rich APIs and SDKs for application development.
[0046] 2. Use serverless architecture to implement anomaly detection:
[0047] In order to combine machine learning, deep learning and other technologies with traditional IoT cloud platforms such as the OneNET cloud platform, and further reduce the deployment and operation costs of the system, the present invention adopts a serverless architecture to implement the anomaly detection end of the system. Serverless does not mean that the backend server is no longer needed, but that developers can get rid of the server settings and management work required for developing applications, and hand over these operations to the cloud service provider, while the developers themselves focus on the development of specific businesses. Serverless architecture is an event-driven cloud computing model that organizes a series of "cloud functions" into microservices to support applications by deploying them on the cloud and binding corresponding event sources. Each triggered execution of a cloud function will be scheduled to a new temporary container, and the operating environment will be recycled by the cloud service provider within a period of time after the execution is completed, so the cloud function itself is stateless. The stateless feature allows cloud functions to be quickly instantiated in multiple containers during peak requests, thereby supporting large-scale concurrent requests. When there is no request, the cloud function will not be scheduled for execution. When there is a sudden large number of requests, the cloud service provider will create enough running instances to meet the demand. Since the scheduling and execution of cloud functions is at the millisecond level, the automatic scaling feature of the serverless architecture can almost perfectly fit the load changes. Cloud functions are generally charged according to the number of calls or call time. No fees are incurred when they are not called, which solves the problem of "off-peak billing" in traditional cloud services and greatly saves usage costs. The anomaly detection system implemented by the present invention is deployed on the Alibaba Cloud Function Computing Platform, which is a server-free architecture cloud service provided by Alibaba Cloud.
[0048] 3. Support automatic generation and deployment of training cloud functions and inference cloud functions:
[0049] Due to the adoption of a serverless architecture, the anomaly detection end of the anomaly detection system implemented by the present invention is deployed on the Alibaba Cloud Function Computing Platform in the form of cloud functions. After the anomaly detection algorithm is deployed for the IoT device, a training cloud function and an inference cloud function will be deployed on the Alibaba Cloud Function Computing Platform for each device, which are used for training the anomaly detection model and calling the trained anomaly detection model to perform anomaly detection on new data. The present invention realizes the automatic generation and deployment of training cloud functions and inference cloud functions. All algorithms supported in the anomaly detection system implemented by the present invention include two templates, namely, a training cloud function template and an inference cloud function template. When deploying the algorithm, the corresponding algorithm parameters will be filled into the template to generate the corresponding training cloud function code and inference cloud function code, and then automatically deployed through the SDK provided by the Alibaba Cloud Function Computing Platform.
[0050] Example
[0051] The present invention proposes a method for implementing an IoT data anomaly detection system based on a serverless architecture. The following is its code implementation part (important parts):
[0052] like Figure 4 As shown in the figure, users can select a suitable anomaly detection algorithm for any IoT device connected to the system and configure the corresponding algorithm parameters. The system can then automatically generate the code for the training cloud function and inference cloud function based on the algorithm and parameters and automatically deploy them to the Alibaba Cloud Function Compute Platform.
[0053] As shown in the following code 1, this part includes the logic of automatically generating the code for the training cloud function and the inference cloud function according to the algorithm template:
[0054] Code 1
[0055]
[0056]
[0057]
[0058]
[0059] The generate_http_train_py function is used to generate event-triggered training cloud function code, and the generate_http_predict_py function is used to generate event-triggered inference cloud function code. The function parameters clf_name, device_id, and params represent the algorithm name, the device id of the IoT device in the OneNET cloud platform, and the algorithm parameters, respectively.
[0060] As shown in the following code 2, this part contains the implementation logic of automatic deployment of cloud functions:
[0061] Code 2
[0062]
[0063]
[0064] In Code 2, it is described how the system implemented by the present invention deploys the generated training cloud function and prediction cloud function to the Alibaba Cloud function computing platform.
[0065] As shown in the following code 3, a template of the training cloud function code is given, which contains the execution logic of the training cloud function. The training cloud function trains the anomaly detection model based on the historical data training of the device and the input algorithm parameters. The trained anomaly detection model is saved to the NAS file storage service for inference cloud function call.
[0066] Code 3
[0067]
[0068]
[0069]
[0070] As shown in the following code 4, the template of the inference cloud function code is given, which contains the execution logic of the inference cloud function. The inference cloud function loads the trained anomaly detection model from the NAS file storage and performs anomaly detection on the newly reported data.
[0071] Code 4
[0072]
[0073]
[0074]
[0075] The present invention combines the traditional IoT cloud platform and the emerging serverless architecture. By adopting the traditional IoT cloud platform as the device access terminal, the cost of device access and management is reduced. By building the anomaly detection terminal through the serverless architecture, the deployment and operation costs of the system are greatly reduced. The cloud functions in the serverless architecture are executed on demand, unlike the traditional cloud server, which has the problem of "idle time billing". It is very suitable for scenarios such as the Internet of Things where requests are low-frequency and periodic. Moreover, the serverless architecture has more advantages than the traditional cloud computing model in terms of concurrency performance and response speed, and can detect abnormal data reported by IoT devices more quickly. In the existing technology, there is no way to reduce the cost of the IoT data anomaly detection system and improve the system detection speed by introducing a serverless architecture.
[0076] The protection content of the present invention is not limited to the above embodiments. Without departing from the spirit and scope of the present invention, changes and advantages that can be thought of by those skilled in the art are included in the present invention and are protected by the attached claims.
Claims
1. A method for detecting anomaly in IoT data based on serverless architecture. It is characterized in that The method comprises the following steps: Step 1: Use a third-party IoT cloud platform as the access point for IoT devices. All IoT devices access the third-party IoT cloud platform through a specific protocol and report the collected data to the third-party IoT cloud platform. Step 2: The user selects a suitable anomaly detection algorithm for any IoT device connected to the system and configures the corresponding parameters; Step 3: Use a serverless architecture to build a data anomaly detection terminal, and automatically generate and deploy training cloud functions and inference cloud functions for anomaly detection for the device based on the algorithm and parameters. After deployment, the training cloud function will train the anomaly detection model based on the device's historical data and save it in the NAS file storage service for inference cloud function calls. Step 4: All new data points reported by the devices on which the anomaly detection algorithm is deployed will be forwarded to the inference cloud function through the third-party IoT cloud platform data push service for anomaly detection. The inference cloud function reads the trained anomaly detection model from the NAS file storage service to perform anomaly detection on the new data and return the detection results.
2. The method for detecting anomaly in IoT data based on a serverless architecture as claimed in claim 1, It is characterized in that The third-party IoT cloud platform refers to China Mobile OneNET, Alibaba Cloud IoT, and Amazon IoT; the device access end is implemented using the third-party IoT cloud platform, and the data anomaly detection end is implemented using the Alibaba Cloud function computing platform.
3. The method for detecting anomaly in IoT data based on a serverless architecture as claimed in claim 1, It is characterized in that In step 1, the specific protocol specifically refers to a communication protocol, including MQTT, Modbus, and HTTP; the collected data is various types of numerical data collected by IoT devices in different scenarios.
4. The method for detecting anomaly in IoT data based on a serverless architecture as claimed in claim 1, It is characterized in that In step 2, the anomaly detection algorithms include IForest, CBLOF, OCSVM, AutoEncoder, and DBSCAN; the configured parameters include data contamination rate and training parameters required for each anomaly detection algorithm.
5. The method for detecting anomaly in IoT data based on a serverless architecture as claimed in claim 1, It is characterized in that In step 3, the training and reasoning of the detection model are implemented through cloud functions in the serverless architecture, and the cloud functions are charged according to the number of calls.
6. The method for detecting anomaly in IoT data based on a serverless architecture as claimed in claim 1, It is characterized in that The training cloud function and the inference cloud function are automatically generated according to the template and deployed to the serverless computing platform; the template is preset in the system in the form of a text file, and the specific parameters therein are placeholders in the form of a template string; the training cloud function and the inference cloud function are automatically generated when the algorithm is deployed by replacing the placeholders in the template according to the specific parameters passed by the front end, and automatic deployment is achieved through the SDK provided by the Alibaba Cloud Function Computing Platform.
7. A system for implementing the method according to any one of claims 1 to 6, It is characterized in that The system includes a data transfer module, an algorithm deployment module, a cloud function automatic generation and deployment module, and a training and reasoning module.
8. The system of claim 7, It is characterized in that The data transfer module is responsible for receiving IoT device data pushed by the third-party IoT cloud platform and storing it in the database for subsequent deployment of algorithms and training models; The algorithm deployment module provides a window for deploying anomaly detection algorithms in the form of a Web page for system users, in which system users modify or input the anomaly detection algorithms and corresponding parameters to be selected; The cloud function automatic generation and deployment module is responsible for automatically generating the code of the training cloud function and the inference cloud function according to the template and the parameters passed by the front end, and automatically deploying them to the cloud through the SDK provided by the function computing platform; The training and inference modules are deployed in the Alibaba Cloud Function Computing platform in the form of training cloud functions and inference cloud functions, which are responsible for training the anomaly detection model and calling the model for anomaly detection respectively.
9. A hardware system for implementing the method according to any one of claims 1 to 6, It is characterized in that The hardware system comprises: a memory and a processor; a computer program is stored in the memory, and when the computer program is executed by the processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
