CN111563546A - Sensor data matching method, device, equipment and storage medium - Google Patents

Sensor data matching method, device, equipment and storage medium Download PDF

Info

Publication number
CN111563546A
CN111563546A CN202010354319.XA CN202010354319A CN111563546A CN 111563546 A CN111563546 A CN 111563546A CN 202010354319 A CN202010354319 A CN 202010354319A CN 111563546 A CN111563546 A CN 111563546A
Authority
CN
China
Prior art keywords
time characteristic
characteristic information
sensing data
time
acquisition time
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
Application number
CN202010354319.XA
Other languages
Chinese (zh)
Inventor
吕晴阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010354319.XA priority Critical patent/CN111563546A/en
Publication of CN111563546A publication Critical patent/CN111563546A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Abstract

The application relates to a sensing data matching method, a sensing data matching device, a sensing data matching equipment and a sensing data matching storage medium. The method comprises the following steps: determining usage time characteristic information; acquiring a pre-stored time characteristic set corresponding to the use time characteristic information, and selecting at least one target acquisition time characteristic information matched with the use time characteristic information from the time characteristic set; and acquiring sensing data corresponding to the at least one target acquisition time characteristic information matched with the use time characteristic information, and obtaining target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information, wherein the target sensing data is the sensing data required to be used by the use time characteristic information. Therefore, the problem that the acquired sensing data are not matched with the actually required sensing data is solved.

Description

Sensor data matching method, device, equipment and storage medium
Technical Field
The present application relates to data processing technologies, and in particular, to a sensor data matching method, apparatus, device, and storage medium.
Background
Generally, the use frequency of sensing data acquired by a sensor and the acquisition frequency of sensing data acquired by the sensor are not synchronous, and in order to solve the problem of data use caused by the asynchronous use of the two, the prior art can save a sensing data backup, and cover historical sensing data after acquiring new sensing data each time, however, because the sensing data acquisition frequency (namely the update frequency of the sensing data) is generally higher than the use frequency of the sensing data, the historical sensing data cannot be acquired because the new sensing data covers the historical sensing data each time the sensing data is taken, but the actually used sensing data does not all need the latest data, and the acquired sensing data is not matched with the actually needed sensing data.
Disclosure of Invention
In order to solve the above problems, the present invention provides a sensing data matching method, apparatus, device and storage medium, so that the problem that the acquired sensing data is not matched with the sensing data actually required to be used is avoided.
In a first aspect, an embodiment of the present application provides a sensing data matching method, including:
determining usage time characteristic information;
acquiring a pre-stored time characteristic set corresponding to the use time characteristic information, and selecting at least one target acquisition time characteristic information matched with the use time characteristic information from the time characteristic set; the time characteristic set is provided with at least two pieces of acquisition time characteristic information, and each piece of acquisition time characteristic information at least can represent the time information of the sensor for acquiring the sensing data within a preset time range;
and acquiring sensing data corresponding to the at least one target acquisition time characteristic information matched with the use time characteristic information, and obtaining target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information, wherein the target sensing data is the sensing data required to be used by the use time characteristic information.
The time characteristic set can be preset, the acquisition time characteristic information in the time characteristic set is used for recording the time information of the sensor for acquiring the sensing data, and therefore after the use time characteristic information is determined, at least one target acquisition time characteristic information matched with the use time characteristic information can be selected from the time characteristic set, and the target sensing data required by the use time characteristic information is determined based on the sensing data corresponding to the at least one target acquisition time characteristic information.
In an embodiment of the present application, the method further includes:
acquiring sensing data acquired by a sensor within the preset time range;
generating acquisition time characteristic information corresponding to the sensing data based on the time characteristics of the sensing data acquired by the sensor, and adding the acquisition time characteristic information to a time queue according to an acquisition time sequence;
and taking the time queue containing the acquisition time characteristic information as the time characteristic set.
The method and the device have the advantages that the acquisition time characteristic information of the sensor acquired sensing data is added to the time queue in advance according to the acquisition time sequence, and the time queue is used as a time characteristic set, so that a foundation is laid for the subsequent selection of the target acquisition time characteristic information matched with the use time characteristic information; compared with the existing mode of covering the new sensing data with the historical sensing data, the time characteristic set is arranged, so that the time characteristic (namely target acquisition time characteristic information) of the sensing data needing to be used can be accurately determined by using the time characteristic set, the target sensing data is finally determined based on the determined time characteristic of the sensing data needing to be used, and a foundation is laid for accurately using the sensing data to perform subsequent analysis and application.
In an embodiment of the present application, the method further includes:
determining the current corresponding use time characteristic information based on a preset use frequency; and/or the presence of a gas in the gas,
controlling a sensor to collect sensing data based on a preset collection frequency;
wherein the preset use frequency is different from the preset acquisition frequency.
Here, the preset use frequency of using the sensing data in the scheme of the application is different from the preset collection frequency of collecting the sensing data by the sensor, so that the problem that the sensing data is not matched due to the fact that the use frequency and the collection frequency are different can be solved by using the scheme of the application, and a foundation is further laid for accurately using the sensing data to perform subsequent analysis and application.
In an embodiment of the present application, the method further includes:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time feature set reaches the preset maximum capacity, and adding new acquisition time feature information to the time feature set after deleting at least one acquisition time feature information in the time feature set based on the acquisition time sequence.
The method and the device control the use capacity of the time characteristic set, so that resources occupied by the time characteristic set can be reduced to the maximum extent, and a foundation is laid for engineering application; furthermore, because the maximum capacity is set, after new acquisition time characteristic information acquired by the sensor is acquired, whether the current use capacity reaches the maximum capacity is judged, so that the purpose of controlling the use capacity of the time characteristic set is achieved.
In an embodiment of the present application, the method further includes:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time characteristic set is smaller than the preset maximum capacity, and adding new acquisition time characteristic information into the time characteristic set on the basis of an acquisition time sequence.
In this embodiment of the application, the selecting, from the time feature set, at least one target acquisition time feature information that matches the usage time feature information includes:
determining that the time information represented by the use time characteristic information is in the middle area of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information which is the most recent before and/or after the time information represented by the use time characteristic information as the target acquisition time characteristic information; alternatively, the first and second electrodes may be,
and determining that the time information represented by the use time characteristic information is at the head or the tail of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information closest to the time information represented by the use time characteristic information as the target acquisition time characteristic information.
The method and the device for acquiring the sensing data utilize the position of the using time characteristic information in the time characteristic set, namely utilize the time sequence of the using time characteristic information in the time characteristic set to determine at least one piece of acquiring time characteristic information matched with the time information represented by the using time characteristic information, thus laying a foundation for maximally matching and obtaining the sensing data required to be used by the using time characteristic information, and simultaneously laying a foundation for maximally improving the accuracy of the sensing data required to be used by the determined using time characteristic information.
In an embodiment of the present application, the obtaining target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information includes:
selecting one target acquisition time characteristic information matched with the use time characteristic information, and taking sensing data corresponding to the target acquisition time characteristic information as target sensing data; alternatively, the first and second electrodes may be,
and after at least two pieces of target acquisition time characteristic information matched with the use time characteristic information are selected, data processing is carried out on the acquired sensing data corresponding to all the target acquisition time characteristic information, and the sensing data obtained after processing is used as the target sensing data.
The scheme of the application provides two modes for determining target sensing data, wherein in the first mode, when only one target acquisition time characteristic information matched with the use time characteristic information exists, the sensing data corresponding to the target acquisition time characteristic information is directly used as the target sensing data; in the second mode, when the target acquisition time characteristic information matched with the use time characteristic information is two or more, the data processing, such as linear interpolation processing and the like, is performed on the sensing data of all the target acquisition time characteristic information, so that smooth target sensing data required to be used by the use time characteristic information is determined, and the accuracy of the determined sensing data required to be used by the use time characteristic information is further improved to the maximum extent.
In a second aspect, an embodiment of the present application provides a sensing data matching apparatus, including:
the data matching unit is used for determining the use time characteristic information; acquiring a pre-stored time characteristic set corresponding to the use time characteristic information, and selecting at least one target acquisition time characteristic information matched with the use time characteristic information from the time characteristic set; the time characteristic set is provided with at least two pieces of acquisition time characteristic information, and each piece of acquisition time characteristic information at least can represent the time information of the sensor for acquiring the sensing data within a preset time range;
and the processing unit is used for acquiring the sensing data corresponding to the at least one target acquisition time characteristic information matched with the use time characteristic information and obtaining target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information, wherein the target sensing data is the sensing data required to be used by the use time characteristic information.
In this embodiment of the application, the data matching unit is further configured to:
acquiring sensing data acquired by a sensor within a preset time range;
generating acquisition time characteristic information corresponding to the sensing data based on the time characteristics of the sensing data acquired by the sensor, and adding the acquisition time characteristic information to a time queue according to an acquisition time sequence;
and taking the time queue containing the acquisition time characteristic information as the time characteristic set.
In the embodiment of the application, the data matching unit is further configured to determine, based on a preset use frequency, the use time characteristic information currently corresponding to the data; and/or the presence of a gas in the gas,
the processing unit is also used for controlling the sensor to collect sensing data based on a preset collection frequency;
wherein the preset use frequency is different from the preset acquisition frequency.
In this embodiment of the application, the data matching unit is further configured to:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time feature set reaches the preset maximum capacity, and adding new acquisition time feature information to the time feature set after deleting at least one acquisition time feature information in the time feature set based on the acquisition time sequence.
In this embodiment of the application, the data matching unit is further configured to:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time characteristic set is smaller than the preset maximum capacity, and adding new acquisition time characteristic information into the time characteristic set on the basis of an acquisition time sequence.
In this embodiment of the application, the data matching unit is further configured to:
determining that the time information represented by the use time characteristic information is in the middle area of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information which is the most recent before and/or after the time information represented by the use time characteristic information as the target acquisition time characteristic information; alternatively, the first and second electrodes may be,
and determining that the time information represented by the use time characteristic information is at the head or the tail of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information closest to the time information represented by the use time characteristic information as the target acquisition time characteristic information.
In the embodiment of the present application, the processing unit is further configured to
Selecting one target acquisition time characteristic information matched with the use time characteristic information, and taking sensing data corresponding to the target acquisition time characteristic information as target sensing data; alternatively, the first and second electrodes may be,
and after at least two pieces of target acquisition time characteristic information matched with the use time characteristic information are selected, data processing is carried out on the acquired sensing data corresponding to all the target acquisition time characteristic information, and the sensing data obtained after processing is used as the target sensing data.
In a third aspect, an embodiment of the present application provides a sensing data matching apparatus, including:
one or more processors;
a memory communicatively coupled to the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the methods described above.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method described above.
Therefore, the time characteristic set can be preset, the acquisition time characteristic information in the time characteristic set is utilized to record the time information of the sensor for acquiring the sensing data, and after the use time characteristic information is determined, at least one target acquisition time characteristic information matched with the use time characteristic information can be selected from the time characteristic set, and the target sensing data required by the use time characteristic information is determined based on the sensing data corresponding to the at least one target acquisition time characteristic information.
Drawings
FIG. 1 is a schematic diagram of a flow chart of a sensing data matching method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a sensing data matching apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a sensing data matching device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In some of the flows described in the specification and claims of the present application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that the flows may include more or less operations, and that the operations may be performed sequentially or in parallel.
The embodiment of the application provides a sensing data matching method, a sensing data matching device, sensing data matching equipment and a storage medium; specifically, fig. 1 is a schematic diagram of an implementation flow of a sensing data matching method according to an embodiment of the present invention, and as shown in fig. 1, the method includes:
step 101: determining usage time characteristic information.
In a specific example, based on a preset use frequency, determining the use time characteristic information corresponding to the current use time; and/or controlling the sensor to collect sensing data based on a preset collection frequency; wherein the preset use frequency is different from the preset acquisition frequency. That is to say, the scheme of the application can use the sensing data based on the preset use frequency, and the sensor can collect the sensing data based on the preset collection frequency, and the two frequencies are different; the scheme of the application can be applied to the two asynchronous frequency scenes, in other words, even if the use frequency is preset and the collection frequency is preset to be different, the scheme of the application can still solve the problem that the sensing data is not matched due to the fact that the use frequency and the collection frequency are different, application scenes are enriched, a foundation is laid for engineering application, and meanwhile, a foundation is laid for subsequent analysis and application of the sensing data accurately used.
In a specific example, the time characteristic set is preset in the form of a message queue, and specifically, sensing data acquired by a sensor within a preset time range is acquired; generating acquisition time characteristic information corresponding to the sensing data based on the time characteristics (such as time stamps) of the sensing data acquired by the sensor, and adding the acquisition time characteristic information to a time queue according to the acquisition time sequence; and taking the time queue containing the acquisition time characteristic information as a time characteristic set. For example, based on a first-in first-out mode of the message queue, the time queue is obtained by sequentially storing the acquisition time characteristic information according to the sequence of the timestamps, the acquisition time characteristic information with the early timestamp in the time queue is arranged at the head of the time queue, and the acquisition time characteristic information with the late timestamp is arranged at the tail of the time queue.
Here, the preset time range is associated with the usage time characteristic information, for example, the usage time characteristic information is taken as a usage time point, and in this case, the preset time range is a time period including the usage time point; or, the preset time range is a time period before the use time point; alternatively, the preset time range is a period of time after the point of use time. Of course, in practical applications, the preset time range may also be a combination period of any two of the above three periods, or even a combination period of three periods.
Here, in an actual scene, the sensor performs data acquisition based on a preset acquisition frequency, and at this time, if it is not necessary to store the full amount of data, the usage capacity of the time feature set may be set, so as to implement storage of new data based on the usage capacity; specifically, acquiring acquisition time characteristic information of new sensing data after the new sensing data is acquired by a sensor, and judging whether the use capacity of the time characteristic set reaches a preset maximum capacity or not; determining that the use capacity of the time feature set reaches the preset maximum capacity, and adding new acquisition time feature information to the time feature set after deleting at least one acquisition time feature information in the time feature set based on the acquisition time sequence; for example, the acquisition time characteristic information at the head of the time queue is deleted, and the new acquisition time characteristic information is added to the tail of the time queue.
Or after new acquisition time characteristic information is acquired, judging whether the use capacity of the time characteristic set reaches a preset maximum capacity or not; and determining that the use capacity of the time characteristic set is smaller than the preset maximum capacity, and adding new acquisition time characteristic information into the time characteristic set based on the acquisition time sequence, for example, adding the new acquisition time characteristic information to the tail of a time queue.
Here, the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset use frequency of the sensing data; for example, the predetermined frequency is determined based on a ratio between the predetermined acquisition frequency and the predetermined usage frequency.
Step 102: acquiring a pre-stored time characteristic set corresponding to the use time characteristic information, and selecting at least one target acquisition time characteristic information matched with the use time characteristic information from the time characteristic set; the time characteristic set is provided with at least two pieces of acquisition time characteristic information, and each piece of acquisition time characteristic information at least can represent the time information of the sensor for acquiring the sensing data within a preset time range.
In a specific example, at least one piece of acquisition time characteristic information matched with the time information characterized by the usage time characteristic information may be determined by using the position of the usage time characteristic information in the time characteristic set, that is, by using the time sequence of the usage time characteristic information in the time characteristic set, specifically, after determining that the time information characterized by the usage time characteristic information is in the middle region of the time characteristic set based on the time sequence, the acquisition time characteristic information that is the most recent before and/or after the time information characterized by the usage time characteristic information is taken as the target acquisition time characteristic information, for example, in the time sequence, when the time information characterized by the usage time characteristic information is in the middle position of the time characteristic set, at the moment, two pieces of acquisition time characteristic information which are closest to the front and the back of the use time characteristic information are used as the target acquisition time characteristic information; or, based on the time sequence, determining that the time information characterized by the time feature information is at the head or tail of the time feature set, taking the acquisition time characteristic information closest to the time information represented by the use time characteristic information as the target acquisition time characteristic information, wherein the distances are arranged according to the time sequence, when the time information characterized by the use time characteristic information is positioned at the head or the tail of the time characteristic set, at this time, taking an acquisition time characteristic information closest to the use time characteristic information as the target acquisition time characteristic information, thus, the method lays a foundation for maximally matching the sensing data required to be used for obtaining the use time characteristic information, meanwhile, a foundation is laid for maximally improving the accuracy of the sensing data required by the determined use time characteristic information.
Step 103: acquiring sensing data corresponding to at least one target acquisition time characteristic information matched with the use time characteristic information, and acquiring target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information; and the target sensing data is the sensing data required to be used by the using time characteristic information.
In a specific example, the target sensing data may be obtained in the following manner, specifically,
in a first mode, when there is only one target acquisition time characteristic information matched with the usage time characteristic information, directly taking the sensing data corresponding to the target acquisition time characteristic information as the target sensing data, specifically, after one target acquisition time characteristic information matched with the usage time characteristic information is selected, taking the sensing data corresponding to the target acquisition time characteristic information as the target sensing data.
The second method comprises the following steps: when the target acquisition time characteristic information matched with the use time characteristic information is two or more, performing data processing, such as linear interpolation processing, mean value processing and the like, on the sensing data of all the target acquisition time characteristic information, taking the processed sensing data as the target sensing data, specifically, after at least two target acquisition time characteristic information matched with the use time characteristic information are selected, performing data processing on the sensing data corresponding to all the acquired target acquisition time characteristic information, and taking the processed sensing data as the target sensing data.
Therefore, smooth target sensing data required to be used by the time use characteristic information is determined, and the accuracy of the determined sensing data required to be used by the time use characteristic information is improved to the maximum extent.
Specifically, in this example, in order to solve the problem of the non-synchronization of the sensing data, a timestamp (that is, time characteristic information) is added to the sensing data acquired by each sensor and stored in a buffer queue (that is, a time characteristic set), and when the sensing data is taken, the closest sensing data is acquired according to the current timestamp (that is, the time characteristic information is used), and the smooth target sensing data is obtained through data processing methods such as linear interpolation.
In the aspect of data storage, a preset maximum capacity of a cache queue is set according to a preset using frequency of sensing data acquired by using a sensor and a preset acquisition frequency of the sensor; for example, the preset acquisition frequency is a (usually higher than the preset use frequency), the preset use frequency is b, and at this time, the preset maximum capacity can be obtained by multiplying the ratio of a to b by a multiplying factor (preset value). Furthermore, after the sensor collects the sensing data, a timestamp matched with the sensing data is added; and judging whether the current use capacity of the cache queue reaches the preset maximum capacity, if so, removing one data from the head of the queue, and otherwise, adding a timestamp matched with the sensing data to the tail of the cache queue.
In the aspect of data use, the current time stamp (namely, the use time characteristic information) is obtained; searching data closest to the current timestamp from the tail of the cache queue; if the closest data is the first data (namely, the data corresponding to the head) or the last data (namely, the data corresponding to the tail) in the buffer queue, directly taking the sensing data corresponding to the first data or the last data as target sensing data; and otherwise, taking the sensing data corresponding to the front data and the rear data of the current timestamp, and performing linear interpolation processing on the sensing data corresponding to the front data and the rear data according to the time information of the front data and the rear data to obtain target sensing data.
Therefore, the time information (namely the acquisition time characteristic information) of the sensor for acquiring the sensing data is recorded and stored in the first-in first-out cache queue in time sequence, so that after the use time characteristic information (namely the current timestamp) is determined, the acquisition time characteristic information matched with the use time characteristic information can be obtained by using the cache queue, and then the linear interpolation is carried out on the sensing data corresponding to the obtained matched acquisition time characteristic information based on the time information to obtain relatively accurate and smooth target sensing data.
An embodiment of the present application further provides a sensing data matching apparatus, as shown in fig. 2, the apparatus includes:
a data matching unit 21 for determining usage time characteristic information; acquiring a pre-stored time characteristic set corresponding to the use time characteristic information, and selecting at least one target acquisition time characteristic information matched with the use time characteristic information from the time characteristic set; the time characteristic set is provided with at least two pieces of acquisition time characteristic information, and each piece of acquisition time characteristic information at least can represent the time information of the sensor for acquiring the sensing data within a preset time range;
the processing unit 22 is configured to acquire sensing data corresponding to the at least one target acquisition time characteristic information matched with the usage time characteristic information, and obtain target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information, where the target sensing data is sensing data required to be used by the usage time characteristic information.
In an embodiment, the data matching unit 21 is further configured to:
acquiring sensing data acquired by a sensor within a preset time range;
generating acquisition time characteristic information corresponding to the sensing data based on the time characteristics of the sensing data acquired by the sensor, and adding the acquisition time characteristic information to a time queue according to an acquisition time sequence;
and taking the time queue containing the acquisition time characteristic information as the time characteristic set.
In a specific embodiment, the data matching unit 21 is further configured to determine, based on a preset usage frequency, the current corresponding usage time characteristic information; and/or the presence of a gas in the gas,
the processing unit 22 is further configured to control the sensor to acquire sensing data based on a preset acquisition frequency;
wherein the preset use frequency is different from the preset acquisition frequency.
In an embodiment, the data matching unit 21 is further configured to:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time feature set reaches the preset maximum capacity, and adding new acquisition time feature information to the time feature set after deleting at least one acquisition time feature information in the time feature set based on the acquisition time sequence.
In an embodiment, the data matching unit 21 is further configured to:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time characteristic set is smaller than the preset maximum capacity, and adding new acquisition time characteristic information into the time characteristic set on the basis of an acquisition time sequence.
In an embodiment, the data matching unit 21 is further configured to:
determining that the time information represented by the use time characteristic information is in the middle area of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information which is the most recent before and/or after the time information represented by the use time characteristic information as the target acquisition time characteristic information; alternatively, the first and second electrodes may be,
and determining that the time information represented by the use time characteristic information is at the head or the tail of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information closest to the time information represented by the use time characteristic information as the target acquisition time characteristic information.
In an embodiment, the processing unit 22 is further configured to
Selecting one target acquisition time characteristic information matched with the use time characteristic information, and taking sensing data corresponding to the target acquisition time characteristic information as target sensing data; alternatively, the first and second electrodes may be,
and after at least two pieces of target acquisition time characteristic information matched with the use time characteristic information are selected, data processing is carried out on the acquired sensing data corresponding to all the target acquisition time characteristic information, and the sensing data obtained after processing is used as the target sensing data.
Here, it should be noted that: the descriptions of the embodiments of the apparatus are similar to the descriptions of the methods, and have the same advantages as the embodiments of the methods, and therefore are not repeated herein. For technical details that are not disclosed in the embodiments of the apparatus of the present invention, those skilled in the art should refer to the description of the embodiments of the method of the present invention to understand, and for brevity, will not be described again here.
An embodiment of the present application further provides a sensing data matching apparatus, including: one or more processors; a memory communicatively coupled to the one or more processors; one or more application programs; wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method described above.
In a specific example, the sensing data matching device according to the embodiment of the present application may be embodied as a structure as shown in fig. 3, and the sensing data matching device at least includes a processor 31, a storage medium 32, and at least one external communication interface 33; the processor 31, the storage medium 32, and the external communication interface 33 are all connected by a bus 34. The processor 31 may be a microprocessor, a central processing unit, a digital signal processor, or a programmable logic array, etc. having processing functions. The storage medium has stored therein computer executable code capable of performing the method of any of the above embodiments. In practical applications, the data matching unit 21 and the processing unit 22 may be implemented by the processor 31.
Here, it should be noted that: the above description of the embodiment of the sensing data matching apparatus is similar to the above description of the method, and has the same beneficial effects as the embodiment of the method, and therefore, the description thereof is omitted. For technical details not disclosed in the embodiment of the sensing data matching apparatus of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention for understanding, and for the sake of brevity, will not be described herein again.
Embodiments of the present application also provide a computer-readable storage medium, which stores a computer program, and when the program is executed by a processor, the computer program implements the method described above.
A computer-readable storage medium can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that all or part of the steps carried by the method for implementing the above embodiments can be implemented by hardware related to instructions of a program, which can be stored in a computer readable storage medium, and the program includes one or a combination of the steps of the method embodiments when the program is executed.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The embodiments described above are only a part of the embodiments of the present invention, and not all of them. 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 invention.

Claims (10)

1. A method of sensory data matching, the method comprising:
determining usage time characteristic information;
acquiring a pre-stored time characteristic set corresponding to the use time characteristic information, and selecting at least one target acquisition time characteristic information matched with the use time characteristic information from the time characteristic set; the time characteristic set is provided with at least two pieces of acquisition time characteristic information, and each piece of acquisition time characteristic information at least can represent the time information of the sensor for acquiring the sensing data within a preset time range;
and acquiring sensing data corresponding to the at least one target acquisition time characteristic information matched with the use time characteristic information, and obtaining target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information, wherein the target sensing data is the sensing data required to be used by the use time characteristic information.
2. The method of claim 1, further comprising:
acquiring sensing data acquired by a sensor within the preset time range;
generating acquisition time characteristic information corresponding to the sensing data based on the time characteristics of the sensing data acquired by the sensor, and adding the acquisition time characteristic information to a time queue according to an acquisition time sequence;
and taking the time queue containing the acquisition time characteristic information as the time characteristic set.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
determining the current corresponding use time characteristic information based on a preset use frequency; and/or the presence of a gas in the gas,
controlling a sensor to collect sensing data based on a preset collection frequency;
wherein the preset use frequency is different from the preset acquisition frequency.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time feature set reaches the preset maximum capacity, and adding new acquisition time feature information to the time feature set after deleting at least one acquisition time feature information in the time feature set based on the acquisition time sequence.
5. The method according to claim 1 or 2, characterized in that the method further comprises:
after new acquisition time characteristic information is acquired, whether the use capacity of the time characteristic set reaches a preset maximum capacity is judged; wherein the preset maximum capacity is determined based on a preset acquisition frequency of the sensor and a preset usage frequency of the sensing data;
and determining that the use capacity of the time characteristic set is smaller than the preset maximum capacity, and adding new acquisition time characteristic information into the time characteristic set on the basis of an acquisition time sequence.
6. The method according to claim 2, wherein the selecting at least one target acquisition temporal feature information matching the usage temporal feature information from the temporal feature set comprises:
determining that the time information represented by the use time characteristic information is in the middle area of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information which is the most recent before and/or after the time information represented by the use time characteristic information as the target acquisition time characteristic information; alternatively, the first and second electrodes may be,
and determining that the time information represented by the use time characteristic information is at the head or the tail of the time characteristic set based on the time sequence, and taking the acquisition time characteristic information closest to the time information represented by the use time characteristic information as the target acquisition time characteristic information.
7. The method according to claim 1, wherein the obtaining target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information comprises:
selecting one target acquisition time characteristic information matched with the use time characteristic information, and taking sensing data corresponding to the target acquisition time characteristic information as target sensing data; alternatively, the first and second electrodes may be,
and after at least two pieces of target acquisition time characteristic information matched with the use time characteristic information are selected, data processing is carried out on the acquired sensing data corresponding to all the target acquisition time characteristic information, and the sensing data obtained after processing is used as the target sensing data.
8. A sensing data matching apparatus, comprising:
the data matching unit is used for determining the use time characteristic information; acquiring a pre-stored time characteristic set corresponding to the use time characteristic information, and selecting at least one target acquisition time characteristic information matched with the use time characteristic information from the time characteristic set; the time characteristic set is provided with at least two pieces of acquisition time characteristic information, and each piece of acquisition time characteristic information at least can represent the time information of the sensor for acquiring the sensing data within a preset time range;
and the processing unit is used for acquiring the sensing data corresponding to the at least one target acquisition time characteristic information matched with the use time characteristic information and obtaining target sensing data based on the sensing data corresponding to the at least one target acquisition time characteristic information, wherein the target sensing data is the sensing data required to be used by the use time characteristic information.
9. A sensing data matching apparatus, characterized by comprising:
one or more processors;
a memory communicatively coupled to the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-7.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010354319.XA 2020-04-29 2020-04-29 Sensor data matching method, device, equipment and storage medium Pending CN111563546A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010354319.XA CN111563546A (en) 2020-04-29 2020-04-29 Sensor data matching method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010354319.XA CN111563546A (en) 2020-04-29 2020-04-29 Sensor data matching method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111563546A true CN111563546A (en) 2020-08-21

Family

ID=72070720

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010354319.XA Pending CN111563546A (en) 2020-04-29 2020-04-29 Sensor data matching method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111563546A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968292B2 (en) * 2004-03-02 2005-11-22 Paragon Technical Services, Inc. Industrial controller event logging
EP2270689A1 (en) * 2009-06-26 2011-01-05 Sap Ag Method and system for time dependent search
CN103559274A (en) * 2013-11-05 2014-02-05 中国联合网络通信集团有限公司 Vehicle condition information query method and device
CN103577456A (en) * 2012-07-31 2014-02-12 国际商业机器公司 Method and device for processing time series data
CN104216977A (en) * 2014-09-01 2014-12-17 北京优特捷信息技术有限公司 Time series data search method and device
CN106909641A (en) * 2017-02-16 2017-06-30 青岛高校信息产业股份有限公司 A kind of real-time data memory device
CN107871022A (en) * 2017-12-20 2018-04-03 清华大学 A kind of storage of time series data column, querying method and system
CN108693823A (en) * 2017-03-31 2018-10-23 欧姆龙株式会社 Control device
CN110008249A (en) * 2019-01-31 2019-07-12 阿里巴巴集团控股有限公司 A kind of time-based data query method, device and equipment
CN110321362A (en) * 2019-07-05 2019-10-11 广东利元亨智能装备股份有限公司 Data processing method, device and electronic equipment
CN110943796A (en) * 2019-11-19 2020-03-31 深圳市道通智能航空技术有限公司 Timestamp alignment method, timestamp alignment device, storage medium and equipment
CN111078755A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Time sequence data storage query method and device, server and storage medium

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6968292B2 (en) * 2004-03-02 2005-11-22 Paragon Technical Services, Inc. Industrial controller event logging
EP2270689A1 (en) * 2009-06-26 2011-01-05 Sap Ag Method and system for time dependent search
CN103577456A (en) * 2012-07-31 2014-02-12 国际商业机器公司 Method and device for processing time series data
CN103559274A (en) * 2013-11-05 2014-02-05 中国联合网络通信集团有限公司 Vehicle condition information query method and device
CN104216977A (en) * 2014-09-01 2014-12-17 北京优特捷信息技术有限公司 Time series data search method and device
CN106909641A (en) * 2017-02-16 2017-06-30 青岛高校信息产业股份有限公司 A kind of real-time data memory device
CN108693823A (en) * 2017-03-31 2018-10-23 欧姆龙株式会社 Control device
CN107871022A (en) * 2017-12-20 2018-04-03 清华大学 A kind of storage of time series data column, querying method and system
CN110008249A (en) * 2019-01-31 2019-07-12 阿里巴巴集团控股有限公司 A kind of time-based data query method, device and equipment
CN110321362A (en) * 2019-07-05 2019-10-11 广东利元亨智能装备股份有限公司 Data processing method, device and electronic equipment
CN110943796A (en) * 2019-11-19 2020-03-31 深圳市道通智能航空技术有限公司 Timestamp alignment method, timestamp alignment device, storage medium and equipment
CN111078755A (en) * 2019-12-19 2020-04-28 远景智能国际私人投资有限公司 Time sequence data storage query method and device, server and storage medium

Similar Documents

Publication Publication Date Title
EP2081326B1 (en) Statistical processing apparatus capable of reducing storage space for storing statistical occurence frequency data and a processing method therefor
CN107766575B (en) Read-write separation database access method and device
CN105302701A (en) Method, apparatus and device for testing reaction time of terminal user interface
US20220121641A1 (en) Multi-sensor-based state estimation method and apparatus and terminal device
CN109743589B (en) Article generation method and device
CN110335590B (en) Voice recognition test method, device and system
CN112541527A (en) Multi-sensor synchronization method and device, electronic equipment and storage medium
EP4195149A1 (en) Target detection and tracking method and apparatus, electronic device, and storage medium
CN110248241A (en) Method for processing video frequency and relevant apparatus
CN110069194B (en) Page blockage determining method and device, electronic equipment and readable storage medium
CN111147778B (en) Track recording method and device based on digital video recorder and storage medium
CN111405237A (en) Cloud storage system providing preview function and preview method
CN110234029B (en) Playing processing method, device, equipment and storage medium of multi-sensor data
CN111563546A (en) Sensor data matching method, device, equipment and storage medium
CN104424109B (en) Information processing method and electronic equipment
CN111275846B (en) Data record generation method and device, electronic equipment and storage medium
CN113141433B (en) Method and device for testing screen sensitivity and processor
CN112306892B (en) Page response duration testing method and related equipment
CN110990239B (en) System and method for collecting user data in user equipment based on soft sensor
EP1622309A2 (en) Method and system for treating events and data uniformly
CN114398140A (en) Dynamic generation method of trend graph, electronic measurement device and storage medium
CN109560965B (en) Method, device and equipment for acquiring flow of distributed system
CN110825697B (en) Method and apparatus for formatting a storage device
CN113938622B (en) Blood pressure detection device based on asynchronously recorded video and storage medium
CN116721237B (en) House type wall editing method, device, 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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Tiktok vision (Beijing) Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: BEIJING BYTEDANCE NETWORK TECHNOLOGY Co.,Ltd.

Address after: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant after: Douyin Vision Co.,Ltd.

Address before: 100041 B-0035, 2 floor, 3 building, 30 Shixing street, Shijingshan District, Beijing.

Applicant before: Tiktok vision (Beijing) Co.,Ltd.