Method, system, medium and equipment for generating internet-of-things event based on internet-of-things data
By preprocessing IoT data and analyzing event rules bases, the IoT events are generated, which solves the problem that IoT devices cannot automatically and efficiently generate events, improves data processing efficiency and utilization, and realizes intelligent processing.
Patent Information
- Application Number
- CN202411310641.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-20
- Publication Date
- 2024-12-27
AI Technical Summary
Existing IoT devices cannot automatically and efficiently generate IoT events, resulting in low data processing efficiency and low utilization rate, requiring manual intervention, and cannot achieve intelligent utilization.
By receiving IoT data, preprocessing (data cleaning, conversion, aggregation), and analyzing and generating IoT events based on the predefined event rule base, including event type, trigger time, device ID, event level and associated data, using weights Formula evaluation generates events and automatically triggers the corresponding events.
It realizes the rapid generation of IoT events, improves data processing efficiency and utilization, reduces manual intervention, and realizes intelligent data processing.
Smart Images

Figure CN119211019A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of Internet of Things, and specifically relates to a method, system, medium and device for generating Internet of Things events based on Internet of Things data. Background Art
[0002] With the rapid development of Internet of Things technology, the application of Internet of Things devices is becoming more and more extensive, generating a large amount of Internet of Things data. These Internet of Things data cannot automatically and efficiently generate Internet of Things events to help analyze and find problems, and can only be processed and utilized by manual intervention, which is heavy in workload, low in data utilization, low in processing efficiency, and cannot achieve intelligent utilization. Therefore, the present invention provides a method, system, medium and device for generating Internet of Things events based on Internet of Things data, which can screen out effective Internet of Things data and automatically generate Internet of Things events as needed, thereby improving processing efficiency. Summary of the invention
[0003] The present invention provides a method, system, medium and device for generating IoT events based on IoT data, which are used to solve the technical problem that existing IoT data cannot automatically and efficiently generate IoT events.
[0004] In order to achieve the above object, the technical solution adopted by the present invention is as follows: a method for generating an IoT event based on IoT data, the method comprising the following steps:
[0005] Receive IoT data from one or more IoT devices;
[0006] Preprocessing the IoT data to obtain a standardized data format;
[0007] Analyze the preprocessed IoT data according to a predefined event rule base to identify conditions that match the event rule base;
[0008] When a condition matching a rule in the event rule base is detected, a corresponding IoT event is generated;
[0009] Send the generated IoT events to the specified event processing module or user terminal.
[0010] Furthermore, the pre-processing step comprises:
[0011] Data cleaning, removing invalid or duplicate IoT data;
[0012] Data conversion, converting data from different sources into a unified format;
[0013] Time synchronization: Data from different devices are synchronized according to timestamps to ensure the timing consistency of data;
[0014] Data aggregation combines data from multiple IoT devices for comprehensive analysis.
[0015] Furthermore, the event rule base includes rules defined by a user and / or rules automatically generated by a system.
[0016] Furthermore, the generated IoT event includes the following factors: event type, trigger time, trigger device ID, event level, and associated data;
[0017] Among them, ET represents the event type, and the corresponding value is et i ;
[0018] TT represents the trigger time, and the corresponding value is tt i ;
[0019] TID represents the trigger device ID, and the corresponding value is t id ;
[0020] EL represents the event level, and the corresponding value is el i ;
[0021] AD represents associated data, and the corresponding value is ad i ;
[0022] Taking into account the weights of these factors, the following mathematical rule formula can be formed:
[0023] R=w ET ET+w TT TT+w TID ·TID+w EL EL+w AD ·AD
[0024] in:
[0025] R is the comprehensive evaluation value of the generated event. When R exceeds the threshold, the corresponding IoT event is generated and triggered;
[0026] w ET ,w TT ,w TID ,w EL ,w AD are the weight coefficients of each factor, representing the importance of event type, trigger time, trigger device ID, event level, and associated data.
[0027] A system for generating an IoT event based on IoT data, the system comprising:
[0028] A data receiving module, used to receive IoT data from one or more IoT devices;
[0029] A data processing module, used for preprocessing the received IoT data;
[0030] The event analysis module is used to analyze the pre-processed IoT data according to the pre-defined event rule base, identify and generate IoT events;
[0031] The communication module is used to send the generated IoT events to the designated event processing module or user terminal.
[0032] Furthermore, the data processing module is further used for data cleaning, data conversion and data aggregation.
[0033] Furthermore, the event rule library can be dynamically updated and supports the addition and modification of user-defined rules.
[0034] In order to solve the above problems, the present application also provides an Internet of Things electronic device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein,
[0035] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned method of generating an IoT event based on IoT data.
[0036] Furthermore, the memory further comprises a storage unit for storing historical data and / or event rules.
[0037] In order to solve the above problems, the present application also provides a computer-readable storage medium, characterized in that a computer program is stored therein, and when the computer program is executed by a processor, the above-mentioned method of generating IoT events based on IoT data is implemented.
[0038] Compared with the prior art, the present invention has the following beneficial effects:
[0039] The present invention can analyze IoT data according to a predefined event rule library, quickly generate IoT event data, identify and automatically generate corresponding IoT events, and improve data utilization and processing efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Figure 1 A flow chart of a method for generating IoT events based on IoT data according to the present invention;
[0041] Figure 2 The present invention generates an IoT event system structure diagram based on IoT data. DETAILED DESCRIPTION
[0042] 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.
[0043] like Figure 1 As shown, a method for generating an IoT event based on IoT data comprises the following steps:
[0044] S1. Receive IoT data from one or more IoT devices;
[0045] S2. Preprocessing the IoT data to obtain a standardized data format;
[0046] The preprocessing steps include:
[0047] Data cleaning, removing invalid or duplicate IoT data;
[0048] Data conversion, converting data from different sources into a unified format;
[0049] Time synchronization: Data from different devices are synchronized according to timestamps to ensure the timing consistency of data;
[0050] Data aggregation, combining data from multiple IoT devices for comprehensive analysis;
[0051] S3. Analyze the preprocessed IoT data according to a predefined event rule base to identify conditions that match the event rule base;
[0052] The event rule base includes rules defined by the user and / or rules automatically generated by the system.
[0053] S4. When a condition matching a rule in the event rule library is detected, a corresponding IoT event is generated;
[0054] The generated IoT events include the following information: event type, trigger time, trigger device ID, event level, and associated data;
[0055] Among them, ET represents the event type, and the corresponding value is et i For example, the temperature alarm event is 1, the humidity alarm event is 2, the access control abnormality event is 3, and so on.
[0056] TT represents the trigger time, and the corresponding value is tt i , which can be a 24-hour time, 0 to 23, or divided by time period, such as late night is 1, daytime is 2, etc.
[0057] TID represents the trigger device ID, and the corresponding value is t id , which is the unique number or classification number of the device, for example, "Device001" is 1, "Device002" is 2, and so on.
[0058] EL represents the event level, and the corresponding value is e li , low level is 1, medium level is 2, and high level is 3.
[0059] AD represents associated data, and the corresponding value is ad i , is the value of the data itself or the result after processing, such as temperature value, humidity value;
[0060] Taking into account the weights of these factors, the following mathematical rule formula can be formed:
[0061] R=w ET ET+w TT TT+w TID ·TID+w EL EL+w AD ·AD
[0062] in:
[0063] R is the comprehensive evaluation value of the generated event. The system can set a threshold. When R exceeds a certain value, the corresponding IoT event is generated and triggered.
[0064] w ET ,w TT ,w TID ,w EL ,w AD are weight coefficients for each condition, representing the event type, trigger time, trigger device ID, event level, and importance of associated data. These weights can be adjusted according to the application scenario.
[0065] S5. Send the generated IoT event to the designated event processing module or user terminal.
[0066] like Figure 2 As shown, it is a module diagram of a system for generating IoT events based on IoT data provided by an embodiment of the present application.
[0067] According to the functions implemented, the IoT event generation system based on IoT data may include a data receiving module, a data processing module, an event analysis module, and a communication module. The module of this application may also be referred to as a unit, which refers to a series of computer program segments that can be executed by a device processor and can complete fixed functions, which are stored in the memory of the device.
[0068] In this embodiment, the functions of each module / unit are as follows:
[0069] A data receiving module, used to receive IoT data from one or more IoT devices;
[0070] A data processing module, used for preprocessing the received IoT data;
[0071] The event analysis module is used to analyze the pre-processed IoT data according to the pre-defined event rule base, identify and generate IoT events;
[0072] The communication module is used to send the generated IoT events to the designated event processing module or user terminal.
[0073] The data processing module is further used for data cleaning, data conversion and data aggregation.
[0074] In detail, each module in the IoT event system based on IoT data in the embodiment of the present application adopts the same technical means as the above-mentioned diffusion model-based try-on image generation method when used, and can produce the same technical effects, which will not be repeated here.
[0075] An embodiment of the present application provides an electronic device structure for implementing a method for generating IoT events based on IoT data.
[0076] The electronic device may include a processor, a memory, a communication bus, and a communication interface, and may also include a computer program stored in the memory and executable on the processor, such as an IoT data generating IoT event method generating program.
[0077] The present application also provides a storage medium, which stores a computer program. When the computer program is executed by the processor of the device, it can implement the method of generating an IoT event based on IoT data in any of the above embodiments. It should be noted that the storage medium can be volatile or non-volatile. For example, the storage medium may include: any entity or device capable of carrying a computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0078] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application.
Claims
1. A method for generating an IoT event based on IoT data, characterized in that: The method comprises the following steps: Receive IoT data from one or more IoT devices; Preprocessing the IoT data to obtain a standardized data format; Analyze the preprocessed IoT data according to a predefined event rule base to identify conditions that match the event rule base; When a condition matching a rule in the event rule base is detected, a corresponding IoT event is generated; Send the generated IoT events to the specified event processing module or user terminal.
2. The method for generating an IoT event based on IoT data according to claim 1, characterized in that: The pre-processing step comprises: Data cleaning, removing invalid or duplicate IoT data; Data conversion, converting data from different sources into a unified format; Time synchronization: Data from different devices are synchronized according to timestamps to ensure the timing consistency of data; Data aggregation combines data from multiple IoT devices for comprehensive analysis.
3. The method for generating an IoT event based on IoT data according to claim 2, characterized in that: The event rule base includes rules defined by a user and / or rules automatically generated by the system.
4. The method for generating an IoT event based on IoT data according to claim 3, characterized in that: The generated IoT event includes the following factors: event type, trigger time, trigger device ID, event level, and associated data; Among them, ET represents the event type, and the corresponding value is et i ; TT represents the trigger time, and the corresponding value is tt i ; TID represents the trigger device ID, and the corresponding value is t id ; EL represents the event level, and the corresponding value is el i ; AD represents associated data, and the corresponding value is ad i ; Consider the weight of these factors comprehensively.
5. A system for generating IoT events based on IoT data, characterized in that: The system comprises: A data receiving module, used to receive IoT data from one or more IoT devices; A data processing module, used for preprocessing the received IoT data; The event analysis module is used to analyze the pre-processed IoT data according to the pre-defined event rule base, identify and generate IoT events; The communication module is used to send the generated IoT events to the designated event processing module or user terminal.
6. A system for generating IoT events based on IoT data according to claim 5, characterized in that: in, The data processing module is further used for data cleaning, data conversion and data aggregation.
7. The system for generating IoT events based on IoT data according to claim 6, characterized in that: in, The event rule library can be dynamically updated and supports the addition and modification of user-defined rules.
8. An Internet of Things electronic device, characterized in that: The Internet of Things electronic device includes: at least one processor; and a memory connected to the at least one processor in communication; wherein, The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for generating an IoT event based on IoT data as described in any one of claims 1 to 4.
9. The Internet of Things electronic device according to claim 8, characterized in that: in, The memory further comprises a storage unit for storing historical data and / or event rules.
10. A computer-readable storage medium, characterized in that: A computer program is stored therein, and when the computer program is executed by a processor, the method for generating an IoT event based on IoT data as described in any one of claims 1 to 4 is implemented.