A method, apparatus, electronic device, and storage medium for storing sensing information.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2026-08-14
AI Technical Summary
[0005]本申请实施例提供一种感知信息存储方法、装置、电子设备及存储介质,解决了存储感知信息时存储空间的利用率较低的问题
[0026]本申请中第二方面、第三方面、第四方面和第五方面描述的有益效果,可以参考第一方面的有益效果分析,此处不再赘述。
Smart Images

Figure CN117349247B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of information storage technology, and in particular to a method, apparatus, electronic device and storage medium for storing perceived information. Background Technology
[0002] With the rapid development of communication technology, 5G communication technology has entered the 5G-Advanced stage. Integrated Sensing and Communication (ISAC) technology is one of the key technologies in the 5G-Advanced stage. It often requires the fusion and interaction of sensing information from multiple modalities to achieve efficient acquisition, processing and utilization of sensing information.
[0003] Currently, before fusing sensing information, it is necessary to store the sensing information collected by sensing devices. However, this continuously acquired sensing information often contains a large amount of duplicate content, which will occupy too much storage space and affect the utilization rate of storage space.
[0004] Therefore, how to improve the utilization rate of storage space when storing sensory information is a problem that needs to be solved. Summary of the Invention
[0005] This application provides a method, apparatus, electronic device, and storage medium for storing sensing information, which solves the problem of low storage space utilization when storing sensing information.
[0006] To achieve the above technical objectives, the embodiments of this application adopt the following technical solutions:
[0007] In a first aspect, embodiments of this application provide a method for storing perceived information, the method comprising:
[0008] At least one piece of sensing information to be stored is received, as well as time information corresponding to each piece of sensing information. The time information is used to characterize the acquisition time of the sensing information and includes an initial time value.
[0009] Merge at least one piece of sensory information to be stored;
[0010] Determine whether the first sensing information and the second sensing information are the same. The first sensing information is the sensing information with the earliest acquisition time among at least one sensing information to be stored after merging and processing, and the second sensing information is the sensing information with the latest acquisition time among the stored sensing information.
[0011] If the first sensing information is the same as the second sensing information, the second sensing information is overwritten with the first sensing information, and the first initial time value is changed to the second initial time value. At least one sensing information to be stored after merging is stored, except for the first sensing information. The first initial time value is the initial time value in the time information of the overwritten first sensing information, and the second initial time value is the initial time value in the time information of the second sensing information.
[0012] If the first sensing information is different from the second sensing information, at least one sensing information to be stored is stored after merging and processing.
[0013] The technical solution provided in this application brings at least the following beneficial effects: it merges the sensing information to be stored, and before storing the merged sensing information, it checks whether the sensing information with the earliest acquisition time in the merged sensing information is the same as the sensing information with the latest acquisition time that has been stored, and performs an overwrite operation when they are the same; it further reduces the waste of storage space and realizes the efficient use of storage space.
[0014] In one implementation, merging at least one set of sensing information to be stored includes: for each third set of sensing information in the at least one set of sensing information to be stored, determining whether the third set of sensing information is the same as a fourth set of sensing information, wherein the third set of sensing information is any one of the at least one set of sensing information to be stored, and the fourth set of sensing information is the sensing information whose acquisition time is earlier than the acquisition time of the third set of sensing information and is closest to the acquisition time of the third set of sensing information; if the third set of sensing information is the same as the fourth set of sensing information, the third set of sensing information is used to cover the fourth set of sensing information, and the third initial time value is changed to the fourth initial time value, wherein the third initial time value is the initial time value in the time information of the covered third set of sensing information, and the fourth initial time value is the initial time value in the time information of the fourth set of sensing information.
[0015] In one implementation, the method further includes: obtaining a reference time period; and searching for sensing information related to the reference time period in the stored sensing information.
[0016] In one implementation, the reference time period is the time interval between the initial reference time value and the final reference time value. Searching for sensing information related to the reference time period in the stored sensing information includes: checking if there is sensing information in the stored sensing information corresponding to the time information with the same initial time value as the initial reference time value, and checking if there is sensing information in the stored sensing information corresponding to the time information with the same final time value as the final reference time value. If there is sensing information in the stored sensing information corresponding to the time information with the same initial time value as the initial reference time value, and also if there is sensing information in the stored sensing information corresponding to the time information with the same final time value as the final reference time value, then the time... Perceptual information whose initial and final time values fall within a reference time period is identified as perceptual information related to the reference time period. If, in the stored time information corresponding to the perceptual information, there is no perceptual information with the same initial time value as the reference initial time value, but there is perceptual information with the same final time value as the reference final time value, then the initial time value found in the stored time information that is before the reference initial time value and closest to it is identified as the fifth initial time value. Furthermore, perceptual information whose initial and final time values fall within the time period between the fifth initial time value and the reference final value is identified as perceptual information related to the reference time period. Perceptual information related to the reference time period; if there is perceptual information in the stored perceptual information corresponding to the time information that has the same initial time value as the reference initial time value, and there is no perceptual information in the stored perceptual information corresponding to the time information that has the same final time value as the reference final time value, then the final time value in the stored perceptual information corresponding to the time information that is after the reference final time value and closest to the reference final time value is determined as the first final time value. Perceptual information in the time information that includes the initial time value and the time final value falling between the reference initial time value and the first final time value is determined as perceptual information related to the reference time period; if there is no perceptual information in the stored perceptual information corresponding to the time information that has the same initial time value as the reference final time value, then the final time value is determined as the first final time value. Furthermore, perceptual information in the time information corresponding to the time information that includes the initial time value and the final time value falling between the reference initial time value and the first final time value is determined as perceptual information related to the reference time period. If the initial value of the perceived information is the same as the initial value of the reference time, and there is no perceived information in the time information corresponding to the stored perceived information whose final value is the same as the final value of the reference time, then the initial value of the time information corresponding to the stored perceived information that is before the initial value of the reference time and is closest to the initial value of the reference time is determined as the sixth initial value of time. The final value of the time information corresponding to the stored perceived information that is after the final value of the reference time and is closest to the final value of the reference time is determined as the second final value of time. The perceived information in the time information whose initial value of time and whose final value of time fall between the sixth initial value of time and the second final value of time is determined as the perceived information related to the reference time period.
[0017] Secondly, embodiments of this application provide a sensing information storage device, the device comprising:
[0018] The receiving module is used to receive at least one piece of sensing information to be stored, as well as time information corresponding to each piece of sensing information. The time information is used to characterize the acquisition time of the sensing information and includes an initial time value.
[0019] The processing module is used to merge at least one set of sensing information to be stored; determine whether the first sensing information and the second sensing information are the same, wherein the first sensing information is the sensing information with the earliest acquisition time among the at least one set of sensing information to be stored after merging, and the second sensing information is the sensing information with the latest acquisition time among the stored sensing information; if the first sensing information and the second sensing information are the same, the first sensing information is used to overwrite the second sensing information, and the first initial time value is changed to the second initial time value, and the at least one set of sensing information to be stored after merging is stored, excluding the first sensing information; the first initial time value is the initial time value in the time information of the overwritten first sensing information, and the second initial time value is the initial time value in the time information of the second sensing information; if the first sensing information and the second sensing information are different, the at least one set of sensing information to be stored after merging is stored.
[0020] In one implementation, the processing module is specifically used to: for each third sensing information in at least one set of sensing information to be stored, determine whether the third sensing information is the same as the fourth sensing information, wherein the third sensing information is any one of the at least one set of sensing information to be stored, and the fourth sensing information is the sensing information whose acquisition time is earlier than the acquisition time of the third sensing information and is closest to the acquisition time of the third sensing information; if the third sensing information is the same as the fourth sensing information, overwrite the fourth sensing information with the third sensing information and change the third initial time value to the fourth initial time value, wherein the third initial time value is the initial time value in the time information of the overwritten third sensing information, and the fourth initial time value is the initial time value in the time information of the fourth sensing information.
[0021] In one implementation, the receiving module is also used to acquire a reference time period; the processing module is also used to search for sensing information related to the reference time period in the stored sensing information.
[0022] In one implementation, the processing module is specifically used to: search for whether there is any stored sensing information in the time information corresponding to the sensing information whose initial time value is the same as the reference initial time value, and to search for whether there is any stored sensing information in the time information corresponding to the sensing information whose final time value is the same as the reference final time value; if there is both stored sensing information in the time information corresponding to the sensing information whose initial time value and final time value are the same as the reference final time value, then the sensing information in the time information whose initial time value and final time value fall within the reference time period is determined to be related to the reference time. Segment-related sensing information; if there is no sensing information in the stored sensing information corresponding to the same initial time value as the reference initial time value, and there is sensing information in the stored sensing information corresponding to the same final time value as the reference final time value, then the initial time value in the stored sensing information corresponding to the same initial time value that is before the reference initial time value and closest to the reference initial time value is determined as the fifth initial time value. Sensing information in the time information whose initial time value and final time value fall between the fifth initial time value and the reference final time value is determined as sensing information related to the reference time period; in the stored sensing information corresponding to the same initial time value... If there is perceptual information in the time information that has the same initial time value as the reference initial time value, and if there is no perceptual information in the time information corresponding to the stored perceptual information that has the same final time value as the reference final time value, then the final time value in the time information corresponding to the stored perceptual information that is after the reference final time value and is closest to the reference final time value is determined as the first final time value. Furthermore, perceptual information in the time information whose initial time value and final time value fall between the reference initial time value and the first final time value is determined as perceptual information related to the reference time period. If there is no perceptual information in the time information corresponding to the stored perceptual information that has the same initial time value as the reference initial time value... If there is no stored time information whose final time value is the same as the reference time value, then the stored time information corresponding to the time information that is before the reference time initial value and is closest to the reference time initial value is determined as the sixth time initial value. The stored time information corresponding to the time information that is after the reference time final value and is closest to the reference time final value is determined as the second time final value. The time initial value and the time final value of the time information that fall between the sixth time initial value and the second time final value are determined as the perception information related to the reference time period.
[0023] Thirdly, this application provides an electronic device, including: a processor, and a memory for storing processor-executable instructions; wherein the processor is configured to execute instructions to implement the perception information storage method as provided in the first aspect above.
[0024] Fourthly, this application provides a computer-readable storage medium storing an information transmission implementation program, which, when executed by a processor, implements the perceptual information storage method provided in the first aspect.
[0025] Fifthly, this application provides a computer program product that, when run on a computer, causes the computer to perform the method provided in the first aspect above.
[0026] The beneficial effects described in the second, third, fourth and fifth aspects of this application can be referred to the analysis of the beneficial effects in the first aspect, and will not be repeated here. Attached Figure Description
[0027] Figure 1 This is a schematic diagram of the structure of an integrated sensing device provided in an embodiment of this application;
[0028] Figure 2 A flowchart illustrating a method for storing perceived information provided in an embodiment of this application;
[0029] Figure 3 A flowchart illustrating yet another method for storing perceived information provided in this application embodiment;
[0030] Figure 4 A flowchart illustrating yet another method for storing perceived information provided in this application embodiment;
[0031] Figure 5 A flowchart illustrating yet another method for storing perceived information provided in this application embodiment;
[0032] Figure 6 This is a schematic diagram of the structure of a sensing information storage device provided in an embodiment of this application;
[0033] Figure 7 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0034] The features and exemplary embodiments of various aspects of this application will now be described in detail. To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only configured to explain this application and are not configured to limit this application. For those skilled in the art, this application can be implemented without some of these specific details. The following description of the embodiments is merely to provide a better understanding of this application by illustrating examples of this application.
[0035] It should be noted that, in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations; nor should they be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, features defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this embodiment, unless otherwise stated, "a plurality of" means two or more. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0036] With the rapid development of communication technology, 5G communication technology has entered the 5G-Advanced stage. Integrated Sensing and Communication (ISAC) technology is one of the key technologies in the 5G-Advanced stage. It often requires the fusion and interaction of sensing information from multiple modalities to achieve efficient acquisition, processing and utilization of sensing information.
[0037] Currently, before fusing sensing information, it is necessary to store the sensing information collected by sensing devices. However, this continuously acquired sensing information often contains a large amount of duplicate content, which will occupy too much storage space and affect the utilization rate of storage space.
[0038] Therefore, how to improve the utilization rate of storage space when storing sensory information is a problem that needs to be solved.
[0039] In view of this, this application proposes a method for storing sensory information. This method merges sensory information with different time information but the same content, which greatly reduces the waste of storage space caused by the duplication of sensory information content and improves the utilization rate of storage space when storing sensory information.
[0040] Figure 1 This paper shows a schematic diagram of the structure of the integrated sensing device 1 to which the sensing information storage method provided in this application is applicable, as shown in the figure. Figure 1 As shown, the integrated sensing device 1 includes: a sensing module 10, a processing module 20, and a storage module 30.
[0041] The processing module 20 establishes communication connections with the sensing module 10 and the storage module 30, respectively. It should be understood that the connection method can be a wireless connection, such as a Bluetooth connection or a wireless fidelity (Wi-Fi) connection; or, the connection method can be a wired connection, such as a fiber optic connection, etc., and there is no limitation on this.
[0042] In some embodiments, the sensing module 10 is used to collect sensing information, and the sensing information is used to record external physical information.
[0043] In practical applications, the sensing module 10 collects sensing information at a preset frequency. For example, if the preset frequency is once per second, and the sensing module 10 collects sensing information at 18:01:00, then the initial and final time values in the time information corresponding to this sensing information are both 18:01:00. If the sensing module 10 collects sensing information again at 18:01:01, then the initial and final time values in the time information corresponding to this sensing information are both 18:01:01.
[0044] In some embodiments, the processing module 20 is used to receive the sensing information to be stored sent by the sensing module 10, perform merging processing on the sensing information, and send the merged sensing information to be stored to the storage module 30.
[0045] In some embodiments, the storage module 30 is used to store the sensing information sent by the processing module 20.
[0046] In some embodiments, the processing module 20 is used to obtain a reference time period, which is the time interval between the initial value of the reference time and the final value of the reference time.
[0047] Optionally, when the integrated sensing device 1 needs to analyze the stored sensing information, it can generate a reference time period involved in the sensing information to be analyzed, and then the processing module 20 obtains the reference time period.
[0048] Optionally, when a user wants to retrieve sensing information for a certain period of time for analysis on another device, they can input a reference period of time on the other device, and then the other device will send the reference period of time to the processing module 20 of the integrated sensing device 1. The processing module 20 retrieves the sensing information matching the reference period of time based on the received reference period of time.
[0049] In some embodiments, the processing module 20 is further configured to perform recovery processing on the merged sensing information. For example, the storage module 30 stores sensing information (36.5℃; 18:12:03-18:12:08), indicating that the temperature information collected from 18:12:03 to 18:12:08 is 36.5℃. If the sensing module 10 collects sensing information at a frequency of once every second, then after the processing module 20 performs recovery processing on the sensing information (36.5℃; 18:12:03-18:12:08), the sensing information (36.5℃, 18:12:03-18:12:08) is obtained. 12:03-18:12:03), Perceived information (36.5℃, 18:12:04-18:12:04), Perceived information (36.5℃, 18:12:05-18:12:05), Perceived information (36.5℃, 18:12:06-18:12:06), Perceived information (36.5℃, 18:12:07-18:12:07), Perceived information (36.5℃, 18:12:08-18:12:08).
[0050] In some embodiments, the sensing information collected by the sensing module 10 may be temperature, humidity, audio, light intensity, etc. Therefore, the sensing module 10 may specifically be a temperature sensor, humidity sensor, sound acquisition device, light sensor, etc. This application does not limit the specific form of the sensing module 10.
[0051] In some embodiments, the processing module 20 may be a device with data processing capabilities, or a functional module within that device, without limitation. For example, the processing module 20 may be a processor, a central processing unit (CPU), a network processor (NP), a digital signal processor (DSP), a microprocessor, a microcontroller, a programmable logic device (PLD), or any combination thereof. The processor may also be other devices with processing functions, such as circuits, devices, or software modules, and this application embodiment does not impose any limitations on this.
[0052] In some embodiments, the storage module 30 may be random access memory (RAM), hard disk, etc., and this application embodiment does not impose any restrictions on it.
[0053] Based on the specific implementation of the sensing module 10, processing module 20 and storage module 30 described above, the integrated sensing device can be a vehicle networking device, wearable device, etc., and this application embodiment does not impose any restrictions on it.
[0054] The embodiments of this application will now be described in detail with reference to the accompanying drawings.
[0055] Figure 2 A flowchart illustrating the perceptual information storage method provided in this application is shown. This method can be executed by the aforementioned processing module 20. Figure 2 As shown, the method includes the following steps:
[0056] S101, Receive at least one sensing information to be stored, and time information corresponding to each sensing information.
[0057] Among them, time information is used to characterize the time of acquisition of sensing information, and time information includes the initial time value.
[0058] Normally, the processing module receives the sensing information to be stored in batches, with each batch including at least one sensing information to be stored.
[0059] S102. Merge at least one piece of sensory information to be stored.
[0060] In some embodiments, such as Figure 3 As shown, step S102 can be specifically implemented as follows:
[0061] S1021. For each third perceptual information in at least one perceptual information to be stored, determine whether the third perceptual information is the same as the fourth perceptual information.
[0062] Among them, the third sensing information is any one of the sensing information to be stored, and the fourth sensing information is the sensing information whose acquisition time is earlier than the acquisition time of the third sensing information and is closest to the acquisition time of the third sensing information.
[0063] For example, consider some temperature sensing information to be stored and corresponding time information: K1 (36.5℃; 00:00:01-00:00:01), K2 (36.5℃; 00:00:02-00:00:02), K3 (36.5℃; 00:00:03-00:00:03), K4 (36.7℃; 00:00:04-00:00:04), K5 (36.5℃; 00:00:05-00:00:05), K6 (36.5℃; 00:00:06-00:00:06). For K1, there is no sensing information to be stored with a collection time earlier than K1, so no judgment is made for K1; for K2, K1 is the sensory information acquired before and adjacent to its acquisition time, so it is determined that the sensory information of K2 is the same as that of K1. For K3, K2 is the sensory information acquired before and adjacent to its acquisition time, so it is determined that the sensory information of K3 is the same as that of K2. For K4, K3 is the sensory information acquired before and adjacent to its acquisition time, so it is determined that the sensory information of K4 is different from that of K3. For K5, K4 is the sensory information acquired before and adjacent to its acquisition time, so it is determined that the sensory information of K5 is different from that of K4. For K6, K5 is the sensory information acquired before and adjacent to its acquisition time, so it is determined that the sensory information of K6 is the same as that of K5.
[0064] S1022. When the third and fourth sensory information are the same, the third sensory information is used to cover the fourth sensory information, and the third time initial value is changed to the fourth time initial value.
[0065] Among them, the third initial time value is the initial time value in the time information of the third sensing information after coverage, and the fourth initial time value is the initial time value in the time information of the fourth sensing information.
[0066] For example, based on the above example, K1, K2, and K3 have the same perceived information, and K5 and K6 have the same perceived information. Therefore, for K1, K2, and K3, the perceived information of K1 is overwritten with the perceived information of K2, and the initial time value of K2 is changed to the initial time value of K1, resulting in the overwritten K′2 (36.5℃; 00:00:01-00:00:02); then the perceived information of K′2 is overwritten with the perceived information of K3, and the initial time value of K3 is changed to the initial time value of K′2, resulting in K′3 (36.5℃; 00:00:01-00:00:03). For K5 and K6: the perceived information of K5 is overwritten with the perceived information of K6, and the initial time value of K6 is changed to the initial time value of K5, resulting in K′6 (36.5℃; 00:00:05-00:00:06).
[0067] After the above processing, the merged temperature sensing information to be stored is obtained as follows: K′3 (36.5℃; 00:00:01-00:03), K4 (36.7℃; 00:00:04-00:00:04), and K′6 (36.5℃; 00:00:05-00:00:06). The merged temperature sensing information requires half the storage space compared to the original information.
[0068] Based on the above explanation, Figure 3 The illustrated embodiment offers at least the following advantages: by merging two or more identical sensing information points that are adjacent to each other at the time of acquisition of the sensing information to be stored without omission, redundant data is effectively reduced; at the same time, storage space is effectively reduced during subsequent storage.
[0069] S103. Determine whether the first sensing information is the same as the second sensing information with the latest acquisition time that was pre-stored.
[0070] Among them, the first sensing information is the sensing information with the earliest acquisition time among at least one sensing information to be stored after merging and processing.
[0071] For example, based on the above example, for the earliest collected sensing information K′3 (36.5℃; 00:00:01-00:00:03) in the merged temperature sensing information to be stored, let the second sensing information with the latest collected time in the pre-stored information be K0 (36.5℃; 00:00:00-00:00:00), then the sensing information of K′3 is the same as the sensing information of K0.
[0072] If the first and second perceived information are the same, proceed to step S104; if the first and second perceived information are different, proceed to step S105.
[0073] S104. Overwrite the second sensing information with the first sensing information, change the first time initial value to the second time initial value, and store the sensing information other than the first sensing information in at least one of the sensing information to be stored after merging processing.
[0074] The first initial time value is the initial time value in the time information of the first sensed information after coverage, and the second initial time value is the initial time value in the time information of the second sensed information.
[0075] For example, based on the above example, the perception information of K′3 is the same as that of K0. The perception information of K′3 is used to overwrite the perception information of K0, and the initial time value of the time information of K′3 is changed to the initial time value of the time information of K0 to obtain K″3 (36.5℃; 00:00:00-00:00:03); then K4 (36.7℃; 00:00:04-00:00:04) and K′6 (36.5℃; 00:00:05-00:00:06) are stored.
[0076] S105, store at least one sensing information to be stored after merging processing.
[0077] For example, based on the above example, for the earliest collected sensing information K′3 (36.5℃; 00:00:01-00:00:03) in the merged temperature sensing information to be stored, let the second sensing information with the latest collected time be K0 (36.8℃; 00:00:00-00:00:00) that is stored in advance. Then the sensing information of K′3 is different from that of K0. K′3 (36.5℃; 00:00:01-00:00:03), K4 (36.7℃; 00:00:04-00:00:04), and K′6 (36.5℃; 00:00:05-00:00:06) are stored directly.
[0078] Figure 2 The technical means shown bring at least the following beneficial effects: merging the sensing information to be stored, and before storing the merged sensing information, checking whether the sensing information with the earliest acquisition time in the merged sensing information is the same as the sensing information with the latest acquisition time that has been stored, and performing an overwrite operation when they are the same; further reducing the waste of storage space and realizing the efficient use of storage space.
[0079] In some embodiments, the processing module can obtain a reference time period and search for sensing information related to the reference time period in the stored sensing information.
[0080] Specifically, such as Figure 4 As shown, searching for sensing information related to the reference time period from the stored sensing information can be achieved as follows:
[0081] Search the stored sensing information for any sensing information whose initial time value is the same as the reference initial time value, and search the stored sensing information for any sensing information whose final time value is the same as the reference final time value.
[0082] The search results may fall into the following four categories:
[0083] Scenario 1: The stored sensing information contains sensing information whose initial time value is the same as the reference initial time value, and the stored sensing information contains sensing information whose final time value is the same as the reference final time value.
[0084] In case one, the processing module identifies the initial and final time values in the time information that fall within the reference time period as the sensing information related to the reference time period.
[0085] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:05) (33.7℃; 00:00:06-00:00:06) and (33.6℃; 00:00:07-00:00:12), reference period: (00:00:01-00:00:12); among which, The initial time value is the same as the reference time initial value "00:01". The final time value is the same as the reference final time value "00:12". In this case, the perceived information where the initial time value and the final time value fall within (00:00:01-00:00:12) is determined as the perceived information related to the reference time period, that is... and The initial and final time values in the time information fall within the reference time period. and This refers to perceived information related to the reference time period.
[0086] Scenario 2: The stored sensing information does not contain any sensing information with the same initial time value as the reference initial time value, but the stored sensing information does contain any sensing information with the same final time value as the reference final time value.
[0087] For scenario two, the processing module will find the time initial value that is closest to the reference time initial value among the time information corresponding to the stored sensing information and determine it as the fifth time initial value. The sensing information whose time initial value and time final value fall between the fifth time initial value and the reference final value will be determined as sensing information related to the reference time period.
[0088] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:05) (33.6℃; 00:00:07-00:00:13) and (33.4℃; 00:00:15-00:00:19), reference period (00:00:14-00:00:19); among which, in and In the data, none of the perceived time information has the same initial time value as the reference time initial value "00:14". The final time value of (33.6℃; 00:00:15-00:00:19) is the same as the reference time final value "00:19". In this case, the temperature sensing information K b The initial time value of the time information is the time initial value before and closest to the reference time initial value "00:00:14", therefore it will be... The initial time value of the time information, "00:00:07", is determined as the fifth initial time value. Meanwhile, because... The final value of the time information, "00:00:19", is the same as the final value of the reference time. Therefore, the perceived information in the time information whose initial and final values fall within (00:00:07-00:00:19) is determined to be the perceived information related to the reference time period, that is... and The initial and final time values in the time information fall within the reference time period. and This refers to perceived information related to the reference time period.
[0089] Scenario 3: Among the time information corresponding to the stored sensing information, there is sensing information with the same initial time value as the reference initial time value, but there is no sensing information with the same final time value as the reference final time value.
[0090] For scenario three, the processing module determines the first time final value as the time final value that is closest to the reference time final value in the time information corresponding to the stored sensing information, and determines the sensing information of the time initial value and the time final value that fall between the reference time initial value and the first time final value as the sensing information related to the reference time period.
[0091] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:05) (33.6℃; 00:00:07-00:00:13) and (33.4℃; 00:00:15-00:00:19), reference period (00:00:01-00:00:06); among which, The initial time value (33.5℃; 00:00:01-00:00:05) is the same as the initial reference time value "00:01". and In this case, none of the perceived time information's final time value matches the reference time final value "00:06". The temperature perceived information... The final time value of the time information is the time value that is closest to the reference final time value "00:00:06", therefore it will be... The final time value of the time information, "00:00:13", is determined as the first final time value. Meanwhile, because... The initial time value "00:00:01" of the time information is the same as the initial time value of the reference time. Therefore, the perceived information in the time information whose initial time value and final time value fall within (00:00:01-00:00:13) is determined as the perceived information related to the reference time period. and The initial and final time values in the time information fall within the reference time period. and This refers to perceived information related to the reference time period.
[0092] Scenario 4: The stored sensing information does not contain any sensing information whose initial time value is the same as the reference initial time value, and the stored sensing information does not contain any sensing information whose final time value is the same as the reference final time value.
[0093] For scenario four, the processing module determines the sixth initial time value as the time value that is closest to the reference initial time value among the time information corresponding to the stored sensing information, determines the second final time value as the time value that is closest to the reference final time value among the time information corresponding to the stored sensing information, and determines the sensing information of the time period in which the initial time value and the final time value fall between the sixth initial time value and the second final time value as the sensing information related to the reference time period.
[0094] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:05) (33.6℃; 00:00:07-00:00:13) and (33.4℃; 00:00:15-00:00:19), reference period (00:00:06-00:00:14); among which, and In the data, none of the perceived time information has the same initial time value as the reference time initial value "00:00:06". and In this case, none of the perceived time information's final time value matches the reference time final value "00:14". The temperature perceived information... The initial time value of the time information is the initial time value before the reference initial time value "00:00:06" and the closest to the reference initial time value, while the temperature sensing information... The final time value of the time information is the time value that is closest to the reference final time value "00:00:14" after it. The initial time value of the time information, "00:00:01", is determined as the sixth initial time value, and at the same time... The final time value of the time information, "00:00:19", is determined as the second final time value. Therefore, the perceived information in the time information whose initial time value and final time value fall within (00:00:01-00:00:19) is determined as the perceived information related to the reference time period. and The initial and final time values in the time information fall within the reference time period. and This refers to perceived information related to the reference time period.
[0095] Optionally, before searching for stored sensing information that has the same initial time value as the reference initial time value and before searching for stored sensing information that has the same final time value as the reference final time value, the time precision of the reference time period can be processed to match the time precision of the sensing information to obtain the target time period. Then, the stored sensing information related to the target time period can be searched. When the time precision of the reference initial time value and the reference final time value is greater than the time precision of the time information, the portion of the reference initial time value with greater precision than the time information is deleted to obtain the target initial time value; the portion of the reference final time value with greater precision than the time information is deleted, and the reference final time value is increased by the sensing information acquisition time interval to obtain the target final time value. When the time precision of the time information is greater than the time precision of the reference initial time value and the reference final time value, the time precision of the reference initial time value and the reference final time value is processed to match the time precision of the time information by padding with zeros.
[0096] For example, suppose the time precision of the sensed information is accurate to the minute, such as (00:01-00:07), while the time precision of the initial and final reference times of the reference time period is accurate to the second, such as (00:01:03-00:05:57), and the duration of the sensed data collection interval is 2 minutes. In this case, the time precision of the initial and final reference times is greater than that of the sensed information. Therefore, the data in the initial reference time that has a time precision greater than the time information is deleted, resulting in the target initial time value "00:00". The data in the final reference time that has a time precision greater than the time information is deleted, resulting in "00:05". Then, "00:05" is increased by a sensed information collection interval, resulting in the target final time value "00:07". That is, after processing the time precision of the reference time period, the time precision of the target time period (00:00-00:07) is the same as that of the initial and final reference times. If the time precision of the initial and final reference time values is less than that of the time precision of the perceived information, let's assume the time precision of the perceived information is accurate to the second, for example (00:00:05-00:03:01), while the time precision of the initial and final reference time values of the reference time period is accurate to the minute, for example (00:01-00:03). In this case, the reference time period is adjusted to obtain the target time period (00:01:00-00:03:00) by padding with zeros.
[0097] Based on the above explanation, Figure 4 The technical means shown brings at least the following beneficial effects: when reading the stored sensing information according to the reference time period, by judging whether there is an initial time value in the time information of the stored sensing information that is the same as the initial reference time value of the reference time period, and / or a final time value that is the same as the final reference time value of the reference time period, the time information of the final selected sensing information includes the reference time period, thus ensuring that the sensing information related to the reference time period is read without omission.
[0098] In some embodiments, through Figure 4 After obtaining the sensing information related to the reference time period, the scheme shown can recover this sensing information and determine the sensing information that matches the reference time period from the recovered sensing information. Finally, the sensing information that matches the reference time period can be sent to the module or device that needs to retrieve the sensing information within the reference time period.
[0099] Figure 5 It shows the passage Figure 4 The method steps shown are as follows: obtaining and recovering the sensing information related to the reference time period, and determining the sensing information matching the reference time period from the recovered sensing information.
[0100] S201. Determine whether there is any perceptual information related to the reference time period where the initial time value and the final time value of the time information are different.
[0101] If there is a fifth type of sensing information in the sensing information related to the reference time period where the initial time value and the final time value of the time information are different, the processing module executes step S202; if there is no sensing information in the sensing information related to the reference time period where the initial time value and the final time value of the time information are different, the processing module executes step S203.
[0102] S202. Based on the preset time interval and the time difference between the initial time value and the final time value, determine the number of recovered information and copy the number of recovered fifth perception information. The fifth perception information and the copied number of recovered fifth perception information are determined as the recovered perception information.
[0103] The time information of the copied sensing information is determined based on the time information of the fifth sensing information and a preset time interval. The preset time interval indicates that the sensing module collects sensing information once every preset time interval; the preset time interval is the same for the same type of sensing information.
[0104] Starting with the perceptual information whose initial and final time values differ, the time information is adjusted sequentially according to the time interval. Specifically, the initial and final time values of the perceptual information whose initial and final time values differ, as well as the perceptual information obtained by copying, are all changed to the initial time value of the perceptual information whose initial and final time values differ. Let this initial time value be T, and the preset time interval be t. Then, for the nth perceptual information K among these perceptual information... n (Perceptual data; TT), with perceptual information K′ adjusted for time information. n = (perceived data; T+(n-1)*t-T+(n-1)*t).
[0105] For example, let K be the perceived information related to the reference time period. x (30.2℃;00:00:00-00:00:03), K y (30.2℃; 00:00:04-00:00:04), preset time interval is 1 second; after inspection, K was found to be... x If the initial and final values of the time information are different, then for K... y Subtracting the initial time value from the final time value yields a time difference of 3. Dividing this time difference of 3 by the preset time interval of 1 second gives a recovery count of 3. For K... x To recover the perceived information: First, copy K three times. x We obtained four pieces of sensory information: (30.2℃; 00:00:00-00:00:03) i.e. K x , (30.2℃; 00:00:00-00:00:03) (30.2℃; 00:00:00-00:00:03) and (30.2℃; 00:00:00-00:00:03); From Begin by adjusting the time information in sequence: (30.2℃; 00:00:00+0*1-00:00:00+0*1) that is (30.2℃; 00:00:00-00:00:00) (30.2℃; 00:00:00+1*1-00:00:00+1*1) that is (30.2℃; 00:00:01-00:00:01) (30.2℃; 00:00:00+2*1-00:00:00+2*1) that is (30.2℃; 00:00:02-00:00:02) (30.2℃; 00:00:00+3*1-00:00:00+3*1) that is (30.2℃; 00:00:03-00:00:03).
[0106] S203. The sensing information related to the reference time period is determined as the recovered sensing information.
[0107] S204. Check whether there is any sensing information in the time information corresponding to the recovered sensing information whose acquisition time is the same as the initial value of the reference time, and check whether there is any sensing information in the time information corresponding to the recovered sensing information whose acquisition time is the same as the final value of the reference time.
[0108] The search results can be represented in the following four ways:
[0109] Case 1: The recovered sensing information contains sensing information whose acquisition time is the same as the initial value of the reference time, and the recovered sensing information contains sensing information whose acquisition time is the same as the final value of the reference time.
[0110] In case one, the processing module determines the sensing information whose acquisition time, as represented by the time information, falls within the reference time period as the sensing information that matches the reference time period.
[0111] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:01) (33.5℃; 00:00:02-00:00:02), reference period (00:00:01-00:00:02); among which, The time information represents the same acquisition time as the initial reference time value "00:00:01". The acquisition time represented by the time information is the same as the reference time final value "00:00:02". In this case, the perceived information whose initial time value and final time value fall within (00:00:01-00:00:02) is determined as the perceived information matching the reference time period, i.e. and
[0112] Scenario 2: The recovered sensing information does not contain sensing information whose acquisition time is the same as the initial value of the reference time, but the recovered sensing information does contain sensing information whose acquisition time is the same as the final value of the reference time.
[0113] For scenario two, the processing module determines the acquisition time represented by the time information corresponding to the recovered sensing information that is before the reference initial time value and is closest to the reference initial time value as the seventh initial time value. It also determines the sensing information in the time information where the acquisition time represented by the time information falls between the seventh initial time value and the reference final time value as the sensing information that matches the reference time period.
[0114] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:01) (33.5℃; 00:00:03-00:00:03) (33.5℃; 00:00:05-00:00:05), reference period (00:00:02-00:00:05); among which, in and In the data, none of the time-related information representing the acquisition time was the same as the initial reference time value "00:00:02". The time information representing the acquisition time is the same as the final reference time value "00:00:05". In this case, the temperature sensing information... The acquisition time represented by the time information is the acquisition time before the reference time initial value "00:00:02" and is closest to the reference time initial value. Therefore, The acquisition time "00:00:01" represented by the time information is determined as the initial value of the seventh time, and at the same time, because The acquisition time "00:00:05" represented by the time information is the same as the final value of the reference time. Therefore, the perceived information whose acquisition time falls within (00:00:01-00:00:05) is determined as the perceived information matching the reference time period. and
[0115] Scenario 3: The recovered sensing information contains sensing information whose acquisition time is the same as the initial value of the reference time, but the recovered sensing information does not contain sensing information whose acquisition time is the same as the final value of the reference time.
[0116] For scenario three, the processing module determines the acquisition time represented by the time information that is after the reference time final value and is closest to the reference time final value in the time information corresponding to the recovered sensing information as the third time final value, and determines the sensing information in the time information whose acquisition time falls between the reference time initial value and the third time final value as the sensing information that matches the reference time period.
[0117] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:01) (33.5℃; 00:00:03-00:00:03) (33.5℃; 00:00:05-00:00:05), reference period (00:00:01-00:00:04); among which, The time information represents the same acquisition time as the initial reference time value "00:01". and In this case, none of the time-related information from the sensing data represents a collection time that is identical to the final reference time value "00:00:04". The temperature sensing information... The acquisition time represented by the time information is the acquisition time that is closest to the reference time final value "00:00:04". Therefore, The acquisition time "00:00:05" represented by the time information is determined as the third time final value, and at the same time, because The acquisition time "00:00:05" represented by the time information is the same as the final value of the reference time. Therefore, the perceived information whose acquisition time falls within (00:00:01-00:00:05) is determined as the perceived information matching the reference time period. and
[0118] Case 4: The recovered sensing information does not contain sensing information whose acquisition time is the same as the initial value of the reference time, nor does the recovered sensing information contain sensing information whose acquisition time is the same as the final value of the reference time.
[0119] For scenario four, the processing module determines the acquisition time represented by the time information corresponding to the recovered sensing information that is before the reference initial time value and is closest to the reference initial time value as the eighth initial time value, determines the acquisition time represented by the time information corresponding to the recovered sensing information that is after the reference final time value and is closest to the reference final time value as the fourth final time value, and determines the sensing information whose acquisition time represented by the time information falls between the eighth initial time value and the fourth final time value as the sensing information that matches the reference time period.
[0120] For example, temperature sensing information is provided. (33.5℃; 00:00:01-00:00:01) (33.5℃; 00:00:03-00:00:03) (33.5℃; 00:00:05-00:00:05), reference period (00:00:02-00:00:04); among which, and In the data, none of the time-related information representing the acquisition time was the same as the initial reference time value "00:00:02". and In this case, none of the time-related information from the sensing data represents a collection time that is identical to the final reference time value "00:00:04". The temperature sensing information... The acquisition time represented by the time information is the acquisition time before the reference time initial value "00:00:02" and is closest to the reference time initial value. Therefore, The acquisition time "00:00:01" represented by the time information is determined as the initial value of the eighth time, and the temperature sensing information is also included. The acquisition time represented by the time information is the acquisition time that is closest to the reference time final value "00:00:04". Therefore, The acquisition time "00:00:05" represented by the time information is determined as the fourth time final value. Therefore, the sensing information whose acquisition time falls within (00:00:01-00:00:05) is determined as the sensing information matching the reference time period. and
[0121] Based on the above explanation, Figure 5 The technical means shown brings at least the following beneficial effects: when reading the stored sensing information according to the reference time period, by judging whether there is time information in the time information of the stored sensing information whose represented acquisition time is the same as the initial value of the reference time of the reference time period, and / or whose represented acquisition time is the same as the final value of the reference time of the reference time period, the time information of the final selected sensing information includes the reference time period, thus ensuring that the sensing information related to the reference time period is read without omission.
[0122] Figures 2-5 The method for storing perceptual information is described below. Figure 6 This application describes the apparatus provided in its embodiments. To achieve the above-described functions, the sensing information storage apparatus includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art will readily recognize that, based on the algorithmic steps of the examples described in conjunction with the embodiments disclosed herein, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed in hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0123] This application embodiment can, exemplarily, divide the sensing information storage device into functional modules according to the above method. The sensing information storage device can be divided into functional modules corresponding to each function, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module. It should be noted that the module division in this application embodiment is illustrative and only represents one logical functional division; in actual implementation, other division methods may be used.
[0124] Figure 6 This paper shows a schematic diagram of the structure of a sensing information storage device 300 provided in one embodiment of the present application. Figure 6 Each module in the device shown has the ability to implement Figures 2-5 The functions of each step in the process are defined, and their corresponding technical effects are achieved. For example... Figure 6 As shown, the device may include:
[0125] Receiving module 301: used to receive at least one sensing information to be stored, and time information corresponding to each sensing information.
[0126] Processing module 302: Performs merging processing on at least one set of sensing information to be stored; determines whether first sensing information and second sensing information are the same, wherein the first sensing information is the sensing information with the earliest acquisition time among the at least one set of sensing information to be stored after merging processing, and the second sensing information is the sensing information with the latest acquisition time among the stored sensing information; if the first sensing information and second sensing information are the same, the first sensing information is used to overwrite the second sensing information, and the first initial time value is changed to the second initial time value, and the at least one set of sensing information to be stored after merging processing, excluding the first sensing information, is stored; the first initial time value is the initial time value in the time information of the overwritten first sensing information, and the second initial time value is the initial time value in the time information of the second sensing information; if the first sensing information and second sensing information are different, the at least one set of sensing information to be stored after merging processing is stored.
[0127] In one implementation, the processing module 302 is specifically used to: for each third sensing information in at least one set of sensing information to be stored, determine whether the third sensing information is the same as the fourth sensing information, wherein the third sensing information is any one of the at least one set of sensing information to be stored, and the fourth sensing information is the sensing information whose acquisition time is earlier than the acquisition time of the third sensing information and is closest to the acquisition time of the third sensing information; if the third sensing information is the same as the fourth sensing information, cover the fourth sensing information with the third sensing information and change the third initial time value to the fourth initial time value, wherein the third initial time value is the initial time value in the time information of the covered third sensing information, and the fourth initial time value is the initial time value in the time information of the fourth sensing information.
[0128] In one implementation, the receiving module 301 is further configured to acquire a reference time period; the processing module 302 is further configured to search for sensing information related to the reference time period in the stored sensing information.
[0129] In one implementation, the processing module 302 is specifically configured to: search for whether there is any stored sensing information in the time information corresponding to the sensing information whose initial time value is the same as the reference initial time value, and search for whether there is any stored sensing information in the time information corresponding to the sensing information whose final time value is the same as the reference final time value; if there is both stored sensing information in the time information corresponding to the sensing information whose initial time value is the same as the reference initial time value and stored sensing information whose final time value is the same as the reference final time value, then the sensing information in the time information whose initial time value and final time value fall within the reference time period is determined to be consistent with the reference time period. Perceptual information related to the reference time period; if there is no perceptual information in the stored perceptual information corresponding to the time information with the same initial time value as the reference initial time value, and there is perceptual information in the stored perceptual information corresponding to the time information with the same final time value as the reference final time value, then the initial time value in the stored perceptual information corresponding to the time information that is before the reference initial time value and closest to the reference initial time value is determined as the fifth initial time value. Perceptual information in the time information whose initial time value and final time value fall between the fifth initial time value and the reference final time value is determined as perceptual information related to the reference time period; in the stored perceptual information... If the corresponding time information contains sensing information whose initial time value is the same as the reference initial time value, and the stored sensing information does not contain sensing information whose final time value is the same as the reference final time value, then the final time value in the stored sensing information that is after the reference final time value and is closest to the reference final time value is determined as the first final time value. Furthermore, sensing information whose initial time value and final time value fall between the reference initial time value and the first final time value is determined as sensing information related to the reference time period. If the stored sensing information does not contain a time initial value that matches the reference initial time value... If there is no stored time information with the same final time value that is the same as the reference final time value, then the stored time information corresponding to the time information that is before the reference initial time value and is closest to the reference initial time value is determined as the sixth initial time value. The stored time information corresponding to the time information that is after the reference final time value and is closest to the reference final time value is determined as the second final time value. The time information with the initial time value and the time final value falling between the sixth initial time value and the second final time value is determined as the perception information related to the reference time period.
[0130] Figure 7 A schematic diagram of the structure of an electronic device according to an embodiment of this application is shown. Figure 7 As shown, the device may include a processor 401 and a memory 402 storing computer program instructions.
[0131] Specifically, the processor 401 may include a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.
[0132] Memory 402 may include mass storage for data or instructions. For example, and not limitingly, memory 402 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. In one instance, memory 402 may include removable or non-removable (or fixed) media, or memory 402 may be non-volatile solid-state memory. Memory 402 may be internal or external to the integrated gateway disaster recovery device.
[0133] In one instance, memory 402 may be read-only memory (ROM). In one instance, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM), or flash memory, or a combination of two or more of these.
[0134] The processor 401 reads and executes computer program instructions stored in the memory 402 to achieve... Figures 2-5 The method in the illustrated embodiment achieves... Figures 2-5 The technical effects achieved by executing the methods in the examples shown are not elaborated here for the sake of brevity.
[0135] In one example, the electronic device may also include a communication interface 403 and a bus 410. Wherein, as... Figure 7 As shown, the processor 401, memory 402, and communication interface 403 are connected through bus 410 and complete communication with each other.
[0136] The communication interface 403 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.
[0137] Bus 410 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Extended Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), a Hyper Transport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 410 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.
[0138] The electronic device can execute the sensing information storage method in the embodiments of this application, thereby realizing... Figures 2-5 The technical effects of the described method for storing perceptual information.
[0139] Furthermore, in conjunction with the sensing information storage method in the above embodiments, this application embodiment can provide a computer storage medium for implementation. This computer storage medium stores computer program instructions; when these computer program instructions are executed by a processor, they implement any of the sensing information storage methods in the above embodiments.
[0140] In an exemplary embodiment, this application also provides a computer program product that, when run on a computer, enables the computer to implement the perceptual information storage method described in the above embodiments.
[0141] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0142] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0143] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0144] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0145] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, essentially, or the parts that contribute to the prior art, or all or part of the technical solutions, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0146] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for storing sensory information, characterized in that, include: The system receives at least one piece of sensing information to be stored, as well as time information corresponding to each piece of sensing information. The time information is used to characterize the acquisition time of the sensing information and includes an initial time value. The at least one piece of sensory information to be stored is merged. Determine whether the first sensing information and the second sensing information are the same. The first sensing information is the sensing information with the earliest acquisition time among the at least one sensing information to be stored after merging and processing, and the second sensing information is the sensing information with the latest acquisition time among the stored sensing information. If the first sensing information is the same as the second sensing information, the first sensing information is used to overwrite the second sensing information, and the first initial time value is changed to the second initial time value. The sensing information other than the first sensing information in the at least one sensing information to be stored after the merging process is also stored. The first initial time value is the initial time value in the time information of the overwritten first sensing information, and the second initial time value is the initial time value in the time information of the second sensing information. If the first sensing information is different from the second sensing information, store the at least one sensing information to be stored after merging and processing. Obtain the reference time period; Search for sensing information related to the reference time period in the stored sensing information; Determine whether there is any perceptual information related to a reference time period whose initial and final time values differ; When there is a fifth sensing information in the sensing information related to the reference time period where the initial time value and the final time value of the time information are different, the number of recovery is determined based on the preset time interval and the time difference between the initial time value and the final time value, and the number of recovered fifth sensing information is copied. The fifth sensing information and the number of recovered fifth sensing information copied are determined as the recovered sensing information. The merging process of the at least one piece of sensory information to be stored includes: For each third sensing information in the at least one set of sensing information to be stored, determine whether the third sensing information is the same as the fourth sensing information. The third sensing information is any one of the at least one set of sensing information to be stored, and the fourth sensing information is the sensing information in the at least one set of sensing information to be stored whose acquisition time is earlier than the acquisition time of the third sensing information and is closest to the acquisition time of the third sensing information. If the third sensing information is the same as the fourth sensing information, the third sensing information is used to cover the fourth sensing information, and the third initial time value is changed to the fourth initial time value. The third initial time value is the initial time value in the time information of the covered third sensing information, and the fourth initial time value is the initial time value in the time information of the fourth sensing information.
2. The method for storing perceived information as described in claim 1, characterized in that, The reference time period is the time interval between the initial value of the reference time and the final value of the reference time. The step of searching for sensing information related to the reference time period in the stored sensing information includes: The system searches for whether there is any sensing information in the time information corresponding to the stored sensing information whose initial time value is the same as the reference initial time value, and also searches for whether there is any sensing information in the time information corresponding to the stored sensing information whose final time value is the same as the reference final time value. If there is a sense information in the time information corresponding to the stored sense information that has the same initial time value as the reference initial time value, and there is a sense information in the time information corresponding to the stored sense information that has the same final time value as the reference final time value, then the sense information in the time information whose initial time value and final time value fall into the reference time period is determined as sense information related to the reference time period. If there is no sensing information in the stored sensing information corresponding to the time information that has the same initial time value as the reference initial time value, and there is sensing information in the stored sensing information corresponding to the time information that has the same final time value as the reference final time value, then the initial time value in the stored sensing information that is before the reference initial time value and is closest to the reference initial time value is determined as the fifth initial time value. Furthermore, sensing information in the time information whose initial time value and final time value fall between the fifth initial time value and the reference final time value is determined as sensing information related to the reference time period.
3. The method for storing perceived information as described in claim 2, characterized in that, The step of searching for sensing information related to the reference time period in the stored sensing information further includes: If there is a sense information in the time information corresponding to the stored sense information that has the same initial time value as the reference initial time value, and there is no sense information in the time information corresponding to the stored sense information that has the same final time value as the reference final time value, then the final time value in the time information corresponding to the stored sense information that is after the reference final time value and is closest to the reference final time value is determined as the first final time value. The sense information in the time information that has an initial time value and a final time value falling between the reference initial time value and the first final time value is determined as sense information related to the reference time period. If there is no sensing information in the stored sensing information corresponding to the time information with the same initial time value as the reference initial time value, and there is no sensing information in the stored sensing information corresponding to the time information with the same final time value as the reference final time value, then the initial time value in the stored sensing information corresponding to the time information that is before the reference initial time value and is closest to the reference initial time value is determined as the sixth initial time value; the final time value in the stored sensing information corresponding to the time information that is after the reference final time value and is closest to the reference final time value is determined as the second final time value; and the sensing information in the time information whose initial time value and final time value fall between the sixth initial time value and the second final time value is determined as sensing information related to the reference time period.
4. A sensor information storage device, characterized in that, include: A receiving module is configured to receive at least one piece of sensing information to be stored, and time information corresponding to each piece of sensing information, wherein the time information is used to characterize the acquisition time of the sensing information, and the time information includes an initial time value; The processing module performs merging processing on the at least one piece of sensory information to be stored; Determine whether the first sensing information and the second sensing information are the same. The first sensing information is the sensing information with the earliest acquisition time among the at least one sensing information to be stored after merging and processing, and the second sensing information is the sensing information with the latest acquisition time among the stored sensing information. If the first sensing information is the same as the second sensing information, the first sensing information is used to overwrite the second sensing information, and the first initial time value is changed to the second initial time value. The sensing information other than the first sensing information in the at least one set of sensing information to be stored after the merging process is also stored. The first initial time value is the initial time value in the time information of the overwritten first sensing information, and the second initial time value is the initial time value in the time information of the second sensing information. If the first sensing information is different from the second sensing information, the at least one set of sensing information to be stored after the merging process is stored. The receiving module is also used to obtain a reference time period; The processing module is also used to search for sensing information related to the reference time period in the stored sensing information; Determine whether there is any perceptual information related to a reference time period whose initial and final time values differ; When there is a fifth sensing information in the sensing information related to the reference time period where the initial time value and the final time value of the time information are different, the number of recovery is determined based on the preset time interval and the time difference between the initial time value and the final time value, and the number of recovered fifth sensing information is copied. The fifth sensing information and the number of recovered fifth sensing information copied are determined as the recovered sensing information. The processing module is specifically used to determine whether the third sensing information and the fourth sensing information are the same for each third sensing information in the at least one set of sensing information to be stored. The third sensing information is any one of the at least one set of sensing information to be stored, and the fourth sensing information is the sensing information in the at least one set of sensing information to be stored whose acquisition time is earlier than the acquisition time of the third sensing information and is closest to the acquisition time of the third sensing information. If the third sensing information is the same as the fourth sensing information, the third sensing information is used to cover the fourth sensing information, and the third initial time value is changed to the fourth initial time value. The third initial time value is the initial time value in the time information of the covered third sensing information, and the fourth initial time value is the initial time value in the time information of the fourth sensing information.
5. The sensing information storage device as described in claim 4, characterized in that, The processing module is specifically used to: search for whether there is any sensing information in the time information corresponding to the stored sensing information whose initial time value is the same as the initial reference time value, and to search for whether there is any sensing information in the time information corresponding to the stored sensing information whose final time value is the same as the final reference time value. If there is a sense information in the time information corresponding to the stored sense information that has the same initial time value as the reference initial time value, and there is a sense information in the time information corresponding to the stored sense information that has the same final time value as the reference final time value, then the sense information in the time information whose initial time value and final time value fall into the reference time period is determined as sense information related to the reference time period. If there is no sensing information in the time information corresponding to the stored sensing information that has the same initial time value as the reference initial time value, and there is sensing information in the time information corresponding to the stored sensing information that has the same final time value as the reference final time value, then the initial time value in the time information corresponding to the stored sensing information that is before the reference initial time value and is closest to the reference initial time value is determined as the fifth initial time value. The sensing information in the time information whose initial time value and final time value fall between the fifth initial time value and the reference final time value is determined as the sensing information related to the reference time period. If there is a sense information in the time information corresponding to the stored sense information that has the same initial time value as the reference initial time value, and there is no sense information in the time information corresponding to the stored sense information that has the same final time value as the reference final time value, then the final time value in the time information corresponding to the stored sense information that is after the reference final time value and is closest to the reference final time value is determined as the first final time value. The sense information in the time information that has an initial time value and a final time value falling between the reference initial time value and the first final time value is determined as sense information related to the reference time period. If there is no sensing information in the stored sensing information corresponding to the time information with the same initial time value as the reference initial time value, and there is no sensing information in the stored sensing information corresponding to the time information with the same final time value as the reference final time value, then the initial time value in the stored sensing information corresponding to the time information that is before the reference initial time value and is closest to the reference initial time value is determined as the sixth initial time value; the final time value in the stored sensing information corresponding to the time information that is after the reference final time value and is closest to the reference final time value is determined as the second final time value; and the sensing information in the time information whose initial time value and final time value fall between the sixth initial time value and the second final time value is determined as sensing information related to the reference time period.
6. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the perceptual information storage method as described in any one of claims 1 to 3.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the perceptual information storage method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Video searching method, video storage method and related devices
CN105120321A
Index storage optimization method and device, electronic equipment and storage medium
CN114003581A
Data processing method and device, server and storage medium
CN115203285A
Sensor data processing method and apparatus, wearable electronic device, and storage medium
WO2023061413A1