CN114880342A - Information association method, device, equipment, storage medium and product - Google Patents
Information association method, device, equipment, storage medium and product Download PDFInfo
- Publication number
- CN114880342A CN114880342A CN202210467584.8A CN202210467584A CN114880342A CN 114880342 A CN114880342 A CN 114880342A CN 202210467584 A CN202210467584 A CN 202210467584A CN 114880342 A CN114880342 A CN 114880342A
- Authority
- CN
- China
- Prior art keywords
- matched
- information
- state information
- user
- equipment state
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/242—Query formulation
- G06F16/2433—Query languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
- Selective Calling Equipment (AREA)
Abstract
The application provides an information association method, an information association device, information association equipment, a storage medium and a product. The method comprises the following steps: acquiring user quintuple information to be matched of the intelligent equipment and equipment state information reported by the intelligent equipment, filtering the reported equipment state information, and determining the equipment state information to be matched; calling a UDF program to read an equipment state change expression corresponding to user quintuple information to be matched; determining whether the quintuple information of the user to be matched is matched with the equipment state information to be matched according to the equipment state information to be matched, the equipment state information at the last moment and the equipment state change expression; and if so, associating the matched user quintuple information with the equipment state information, and outputting a corresponding matching result. According to the method, the user-defined function program and the preset equipment state change expression are adopted, data can be correlated through maintaining the expression, and codes do not need to be modified in the data correlation process.
Description
Technical Field
The present application relates to communications technologies, and in particular, to an information association method, apparatus, device, storage medium, and product.
Background
At present, a plurality of users use intelligent devices, more than one intelligent device is used in most of the families of the users, along with the increasing functions of the intelligent devices, the use times of the users to the intelligent devices are also obviously increased, the users can upload one behavior log every time the users operate the intelligent devices, and the users can upload a large amount of behavior data every day. Meanwhile, the intelligent device can upload a large amount of log data every day.
In order to provide better use experience for users using intelligent devices, device manufacturers need to collect behavior data of users who do not relate to user privacy and log data reported by intelligent devices owned by the users under the condition of user consent, combine the behavior data and the log data, and when data analysis or algorithm personnel want to combine the behavior data of the users and the data reported by the intelligent devices for analysis, the data analysis or algorithm personnel usually use a standard Structured Query Language (SQL) to process and write fixed codes according to the requirements in advance so as to perform data association.
However, if new behaviors are added, research and development personnel are required to modify the SQL statements, otherwise, the behavior data cannot be associated with corresponding smart device log data.
Disclosure of Invention
The application provides an information association method, an information association device, equipment, a storage medium and a product, which are used for solving the problem that codes need to be modified in the existing association process of behavior data of a user and log data of intelligent equipment.
In a first aspect, the present application provides an information association method, including:
acquiring user quintuple information to be matched of the intelligent equipment and equipment state information reported by the intelligent equipment, and filtering the equipment state information reported by the intelligent equipment to determine corresponding equipment state information to be matched;
calling a user self-defined function (UDF) program to read an equipment state change expression corresponding to user quintuple information to be matched;
acquiring the equipment state information at the last moment corresponding to the equipment state information to be matched, and determining whether the user quintuple information to be matched is matched with the equipment state information to be matched according to the equipment state information to be matched, the equipment state information at the last moment and a corresponding equipment state change expression;
and if so, associating the matched user quintuple information with the equipment state information, and outputting a corresponding matching result.
In a second aspect, the present application provides an information associating apparatus, comprising:
the device comprises a determining unit, a matching unit and a matching unit, wherein the determining unit is used for acquiring user quintuple information to be matched of the intelligent device and device state information reported by the intelligent device, and filtering the device state information reported by the intelligent device to determine the corresponding device state information to be matched;
the processing unit is used for calling a user self-defined function UDF program to read an equipment state change expression corresponding to user quintuple information to be matched;
the determining unit is further configured to obtain the device state information at the previous moment corresponding to the device state information to be matched, and determine whether the user quintuple information to be matched is matched with 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;
and the processing unit is also used for associating the matched user quintuple information with the equipment state information and outputting a corresponding matching result if the matching result is positive.
In a third aspect, the present invention provides an electronic device, a processor, and a memory communicatively coupled to the processor;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored by the memory, causing the processor to perform the method of the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer-executable instructions for implementing the method according to the first aspect when executed by a processor.
In a fifth aspect, the invention provides a computer program product comprising a computer program which, when executed by a processor, implements the method of the first aspect.
According to the information association method, the device, the equipment, the storage medium and the product, the user quintuple information to be matched of the intelligent equipment and the equipment state information reported by the intelligent equipment are obtained, and the equipment state information reported by the intelligent equipment is filtered to determine the corresponding equipment state information to be matched; calling a user self-defined function (UDF) program to read an equipment state change expression corresponding to user quintuple information to be matched; acquiring the equipment state information at the last moment corresponding to the equipment state information to be matched, and determining whether the user quintuple information to be matched is matched with the equipment state information to be matched according to the equipment state information to be matched, the equipment state information at the last moment and a corresponding equipment state change expression; and if so, associating the matched user quintuple information with the equipment state information, and outputting a corresponding matching result. By adopting the user-defined function program and the preset equipment state change expression, codes do not need to be modified in the data association process, only the equipment state change expression needs to be maintained, and a relatively convenient data association mode is provided. And the data can be filtered to save the storage space.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of a network architecture of an information association method provided by the present invention;
fig. 2 is a schematic flowchart of an information association method according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of an information association method according to a second embodiment of the present invention;
fig. 4 is a schematic flowchart of an information association method according to a fourth embodiment of the present invention;
fig. 5 is a schematic flowchart of an information association method according to a sixth embodiment of the present invention;
fig. 6 is a schematic flowchart of an information association method according to a seventh embodiment of the present invention;
fig. 7 is a schematic structural diagram of an information association apparatus according to an embodiment of the present invention;
FIG. 8 is a first block diagram of an electronic device for implementing an information association method of an embodiment of the present invention;
fig. 9 is a second block diagram of an electronic device for implementing the information associating method of the embodiment of the present invention.
With the above figures, there are shown specific embodiments of the present application, which will be described in more detail below. These drawings and written description are not intended to limit the scope of the inventive concepts in any manner, but rather to illustrate the inventive concepts to those skilled in the art by reference to specific embodiments.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only partial embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and claims of this application and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It should be understood that the data so used may be interchanged under appropriate circumstances such that embodiments of the application described herein may be implemented in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
For a clear understanding of the technical solutions of the present application, a detailed description of the prior art solutions is first provided.
At present, a plurality of users use intelligent devices, more than one intelligent device is used in most of the families of the users, along with the increasing functions of the intelligent devices, the use times of the users to the intelligent devices are also obviously increased, the users can upload one behavior log every time the users operate the intelligent devices, and the users can upload a large amount of behavior data every day. Meanwhile, the intelligent device can upload a large amount of log data every day. In order to provide better use experience for users using intelligent devices, device manufacturers need to collect behavior data of users who do not relate to user privacy and log data reported by intelligent devices owned by the users under the condition of user consent, combine the behavior data with the log data reported by the intelligent devices, and when data analysis or algorithm personnel want to combine the behavior data of the users and the data reported by the devices for analysis, the data are usually associated by writing fixed codes according to the pre-requirement by using a standard Structured Query Language (SQL) process so as to facilitate subsequent analysis.
The existing method uses standard SQL processing of a database, the flexibility of the standard SQL is not high, key fields required cannot be dynamically analyzed, fixed codes can be written according to the preset requirements, and the codes need to be modified if new behaviors are added; if some functions are added to the intelligent device, new behaviors are correspondingly added, the code needs to be modified, otherwise, behavior data cannot be associated with corresponding intelligent device log data, so that the SQL is very complex and is not easy to maintain.
Aiming at the problem that SQL is needed to correlate data when the existing user behavior data and the intelligent device log data are combined, the inventor finds out in research that user quintuple information to be matched of the intelligent device and 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, a user-defined function is further called to read a device state change expression corresponding to the user quintuple information to be matched, whether the user quintuple information to be matched is matched with the device state information to be matched is determined according to the device state information to be matched, the device state information at the last moment and the device state change expression, if the user quintuple information is matched with the device state information, the user quintuple information is correlated with the device state information to be matched, and outputs the matching result. By adopting the user-defined function program and the preset equipment state change expression, codes do not need to be modified in the data association process, only the equipment state change expression needs to be maintained, and a relatively convenient data association mode is provided. And the data can be filtered to save the storage space.
Therefore, the inventor proposes a technical scheme of the embodiment of the invention based on the above creative discovery. The network architecture and application scenario of the information association method provided by the embodiment of the invention are introduced below.
As shown in fig. 1, a network architecture corresponding to the information association method provided in the embodiment of the present invention includes: electronic equipment 1 and intelligent air conditioner 2. The electronic equipment 1 is in communication connection with the intelligent air conditioner 2. The intelligent air conditioner 2 reports the equipment state information and the user behavior information, the electronic equipment 1 generates corresponding user quintuple information according to the user behavior information reported by the intelligent air conditioner 2, and the user quintuple information is determined to be the user quintuple information to be matched by the intelligent air conditioner 2. The electronic equipment 1 filters the equipment state information reported by the intelligent air conditioner 2 to determine the corresponding equipment state information to be matched; calling a user self-defined function (UDF) program to read an equipment state change expression corresponding to user quintuple information to be matched; acquiring the equipment state information at the last moment corresponding to the equipment state information to be matched, and determining whether the user quintuple information to be matched is matched with the equipment state information to be matched according to the equipment state information to be matched, the equipment state information at the last moment and a corresponding equipment state change expression; and if so, associating the matched user quintuple information with the equipment state information, and outputting a corresponding matching result. By adopting the user-defined function program and the preset equipment state change expression, codes do not need to be modified in the data association process, only the equipment state change expression needs to be maintained, and a relatively convenient data association mode is provided. And the data can be filtered to save the storage space.
Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
Example one
Fig. 2 is a schematic flowchart of an information association method according to an embodiment of the present invention, and as shown in fig. 2, an execution main body of the information association method according to the embodiment is an information association apparatus, and the information association apparatus is located in an electronic device, the information association method according to the embodiment includes the following steps:
In this embodiment, the quintuple information includes user information, time information, address information, context information, and intention information. The user information comprises a user identification, the time information comprises behavior occurrence time, the address information comprises the area information of the air conditioner, and the context information comprises auxiliary information such as current weather. Acquiring user quintuple information to be matched by the intelligent equipment and equipment state information reported by the intelligent equipment, wherein the equipment state information is reported by the equipment at intervals of preset time, or is reported by the equipment when the user operates the equipment to change the equipment state. If the intelligent device is the device state information reported at intervals of the preset time, but actually, the device state is not changed, the server side receives multiple pieces of the same device state information, and therefore, the obtained device state information reported by the intelligent device needs to be filtered to determine the device state information to be matched.
And 102, calling a user-defined function UDF program to read an equipment state change expression corresponding to user quintuple information to be matched.
In this embodiment, a plurality of preset device state expressions are locally stored, where the device state expressions include a pre-change state and a post-change state of the device, for example, if the air conditioner is turned off, the device state changes from on to off, and a state parameter onOffStatus of the air conditioner device changes from true to false, and the corresponding device state expression is as follows: (onOffStatus ═ true) & (prior _ onOffStatus ═ false). The method comprises the steps of presetting a mapping relation between behavior information identifiers and equipment state change expressions, determining behavior information identifiers in the mapping relation matched with user behavior identifiers corresponding to user quintuple information to be matched according to the user behavior identifiers corresponding to the user quintuple information to be matched and the mapping relation between the preset behavior information identifiers and the equipment state change expressions, wherein the equipment state change expressions corresponding to the behavior information identifiers in the matched mapping relation are equipment state change expressions corresponding to the user quintuple information to be matched, and further calling a user-defined function program to read the equipment state expressions corresponding to the user quintuple information to be matched.
In this embodiment, each piece of device state information has time information corresponding thereto, and the device state information at the previous time of the device state information is determined according to the time information corresponding to the device state to be matched, so as to obtain the device state information at the previous time corresponding to the device state information to be matched. The purpose of matching is to find out the equipment state information matched with the user quintuple information, so that the matched user quintuple information and the equipment state information are combined for intelligent equipment research personnel to optimize the equipment or control the program of the equipment. Therefore, the device state information matched with the user quintuple information to be matched needs to be found, and specifically, 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 moment and the corresponding device state change expression, so that the user quintuple information to be matched is determined.
And 104, if so, associating the matched user quintuple information with the equipment state information, and outputting a corresponding matching result.
In this embodiment, if it is determined that the user quintuple information to be matched is matched with the device state information to be matched, the matched user quintuple information is associated with the device state information, and a matching result of the user quintuple information and the device state information is output.
In this embodiment, user quintuple information to be matched by the intelligent device and device state information reported by the intelligent device are acquired, the reported device state information is filtered, so that the device state information to be matched is determined, a user-defined function is further called to read a device state change expression corresponding to the user quintuple information to be matched, whether the user quintuple information to be matched is matched with 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 moment and the device state change expression, if the user quintuple information is matched with the device state information, the user quintuple information is associated with the device state information to be matched, and a matching result is output. By adopting the user-defined function program and the preset equipment state change expression, codes do not need to be modified in the data association process, only the equipment state change expression needs to be maintained, and a relatively convenient data association mode is provided. And the data can be filtered to save the storage space.
Example two
Fig. 3 is a schematic flow chart of the information association method provided in the second embodiment of the present invention, and as shown in fig. 3, on the basis of the information association method provided in the first embodiment of the present invention, step 101 is further refined, which specifically includes the following steps:
In this embodiment, the repeated device status information is filtered by comparing hash values, where a hash value is a smaller binary value of a fixed length that is mapped by a binary value of any length in a hash algorithm, and is a unique and extremely compact numerical representation form of a piece of data. The hash value is a value obtained by logical operation according to the data of the content of the file, and the hash values obtained by different files are different, so that the hash value becomes an identity card of each file. And calculating the equipment state hash value of the equipment state information reported by the intelligent equipment, and selecting the equipment state information at any moment from the equipment state hash value.
In this embodiment, the device state hash value of the device state information at the previous moment corresponding to the device state hash value at the selected moment is obtained, the device state information at the previous moment is determined according to the time information corresponding to the device state at the selected moment, and the device state hash value of the device state information at the previous moment is obtained, where the hash value is also obtained by using hash calculation, and the device state hash values corresponding to different states of the same device are different, and the device state hash value at the selected moment is compared with the device state hash value at the device state at the previous moment, so as to determine whether the two hash values are the same.
And 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.
In this embodiment, the device state information reported by the intelligent device is filtered according to the device state hash value of the device state information at the selected time and the device state hash value comparison result of the device state information at the previous time, so as to remove repeated device state information, and the filtered device state information is determined as the device state information to be matched.
EXAMPLE III
On the basis of the information association method provided in the first embodiment of the present invention, step 1012 is further refined, which specifically includes the following steps:
in step 1012a, if the device state hash value at the selected time matches the device state hash value of the device state information at the previous time, the device state information at the selected time and the device state hash value of the device at the selected time are deleted.
In this embodiment, if the device state hash value at the selected time is not identical to the device state hash value at the device state at the previous time, it is described that the device state at the selected time is not identical to the device state at the previous time, the device state changes, and the device state information at the selected time is the device state information reported after the device state is changed.
In step 1012b, if the device state hash value at the selected time is not consistent with the device state hash value of the device state information at the previous time, determining the device state information at the selected time with the inconsistent hash value as the device state information to be matched.
In this embodiment, if the device state hash value at the selected time is consistent with the device state hash value at the device state at the previous time, it is described that the device state at the selected time is the same as the device state at the previous time, and the device state is not changed, and the device state information at the selected time is reported at a preset time interval instead of the device state information reported after the device state is changed.
Example four
Fig. 4 is a schematic flow chart of the information association method provided by the fourth embodiment of the present invention, and as shown in fig. 4, on the basis of the information association method provided by the first embodiment of the present invention, step 102 is further refined, which specifically includes the following steps:
In this embodiment, a mapping relationship between a preset identifier and an equipment state change expression is locally stored, user quintuple information is obtained according to user behavior information reported by an intelligent device, each behavior has a behavior identifier corresponding to the behavior information, the mapping relationship between a preset behavior identifier and the equipment state change expression and the user behavior identifier corresponding to the user quintuple information to be matched are obtained, and a required equipment state change expression is found.
And step 1022, matching the user behavior identifier corresponding to the user quintuple information to be matched with the preset behavior identifier in the mapping relationship.
In this 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.
And step 1023, calling a user-defined function UDF program to read the equipment state change expression corresponding to the preset behavior identifier matched with the user behavior identifier.
In this embodiment, a preset behavior identifier matching with the user behavior identifier is determined, and an equipment state change expression corresponding to the matched preset behavior identifier is a required equipment state change expression, and a user-defined function program is called to read the equipment state change expression corresponding to the preset behavior identifier matching with the user behavior identifier.
EXAMPLE five
On the basis of the information association method provided by the first embodiment of the present invention, step 103 is further refined, which specifically includes the following steps:
step 1031, if the device state information to be matched is consistent with the device state information after the device state in the expression is changed and the device state information at the previous moment is consistent with the device state information before the device state in the expression is changed, determining that the user quintuple information to be matched is matched with the device state information to be matched.
In this embodiment, the device state information to be matched is compared with the device state information after the device state in the expression is changed, so as to determine whether the device state information to be matched is consistent with the device state information after the device state in the expression is changed, and the device state information before the device state in the device state information expression at the previous time is compared, so as to determine whether the device state information before the device state in the device state information expression at the previous time is consistent. If the device state information to be matched is consistent with the device state information after the device state in the expression is changed and the device state information at the last moment is consistent with the device state information before the device state in the expression is changed, it is indicated that the device state is changed due to the user behavior corresponding to the behavior identifier, and it is determined that the user quintuple information to be matched corresponding to the identifier is matched with the device state information to be matched. And further correlating the matched user quintuple information and the equipment state information so as to be used by subsequent analysis.
Step 1032, if the device state information to be matched is inconsistent with the device state information after the device state in the expression is changed and/or the device state information at the previous moment is inconsistent with the device state information before the device state in the expression is changed, determining that the user quintuple information to be matched is not matched with the device state information to be matched.
In this embodiment, if the device state information to be matched is consistent with the device state information after the device state in the expression is changed or the device state information at the last moment is inconsistent with the device state information before the device state in the expression is changed, it is determined that the user quintuple information to be matched corresponding to the identifier is not matched with the device state information to be matched; if the equipment state information to be matched is inconsistent with the equipment state information after the equipment state in the expression is changed or the equipment state information at the previous moment is consistent with the equipment state information before the equipment state in the expression is changed, determining that the user quintuple information to be matched corresponding to the identifier is not matched with the equipment state information to be matched; and if the equipment state information to be matched is inconsistent with the equipment state information after the equipment state in the expression is changed and the equipment state information at the last moment is inconsistent with the equipment state information before the equipment state in the expression is changed, determining that the user quintuple information to be matched corresponding to the identifier is not matched with the equipment state information to be matched. Further delete mismatch degree equipment state information, practice thrift storage space.
EXAMPLE six
Fig. 5 is a schematic flow chart of an information association method provided in the sixth embodiment of the present invention, and as shown in fig. 5, on the basis of the information association method provided in the first embodiment of the present invention, step 104 is further refined, which specifically includes the following steps:
In this embodiment, the number of pieces of device state information matched with the user quintuple information to be matched is obtained, whether a plurality of pieces of device state information matched with the user quintuple information to be matched are provided is judged, and whether the plurality of pieces of matched device state information need to be screened is determined according to the judgment result.
And 1042, if so, screening the multiple matched device state information according to the behavior occurrence time corresponding to the user quintuple information to be matched, acquiring the screened device state information, and associating the device state information with the matched user quintuple information.
In this embodiment, if there are a plurality of pieces of device status information matched with the user quintuple information to be matched, the plurality of pieces of matched device status information need to be screened, specifically, the behavior occurrence time corresponding to the user quintuple information to be matched is obtained, the plurality of pieces of matched device status information are screened according to the behavior occurrence time corresponding to the user quintuple information to be matched, the screened device status information is obtained, and the screened device status information is associated with the corresponding matched user quintuple information.
And step 1043, if not, associating the matched user quintuple information with the device state information.
In this embodiment, if there is one device status information matched with the user quintuple information to be matched, it is not necessary to screen multiple pieces of matched device status information, and the matched user quintuple information is directly associated with the device status information.
EXAMPLE seven
Fig. 6 is a schematic flow chart of the information association method provided by the seventh embodiment of the present invention, and as shown in fig. 6, on the basis of the information association method provided by the sixth embodiment of the present invention, step 1042 is further refined, which specifically includes the following steps:
In this embodiment, the user quintuple information includes a behavior occurrence time, where the behavior occurrence time refers to a time when the user triggers a behavior, for example, if the user 9 turns on an air conditioner, the time corresponding to the behavior of turning on the air conditioner is 9 points. The behavior occurrence time corresponding to user quintuple information to be matched is obtained, the behavior of a user can trigger the change of the state of the intelligent device, state data within a period of time after the behavior occurs are found, device state information within a preset time range after the behavior occurrence time is selected from the matched device state information, wherein the preset time range can be set according to actual conditions, 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 matched device state information.
In this embodiment, the device state information within the preset time range is sorted, each device state information has a 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 interval between the behavior occurrence times 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.
Example eight
On the basis of the information association method provided by the first embodiment of the present invention, before step 101, the method further includes the following steps:
step 101a, obtaining user behavior information reported by the intelligent device, generating corresponding user quintuple information according to the user behavior information reported by the intelligent device, and determining the user quintuple information as user quintuple information to be matched by the intelligent device.
In this embodiment, user behavior information reported by the smart device is obtained, and corresponding user quintuple information is generated based on the user behavior information reported by the smart device, where the user quintuple information includes user information, time information, address information, context information, and intention information. The user information comprises a user identifier, the time information comprises action occurrence time, the address information comprises area information of the air conditioner, and the context information comprises auxiliary information such as current weather. And determining the user quintuple information as the user quintuple information to be matched by the intelligent equipment. And further finding the matched equipment state information for the user quintuple information to be matched.
Example nine
On the basis of the information association method provided by the first embodiment of the present invention, after step 103, the method further includes the following steps:
and 105, if not, deleting unmatched equipment state information.
In this embodiment, the purpose of matching is to find out device state information matched with the user quintuple information, so as to combine the matched user quintuple information and the device state information, specifically, 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. And if the user quintuple information to be matched is determined not to be matched with the equipment state information to be matched, deleting the unmatched equipment state information so as to save the storage space.
Fig. 7 is a schematic structural diagram of an information association apparatus according to an embodiment of the present invention, and as shown in fig. 7, an information association apparatus 200 according to this embodiment includes a determining unit 201 and a processing unit 202.
The determining unit 201 is configured to obtain user quintuple information to be matched by the intelligent device and device state information reported by the intelligent device, and filter the device state information reported by the intelligent device to determine corresponding device state information to be matched. And the processing unit 202 is configured to invoke a user-defined function UDF program to read an equipment state change expression corresponding to the user quintuple information to be matched. The determining unit 201 is further configured to obtain the device state information at the 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. The processing unit 202 is further configured to associate the matched user five-tuple information with the device status information and output a corresponding matching result if the matching result is positive.
Optionally, the determining unit is further configured to calculate a device state hash value of the device state information reported by the intelligent device, and select a device state hash value at any moment from the device state hash values; acquiring the device state hash value of the device state information at the previous moment corresponding to the device state hash value at the selected moment, and comparing the device state hash value at the selected moment with the device state hash value of the device state information at the previous moment; and filtering the equipment state information reported by the intelligent equipment according to the hash value comparison result, and determining the filtered equipment state information as the equipment state information to be matched.
Optionally, the determining unit is further configured to delete the device state information at the time and the device state hash value of the device at the time 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; and if the device state hash value at the selected moment is inconsistent with the device state hash value of the device state information at the previous moment, determining the device state information at the selected moment with inconsistent hash values as the device state information to be matched.
Optionally, the processing unit is further configured to obtain a user behavior identifier corresponding to the user quintuple information to be matched, and a mapping relationship between a preset behavior identifier and the device state change expression; matching a user behavior identifier corresponding to user quintuple information to be matched with a preset behavior identifier in the mapping relation; and calling a user-defined function UDF program to read the equipment state change expression corresponding to the preset behavior identifier matched with the user behavior identifier.
Optionally, the determining unit is further configured to determine that the quintuple information of the user 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 device state in the expression is changed and the device state information at the previous time is consistent with the device state information before the device state in the expression is changed; and if the equipment state information to be matched is inconsistent with the equipment state information after the equipment state in the expression is changed and/or the equipment state information at the last moment is inconsistent with the equipment state information before the equipment state in the expression is changed, determining that the user quintuple information to be matched is not matched with the equipment state information to be matched.
Optionally, the processing unit is further configured to determine whether there are multiple pieces of device status information matched with the user quintuple information to be matched; if so, screening the matched equipment state information according to the behavior occurrence time corresponding to the user quintuple information to be matched, acquiring the screened equipment state information, and associating the equipment state information with the matched user quintuple information; and if not, associating the matched user quintuple information with the equipment state information.
Optionally, the processing unit is further configured to obtain behavior occurrence time corresponding to user quintuple information to be matched, and select device state information within a preset time range after the behavior occurrence time from the multiple pieces of matched device state information; and sequencing the equipment state information according to the state occurrence time corresponding to the equipment state information in the preset time range, selecting the equipment state information corresponding to the state occurrence time closest to the behavior occurrence time, and determining the equipment state information as the screened equipment state information.
Optionally, the processing unit is further configured to obtain user behavior information reported by the intelligent device, generate corresponding user quintuple information according to the user behavior information reported by the intelligent device, and determine the user quintuple information as user quintuple information to be matched by the intelligent device.
Optionally, the determining unit is further configured to delete the unmatched device status information if not.
Fig. 8 is a first block diagram of an electronic device for implementing the information association method according to the embodiment of the present invention, and as shown in fig. 8, the electronic device 300 includes: memory 301, processor 302.
The memory 301 stores computer-executable instructions;
the processor 302 executes computer-executable instructions stored by the memory 301 to cause the processor to perform a method provided by any of the embodiments described above.
Fig. 9 is a second block diagram of an electronic device, which may be a computer, a digital broadcast terminal, a messaging device, a tablet device, a personal digital assistant, a server cluster, or the like, for implementing the information association method according to the embodiment of the present invention, as shown in fig. 9.
The electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power 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.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices 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 memory, flash memory, magnetic or optical disks.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may 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 touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the electronic device 800 is in an operation mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the electronic device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 may 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, communications component 816 further includes a Near Field Communications (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may 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 components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer-readable storage medium, in which instructions are executed by a processor of an electronic device to enable a terminal device to perform an information association method of the electronic device.
In an exemplary embodiment, a computer program product is also provided, comprising a computer program which is executed by a processor to perform the method of the first to fourth embodiments.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims (13)
1. An information association method, comprising:
acquiring user quintuple information to be matched of the intelligent equipment and equipment state information reported by the intelligent equipment, and filtering the equipment state information reported by the intelligent equipment to determine corresponding equipment state information to be matched;
calling a user self-defined function (UDF) program to read an equipment state change expression corresponding to user quintuple information to be matched;
acquiring the equipment state information at the last moment corresponding to the equipment state information to be matched, and determining whether the user quintuple information to be matched is matched with the equipment state information to be matched or not according to the equipment state information to be matched, the equipment state information at the last moment and the corresponding equipment state change expression;
and if so, associating the matched user quintuple information with the equipment state information, and outputting a corresponding matching result.
2. The method according to claim 1, wherein the filtering the device state information reported by the smart device to determine the corresponding device state information to be matched includes:
calculating the equipment state hash value of the equipment state information reported by the intelligent equipment, and selecting the equipment state hash value at any moment from the equipment state hash values;
acquiring the equipment state hash value of the equipment state information at the last moment corresponding to the equipment state hash value at the selected moment, and comparing the equipment state hash value at the selected moment with the equipment state hash value of the equipment state information at the last moment;
and filtering the equipment state information reported by the intelligent equipment according to the hash value comparison result, and determining the filtered equipment state information as the equipment state information to be matched.
3. The method according to claim 2, wherein the 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 includes:
if the device state hash value at the selected moment is consistent with the device state hash value of the device state information at the previous moment, deleting the device state information at the moment and the device state hash value of the device at the moment;
and if the device state hash value at the selected moment is inconsistent with the device state hash value of the device state information at the previous moment, determining the device state information at the selected moment with inconsistent hash values as the device state information to be matched.
4. The method according to claim 1, wherein said calling the user-defined function UDF program to read the device state change expression corresponding to the user quintuple information to be matched comprises:
acquiring a user behavior identifier corresponding to user quintuple information to be matched and a mapping relation between a preset behavior identifier and an equipment state change expression;
matching a user behavior identifier corresponding to user quintuple information to be matched with a preset behavior identifier in the mapping relation;
and calling a user-defined function UDF program to read the equipment state change expression corresponding to the preset behavior identifier matched with the user behavior identifier.
5. The method according to claim 1, wherein determining 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 comprises:
if the equipment state information to be matched is consistent with the equipment state information after the equipment state in the expression is changed and the equipment state information at the last moment is consistent with the equipment state information before the equipment state in the expression is changed, determining that the quintuple information of the user to be matched is matched with the equipment state information to be matched;
and if the equipment state information to be matched is inconsistent with the equipment state information after the equipment state in the expression is changed and/or the equipment state information at the last moment is inconsistent with the equipment state information before the equipment state in the expression is changed, determining that the user quintuple information to be matched is not matched with the equipment state information to be matched.
6. The method according to claim 1, wherein associating the matching user quintuple information with the device status information comprises:
judging whether a plurality of pieces of equipment state information matched with the user quintuple information to be matched exist or not;
if so, screening the matched equipment state information according to the behavior occurrence time corresponding to the user quintuple information to be matched, acquiring the screened equipment state information, and associating the equipment state information with the matched user quintuple information;
and if not, associating the matched user quintuple information with the equipment state information.
7. The method according to claim 6, wherein the step of screening the plurality of matched device status information according to the behavior occurrence time corresponding to the user quintuple information to be matched to obtain the screened device status information comprises the steps of:
acquiring behavior occurrence time corresponding to user quintuple information to be matched, and selecting equipment state information in a preset time range after the behavior occurrence time from a plurality of matched equipment state information;
and sequencing the equipment state information according to the state occurrence time corresponding to the equipment state information in the preset time range, selecting the equipment state information corresponding to the state occurrence time closest to the behavior occurrence time, and determining the equipment state information as the screened equipment state information.
8. The method according to claim 1, wherein before obtaining user quintuple information to be matched by the smart device, the method further comprises:
the method comprises the steps of obtaining user behavior information reported by the intelligent equipment, generating corresponding user quintuple information according to the user behavior information reported by the intelligent equipment, and determining the user quintuple information as user quintuple information to be matched by the intelligent equipment.
9. The method according to claim 1, wherein after determining whether the user quintuple information to be matched is matched with 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, the method further comprises:
and if not, deleting unmatched equipment state information.
10. An information association apparatus, characterized in that the apparatus comprises:
the device comprises a determining unit, a matching unit and a matching unit, wherein the determining unit is used for acquiring user quintuple information to be matched of the intelligent device and device state information reported by the intelligent device, and filtering the device state information reported by the intelligent device to determine the corresponding device state information to be matched;
the processing unit is used for calling a user self-defined function UDF program to read an equipment state change expression corresponding to user quintuple information to be matched;
the determining unit is further configured to obtain the device state information at the previous moment corresponding to the device state information to be matched, and determine whether the user quintuple information to be matched is matched with 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;
and the processing unit is also used for associating the matched user quintuple information with the equipment state information and outputting a corresponding matching result if the matching result is positive.
11. An electronic device, comprising: a processor, and a memory communicatively coupled to the processor;
the memory stores computer execution instructions;
the processor executes computer-executable instructions stored by the memory to implement the method of any of claims 1 to 9.
12. A computer-readable storage medium having computer-executable instructions stored thereon, which when executed by a processor, are configured to implement the method of 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 of any one of claims 1 to 9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210467584.8A CN114880342A (en) | 2022-04-29 | 2022-04-29 | Information association method, device, equipment, storage medium and product |
PCT/CN2023/085793 WO2023207520A1 (en) | 2022-04-29 | 2023-03-31 | Information association method and apparatus, device, storage medium and product |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210467584.8A CN114880342A (en) | 2022-04-29 | 2022-04-29 | Information association method, device, equipment, storage medium and product |
Publications (1)
Publication Number | Publication Date |
---|---|
CN114880342A true CN114880342A (en) | 2022-08-09 |
Family
ID=82674020
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210467584.8A Pending CN114880342A (en) | 2022-04-29 | 2022-04-29 | Information association method, device, equipment, storage medium and product |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114880342A (en) |
WO (1) | WO2023207520A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023207520A1 (en) * | 2022-04-29 | 2023-11-02 | 青岛海尔科技有限公司 | Information association method and apparatus, device, storage medium and product |
Family Cites Families (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5150166B2 (en) * | 2007-08-24 | 2013-02-20 | 株式会社東芝 | Equipment set generation support apparatus and method |
JP2010190687A (en) * | 2009-02-17 | 2010-09-02 | Beckman Coulter Inc | Management device and management system |
CN109784018B (en) * | 2015-09-25 | 2021-07-16 | 联想(北京)有限公司 | Operation identification method and device and electronic equipment |
CN107124289B (en) * | 2016-02-24 | 2021-06-01 | 华为技术有限公司 | Weblog time alignment method, device and host |
CN106603350B (en) * | 2016-12-15 | 2020-06-02 | 北京小米移动软件有限公司 | Information display method and device |
CN108254641B (en) * | 2017-12-20 | 2021-01-22 | 北京惠泽智信科技有限公司 | Medical equipment state identification method and device |
JP7192243B2 (en) * | 2018-05-11 | 2022-12-20 | オムロン株式会社 | Analysis support device and analysis support method |
CN108769809B (en) * | 2018-05-28 | 2021-06-29 | 成都极米科技股份有限公司 | Smart television-based home user behavior data acquisition method and device and computer-readable storage medium |
CN110851293B (en) * | 2019-10-15 | 2023-06-27 | 中国直升机设计研究所 | Information system linkage processing system and method |
CN111736938B (en) * | 2020-06-19 | 2024-03-22 | 海尔优家智能科技(北京)有限公司 | Information display method and device, storage medium and electronic device |
US20220044134A1 (en) * | 2020-08-10 | 2022-02-10 | Accenture Global Solutions Limited | Intelligent question answering on tabular content |
CN113282652A (en) * | 2021-04-29 | 2021-08-20 | 青岛海尔科技有限公司 | Method and device for extracting data of household appliance, equipment and storage medium |
CN114880342A (en) * | 2022-04-29 | 2022-08-09 | 青岛海尔科技有限公司 | Information association method, device, equipment, storage medium and product |
-
2022
- 2022-04-29 CN CN202210467584.8A patent/CN114880342A/en active Pending
-
2023
- 2023-03-31 WO PCT/CN2023/085793 patent/WO2023207520A1/en unknown
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2023207520A1 (en) * | 2022-04-29 | 2023-11-02 | 青岛海尔科技有限公司 | Information association method and apparatus, device, storage medium and product |
Also Published As
Publication number | Publication date |
---|---|
WO2023207520A1 (en) | 2023-11-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107919123B (en) | Multi-voice assistant control method, device and computer readable storage medium | |
CN107132949B (en) | Anti-interference method, device, terminal and storage medium | |
CN106919629B (en) | Method and device for realizing information screening in group chat | |
CN104462296B (en) | File management method and device and terminal | |
CN105808050A (en) | Information search method and device | |
CN104636164A (en) | Generating method and device for starting page | |
CN108803892B (en) | Method and device for calling third party application program in input method | |
WO2023207520A1 (en) | Information association method and apparatus, device, storage medium and product | |
CN107025421B (en) | Fingerprint identification method and device | |
CN111046040A (en) | Method and device for determining index, electronic equipment and storage medium | |
CN104951522B (en) | Method and device for searching | |
CN111125388B (en) | Method, device and equipment for detecting multimedia resources and storage medium | |
CN107885571B (en) | Display page control method and device | |
CN112333233B (en) | Event information reporting method and device, electronic equipment and storage medium | |
CN107562350B (en) | Method and device for reporting key event | |
CN105553772B (en) | Flow monitoring method and device | |
CN114003558A (en) | Data archiving method, device, equipment and storage medium | |
CN114722087A (en) | Data acquisition method, data acquisition apparatus, storage medium, and program product | |
CN112988822A (en) | Data query method, device, equipment, readable storage medium and product | |
CN106250131B (en) | Shortcut operation shielding method and device | |
EP3211868A1 (en) | Method and device for processing information | |
CN113468167B (en) | Database high water level recovery method and device and electronic equipment | |
CN115237925A (en) | Data processing method, device, equipment, storage medium and product | |
CN117112107A (en) | Data display method and electronic equipment | |
CN115951944A (en) | Shortcut key setting method and device, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |