Information association method, apparatus, device, storage medium, and product

By obtaining the user's five-tuple information and device status information of smart devices, and using user-defined function (UDF) programs for data matching, the problem of modifying SQL statements to associate user behavior data with smart device log data in existing technologies is solved, achieving convenient data association and saving storage space.

CN114880342BActive Publication Date: 2025-11-04QINGDAO HAIER TECH +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210467584.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-04-29
Publication Date
2025-11-04
Estimated Expiration
2042-04-29

AI Technical Summary

Technical Problem

In existing technologies, linking user behavior data with smart device log data requires modifying SQL statements, resulting in complex and difficult-to-maintain code, inability to dynamically parse key fields, and low flexibility.

Method used

By obtaining the user's quintuple information and device status information of the smart device, the user-defined function (UDF) program is called to read the device status change expression, and the user's quintuple information is matched with the device status information to achieve data association and avoid code modification.

Benefits of technology

It provides a convenient way to associate data, saves storage space, and requires no code modification, thus improving the flexibility and maintainability of data association.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114880342B_ABST
    Figure CN114880342B_ABST
Patent Text Reader

Abstract

The application provides an information association method, device, equipment, storage medium and product. The method comprises the following steps: acquiring user quintuple information to be matched of a smart device and device state information reported by the smart device, filtering the reported device state information, and determining device state information to be matched; calling a UDF program to read a device state change expression corresponding to the user quintuple information to be matched; determining whether the user quintuple information to be matched and the device state information to be matched are matched according to the device state information to be matched, device state information at a previous moment and the device state change expression; if yes, associating the matched user quintuple information and the device state information, and outputting a corresponding matching result. The method of the application uses a user-defined function program and a preset device state change expression, and can associate data by maintaining the expression, without modifying the code in the data association process.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the communication technology field, and in particular to an information association method and device, equipment, storage medium and product. BACKGROUND

[0002] At present, there are many users using intelligent devices, and most of the users have more than one intelligent device at home. With more and more functions of the intelligent devices, the number of times of using the intelligent devices by the users is also significantly increased. The user uploads a behavior log every time the user operates the intelligent device, and the user uploads a large amount of behavior data every day. Meanwhile, the intelligent device itself also uploads a large amount of log data every day.

[0003] In order to provide better use experience for the users using the intelligent devices, the equipment manufacturers need to collect the behavior data of the users which does not involve the privacy of the users and the log data reported by the intelligent devices owned by the users under the condition of the consent of the users, and combine the two. When the data analysis or algorithm personnel want to combine the behavior data of the users and the device reporting data together for analysis, the standard structured query language (SQL) processing is usually used, and the fixed code is written according to the pre-requirement, so as to associate the data.

[0004] However, if a new behavior is added, the SQL statement needs to be modified by the R&D personnel, otherwise the behavior data cannot be associated with the corresponding intelligent device log data. SUMMARY

[0005] The present application provides an information association method, device, equipment, storage medium and product, which solves the problem that the code needs to be modified in the process of associating the behavior data of the user and the intelligent device log data.

[0006] In a first aspect, the present application provides an information association method, comprising:

[0007] obtaining user quintuple information to be matched of an intelligent device and device state information reported by the intelligent device, and performing filtering processing on the device state information reported by the intelligent device to determine corresponding device state information to be matched;

[0008] calling a user-defined function (UDF) program to read a device state change expression corresponding to the user quintuple information to be matched;

[0009] obtaining device state information of a previous moment corresponding to the device state information to be matched, and determining whether the user quintuple information to be matched and the device state information to be matched are matched according to the device state information to be matched, the device state information of the previous moment and the corresponding device state change expression;

[0010] If yes, the matched user quintuple information is associated with the device state information, and a corresponding matching result is output.

[0011] In a second aspect, the present application provides an information association apparatus, comprising:

[0012] A determination unit is configured to acquire user quintuple information to be matched by a smart device and device state information reported by the smart device, and filter the device state information reported by the smart device to determine corresponding device state information to be matched.

[0013] A processing unit is configured to call a user-defined function (UDF) program to read a device state change expression corresponding to the user quintuple information to be matched.

[0014] The determination unit is further configured to acquire device state information at a previous time corresponding to the device state information to be matched, and determine whether the user quintuple information to be matched matches the device state information to be matched according to the device state information to be matched, the device state information at the previous time, and the corresponding device state change expression.

[0015] The processing unit is further configured to, if yes, associate the matched user quintuple information with the device state information, and output a corresponding matching result.

[0016] In a third aspect, the present application provides an electronic device, a processor, and a memory connected in communication with the processor.

[0017] The memory stores computer execution instructions.

[0018] The processor executes the computer execution instructions stored in the memory, so that the processor executes the method of the first aspect.

[0019] In a fourth aspect, the present application provides a computer readable storage medium, wherein the computer readable storage medium stores computer execution instructions, and the computer execution instructions are executed by a processor to implement the method of the first aspect.

[0020] In a fifth aspect, the present application provides a computer program product, comprising a computer program, wherein the computer program is executed by a processor to implement the method of the first aspect.

[0021] The information association method, device, equipment, storage medium and product provided by the application, through acquiring the user quintuple information to be matched of the smart device and the device state information reported by the smart device, filtering the device state information reported by the smart device to determine the corresponding device state information to be matched, calling the user-defined function (UDF) program to read the device state change expression corresponding to the user quintuple information to be matched, acquiring the device state information of the previous moment corresponding to the device state information to be matched, and determining whether the user quintuple information to be matched and the device state information to be matched are matched according to the device state information to be matched, the device state information of the previous moment and the corresponding device state change expression, if yes, associating the matched user quintuple information and the device state information, and outputting the corresponding matching result. The user-defined function program and the pre-set device state change expression are adopted, the code does not need to be modified in the data association process, only the device state change expression needs to be maintained, a relatively convenient data association mode is provided. Moreover, the data can be filtered to save the storage space. BRIEF DESCRIPTION OF DRAWINGS

[0022] The accompanying drawings, which are incorporated herein and constitute part of the specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application.

[0023] Figure 1 is a network architecture schematic diagram of the information association method provided by the application;

[0024] Figure 2 is a flow schematic diagram of the information association method provided by the first embodiment of the application;

[0025] Figure 3 is a flow schematic diagram of the information association method provided by the second embodiment of the application;

[0026] Figure 4 is a flow schematic diagram of the information association method provided by the fourth embodiment of the application;

[0027] Figure 5 is a flow schematic diagram of the information association method provided by the sixth embodiment of the application;

[0028] Figure 6 is a flow schematic diagram of the information association method provided by the seventh embodiment of the application;

[0029] Figure 7 is a structure schematic diagram of the information association device provided by an embodiment of the application;

[0030] Figure 8 is a first block diagram of an electronic device for implementing the information association method of the embodiments of the application;

[0031] Figure 9 is a second block diagram of an electronic device for implementing the information association method of the embodiments of the present application.

[0032] The specific embodiments of the present application have been shown through the above-described drawings, and will be described in more detail hereinafter. The drawings and the written description are not intended to restrict the scope of the present application by any means, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION

[0033] In order to make the technical personnel in the art better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor should belong to the scope of protection of the present application.

[0034] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-described drawings are used to distinguish similar objects, and do not necessarily describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0035] In order to clearly understand the technical solutions of the present application, the prior art solutions will be described in detail first.

[0036] At present, more and more users use smart devices, and most users have more than one smart device at home. With more and more functions of the smart devices, the number of times of using the smart devices by the users is also obviously increased. The user uploads a behavior log every time the user operates the smart device, and the user uploads a large amount of behavior data every day. Meanwhile, the smart device itself also uploads a large amount of log data every day. In order to provide better use experience for the user using the smart device, the device manufacturer needs to collect the behavior data of the user and the log data reported by the smart device owned by the user without involving the privacy of the user under the condition of the consent of the user, and combines the behavior data with the log data reported by the smart device. When the data analysis or algorithm personnel want to combine the user behavior data and the device reporting data together for analysis, the standard structured query language (SQL) processing is usually used, the fixed code is written according to the pre-requirement, and the data is associated so as to facilitate subsequent analysis.

[0037] The existing method uses the standard SQL processing of the database, the flexibility of the standard SQL is not high, the required key field cannot be dynamically parsed, and the fixed code can only be written according to the pre-requirement. If a new behavior is added, the code needs to be modified. If the smart device adds some functions and new behaviors are also added accordingly, the code also needs to be modified, otherwise the behavior data cannot be associated with the corresponding smart device log data, and the SQL becomes very complex and is not easy to maintain.

[0038] Therefore, in order to solve the problem that the user behavior data and the smart device log data need to be associated by using SQL, the inventors find, in research, that the smart device to-be-matched user five-tuple information and the device state information reported by the smart device are obtained, the reported device state information is filtered, so that the to-be-matched device state information is determined, a user-defined function is further called to read the device state change expression corresponding to the to-be-matched user five-tuple information, whether the to-be-matched user five-tuple information and the to-be-matched device state information match is determined according to the to-be-matched device state information, the device state information at the last moment and the device state change expression, if the user five-tuple information and the device state information match, the user five-tuple information and the to-be-matched device state information are associated, and a matching result is output. The user-defined function program and the pre-set device state change expression are used, the code does not need to be modified in the data association process, only the device state change expression needs to be maintained, a relatively convenient data association mode is provided. Moreover, the data can be filtered to save storage space.

[0039] Therefore, based on the above creative finding, the inventors put forward the technical scheme of the embodiments of the present application. The network architecture and application scenario of the information association method provided by the embodiments of the present application are introduced below.

[0040] AsFigure 1 As shown in the information association method provided by the embodiment of the present application, the network architecture corresponding to the information association method comprises an electronic device 1 and a smart air conditioner 2. The electronic device 1 is in communication connection with the smart air conditioner 2. The smart air conditioner 2 reports device state information and user behavior information, and the electronic device 1 generates corresponding user five-tuple information according to the user behavior information reported by the smart air conditioner 2, and determines the user five-tuple information as user five-tuple information to be matched by the smart air conditioner 2. The electronic device 1 filters the device state information reported by the smart air conditioner 2 to determine corresponding device state information to be matched, calls a user-defined function (UDF) program to read device state change expressions corresponding to the user five-tuple information to be matched, acquires device state information at a previous time corresponding to the device state information to be matched, and determines whether the user five-tuple information to be matched and the device state information to be matched are matched according to the device state information to be matched, the device state information at the previous time, and the corresponding device state change expressions. If yes, the matched user five-tuple information and the device state information are associated, and a corresponding matching result is output. The user-defined function program and the pre-set device state change expressions are used, and the code does not need to be modified in the data association process. Only the device state change expressions need to be maintained, and a relatively convenient data association method is provided. Moreover, the data can be filtered to save storage space.

[0041] The embodiments of the present application will be described in detail below with reference to the accompanying drawings.

[0042] Embodiment one

[0043] Figure 2 is a flowchart of the information association method provided by the embodiment one of the present application, as Figure 2 shown, the execution subject of the information association method provided by the embodiment is an information association device, and the information association device is located in an electronic device. Therefore, the information association method provided by the embodiment comprises the following steps.

[0044] In step 101, user five-tuple information to be matched by a smart device and device state information reported by the smart device are acquired, and the device state information reported by the smart device is filtered to determine corresponding device state information to be matched.

[0045] In this embodiment, the five-tuple information includes user information, time information, address information, context information, and intent information. The user information includes a user identifier, the time information includes a behavior occurrence time, the address information includes air conditioner region information, and the context information includes current weather and other auxiliary information. The user five-tuple information to be matched by the smart device and the device state information reported by the smart device are obtained, wherein the device state information is obtained by reporting at an interval of a preset time or by reporting after a user operation on the device causes a change in the device state. If the smart device reports the device state information at an interval of a preset time, but the device state does not actually change, the server side will receive multiple pieces of the same device state information. Therefore, the device state information reported by the smart device needs to be filtered to determine the device state information to be matched.

[0046] In step 102, a user-defined function (UDF) program is called to read the device state change expression corresponding to the user five-tuple information to be matched.

[0047] In this embodiment, a plurality of device state expressions are stored locally, and the device state expressions include a pre-change state and a post-change state. For example, if the air conditioner is turned off, the device state changes from on to off, and the state parameter onOffStatus of the air conditioner device changes from true to false. The corresponding device state expression is (onOffStatus=true)&&(prior_onOffStatus=false). A mapping relationship between preset behavior information identifiers and device state change expressions is preset, and the behavior information identifier corresponding to the user behavior identifier to be matched is determined according to the user five-tuple information to be matched and the mapping relationship between the preset behavior information identifiers and the device state change expressions. The device state change expression corresponding to the behavior information identifier in the matched mapping relationship is the device state change expression corresponding to the user five-tuple information to be matched, and the user-defined function program is further called to read the device state expression corresponding to the user five-tuple information to be matched.

[0048] In step 103, the device state information at the previous time corresponding to the device state information to be matched is obtained, and it is determined whether the user five-tuple information to be matched matches the device state information to be matched according to the device state information to be matched, the device state information at the previous time, and the corresponding device state change expression.

[0049] In the embodiment, each device state information has corresponding time information, the device state information at the previous time according to the time information corresponding to the device state to be matched is determined, and the device state information at the previous time corresponding to the device state information to be matched is obtained. The purpose of matching is to find the device state information matched with the user quintuple information, so as to combine the matched user quintuple information and the device state information, for the intelligent device R&D personnel to optimize the program of the device itself or the control device. Therefore, it is necessary to find the device state information matched with the user quintuple information to be matched, and specifically, the user quintuple information to be matched is determined according to the device state information to be matched, the device state information at the previous time and the corresponding device state change expression, so as to determine the user quintuple information to be matched.

[0050] In step 104, if yes, the matched user quintuple information is associated with the device state information, and the corresponding matching result is output.

[0051] In the embodiment, if it is determined that the user quintuple information to be matched matches the device state information to be matched, the matched user quintuple information is associated with the device state information, and the matching result of the user quintuple information and the device state information is output.

[0052] In the embodiment, the user quintuple information to be matched of the intelligent device and the device state information reported by the intelligent device are obtained, the reported device state information is filtered, so as to determine the device state information to be matched, the device state change expression corresponding to the user quintuple information to be matched is further read by calling the user-defined function, whether the user quintuple information to be matched matches the device state information to be matched is determined according to the device state information to be matched, the device state information at the previous time and the device state change expression, if the user quintuple information matches the device state information, the user quintuple information is associated with the device state information to be matched, and the matching result is output. The user-defined function program and the pre-set device state change expression are adopted, the code does not need to be modified in the data association process, only the device state change expression needs to be maintained, and a relatively convenient data association mode is provided. Moreover, the data can be filtered, so as to save the storage space.

[0053] Embodiment two

[0054] Figure 3 The information association method provided in the embodiment two of the application is shown in the flowchart as shown in Figure 3 On the basis of the information association method provided in the embodiment one of the application, step 101 is further refined, and specifically includes the following steps:

[0055] Step 1011, calculating the device state hash value of the device state information reported by the intelligent device, from the device state hash value of any optional moment.

[0056] In this embodiment, the repeated device state information is filtered by comparing the hash values. The hash value is a fixed-length smaller binary value mapped from an arbitrary-length binary value in a hash algorithm, which is a unique and extremely compact numerical representation of a piece of data. The hash value is a numerical value obtained by logical operation according to the data of the content of a file. Different files have different hash values, so the hash value is like an identity card of each file. The device state hash value of the device state information reported by the intelligent device is calculated, and the device state hash value of the device state information of the previous moment corresponding to the selected moment is obtained.

[0057] Step 1012, obtaining the device state hash value of the device state information of the previous moment corresponding to the selected moment, and comparing the device state hash value of the selected moment with the device state hash value of the device state information of the previous moment.

[0058] In this embodiment, the device state hash value of the device state information of the previous moment corresponding to the selected moment is obtained, and the device state information of the previous moment corresponding to the selected moment is determined according to the time information corresponding to the selected moment. The device state hash value of the device state information of the previous moment is obtained, which is also calculated by using hash. The device state hash values corresponding to different states of the same device are also different. The device state hash value of the selected moment is compared with the device state hash value of the device state of the previous moment, so as to determine whether the two hash values are the same.

[0059] Step 1013, filtering the device state information reported by the intelligent device according to the hash value comparison result, and determining the filtered device state information as the device state information to be matched.

[0060] In this embodiment, the device state information reported by the intelligent device is filtered according to the comparison result of the device state hash value of the device state information of the selected moment and the device state hash value of the device state information of the previous moment, so as to remove the repeated device state information. The filtered device state information is determined as the device state information to be matched.

[0061] Embodiment three

[0062] On the basis of the information association method provided in Embodiment One of the application, step 1012 is further refined, which specifically includes the following steps:

[0063] Step 1012a, if the device state hash value of the selected time is consistent with the device state hash value of the device state information of the previous time, the device state information of the selected time and the device state hash value of the device of the selected time are deleted.

[0064] In the embodiment, if the device state hash value of the selected time is inconsistent with the device state hash value of the device state of the previous time, it is indicated that the device state of the selected time is different from the device state of the previous time, the device state is changed, and the device state information of the selected time is the device state information reported after the device state is changed.

[0065] Step 1012b, if the device state hash value of the selected time is inconsistent with the device state hash value of the device state information of the previous time, the device state information of the selected time with inconsistent hash values is determined as the device state information to be matched.

[0066] In the embodiment, if the device state hash value of the selected time is consistent with the device state hash value of the device state of the previous time, it is indicated that the device state of the selected time is the same as the device state of the previous time, the device state is not changed, and the device state information of the selected time is not the device state information reported after the device state is changed, but is reported by the device at a preset time interval.

[0067] Embodiment four

[0068] Figure 4 The flowchart of the information association method provided in Embodiment Four of the application is shown in FIG. 10. Figure 4 As shown in FIG. 10, on the basis of the information association method provided in Embodiment One of the application, step 102 is further refined, and specifically includes the following steps:

[0069] Step 1021, obtaining the mapping relationship between the user behavior identifier corresponding to the user five tuple information to be matched and the preset behavior identifier and the device state change expression.

[0070] In the embodiment, the mapping relationship between the preset identifier and the device state change expression is stored locally, and the user five tuple information is obtained according to the user behavior information reported by the intelligent device. Each behavior has its corresponding behavior identifier. The mapping relationship between the preset behavior identifier and the device state change expression and the user behavior identifier corresponding to the user five tuple information to be matched are obtained, and then the required device state change expression is found.

[0071] Step 1022, matching the user behavior identifier corresponding to the user five tuple information to be matched with the preset behavior identifier in the mapping relationship.

[0072] In the embodiment, the user behavior identifier corresponding to the user quintuple information to be matched is matched with the preset behavior identifier in the mapping relationship, and the required device state change expression is determined according to the identifier matching result.

[0073] In step 1023, the user-defined function UDF program is called to read the device state change expression corresponding to the preset behavior identifier matched with the user behavior identifier.

[0074] In the embodiment, the preset behavior identifier matched with the user behavior identifier is determined, the device state change expression corresponding to the matched preset behavior identifier is the required device state change expression, and the user-defined function program is called to read the device state change expression corresponding to the preset behavior identifier matched with the user behavior identifier.

[0075] Embodiment five

[0076] On the basis of the information association method provided in Embodiment One of the application, step 103 is further refined, and specifically includes the following steps:

[0077] In step 1031, if the device state information to be matched is consistent with the device state information after the device state change in the expression and the device state information at the last time is consistent with the device state information before the device state change in the expression, it is determined that the user quintuple information to be matched is matched with the device state information to be matched.

[0078] In the embodiment, the device state information to be matched is compared with the device state information after the device state change in the expression, so as to determine whether the device state information to be matched is consistent with the device state information after the device state change in the expression, and the device state information at the last time is compared with the device state information before the device state change in the expression, so as to determine whether the device state information at the last time is consistent with the device state information before the device state change in the expression. If the device state information to be matched is consistent with the device state information after the device state change in the expression and the device state information at the last time is consistent with the device state information before the device state change in the expression, it is indicated that the device state change is caused by the user behavior corresponding to the identifier, and it is determined that the user quintuple information to be matched is matched with the device state information to be matched. Further, the matched user quintuple information and the device state information are associated, so as to be used for subsequent analysis.

[0079] In step 1032, if the device state information to be matched is inconsistent with the device state information after the device state change in the expression and / or the device state information at the last time is inconsistent with the device state information before the device state change in the expression, it is determined that the user quintuple information to be matched is not matched with the device state information to be matched.

[0080] In this embodiment, if the device state information to be matched is consistent with the device state information after the device state change in the expression or the device state information at the last time is inconsistent with the device state information before the device state change in the expression, it is determined that the user quintuple information to be matched and the device state information to be matched are not matched; if the device state information to be matched is inconsistent with the device state information after the device state change in the expression or the device state information at the last time is consistent with the device state information before the device state change in the expression, it is determined that the user quintuple information to be matched and the device state information to be matched are not matched; if the device state information to be matched is inconsistent with the device state information after the device state change in the expression and the device state information at the last time is inconsistent with the device state information before the device state change in the expression, it is determined that the user quintuple information to be matched and the device state information to be matched are not matched. The device state information with the non-matching degree is further deleted, thereby saving storage space.

[0081] Embodiment six

[0082] Figure 5 The information association method provided in Embodiment Six of the present application is shown in the flowchart as shown in FIG. 6. Based on the information association method provided in Embodiment One of the present application, step 104 is further refined, and specifically includes the following steps. Figure 5

[0083] Step 1041, determining whether the device state information matched with the user quintuple information to be matched is multiple.

[0084] In this embodiment, the number of device state information matched with the user quintuple information to be matched is obtained, and it is determined whether the device state information matched with the user quintuple information to be matched is multiple, and according to the determination result, it is determined whether the multiple matched device state information needs to be screened.

[0085] Step 1042, if yes, the multiple matched device state information is screened according to the behavior occurrence time corresponding to the user quintuple information to be matched, the screened device state information is obtained, and the device state information is associated with the matched user quintuple information.

[0086] In this embodiment, if the device state information matched with the user quintuple information to be matched is multiple, the multiple matched device state information needs to be screened. Specifically, the behavior occurrence time corresponding to the user quintuple information to be matched is obtained, the multiple matched device state information is screened according to the behavior occurrence time corresponding to the user quintuple information to be matched, the screened device state information is obtained, and the screened device state information is associated with the corresponding matched user quintuple information. ​

[0087] Step 1043, if no, then associate the matched user quintuple information with the device state information.

[0088] In this embodiment, if the device state information matched with the user quintuple information to be matched is one, there is no need to screen multiple matched device state information, and the matched user quintuple information is directly associated with the device state information.

[0089] Embodiment Seven

[0090] Figure 6 is a flowchart of the information association method provided by Embodiment Seven of the present application, as shown in Figure 6 based on the information association method provided by Embodiment Six of the present application, step 1042 is further refined, and specifically includes the following steps:

[0091] Step 1042a, obtaining the behavior occurrence time corresponding to the user quintuple information to be matched, and selecting the device state information within a preset time range after the behavior occurrence time from the multiple matched device state information.

[0092] In this embodiment, the behavior occurrence time in the user quintuple information refers to the time when the user triggers the behavior, for example, the user starts the air conditioner at 9 o'clock, and the time corresponding to the behavior of starting the air conditioner is 9 o'clock. The behavior of the user will trigger the change of the state of the intelligent device, and the state data within a period of time after the behavior occurrence is found, and the device state information within a preset time range after the behavior occurrence time is selected from the multiple matched device state information, wherein the preset time range can be set according to the actual situation, for example, the preset time range is set to 10s, and the device state information within 10s after the behavior occurrence time is selected from the multiple matched device state information.

[0093] Step 1042b, sorting the device state information according to the state occurrence time corresponding to the device state information within the preset time range, and selecting the device state information corresponding to the state occurrence time closest to the behavior occurrence time, and determining the device state information as the screened device state information.

[0094] In this embodiment, the device state information within the preset time range is sorted, each device state information has its corresponding state occurrence time, the device state information is sorted according to the state occurrence time corresponding to the device state information within the preset time range, the device state information corresponding to the state occurrence time closest to the behavior occurrence time is selected, that is, the device state information corresponding to the state occurrence time with the shortest time interval from the behavior occurrence time is selected, and the device state information corresponding to the state occurrence time closest to the behavior occurrence time is determined as the screened device state information.

[0095] Embodiment eight

[0096] On the basis of the information association method provided in Embodiment One of the present application, before step 101, the following steps are further included:

[0097] Step 101a, obtaining the user behavior information reported by the smart device, generating the corresponding user five-tuple information according to the user behavior information reported by the smart device, and determining the user five-tuple information as the user five-tuple information to be matched by the smart device.

[0098] In this embodiment, the user behavior information reported by the smart device is obtained, and the corresponding user five-tuple information is generated based on the user behavior information reported by the smart device. The user five-tuple information includes user information, time information, address information, context information, and intent information. The user information includes a user identifier, the time information includes a behavior occurrence time, the address information includes air conditioner area information, and the context information includes current weather and other auxiliary information. The user five-tuple information is determined as the user five-tuple information to be matched by the smart device. Further, the device state information matched with the user five-tuple information to be matched is found.

[0099] Embodiment nine

[0100] On the basis of the information association method provided in Embodiment One of the present application, after step 103, the following steps are further included:

[0101] Step 105, if no, deleting the unmatched device state information.

[0102] In this embodiment, the purpose of matching is to find the device state information matched with the user five-tuple information, so as to combine the matched user five-tuple information and device state information. Specifically, the user five-tuple information to be matched is determined according to the device state information to be matched, the device state information at the last time, and the corresponding device state change expression, so as to determine the user five-tuple information to be matched. If it is determined that the user five-tuple information to be matched does not match the device state information to be matched, the unmatched device state information is deleted to save storage space.

[0103] Figure 7 is a structural schematic diagram of an information association device provided by an embodiment of the present application, as shown in Figure 7 The information association device 200 provided by the present embodiment includes a determination unit 201 and a processing unit 202.

[0104] The determining unit 201 is configured to acquire user quintuple information to be matched by the smart device and device state information reported by the smart device, and filter the device state information reported by the smart device to determine corresponding device state information to be matched. The processing unit 202 is configured to call a user-defined function (UDF) program to read a device state change expression corresponding to the user quintuple information to be matched. The determining unit 201 is further configured to acquire device state information at a previous time corresponding to the device state information to be matched, and determine whether the user quintuple information to be matched and the device state information to be matched match according to the device state information to be matched, the device state information at the previous time, and the corresponding device state change expression. The processing unit 202 is further configured to, if yes, associate the matched user quintuple information and the device state information, and output a corresponding matching result.

[0105] Optionally, the determining unit is further configured to calculate a device state hash value of the device state information reported by the smart device, from which a device state hash value at an optional time is obtained; acquire a device state hash value of device state information at a previous time corresponding to the device state hash value at the selected time, and compare the device state hash value at the selected time with the device state hash value of the device state information at the previous time; filter the device state information reported by the smart device according to a hash value comparison result, and determine the filtered device state information as the device state information to be matched.

[0106] Optionally, the determining unit is further configured to, if the device state hash value at the selected time is consistent with the device state hash value of the device state information at the previous time, delete the device state information at the time and the device state hash value of the device at the time; and if the device state hash value at the selected time is inconsistent with the device state hash value of the device state information at the previous time, determine the device state information at the selected time with the inconsistent hash value as the device state information to be matched.

[0107] Optionally, the processing unit is further configured to acquire a mapping relationship between a user behavior identifier corresponding to the user quintuple information to be matched and a preset behavior identifier and a device state change expression; match the user behavior identifier corresponding to the user quintuple information to be matched with the preset behavior identifier in the mapping relationship; and call the UDF program to read the device state change expression corresponding to the preset behavior identifier matched with the user behavior identifier.

[0108] Optionally, the determining unit is further configured to determine that the user quintuple information to be matched matches the device state information to be matched if the device state information to be matched is consistent with the device state information after the change in the expression and the device state information at the previous time is consistent with the device state information before the change in the expression; and determine that the user quintuple information to be matched does not match the device state information to be matched if the device state information to be matched is inconsistent with the device state information after the change in the expression and / or the device state information at the previous time is inconsistent with the device state information before the change in the expression.

[0109] Optionally, the processing unit is further configured to determine whether the device state information matched with the user quintuple information to be matched is multiple; if yes, filter the multiple matched device state information according to the behavior occurrence time corresponding to the user quintuple information to be matched, obtain the filtered device state information, and associate the device state information with the matched user quintuple information; and if no, associate the matched user quintuple information with the device state information.

[0110] Optionally, the processing unit is further configured to obtain the behavior occurrence time corresponding to the user quintuple information to be matched, and select the device state information within a preset time range after the behavior occurrence time from the multiple matched device state information; sort the device state information according to the state occurrence time corresponding to the device state information, and select the device state information corresponding to the state occurrence time closest to the behavior occurrence time as the filtered device state information.

[0111] Optionally, the processing unit is further configured to obtain the user behavior information reported by the smart device, generate corresponding user quintuple information according to the user behavior information reported by the smart device, and determine the user quintuple information as the user quintuple information to be matched by the smart device.

[0112] Optionally, the determining unit is further configured to delete the unmatched device state information if no.

[0113] Figure 8 is a first block diagram of an electronic device for implementing the information association method of the embodiments of the present application, as shown in Figure 8 The electronic device 300 includes a memory 301 and a processor 302.

[0114] The memory 301 stores computer execution instructions;

[0115] The processor 302 executes the computer execution instructions stored in the memory 301, so that the processor executes the method provided by any one of the above embodiments.

[0116] Figure 9is a second block diagram of an electronic device to implement the information association method of the embodiments of the present application, as shown in Figure 9 The electronic device can be a computer, a digital broadcasting terminal, a messaging device, a tablet device, a personal digital assistant, a server, a server cluster, etc.

[0117] The electronic device 800 can include one or more of the following components: a processing component 802, a memory 804, a power supply component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816.

[0118] The processing component 802 usually controls overall operations of the electronic device 800, such as operations associated with displaying, making phone calls, data communications, camera operations, and recording operations. The processing component 802 can include one or more processors 820 to execute instructions to complete all or part of steps of the above-described methods. In addition, the processing component 802 can include one or more modules to facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0119] The memory 804 is configured to store various types of data to support operations of the electronic device 800. Examples of these data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage devices or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.

[0120] The power supply component 806 supplies electric power for the various components of the electronic device 800. The power supply component 806 can include a power supply management system, one or more power supplies, and other components associated with generating, managing and distributing electric power for the electronic device 800.

[0121] The multimedia component 808 includes a screen to provide an output interface between the electronic device 800 and a user. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense a touch, a slide, and a gesture on the touch panel. The touch sensor can not only sense a boundary of a touching or a sliding action, but also detect duration and pressure related to the touching or sliding action. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. The front camera and / or the rear camera can receive external multimedia data when the electronic device 800 is in an operation mode, such as a photographing mode or a video mode. Each of the front camera and the rear camera can be a fixed optical lens system or have a focal length and optical zooming capability.

[0122] The audio component 810 is configured to output and / or input an audio signal. For example, the audio component 810 includes a microphone (MIC) configured to receive an external audio signal when the electronic device 800 is in an operation mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal can be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, the audio component 810 further includes a speaker for outputting an audio signal.

[0123] The I / O interface 812 provides an interface for the processing component 802 and peripheral interface modules, which can be a keypad, a click wheel, buttons, and the like. The buttons can include, but are not limited to, a home button, a volume button, a start button, and a lock button.

[0124] The sensor component 814 includes one or more sensors to provide various state assessments for the electronic device 800. For example, the sensor component 814 can detect an open / closed state of the electronic device 800, relative positioning of components, such as a display and a keypad of the electronic device 800, a change in position of the electronic device 800 or a component of the electronic device 800, presence or absence of user contact with the electronic device 800, an orientation or acceleration / deceleration of the electronic device 800, and a temperature change of the electronic device 800. The sensor component 814 can include a proximity sensor configured to detect presence of a nearby object without any physical touch. The sensor component 814 can further include a light sensor such as a CMOS or CCD image sensor for use in an imaging application. In some embodiments, the sensor component 814 can further include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0125] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technology.

[0126] In an exemplary embodiment, the electronic device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic elements, for performing the above-described methods.

[0127] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions, such as the memory 804 including instructions, is also provided, which can be executed by the processor 820 of the electronic device 800 to complete the above-described methods. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disc, and an optical data storage device, etc.

[0128] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the terminal device to perform the above-described information association method of the electronic device.

[0129] In an exemplary embodiment, a computer program product is also provided, including a computer program which is executed by a processor to perform the methods in Embodiment 1 to Embodiment 4.

[0130] Other embodiments of the present disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the aspects of the present disclosure disclosed herein. It is intended that the present disclosure cover any and all variations of the present disclosure including those variations that can be incorporated into other aspects of the present disclosure. It is intended that the present disclosure include modifications and variations of the application included within the scope of the appended claims and their equivalents. It is intended that the specification and examples be considered exemplary only, with the true scope and spirit of the present disclosure being indicated by the following claims.

[0131] It should be understood that the present disclosure is not limited to the precise construction that has been described above and shown in the accompanying drawings, and that various modifications and changes can be made by those skilled in the art without departing from the scope of the present disclosure. The scope of the present disclosure is limited only by the appended claims.

Claims

1. An information association method characterized by, The method comprises the following steps: obtaining user quintuple information to be matched by a smart device and device state information reported by the smart device, and filtering the device state information reported by the smart device to determine corresponding device state information to be matched; wherein the user quintuple information is generated according to user behavior information reported by the smart device; calling a user-defined function (UDF) program to read a device state change expression corresponding to the user quintuple information to be matched; obtaining device state information at a previous time corresponding to the device state information to be matched, and determining whether the user quintuple information to be matched and the device state information to be matched match according to the device state information to be matched, the device state information at the previous time, and the corresponding device state change expression; if yes, associating the matched user quintuple information and the device state information, and outputting a corresponding matching result.

2. The method of claim 1, wherein, The filtering of the device state information reported by the smart device to determine the corresponding device state information to be matched comprises the following steps: calculating a device state hash value of the device state information reported by the smart device, and selecting a device state hash value at any time; obtaining a device state hash value of device state information at a previous time corresponding to the selected device state hash value, and comparing the selected device state hash value with the device state hash value of the device state information at the previous time; filtering the device state information reported by the smart device according to the hash value comparison result, and determining the filtered device state information as the device state information to be matched.

3. The method of claim 2, wherein, The filtering of the device state information reported by the smart device to determine the corresponding device state information to be matched comprises the following steps: if the device state hash value at the selected time is consistent with the device state hash value of the device state information at the previous time, the device state information at the time and the device state hash value of the device at the time are deleted; if the device state hash value at the selected time is inconsistent with the device state hash value of the device state information at the previous time, the selected time device state information with inconsistent hash values is determined as the device state information to be matched.

4. The method of claim 1, wherein, The calling of the user-defined function (UDF) program to read the device state change expression corresponding to the user quintuple information to be matched comprises the following steps: obtaining a mapping relationship between a user behavior identifier corresponding to the user quintuple information to be matched and a preset behavior identifier and a device state change expression; matching the user behavior identifier corresponding to the user quintuple information to be matched with the preset behavior identifier in the mapping relationship; calling the user-defined function (UDF) program to read the device state change expression corresponding to the preset behavior identifier matched with the user behavior identifier.

5. The method of claim 1, wherein, The determination of whether the user quintuple information to be matched and the device state information to be matched match according to the device state information to be matched, the device state information at the previous time, and the corresponding device state change expression comprises the following steps: if the device state information to be matched is consistent with the device state information after the change in the expression and the device state information at the previous moment is consistent with the device state information before the change in the expression, it is determined that the user five-tuple information to be matched matches the device state information to be matched; if the device state information to be matched is inconsistent with the device state information after the change in the expression and / or the device state information at the previous moment is inconsistent with the device state information before the change in the expression, it is determined that the user five-tuple information to be matched does not match the device state information to be matched.

6. The method of claim 1, wherein, The associating of the matched user five-tuple information and the device state information comprises: determining whether the device state information matched with the user five-tuple information to be matched is multiple; if yes, screening the multiple matched device state information according to the behavior occurrence time corresponding to the user five-tuple information to be matched, obtaining the screened device state information, and associating the device state information with the matched user five-tuple information; if no, associating the matched user five-tuple information with the device state information.

7. The method of claim 6, wherein, The screening of the multiple matched device state information according to the behavior occurrence time corresponding to the user five-tuple information to be matched comprises: obtaining the behavior occurrence time corresponding to the user five-tuple information to be matched, and selecting the device state information within a preset time range after the behavior occurrence time from the multiple matched device state information; sorting the device state information according to the state occurrence time corresponding to the device state information within the preset time range, and selecting the device state information corresponding to the state occurrence time closest to the behavior occurrence time, and determining the device state information as the screened device state information.

8. The method of claim 1, wherein, Before the obtaining of the user five-tuple information to be matched of the smart device, the method further comprises: obtaining the user behavior information reported by the smart device, generating the corresponding user five-tuple information according to the user behavior information reported by the smart device, and determining the user five-tuple information as the user five-tuple information to be matched of the smart device.

9. The method of claim 1, wherein, After the determining of whether the user five-tuple information to be matched matches the device state information to be matched according to the device state information to be matched, the device state information at the previous moment, and the corresponding device state change expression, the method further comprises: if no, deleting the device state information that does not match.

10. An information associating apparatus characterized by comprising: The device comprises: a determination unit configured to obtain the user five-tuple information to be matched of the smart device and the device state information reported by the smart device, and perform filtering processing on the device state information reported by the smart device to determine the corresponding device state information to be matched; wherein the user five-tuple information is generated according to the user behavior information reported by the smart device; a processing unit configured to call a user-defined function (UDF) program to read the device state change expression corresponding to the user five-tuple information to be matched; The determining unit is further configured to acquire device state information of a previous time corresponding to the to-be-matched device state information, and determine whether the to-be-matched user five-tuple information and the to-be-matched device state information match according to the to-be-matched device state information, the device state information of the previous time, and the corresponding device state change expression; The processing unit is further configured to associate the matched user five-tuple information and the device state information if yes, and output a corresponding matching result.

11. An electronic device comprising: A processor, and a memory connected with the processor in communication; The memory stores computer-executed instructions; The processor executes the computer-executed instructions stored in the memory to implement the method in any one of claims 1 to 9.

12. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executed instructions, and the computer-executed instructions are executed by the processor to implement the method in any one of claims 1 to 9.

13. A computer program product, comprising a computer program, which, when executed by a processor, implements the method in any one of claims 1 to 9.

Citation Information

Patent Citations

  • Method and device for recommending information

    CN107249016A

  • Mail auditing log processing method and device

    CN111162989A