A method for collecting and analyzing data from smart IoT terminals based on edge computing
Use edge computing technology to collect and analyze data in the intelligent Internet of Things, calculate the edge node maturity of device terminals, and establish user demand correlation analysis models to solve the problem of resource waste during device interaction and realize the expansion of functional scenarios and resource optimization. .
Patent Information
- Application Number
- CN202410628491.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-05-21
AI Technical Summary
In the process of intelligent IoT, a large amount of code computing power is required to support the interaction, sharing and linkage between devices, resulting in a waste of resources and limiting the expansion of functional scenarios, especially the limited code computing power resources of different edge devices. , it is difficult to achieve better applicable functional scenarios.
Adopt the intelligent IoT terminal data collection and analysis method based on edge computing, generate user demand labels by calling the background operation log of the device terminal, build an iterative model for edge node identification, calculate the edge node maturity of the device terminal, and establish a data set to be analyzed. And map the device terminal in the point set two-dimensional coordinate system, establish a user demand correlation analysis model, calculate the user demand correlation, generate a functional scenario module set, and store it in the cloud to avoid wasting code computing resources.
It realizes the expansion of diversified functional scenarios through the interconnection relationship between devices in the process of intelligent IoT, avoids the waste of code computing resources, and enables the applicable functional scenarios of intelligent IoT to be better expanded.
Smart Images

Figure CN118377690B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent Internet of Things technology, and specifically to an intelligent Internet of Things terminal data collection and analysis method based on edge computing. Background Art
[0002] Edge computing is a distributed computing model that moves computing and data processing tasks from traditional cloud computing centers to edge devices or edge nodes close to the data source, thereby providing low latency, high bandwidth, and better user experience, and supporting rapid processing and decision-making of large amounts of data. Edge computing can be applied to various fields, such as the Internet of Things, smart cities, smart manufacturing, and autonomous driving; edge devices refer to computing devices located at the edge of the network, usually devices that are physically closer to users, such as smartphones, tablets, sensors, IoT devices, etc.
[0003] Smart Internet of Things refers to intelligent interconnection achieved through Internet of Things technology. It connects physical devices, sensors and the Internet so that these devices can interact with each other, share data, and achieve intelligent automated operations through analysis and learning. Smart Internet of Things is closely related to the Internet of Everything. The Internet of Everything refers to connecting everything to the Internet so that various devices, objects and environments can communicate and interact with each other. Smart Internet of Things, on the basis of the Internet of Everything, adds intelligent functions and applications to enable connected devices and systems to perceive, analyze and respond more intelligently. Smart Internet of Things uses technologies such as big data and artificial intelligence to achieve intelligent management and control of devices, data and systems in the Internet of Things, thereby improving the efficiency, safety and comfort of life and work.
[0004] In the process of intelligent Internet of Things, diversified functional scenarios are realized through the interconnection of all things between devices. However, in the process of interaction, sharing and linkage, devices require a large amount of code computing power support based on control instructions. Although the support of a large amount of code computing power can improve the response efficiency of intelligent Internet of Things, it also increases the waste of code computing power resources. At the same time, the code computing power resource capabilities of different edge devices are limited. Obviously, in the frequent interaction, sharing and linkage process, the applicable functional scenarios of intelligent Internet of Things cannot be better expanded. Summary of the invention
[0005] The purpose of the present invention is to provide a smart IoT terminal data collection and analysis method based on edge computing to solve the problems raised in the above background technology.
[0006] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0007] A method for collecting and analyzing data from an intelligent IoT terminal based on edge computing, the method comprising the following steps:
[0008] The data collection and analysis method includes a data collection method and a data analysis method, and the data collection method is used to collect a data set to be analyzed for the execution of the data analysis method, wherein the data set to be analyzed serves as an underlying data resource involved in the execution of the data analysis method.
[0009] The data collection method comprises the following steps:
[0010] Step S1: calling the background operation log of the device terminal, processing the background operation log, and generating a user demand tag;
[0011] Step S2: According to the user demand tag, all device terminals participating in the linkage response when executing the control instruction of the user demand are processed, and a demand behavior set is generated;
[0012] Step S3: Based on the demand behavior set, an edge node identification iteration model is constructed, and edge nodes are iteratively analyzed, where one edge node corresponds to one device terminal, and the edge node maturity of the device terminal is calculated;
[0013] Step S4: establishing the data set to be analyzed according to the maturity of the edge nodes;
[0014] The data analysis method responds to the completion of the data collection method, and the data analysis method comprises the following steps:
[0015] Step S5: establishing a sample set to be analyzed according to the data set to be analyzed;
[0016] Step S6: according to the maturity of the edge nodes, a point set two-dimensional coordinate system is established, and all device terminals in the sample set to be analyzed are mapped in the point set two-dimensional coordinate system;
[0017] Step S7: Establish a user demand association analysis model based on the two-dimensional coordinate system of the point set, calculate the user demand association, and generate a functional scenario module set for cloud storage;
[0018] Furthermore, the specific implementation process of processing the background operation log and generating the user demand label includes: coordinating and uniformly numbering all the device terminals participating in the intelligent Internet of Things, calling the background operation log of the device terminal, and attaching the user demand label to the background operation log. The user demand is the scene function realized by the user by calling the device terminal to link the device terminals. The user demand label is the scene function label uniformly attached to the control instruction sent in the process of calling the device terminal. The background operation log records the number of the device terminal that responds to the linkage in the process of executing the user demand.
[0019] Furthermore, when executing the control instruction of the user demand, all the device terminals participating in the linkage response are processed and the specific implementation process of generating the demand behavior set includes: coordinating all the user demand tags and uniformly encoding them, recording any user demand tag as I i , according to the background operation log, call each execution user demand label I i All the equipment terminals that respond in linkage during the corresponding user demand process generate a demand behavior set, recorded as DB w (I i )={E 1 , E 2 , ..., E n}, where I i represents the i-th user demand label, DB w (I i ) indicates the wth execution of user demand label I i All the equipment terminals that respond in linkage during the corresponding user demand process, and the corresponding generated demand behavior set, E 1 , E 2 , ..., E n They represent the user demand label I participating in the wth execution respectively i The 1st, 2nd, ..., nth device terminals that respond in linkage during the corresponding user demand process.
[0020] Furthermore, the specific implementation process of constructing the edge node identification iteration model and performing iterative analysis on the edge nodes includes:
[0021] According to the demand behavior set, an edge node identification iteration model is constructed, and one device terminal among all the device terminals that respond in linkage during the execution of user demand is regarded as an edge node. Then, the edge node is used as a central node to connect all device terminals except the edge node and execute the control instructions of the user demand;
[0022] Mark the central node in each demand behavior set and generate an iterative sample set, denoted as ES = {E x |DB w (I i ), w∈[1,m]}, where E x Represents the demand behavior set DB w (I i ) is the device terminal corresponding to the central node marked in the figure, x represents the number of the device terminal, and m represents the user demand label I i The total number of times the corresponding user requirements are executed;
[0023] Let the Lth iteration input set be ES L , then the first iteration input set is ES 1, and ES 1 =ES; let the output set of the Lth iteration be OS L , then the input set for the L+1th iteration is ES L+1 =ES L -OS L ;
[0024] The L-th iteration process is as follows:
[0025] In the Lth iteration, the input set ES L Select any device terminal E x , and iterate over the input set ES L China-Israel Equipment Terminal E x As the set of all demand behaviors of the central node, it generates the Lth iteration of the to-be-processed data set, denoted as HS L , according to the dataset HS to be processed L Computing device terminal E x The edge node maturity is calculated as follows:
[0026]
[0027] Among them, BNM(E x ) indicates the device terminal E x Edge node maturity, NUM(HS L ) represents the data set to be processed HS L The number of demand behavior sets contained in Represents the intersection set The number of device terminals included in Represents a union set The number of device terminals included in;
[0028] Connect the device to terminal E x Store the Lth iteration output set OS L In, perform the L+1th iteration;
[0029] When all the equipment terminals included in the iteration sample set ES complete the calculation of edge node maturity, the iteration stops;
[0030] According to the above method, in the process of intelligent Internet of Things, diversified functional scenarios, namely user needs, are realized through the interconnected relationship between devices. Therefore, the invention of this application is based on the interaction, sharing and linkage behavior between device terminals to generate a set of demand behaviors. At the same time, based on edge computing theory, when realizing a certain user demand, different edge devices, namely, through central nodes, can be used to realize user needs. Furthermore, when realizing the same user demand, based on intelligent Internet of Things and edge computing theory, the central nodes used may be different. Therefore, the central nodes in each set of demand behaviors are marked; in a large amount of experience in executing user needs, the maturity of the edge nodes of the device terminals is analyzed, wherein the maturity of the edge nodes reflects the frequency of the device terminal being used as a central node. The greater the maturity of the edge nodes of the device terminal, the more important the device terminal is in realizing a certain user demand.
[0031] Furthermore, the specific implementation process of establishing the data set to be analyzed according to the maturity of the edge nodes includes:
[0032] According to the edge node identification iteration model, each iteration output set is coordinated and forms a user demand label I i The data set to be analyzed is denoted as AS(I i ),and x∈[1,n]}.
[0033] Furthermore, according to the data set to be analyzed, the specific implementation process of establishing the sample set to be analyzed includes:
[0034] Among all the data sets to be analyzed generated corresponding to the user demand labels, any two data sets to be analyzed are selected AS(I i ) and AS(I j ), where I j represents the jth user demand label;
[0035] Coordinate the data set to be analyzed AS(I i ) and AS(I j ) to generate a sample set to be analyzed, denoted as SS.
[0036] Furthermore, the specific implementation process of establishing a point set two-dimensional coordinate system and mapping all device terminals in the sample set to be analyzed in the point set two-dimensional coordinate system includes:
[0037] According to the maturity of edge nodes, a two-dimensional coordinate system of point sets is established. The horizontal and vertical coordinates of the two-dimensional coordinate system of point sets both represent the maturity of edge nodes, and the horizontal coordinate records the data set AS (I i ) in the edge node maturity of each device terminal, and the ordinate records the data set to be analyzed AS(I j) The edge node maturity of each device terminal;
[0038] Randomly select a device terminal E in the sample set to be analyzed x , according to the two-dimensional coordinate system of the point set, generate the device terminal E x The corresponding coordinate point is denoted as E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )), where BNM(E x )|AS(I i ) indicates that in the data set to be analyzed AS(I i ) in the device terminal E x The corresponding edge node maturity BNM(E x ), BNM(E x )|AS(I j ) indicates that in the data set to be analyzed AS(I j ) in the device terminal E x The corresponding edge node maturity BNM(E x );
[0039] If the device terminal E x There is a dataset to be analyzed AS(I i ) and does not exist in the dataset to be analyzed AS(I j ), then E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )) is E x :(BNM(E x )|AS(I i ), 0), that is, the device terminal E x The corresponding points in the two-dimensional coordinate system of the point set are located on the abscissa;
[0040] If the device terminal E x There is no AS(I i ) and exists in the dataset to be analyzed AS(I j ), then E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )) is E x :(0,BNM(E x )|AS(I j)), that is, the device terminal E x The corresponding points in the two-dimensional coordinate system of the point set are located on the vertical coordinate.
[0041] Furthermore, the specific implementation process of establishing the user demand correlation analysis model and calculating the user demand correlation degree includes:
[0042] In the two-dimensional coordinate system of the point set, obtain the total number of points on the horizontal and vertical coordinates, recorded as NC;
[0043] In the two-dimensional coordinate system of the point set, all points except those on the abscissa and the ordinate are coordinated, and the points except those on the abscissa and the ordinate are sequentially connected in pairs to form a maximum outer surface containing all points except those on the abscissa and the ordinate, and the area of the maximum outer surface is obtained, which is recorded as P;
[0044] Establish a user demand correlation analysis model and calculate the user demand correlation. The specific calculation formula is as follows:
[0045]
[0046] Among them, CD(I i →I j ) represents the user demand label I i Label I j The correlation degree between them, NUM(SS) represents the number of device terminals included in the sample set SS to be analyzed;
[0047] Preset correlation threshold, if the user demand correlation is greater than or equal to the correlation threshold, the user demand label I i Label I j Functional scenarios are bound to each other, statistics and user demand tags are formed i All associated user tags bound between them are generated, and a functional scenario module set is uploaded to the cloud database, and the cloud database performs program code reuse management of control instructions for user requirements corresponding to each user requirement tag in the same functional scenario module set;
[0048] According to the above method, a two-dimensional coordinate system of point sets is established to analyze the correlation between user needs. In essence, it is a point density analysis method, in which the greater the correlation between user needs, the denser the points are; furthermore, the greater the correlation between user needs, the more related the two user needs are. Thus, functional scenario binding can be formed and the program code of control instructions can be reused.
[0049] A computer-readable storage medium, wherein the computer-readable storage medium is used to carry a computer program, wherein the computer program can be executed by a processor to implement the steps of the method according to any one of claims 1 to 8.
[0050] An edge computing device, comprising:
[0051] one or more processors;
[0052] A storage device for storing one or more computer programs, which, when executed by the one or more processors, enables the edge computing device to implement the steps of the method as described in any one of claims 1 to 8.
[0053] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: in a data collection and analysis method for a smart IoT terminal based on edge computing provided by the present invention, the data collection method includes: calling the background operation log of the device terminal, processing the background operation log, generating a user demand tag, processing all device terminals participating in the linkage response when executing the control instruction of the user demand, and generating a demand behavior set, constructing an edge node identification iteration model, iteratively analyzing the edge nodes, calculating the edge node maturity of the device terminal, and establishing a data set to be analyzed; the data analysis method includes: establishing a sample set to be analyzed according to the data set to be analyzed, establishing a point set two-dimensional coordinate system according to the edge node maturity, mapping all device terminals in the sample set to be analyzed in the point set two-dimensional coordinate system, establishing a user demand association analysis model, calculating the user demand association, and generating a functional scenario module set for cloud storage; thereby, in the process of smart IoT, through the interconnected relationship between devices, diversified functional scenarios are realized while avoiding the waste of code computing resources, so that the applicable functional scenarios of smart IoT can be better expanded. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention.
[0055] In the attached picture: Figure 1 It is a schematic diagram of the steps of a method for collecting data of an intelligent IoT terminal based on edge computing of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] See also Figure 1 , the present invention provides a technical solution:
[0058] In this embodiment 1: a method for collecting data from an intelligent IoT terminal based on edge computing is provided, the method comprising the following steps:
[0059] The data collection and analysis method includes a data collection method and a data analysis method, and the data collection method is used to collect a data set to be analyzed for the execution of the data analysis method, wherein the data set to be analyzed is the underlying data resource involved in the execution of the data analysis method.
[0060] The data collection method includes the following steps:
[0061] Step S1: calling the background operation log of the device terminal, processing the background operation log, and generating a user demand tag;
[0062] The specific implementation process of processing the background operation log and generating user demand tags is as follows:
[0063] All the equipment terminals participating in the intelligent IoT are coordinated and numbered uniformly, and the background operation logs of the equipment terminals are called, and user demand tags are added to the background operation logs. User demand is the scene function realized by the user by calling the equipment terminal to link the equipment terminals. The user demand tag is the scene function tag uniformly added to the control instructions sent in the process of calling the equipment terminal. The background operation log records the numbers of the equipment terminals that respond to the linkage in the process of executing the user demand;
[0064] Step S2: According to the user demand tag, all device terminals participating in the linkage response when executing the control instruction of the user demand are processed, and a demand behavior set is generated;
[0065] Among them, when executing the control instruction of the user's demand, all the equipment terminals participating in the linkage response are processed and the specific implementation process of generating the demand behavior set is as follows:
[0066] All user demand labels are coordinated and uniformly coded, and any user demand label is recorded as I i , according to the background operation log, call each execution user demand label I i All the equipment terminals that respond in linkage during the corresponding user demand process generate a demand behavior set, recorded as DB w (I i )={E 1 , E 2 , ..., E n}, where I i represents the i-th user demand label, DB w (I i ) indicates the wth execution of user demand label I iAll the equipment terminals that respond in linkage during the corresponding user demand process, and the corresponding generated demand behavior set, E 1 , E 2 , ..., E n They represent the user demand label I participating in the wth execution i The 1st, 2nd, ..., nth device terminals that respond in linkage during the corresponding user demand process;
[0067] Step S3: Based on the demand behavior set, an edge node identification iteration model is constructed, and edge nodes are iteratively analyzed, where one edge node corresponds to one device terminal, and the edge node maturity of the device terminal is calculated;
[0068] Among them, the specific implementation process of building an edge node identification iteration model and iteratively analyzing edge nodes is as follows:
[0069] According to the demand behavior set, an edge node identification iteration model is constructed, and one device terminal among all the device terminals that respond in linkage during the execution of user demand is regarded as an edge node. The edge node is used as a central node to connect all device terminals except the edge node and execute the control instructions of the user demand;
[0070] Mark the central node in each demand behavior set and generate an iterative sample set, denoted as ES = {E x |DB w (I i ), w∈[1,m]}, where E x Demand behavior set OB w (I i ) is the device terminal corresponding to the central node marked in the figure, x represents the number of the device terminal, and m represents the user demand label I i The total number of times the corresponding user requirements are executed;
[0071] Let the Lth iteration input set be ES L , then the first iteration input set is ES 1 , and ES 1 =ES; let the output set of the Lth iteration be OS L , then the input set for the L+1th iteration is ES L+1 =ES L -OS L ;
[0072] The L-th iteration process is as follows:
[0073] In the Lth iteration, the input set ES L Select any device terminal E x , and iterate over the input set ES L China-Israel Equipment Terminal Ex As the set of all demand behaviors of the central node, it generates the Lth iteration of the to-be-processed data set, denoted as HS L , according to the dataset HS to be processed L Computing device terminal E x The edge node maturity is calculated as follows:
[0074]
[0075] Among them, BNM(E x ) indicates the device terminal E x Edge node maturity, NUM(HS L ) represents the data set to be processed HS L The number of demand behavior sets contained in Represents the intersection set The number of device terminals included in Represents a union set The number of device terminals included in;
[0076] Connect the device to terminal E x Store the Lth iteration output set OS L In, perform the L+1th iteration;
[0077] When all the equipment terminals included in the iteration sample set ES complete the calculation of edge node maturity, the iteration stops;
[0078] For example, user requirement label I i The total number of times the corresponding user requirements are executed is m = 10. In the second iteration, in the iteration input set ES 2 ={E 1 |DB 1 (I i ),E 2 |DB 2 (I i ),E 2 |DB 3 (I i ), E 2 |DB 4 (I i ), E 2 |DB 5 (I i ), E 5 |DB 6 (I i )} Select any device terminal E 2 , iterate the input set ES 2 China-Israel Equipment Terminal E 2 As the set of all demand behaviors of the central node, generate the data set HS to be processed2 ={DB 2 (I i ),DB 3 (I i ),DB 4 (I i ),DB 5 (I i )}, where DB 2 (I i )={E 1 ,E 2 ,E 3 ,E 5}, DB 3 (I i )={E 1 ,E 2 ,E 4 ,E 5}, DB 4 (I i )={E 1 ,E 3 ,E 4 ,E 5}, DB 5 (I i )={E 1 ,E 3 ,E 5 ,E 6},but but
[0079] Step S4: Establish the data set to be analyzed according to the maturity of the edge nodes;
[0080] Among them, according to the maturity of the edge nodes, the specific implementation process of establishing the data set to be analyzed is as follows:
[0081] According to the edge node identification iteration model, each iteration output set is coordinated and forms a user demand label I i The data set to be analyzed is denoted as AS(I i ),and x∈[1,n]};
[0082] After the data collection method is completed, the data analysis method includes the following steps:
[0083] Step S5: establishing a sample set to be analyzed according to the data set to be analyzed;
[0084] Among them, the specific implementation process of establishing the sample set to be analyzed according to the data set to be analyzed is as follows:
[0085] Among all the data sets to be analyzed generated corresponding to the user demand labels, any two data sets to be analyzed are selected AS(I i ) and AS(I j ), where I j represents the jth user demand label;
[0086] Coordinate the data set to be analyzed AS(I i ) and AS(I j ) contains all the device terminals, generating a sample set to be analyzed, denoted as SS;
[0087] Step S6: according to the maturity of the edge nodes, a point set two-dimensional coordinate system is established, and all device terminals in the sample set to be analyzed are mapped in the point set two-dimensional coordinate system;
[0088] The specific implementation process of establishing a two-dimensional coordinate system of a point set and mapping all device terminals in the sample set to be analyzed in the two-dimensional coordinate system of the point set is as follows:
[0089] According to the maturity of edge nodes, a two-dimensional coordinate system of point sets is established. The horizontal and vertical coordinates of the two-dimensional coordinate system of point sets represent the maturity of edge nodes, and the horizontal coordinate records the AS(I i ) in the edge node maturity of each device terminal, and the ordinate records the data set to be analyzed AS(I j ) The edge node maturity of each device terminal;
[0090] Randomly select a device terminal E in the sample set to be analyzed x , according to the two-dimensional coordinate system of the point set, generate the device terminal E x The corresponding coordinate point is denoted as E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )), where BNM(E x )|AS(I i ) indicates that in the data set to be analyzed AS(I i ) in the device terminal E x The corresponding edge node maturity BNM(E x ), BNM(E x )|AS(I j ) indicates that in the data set to be analyzed AS(I j ) in the device terminal E x The corresponding edge node maturity BNM(E x );
[0091] If the device terminal E x There is a dataset to be analyzed AS(I i) and does not exist in the dataset to be analyzed AS(I j ), then E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )) is E x :(BNM(E x )|AS(I i ), 0), that is, the device terminal E x The corresponding points in the two-dimensional coordinate system of the point set are located on the abscissa;
[0092] If the device terminal E x There is no AS(I i ) and exists in the dataset to be analyzed AS(I j ), then E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )) is E x :(0,BNM(E x )|AS(I j )), that is, the device terminal E x The corresponding point in the two-dimensional coordinate system of the point set is located on the ordinate;
[0093] Step S7: Establish a user demand association analysis model based on the two-dimensional coordinate system of the point set, calculate the user demand association, and generate a functional scenario module set for cloud storage;
[0094] The specific implementation process of establishing a user demand correlation analysis model and calculating the user demand correlation is as follows:
[0095] In the two-dimensional coordinate system of the point set, obtain the total number of points on the horizontal and vertical coordinates, recorded as NC;
[0096] In the two-dimensional coordinate system of the point set, all points except those on the horizontal and vertical coordinates are coordinated, and the points except those on the horizontal and vertical coordinates are connected in pairs in sequence to form a maximum outer surface containing all points except those on the horizontal and vertical coordinates, and the area of the maximum outer surface is obtained, which is recorded as P;
[0097] Establish a user demand correlation analysis model and calculate the user demand correlation. The specific calculation formula is as follows:
[0098]
[0099] Among them, CD(I i →I j) represents the user demand label I i Label I j The correlation degree between them, NUM(SS) represents the number of device terminals included in the sample set SS to be analyzed;
[0100] Preset correlation threshold, if the user demand correlation is greater than or equal to the correlation threshold, the user demand label I i Label I j Functional scenarios are bound to each other, statistics and user demand tags are formed i All associated user tags bound between them are generated, and a functional scenario module set is uploaded to the cloud database. The cloud database manages the reuse of program codes of control instructions for user requirements corresponding to each user requirement tag in the same functional scenario module set. For example, if user requirements A and user requirements B are in the same functional scenario module set, the program codes of control instructions of user requirements A and user requirements B can be jointly developed and reused to realize similar associated functional scenarios and the expansion of functional scenarios.
[0101] For example, if NC is 0, it means that the two user demands have completely common linkage device terminals. At the same time, if the area of the maximum outer surface is 0, it means that in the point set two-dimensional coordinate system, the linkage device terminals corresponding to the two user demands have exactly the same edge node maturity in the actual execution process, that is, the behaviors of executing the user demands are exactly the same. In this case, CD(I i →I j )=NUM(SS), that is, there is the greatest correlation between the two user needs;
[0102] For example, if NC = NUM(SS), it means that the two users have completely different linkage device terminals. Even if the maximum outer surface area is large, CD(I i →I j )=0, that is, the two user demands are completely unrelated.
[0103] A computer-readable storage medium, the readable storage medium is used to carry a computer program, and the computer program can be executed by a processor to implement computer-readable program instructions of various aspects of the present invention; the computer-readable storage medium can be a tangible device that holds and stores instructions used by an instruction execution device, for example, it can include but is not limited to an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above; more specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the above.
[0104] An edge computing device comprises: one or more processors; a storage device for storing one or more computer programs, which, when the one or more computer programs are executed by the one or more processors, enable the edge computing device to implement computer-readable program instructions of various aspects of the present invention; for example, the edge computing device may include a data acquisition module and a data analysis module, wherein the data acquisition module is used to implement the steps of various aspects of the execution of the data acquisition method in the present invention, and the data analysis module is used to implement the steps of various aspects of the execution of the data analysis method in the present invention.
[0105] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0106] Finally, it should be noted that the above is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for collecting and analyzing data from smart IoT terminals based on edge computing. It is characterized in that The data collection and analysis method includes a data collection method and a data analysis method, and the data collection method is used to collect a data set to be analyzed for the execution of the data analysis method, wherein the data set to be analyzed serves as an underlying data resource involved in the execution of the data analysis method. The data collection method comprises the following steps: Step S1: calling the background operation log of the device terminal, processing the background operation log, and generating a user demand tag; Step S2: According to the user demand tag, all device terminals participating in the linkage response when executing the control instruction of the user demand are processed, and a demand behavior set is generated; Step S3: Based on the demand behavior set, an edge node identification iteration model is constructed, and edge nodes are iteratively analyzed, where one edge node corresponds to one device terminal, and the edge node maturity of the device terminal is calculated; Step S4: establishing the data set to be analyzed according to the maturity of the edge nodes; The data analysis method responds to the completion of the data collection method, and the data analysis method comprises the following steps: Step S5: establishing a sample set to be analyzed according to the data set to be analyzed; Step S6: according to the maturity of the edge nodes, a point set two-dimensional coordinate system is established, and all device terminals in the sample set to be analyzed are mapped in the point set two-dimensional coordinate system; Step S7: Establish a user demand association analysis model based on the two-dimensional coordinate system of the point set, calculate the user demand association, and generate a functional scenario module set for cloud storage; The specific implementation process of processing the background operation log and generating the user demand tag includes: coordinating and uniformly numbering all the device terminals participating in the intelligent Internet of Things, calling the background operation log of the device terminal, and adding the user demand tag to the background operation log, the user demand is a scene function realized by the user by calling the device terminal to link the device terminals, the user demand tag is a scene function tag uniformly added to the control instruction sent in the process of calling the device terminal, and the background operation log records the number of the device terminal that responds to the linkage in the process of executing the user demand; When executing the control instruction of the user demand, all the equipment terminals participating in the linkage response process and generate the demand behavior set. The specific implementation process includes: coordinating all the user demand tags and uniformly encoding them, recording any user demand tag as I i , according to the background operation log, call each execution user demand label I i All the equipment terminals that respond in linkage during the corresponding user demand process generate a demand behavior set, recorded as DB w (I i )={E 1 , E 2 , ..., E n }, where I i represents the i-th user demand label, DB w (I i ) indicates the wth execution of user demand label I i All the equipment terminals that respond in linkage during the corresponding user demand process, and the corresponding generated demand behavior set, E 1 , E 2 , ..., E n They represent the user demand label I participating in the wth execution respectively i The 1st, 2nd, ..., nth device terminals that respond in linkage during the corresponding user demand process; The specific implementation process of constructing the edge node identification iteration model and performing iterative analysis on the edge nodes includes: According to the demand behavior set, an edge node identification iteration model is constructed, and one device terminal among all the device terminals that respond in linkage during the execution of user demand is regarded as an edge node. Then, the edge node is used as a central node to connect all device terminals except the edge node and execute the control instructions of the user demand; Mark the central node in each demand behavior set and generate an iterative sample set, denoted as ES = {E x |DB w (I i ), w∈[1,m]}, where E x Represents the demand behavior set DB w (I i ) is the device terminal corresponding to the central node marked in the figure, x represents the number of the device terminal, and m represents the user demand label I i The total number of times the corresponding user requirements are executed; Let the Lth iteration input set be ES L , then the first iteration input set is ES 1 , and ES 1 =ES; let the output set of the Lth iteration be OS L , then the input set for the L+1th iteration is ES L+1 =ES L -OS L ; The L-th iteration process is as follows: In the Lth iteration, the input set ES L Select any device terminal E x , and iterate over the input set ES L China-Israel Equipment Terminal E x As the set of all demand behaviors of the central node, it generates the Lth iteration of the to-be-processed data set, denoted as HS L , according to the dataset HS to be processed L Computing device terminal E x The edge node maturity is calculated as follows: Among them, BNM(E x ) indicates the device terminal E x Edge node maturity, NUM(HS L ) represents the data set to be processed HS L The number of demand behavior sets contained in Represents the intersection set The number of device terminals included in Represents a union set The number of device terminals included in; Connect the device to terminal E x Store the Lth iteration output set OS L In, perform the L+1th iteration; When all the equipment terminals included in the iteration sample set ES complete the calculation of edge node maturity, the iteration stops; The specific implementation process of establishing the data set to be analyzed according to the maturity of the edge nodes includes: According to the edge node identification iteration model, each iteration output set is coordinated and forms a user demand label I i The data set to be analyzed is denoted as AS(I i ), and AS(I i )={E x |BNM(E x ), x∈[1,n]; According to the data set to be analyzed, the specific implementation process of establishing the sample set to be analyzed includes: Among all the data sets to be analyzed generated corresponding to the user demand labels, any two data sets to be analyzed are selected AS(I i ) and AS(I j ), where I j represents the jth user demand label; Coordinate the data set to be analyzed AS(I i ) and AS(I j ) contains all the device terminals, generating a sample set to be analyzed, denoted as SS; The specific implementation process of establishing a point set two-dimensional coordinate system and mapping all device terminals in the sample set to be analyzed in the point set two-dimensional coordinate system includes: According to the maturity of edge nodes, a two-dimensional coordinate system of point sets is established. The horizontal and vertical coordinates of the two-dimensional coordinate system of point sets both represent the maturity of edge nodes, and the horizontal coordinate records the data set AS (I i ) in the edge node maturity of each device terminal, and the ordinate records the data set to be analyzed AS(I j ) The edge node maturity of each device terminal; Randomly select a device terminal E in the sample set to be analyzed x , according to the two-dimensional coordinate system of the point set, generate the device terminal E x The corresponding coordinate point is denoted as E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )), where BNM(E x )|AS(I i ) indicates that in the data set to be analyzed AS(I i ) in the device terminal E x The corresponding edge node maturity BNM(E x ), BNM(E x )|AS(I j ) indicates that in the data set to be analyzed AS(I j ) in the device terminal E x The corresponding edge node maturity BNM(E x ); If the device terminal E x There is a dataset to be analyzed AS(I i ) and does not exist in the dataset to be analyzed AS(I j ), then E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )) is E x :(BNM(E x )|AS(I i ), 0), that is, the device terminal E x The corresponding points in the two-dimensional coordinate system of the point set are located on the abscissa; If the device terminal E x There is no AS(I i ) and exists in the dataset to be analyzed AS(I j ), then E x :(BNM(E x )|AS(I i ), BNM(E x )|AS(I j )) is E x :(0,BNM(E x )|AS(I j )), that is, the device terminal E x The corresponding point in the two-dimensional coordinate system of the point set is located on the ordinate; The specific implementation process of establishing the user demand correlation analysis model and calculating the user demand correlation degree includes: In the two-dimensional coordinate system of the point set, obtain the total number of points on the horizontal and vertical coordinates, recorded as NC; In the two-dimensional coordinate system of the point set, all points except those on the abscissa and the ordinate are coordinated, and the points except those on the abscissa and the ordinate are sequentially connected in pairs to form a maximum outer surface containing all points except those on the abscissa and the ordinate, and the area of the maximum outer surface is obtained, which is recorded as P; Establish a user demand correlation analysis model and calculate the user demand correlation. The specific calculation formula is as follows: Among them, CD(I i →I j ) represents the user demand label I i Label I j The correlation degree between them, NUM(SS) represents the number of device terminals included in the sample set SS to be analyzed; Preset correlation threshold, if the user demand correlation is greater than or equal to the correlation threshold, the user demand label I i User Requirements Tags j Functional scenarios are bound to each other, statistics and user demand tags are formed i All associated user tags bound between them are generated, and a functional scenario module set is generated, and the functional scenario module set is uploaded to the cloud database. The cloud database manages the program code reuse of the control instructions for the user requirements corresponding to each user requirement tag in the same functional scenario module set.
2. A computer-readable storage medium, It is characterized in that The readable storage medium is used to carry a computer program, and the computer program can be executed by a processor to implement the steps of the method as claimed in claim 1.
3. An edge computing device, It is characterized in that include: one or more processors; A storage device for storing one or more computer programs, which, when executed by the one or more processors, enables the edge computing device to implement the steps of the method as claimed in claim 1.
