This application claims the benefit under 35 U.S.C. §119(a) of Korean Patent Application No. 10-2011-0025401, filed on Mar. 22, 2011, in the Korean Intellectual Property Office, the entire disclosure of which is incorporated herein by reference for all purposes.
1. Field
The following description relates to methods and apparatuses for receiving, managing, and analyzing sensor data from a sensor.
2. Description of the Related Art
The development of a ubiquitous society has caused an increase in monitoring applications in various fields. The ubiquitous environment creates the feeling that the society has access everywhere or in several places at the same time. Typically a ubiquitous environment is an environment capable of accessing a computing device anytime and anywhere. This is accompanied by the development of communication technology and the development of storing and computing devices. Accordingly, a user may simultaneously receive and transmit information in various fields through the user's mobile device, personal computer (PC), and/or the like.
The information that the user receives may be transmitted from a high performance computing device such as a server or a sensor platform that has a sensor. A communication state between the device of the user and the sensor platform may not be continuous but may be intermittent. Thus, sensor data sensed by the sensor but not transmitted to the mobile device because of temporary disconnection of communication with the mobile device may wait in the sensor platform until the communication restarts. In this example, the more time the communication disconnection takes, the amount of data to be transmitted increases proportionally. As the communication restarts after the disconnection, the amount of data to be transmitted may be significantly greater than that when the communication continues. This may cause a problem in both the sensor platform and the mobile device because a sharp increase in the amount of data to be transmitted may generate a sudden load which may cause rapid battery consumption and malfunction, thereby resulting in inconvenience to the user.
In one general aspect, there is provided a method of managing sensor data generated by at least one sensor, the method including receiving sensor data from the at least one sensor, checking a communication connection state between a first device for performing the method of managing sensor data and a second device for analyzing the sensor data, and transmitting some of the received sensor data to the second device based on a user's query information for the sensor data and based on the checked communication connection state.
The method may further comprise selecting some of the received sensor data based on the query information, in response to the checked communication connection state indicating communication has restarted from disconnection, wherein the transmitting comprises transmitting the selected sensor data to the second device.
The query information may comprise a query definition in which a user request for the sensor data is defined, and the selecting may comprise extracting sensor data used to process the user request.
The query information may further comprise an allowable delay limit indicating the maximum allowable amount of time that may elapse from a point in time that the sensor data is generated to a time defined by the user, and the selecting may comprise extracting sensor data used to process the user request based on whether a time elapsed from a generation time of the received sensor data to the time defined by the user is within the allowable delay limit.
In response to the query definition indicating a continuous query by which a single query corresponding to the user request is continuously repeated, the selecting may comprise generating a plurality of query windows where each query window is a basic unit of a set of sensor data that is used to process each query in the continuous query, calculating a time elapsed from a generation time of the last sensor data of each query window to the time defined by the user, and extracting sensor data contained in at least one query window of which the calculated elapsed time is less than the allowable delay limit.
The transmitting may comprise transmitting the selected sensor data according to a data transmission policy defining which sensor data is first transmitted among the selected sensor data.
The data transmission policy may indicate a First-In First-Out (FIFO) policy by which the selected sensor data is sequentially transmitted from first generated sensor data.
In response to the query information comprising a continuous query by which a single query corresponding to the user request is continuously repeated, the data transmission policy may indicate a policy of transmitting the selected sensor data in a query window that is length of time that is less than a value that is obtained by subtracting a time elapsed from a generation time of the last sensor data in the query window to the time defined by the user for the allowable delay limit.
The method may further comprise storing the received sensor data based on a data storage policy defining which sensor data among the received sensor data is stored in the first device, wherein the selecting comprises selecting sensor data stored in the first device based on the data storage policy.
The data storage policy may define sensor data to be stored in the first device among the received sensor data based on at least one condition selected from the group consisting of a value of each sensor data, a generation time of each sensor data, the number of pieces of sensor data, and the query information.
In another aspect, there is provided an apparatus for managing sensor data generated by at least one sensor, the apparatus including a device interface for receiving sensor data from the at least one sensor, a communication connection determiner for checking a communication connection state between the sensor data managing apparatus and an apparatus for analyzing the sensor data, a selector for selecting some of the received sensor data based on a user's query information for the sensor data and based on the checked communication connection state, and a network interface for transmitting the selected sensor data to the sensor data analyzing apparatus.
In another aspect, there is provided a computer-readable storage medium having stored therein program instructions to cause a processor to implement method of managing sensor data generated by at least one sensor, the method including receiving sensor data from the at least one sensor, checking a communication connection state between a first device for performing the method of managing sensor data and a second device for analyzing the sensor data, and transmitting some of the received sensor data to the second device based on a user's query information for the sensor data and based on the checked communication connection state.
In another aspect, there is provided a method of analyzing sensor data generated by at least one sensor, the method including receiving a user's query information for the sensor data, transmitting the query information to an apparatus that provides the sensor data, receiving sensor data selected based on the query information from among sensor data generated by the at least one sensor, in response to the transmission of the query information, and analyzing the received sensor data.
The query information may comprise a query definition in which a user request for the sensor data is defined, and the receiving may comprise receiving sensor data that is used to process the user request.
The query information may further comprise an allowable delay limit indicating the maximum allowable amount of time that may elapse from a point in time at which the sensor data is generated to a time defined by the user, and the receiving may comprise receiving sensor data that is used to process the user request based on whether the time elapsed from the generation time of the received sensor data to the time defined by the user is within the allowable delay limit.
In response to the query definition indicating a continuous query by which a single query corresponding to the user request is continuously repeated, the receiving may comprise generating a plurality of query windows where each query window is a basic unit of a set of sensor data that is used to process each query in the continuous query, calculating a time elapsed from a generation time of the last sensor data of each query window to the time defined by the user, and receiving sensor data contained in at least one query window of which the calculated elapsed time is less than the allowable delay limit.
In another aspect, there is provided an apparatus for analyzing sensor data generated by at least one sensor, the apparatus including a user interface for receiving a user's query information for the sensor data, a network interface for transmitting the query information to an apparatus providing the sensor data and receiving sensor data selected based on the query information from among sensor data generated by the at least one sensor, in response to the transmission of the query information, and a query processor for analyzing the received sensor data.
In another aspect, there is provided a computer-readable storage medium having stored therein program instructions to cause a processor to implement method of analyzing sensor data generated by at least one sensor, the method including receiving a user's query information for the sensor data, transmitting the query information to an apparatus that provides the sensor data, receiving sensor data selected based on the query information from among sensor data generated by the at least one sensor, in response to the transmission of the query information, and analyzing the received sensor data.
In another aspect, there is provided a sensor data managing apparatus including a storage configured to store sensor data obtained by at least one sensor, a determiner configured to determine when communication stops and when communication restarts between the sensor data managing apparatus and a sensor data analyzing apparatus, a selector configured to, in response to the determiner determining communication has restarted, select only a portion of sensor data stored in the storage that was obtained by the at least one sensor while communication was stopped and to exclude a portion of sensor data stored in the storage that was obtained by the at least one sensor while communication was stopped, and an interface to transmit the selected sensor data to the data analyzing apparatus.
The selector may select the portion of sensor data stored in the storage that was obtained by the at least one sensor while communication was stopped based on a user query.
The user query may define at least one of a minimum age of sensor data and a minimum size of sensor data.
Other features and aspects may be apparent from the following detailed description, the drawings, and the claims.
Throughout the drawings and the detailed description, unless otherwise described, the same drawing reference numerals will be understood to refer to the same elements, features, and structures. The relative size and depiction of these elements may be exaggerated for clarity, illustration, and convenience.
The following detailed description is provided to assist the reader in gaining a comprehensive understanding of the methods, apparatuses, and/or systems described herein. Accordingly, various changes, modifications, and equivalents of the methods, apparatuses, and/or systems described herein will be suggested to those of ordinary skill in the art. Also, descriptions of well-known functions and constructions may be omitted for increased clarity and conciseness.
Various examples herein relate to a sensor data managing method and a sensor data managing apparatus. In the following description, functions or constructions well-known to those of ordinary skill in the field may be omitted.
The development to a ubiquitous society may spread the use of monitoring applications in various fields, such as traffic, finance, the environment, and the like. Thus, although various examples are described for fields such as healthcare, the following description is not limited thereto.
Referring to
The sensor 112 may be attached to a human body to generate sensor data that may be communicated and computed from various signals, such as a body temperature and a heart rate that are capable of being sensed from the human body. The sensor 112 may transmit the generated sensor data to the sensor data managing apparatus 114. The sensor data managing apparatus 114 may wirelessly transmit the sensor data to the server 130 through the mobile device 120 that acts as a gateway. A low-power near field communication technique such as BLUETOOTH®, ZIGBEE®, and the like, may be used to transmit the sensor data between the sensor platform 110 and the mobile device 120 acting as a gateway.
The mobile device 120 may use various communication techniques to perform communication with the server 130, for example, long-distance communication. As another example, the sensor data managing apparatus 114 may directly transmit the sensor data to the server 130 without passing through a gateway such as the mobile device 120.
Referring to
The sensor platform 202 includes the sensor 204 and the sensor data managing apparatus 212. The sensor 204 may include various types of sensors used in various fields. For example, the sensor 204 may sense signals such as light, heat, pressure, vibration, electrical signals, biosignals, and the like. The sensor data managing apparatus 212 may receive sensor data from the sensor 204 and manage the sensor data before transmitting the sensor data to the sensor data analyzing apparatus 252. For example, the sensor 204 and the sensor data managing apparatus 212 may be physically connected or may be separated, and a connection between the sensor 204 and the sensor data managing apparatus 212 may be achieved via a wired or wireless scheme.
The sensor 204 includes a sensing unit 206, a sensor processor 208, and a sensor interface 210. The sensing unit 206 may receive various stimuli from the outside, and a form of the sensing unit 206 may vary based on the type of signal sensed from the outside. For example, if an external signal received by the sensing unit 206 relates to temperature, the sensing unit 206 may sense the temperature, and if the external signal relates to light, the sensing unit 206 may sense the light. The sensor processor 208 may generate data from the signal sensed by the sensing unit 206 to perform communication and computation. That is, a stimulus or signal from the outside is not transmitted or computed as is. For example, the sensor processor 208 may generate quantitative sensor data to represent the signal. The sensor interface 210 is a communication interface that is used to transmit the sensor data generated by the sensor 204 to the sensor data managing apparatus 212. The sensor interface 210 is connected to a device interface 214 of the sensor data managing apparatus 212. The interfaces may be in a wired or wireless form.
The sensor data managing apparatus 212 includes the device interface 214, a storage unit 216, a selector 218, a transmitter 220, a communication connection determiner 222, a network interface 224, a policy management unit 226, and a user interface 228.
The device interface 214 of the sensor data managing apparatus 212 is connected to the sensor interface 210 of the sensor 204 to receive the sensor data generated by the sensor 204 via a wired or wireless connection.
The storage unit 216 may store the sensor data. For example, the storage unit 216 may include a database for storing the sensor data. The storage unit 216 is connected to the communication connection determiner 222. If the communication connection determiner 222 determines that communication is disconnected, the storage unit 216 may store sensor data according to a storage policy by confirming the storage policy from the policy management unit 226. The storage policy may define sensor data to be stored based on at least one condition selected from the group consisting of a condition based on a sensor data value, a condition based on a time such as a time elapsed from when sensor data is generated or when communication is disconnected, a condition based on a sensor data amount, and a condition based on whether sensor data relates to a user's query. For example, suppose there are 10 pieces of data 1 to 10, and this 10-piece data set is called first data. If there is a storage policy for storing only data having a value equal to or less than 5, second data having 5 pieces of data such as 1 to 5 of the first data, may be newly defined. Thus, the storage policy may be used to store only data suitable for use in the sensor data analyzing apparatus 252, resulting in a decrease in an amount of data amount to be transmitted to the sensor data analyzing apparatus 252.
The selector 218 may check query information from the policy management unit 226 and select sensor data according to the query information, in response to the communication connection determiner 222 determining that communication has restarted. This is different from the storage unit 216 that may store only sensor data suitable for use in the sensor data analyzing apparatus 252. For example, while the storage unit 216 may store only sensor data matching a data range or condition suitable for use in the sensor data analyzing apparatus 252, the selector 218 may select sensor data to be used for the sensor data analyzing apparatus 252 to process a user request. In various examples, the selector may exclude some of the sensor data, for example, data that overlaps, and may select only some of the data to be transmitted to the data analyzing apparatus 252.
That is, while the selector 218 may select sensor data to be actually used to process a user request, the storage unit 216 may store only data in a form or range suitable for use in the sensor data analyzing apparatus 252 regardless of whether the stored data is actually used for information analysis in the sensor data analyzing apparatus 252. Sensor data to be used for the sensor data analyzing apparatus 252 to process a user request may vary according to query information.
The query information may include the definition of a query to define the user request and an allowable delay limit. As described in various examples, the delay limit refers to the maximum allowable amount of time that may elapse from a point in time at which the sensor data is generated to a time defined by the user as a selection criterion on whether sensor data is used to process the user request. In various examples, a type or contents of the query may vary according to the definition of the query, and a selection method may vary according to the type or contents of the query. Also, a value of the allowable delay limit may vary according to settings by the user.
Because only sensor data to be actually used to process the user request is selected by the selector 218, a sensor data amount may be reduced, resulting in a decrease in a sensor data amount to be transmitted. Although the selection of sensor data is performed after a communication restart in the current example, it should be appreciated that the selection may be performed before the communication restart.
The transmitter 220 may transmit the selected sensor data to the sensor data analyzing apparatus 252 based on a transmission policy from the policy management unit 226. The transmission policy indicates a method of transmitting the selected sensor data to the sensor data analyzing apparatus 252 in a form capable of being used by the sensor data analyzing apparatus 252. For example, the method may be a method of sequentially transmitting the selected sensor data from the first generated data or a method of transmitting the sensor data from sensor data in a window that has a shorter existence time than others. In this latter example, the existence time may be a time obtained by subtracting an age of a window (definitions of a window and an age of the window will be described later) from the allowable delay limit.
The communication connection determiner 222 may determine a communication connection state between the sensor platform 202, the sensor data managing apparatus 212, and the sensor data analyzing apparatus 252. The determination result may be checked by the storage unit 216, the selector 218, and the transmitter 220.
The network interface 224 may be used by the sensor data managing apparatus 212 to communicate with the sensor data analyzing apparatus 252. For example, the network interface 224 may be a network card. The network interface 224 of the sensor data managing apparatus 212 may be connected to a network interface 258 of the sensor data analyzing apparatus 252 and may be used to transmit selected data or receive data such as a storage policy, query information, or a transmission policy, from the sensor data analyzing apparatus 252. The network interface 224 may support low-power near field communication techniques, such as BLUETOOTH® and ZIGBEE®. The sensor platform 202 may communicate with a mobile device acting as a gateway to transmit sensor data to a high-performance computing device, such as a server, that is located far away from the sensor platform 202, by using low-power near field communication techniques. If a distance between the sensor platform 202 and the mobile device is farther than a distance that is supported by such a low-power near field communication technique, communication between the sensor platform 202 and the mobile device may be disconnected.
The policy management unit 226 may have the storage policy that is used by the storage unit 216, the query information used by the selector 218, and the transmission policy used by the transmitter 220 so that the storage unit 216, the selector 218, and the transmitter 220 may use the storage policy, the query information, and the transmission policy, respectively. The policy management unit 226 may include a database for managing the policies and the query information. The policies may be transmitted from the sensor data analyzing apparatus 252 based on input of a user through a user interface 254 of the sensor data analyzing apparatus 252 or input through the user interface 228 of the sensor data managing apparatus 212 of the sensor platform 202.
The user interface 228 may be used by the user to directly input information about the storage policy, the query information, and/or the transmission policy to the sensor data managing apparatus 212. For example, the storage policy, the query information, and the transmission policy may be input through the user interface 254 of the sensor data analyzing apparatus 252 or directly input by the user through the user interface 228 of the sensor data managing apparatus 212.
The sensor data analyzing apparatus 252 includes the user interface 254, a processor 256, the network interface 258, a query processor 260, and a database 262.
The user interface 254 may be used by users to input a storage policy, query information, and/or a transmission policy to be used by the storage unit 216, the selector 218, and the transmitter 220, respectively, as described above.
The processor 256 may process the information received from the user interface 254 and transmit and receive information to and from the network interface 258 and the query processor 260.
The network interface 258 may perform communication by being connected to the network interface 224 of the sensor data managing apparatus 212 as described above.
The query processor 260 may process a query of a user and may use sensor data stored in the database 262. For example, the query processor 260 may establish a query implementation plan, optimize the query implementation plan, and process the query according to the query implementation plan.
The database 262 may store sensor data received from the sensor data managing apparatus 212.
The sensor data managing method begins in response to the sensor data managing apparatus 212 receiving sensor data from the sensor 204.
In 302, the sensor data managing apparatus 212 checks a state of a communication connection with the sensor data analyzing apparatus 252. The communication connection state between the sensor platform 202 and the sensor data analyzing apparatus 252 may be an intermittent state in which communication is not continuous and is instead repeatedly disconnected and connected. Examples of reasons for disconnection include when a power source is turned off because of full discharge of a battery in the sensor data analyzing apparatus 252 or when a distance between the sensor platform 202 and the sensor data analyzing apparatus 252, such as a mobile device, is too far to communicate with each other through a low-power near field communication technique. Based on these considerations, the sensor data managing apparatus 212 may use a different method of managing sensor data received from the sensor 204 by determining whether communication has stopped due to a communication disconnection state between the sensor data managing apparatus 212 and the sensor data analyzing apparatus 252 or communication is performed due to a communication connection state therebetween.
If the apparatus 212 detects that communication between the sensor data managing apparatus 212 and the sensor data analyzing apparatus 252 is connected in 302, the sensor data managing apparatus 212 acquires sensor data received from the sensor 204 through the network interface 224, in 304, and transmits the sensor data to the sensor data analyzing apparatus 252, in 306. If it is determined that there is no more sensor data to be received, in 308, the sensor data managing apparatus 212 ends the method until sensor data is newly received from the sensor 204. As another example, if there is more sensor data to be received in 308, the sensor data managing apparatus 212 proceeds to 302 again to receive the sensor data.
Otherwise, if communication between the sensor data managing apparatus 212 and the sensor data analyzing apparatus 252 is disconnected, in 302, the sensor data managing apparatus 212 performs a storage mode in which sensor data received from the sensor 204 is stored as a new type of sensor data according to a storage policy, in 310. An example of the storage mode is shown in the flowchart of
In 402, the sensor data managing apparatus 212 checks a storage policy to determine whether sensor data is suitable for use in the sensor data analyzing apparatus 252. As described above, the storage policy may be used to define sensor data to be stored based on at least one selected condition from the group consisting of a condition based on a sensor data value, a condition based on a time, such as a time elapsed from when sensor data is generated or when communication is disconnected, a condition based on a sensor data amount, and a condition based on whether sensor data relates to a user's query.
In an example of the sensor platform 202 in the healthcare field, if the sensor 204 measures a body temperature of a human being every minute, the measured sensor data values may be temperature data values of about 36.5° C., which is the average body temperature. In this example, if a body temperature lower than 25° C. or higher than 50° C. is considered death, the condition based on a sensor data value may be a condition that body temperature data satisfies a value equal to or higher than 25° C. and equal to or lower than 50° C. The condition based on a time may be a condition that body temperature data satisfies a value within 60 minutes before a communication re-connection time in a case in which communication disconnection continues for 180 minutes by assuming that very old body temperature data is not suitable as a sensor data value, with reference to the example previously mentioned. Because the sensor 204 measures a body temperature of a human being every minute, to acquire 10 pieces of body temperature data, body temperature data within 10 minutes may be acquired by using the condition based on time. However, 10 pieces of lately measured body temperature data may also be acquired as adequate body temperature data by counting the number of pieces of body temperature data under the condition based on a sensor data amount. In a case of the condition based on whether sensor data relates to a user's query, if the contents of the query are to obtain a mean value of measured body temperatures, all of measured body temperature data satisfies this condition as sensor data related to the query. The above-described conditions may be combined and used. For example, only body temperature data satisfying both the condition that body temperature data satisfies a value equal to or higher than 25° C. and equal to or lower than 50° C. and the condition that body temperature data satisfies a value within 30 minutes before a communication reconnection time may be stored as new sensor data.
In 404, the sensor data managing apparatus 212 checks sensor data to which the storage policy is applied. Sensor data received from the sensor 204 may be the sensor data to which the storage policy is applied.
In 406, the sensor data managing apparatus 212 may store only sensor data satisfying a condition corresponding to the storage policy by checking that the sensor data received from the sensor 204 satisfies the condition.
Referring again to
In 502, the sensor data managing apparatus 212 checks whether sensor data exists in the storage unit 216. The storage unit 216 may have sensor data received from the sensor 204 or sensor data conforming to the storage policy. For example, no sensor data may exist in the storage unit 216 because no sensor data conforming to the storage policy may exist while performing the storage mode of 310. If no sensor data exists in the storage unit 216, there is no sensor data to be selected. Accordingly, the selection mode ends. Otherwise, if sensor data exists, the sensor data managing apparatus 212 proceeds to operation 504.
In 504, the sensor data managing apparatus 212 acquires and confirms query information, which is a criterion of the selection. The query information may include the definition of a query that is used to define a user requirement and an allowable delay limit.
In 506, the sensor data managing apparatus 212 analyzes the type and contents of a query from the definition of a query. This is performed because a selection performing mode of 508 varies based on the type and contents of a query. That is, the selection performing mode may be performed to be suitable for the type and contents of a query by analyzing the type and contents of a query. Hereinafter, for ease of understanding, a selection process performed in the selection performing mode is described in the case of a continuous query by which a single query corresponding to a user request is continuously repeated at each predetermined interval. It should be appreciated however that the selection performing mode according to the current example is not limited thereto.
In 508, the sensor data managing apparatus 212 performs the selection performing mode in which sensor data is selected. An example of a process and a result based on a continuous query are shown in and described with reference to
A query indicates a user request as described above, and a query window (hereinafter, window) indicates a basic unit of a sensor data set that is used to process each query in a continuous query. Referring to
In this example, a single window includes 10 pieces of data indicating a window size. The window size may vary according to the contents of a query. For example, the window size may be defined based on a time, a data amount, a data tuple, and the like.
An initial window indicates a first window for a query in a continuous query. That is, the initial window indicates a window including first generated data. Wa denotes the initial window in
A window start time indicates a generation time of first generated data in a window. In Wa of
Comparing a start time of an arbitrary window with a start time of a next window, there is a time difference of 3 pieces of data. If every single piece of data is generated at a one-minute interval, the generation of 3 pieces of data indicates a time lapse of 3 minutes, which is referred to as a slide time. Thus, the next window may be obtained by moving the arbitrary window by the slide time. Accordingly, a start time of an Nth window may be obtained using the start time of the initial window and the slide time as shown in Equation 1.
Start time of Nth window=start time of initial window+(slide count×slide time), wherein slide count=N−1 (1)
Referring to
A window end time indicates an end time of a single window, i.e., a generation time of last data in the window and may be obtained by Equation 2.
Window end time=window start time+(window size−1) (2)
Referring to
An age of a window indicates a time that has elapsed from a window end time indicating a generation time of the last sensor data in the window to a time defined by the user, i.e., a time delayed until the time defined by the user because data in the window was not transmitted to the sensor data analyzing apparatus 252 due to disconnection of communication. An age of a window may be obtained by Equation 3.
Window age=time defined by user−window end time (3).
A window age of the window Wa is obtained with reference to
In 602, each window for a continuous query is generated. This may be performed by searching for the first data and perceiving a window size and a slide time according to the contents of the query. Operation 602 is further described with reference to
In 604, a data selection is performed by comparing an age of each window with an allowable delay limit. As described above, the allowable delay limit indicates the maximum allowable amount of a time that may elapse from a point in time at which sensor data is generated to a time defined by the user. If an age of an arbitrary window is less than the allowable delay limit, all data included in the arbitrary window may be selected as data to be transmitted to the sensor data analyzing apparatus 252.
An example of the allowable delay limit is described further described herein. In this example, a user defines the allowable delay limit as 7 minutes from a present time (i.e., when the time defined by the user is the present time) as data to be transmitted and the user desires to obtain mean body temperature information for 10 minutes at every 3-minute interval, the allowable delay limit is 7 minutes. Here, because a single piece of data may be used in a plurality of windows, all data included in at least one window having a window age less than the allowable delay limit is selected as data to be transmitted to the sensor data analyzing apparatus 252.
In 606, if an age of each window is less than the allowable delay limit, all data included in a corresponding window is selected as data to be transmitted to the sensor data analyzing apparatus 252.
After the data selection process for the corresponding window is completed, it is determined in 608 whether any window for which the data selection process has not been performed exists. If any window for which the data selection process has not been performed exists, the sensor data managing apparatus 212 proceeds to operations 604 and 606 for a corresponding window, and if no window for which the data selection process has not been performed exists, the selection performing mode ends.
According to the example of
In this example, the 28th to 37th body temperature data are included in two or more windows, however, because they do not have to be transmitted more than once, the number of pieces of body temperature data actually selected to be transmitted to the sensor data analyzing apparatus 252 is 16 corresponding to the 25th to 40th body temperature data. That is, only 16 pieces of body temperature data are selected from the total of 40 pieces of body temperature data, resulting in an effect of reducing 60% of a transmission amount.
In this example, instead of transmitting ten pieces of body temperature data for each window Wi, Wj, and Wk, or a total of 30 pieces of data, the body temperature data is consolidated, and overlapping data is only transmitted once. As a result of the consolidation, 16 pieces of body temperature data are transmitted instead of 30.
In 510, because a plurality of queries for sensor data may exist, it is determined whether another query exists. If another query exists, the sensor data managing apparatus 212 proceeds to operation 506 to analyze the new query, and if no other queries exist, the selection performing mode ends.
Performing of the selection performing mode for a continuous query has been described with an illustration. In addition to the continuous query, in another example there is a type of a query for searching for an arbitrary data pattern. An example of the performing of the selection performing mode for this case will now be described briefly. A selection is performed by extracting data satisfying a given pattern within a predetermined time range or within a range of a predetermined number of pieces of data.
For example, assuming there is a query of searching for a pattern in which data having a value B appears after data having a value A, data may be sequentially checked from the first data to determine whether it has the value A, and it is checked from when the value A first appears whether the value B appears within the predetermined time range or within the range of a predetermined number of pieces of data. If the value B does not appear within the predetermined time range or within the range of a predetermined number of pieces of data, data immediately next to the data having the value A may be checked to determine whether the data has the value A. If it is found that the data has the value A, a check may be performed from when the value A appears to determine whether the value B appears within the predetermined time range or within the range of a predetermined number of pieces of data. This search process may be repeated.
If the value B appears within the predetermined time range or within the range of a predetermined number of pieces of data, a determination may be made as to whether a time elapsed from a generation time of the value B to the time defined by the user is less than the allowable delay limit. If the elapsed time is less than the allowable delay limit, all data from the data having the value A to the data having the value B may be selected as data to be transmitted. Otherwise, if the elapsed time is equal to or greater than the allowable delay limit, no data may be selected, and data immediately next to the latest data having the value A may be checked to determine whether the data has the value A. If it is found that the data has the value A, whether the value B appears within the predetermined time range or within the range of a predetermined number of pieces of data may be checked. If the value B appears within the predetermined time range or within the range of a predetermined number of pieces of data, it is determined through comparison with the allowable delay limit whether corresponding data is selected. That is, the selection performing mode may be performed according to attributes of a query.
Referring to
In 802, whether there is sensor data selected as data to be transmitted is determined. If no sensor data to be transmitted exists, there is no data to be transmitted, and the transmission mode ends. If sensor data to be transmitted exists, the sensor data managing apparatus 212 proceeds to 804.
In 804, the sensor data managing apparatus 212 checks a transmission policy by which the selected sensor data is transmitted to the sensor data analyzing apparatus 252 in a form used by the sensor data analyzing apparatus 252. As described above, the transmission policy may be the method of sequentially transmitting the selected sensor data from the first selected one or the method of transmitting the sensor data from sensor data in a window that has a shorter existence time than others.
In 806, the sensor data is transmitted according to the transmission policy. By transmitting all of the sensor data selected according to the transmission policy to the sensor data analyzing apparatus 252, the transmission mode ends. Then, in 308, it is determined whether sensor data has been further received from the sensor 204. If there is no more sensor data to be received, the sensor data managing apparatus 212 ends the process until sensor data is newly received from the sensor 204. Otherwise, if there is more sensor data to be received, the sensor data managing apparatus 212 proceeds to 302 again due to the received sensor data.
In 902, the user inputs query information through the user interface 254 of the sensor data analyzing apparatus 252. The user may also input a storage policy and/or a transmission policy.
In 904, the sensor data analyzing apparatus 252 transmits the query information input by the user to the sensor data managing apparatus 212 through the network interface 258. Accordingly, the sensor data managing apparatus 212 selects data to be transmitted as described above. If the storage policy and the transmission policy are also transmitted, data is stored and transmitted using the storage policy and the transmission policy in the storage mode and the transmission mode as described above.
In 906, when sensor data to be transmitted is selected by the sensor data managing apparatus 212 and transmitted to the sensor data analyzing apparatus 252, the sensor data analyzing apparatus 252 receives the sensor data.
In 908, the query processor 260 of the sensor data analyzing apparatus 252 analyzes the sensor data received from the sensor data managing apparatus 212 based on the query information input by the user to process a query of the user.
As described herein in various examples, the amount of sensor data to be transmitted may be reduced by selecting only some sensor data from among sensor data received from a sensor when communication restarts after disconnection, in consideration of the fact that transmission of the sensor data from a sensor platform to a sensor data analyzing apparatus is practically intermittent. Accordingly, a problem of rapidly increasing a load to the sensor platform and the sensor data analyzing apparatus and simultaneously rapidly consuming a battery by transmitting sensor data may be solved.
Program instructions to perform a method described herein, or one or more operations thereof, may be recorded, stored, or fixed in one or more computer-readable storage media. The program instructions may be implemented by a computer. For example, the computer may cause a processor to execute the program instructions. The media may include, alone or in combination with the program instructions, data files, data structures, and the like. Examples of computer-readable storage media include magnetic media, such as hard disks, floppy disks, and magnetic tape; optical media such as CD ROM disks and DVDs; magneto-optical media, such as optical disks; and hardware devices that are specially configured to store and perform program instructions, such as read-only memory (ROM), random access memory (RAM), flash memory, and the like. Examples of program instructions include machine code, such as produced by a compiler, and files containing higher level code that may be executed by the computer using an interpreter. The program instructions, that is, software, may be distributed over network coupled computer systems so that the software is stored and executed in a distributed fashion. For example, the software and data may be stored by one or more computer readable storage mediums. Also, functional programs, codes, and code segments for accomplishing the example embodiments disclosed herein can be easily construed by programmers skilled in the art to which the embodiments pertain based on and using the flow diagrams and block diagrams of the figures and their corresponding descriptions as provided herein. Also, the described unit to perform an operation or a method may be hardware, software, or some combination of hardware and software. For example, the unit may be a software package running on a computer or the computer on which that software is running.
As a non-exhaustive illustration only, a terminal/mobile device described herein may refer to mobile devices such as a cellular phone, a personal digital assistant (PDA), a digital camera, a portable game console, and an MP3 player, a portable/personal multimedia player (PMP), a handheld e-book, a portable lab-top PC, a global positioning system (GPS) navigation, a tablet, a sensor, and devices such as a desktop PC, a high definition television (HDTV), an optical disc player, a setup box, a home appliance, and the like that are capable of wireless communication or network communication consistent with that which is disclosed herein.
A computing system or a computer may include a microprocessor that is electrically connected with a bus, a user interface, and a memory controller. It may further include a flash memory device. The flash memory device may store N-bit data via the memory controller. The N-bit data is processed or will be processed by the microprocessor and N may be 1 or an integer greater than 1. Where the computing system or computer is a mobile apparatus, a battery may be additionally provided to supply operation voltage of the computing system or computer. It will be apparent to those of ordinary skill in the art that the computing system or computer may further include an application chipset, a camera image processor (CIS), a mobile Dynamic Random Access Memory (DRAM), and the like. The memory controller and the flash memory device may constitute a solid state drive/disk (SSD) that uses a non-volatile memory to store data.
A number of examples have been described above. Nevertheless, it will be understood that various modifications may be made. For example, suitable results may be achieved if the described techniques are performed in a different order and/or if components in a described system, architecture, device, or circuit are combined in a different manner and/or replaced or supplemented by other components or their equivalents. Accordingly, other implementations are within the scope of the following claims.
Number | Date | Country | Kind |
---|---|---|---|
10-2011-0025401 | Mar 2011 | KR | national |
Number | Name | Date | Kind |
---|---|---|---|
6239707 | Park | May 2001 | B1 |
6584376 | Van Kommer | Jun 2003 | B1 |
7429914 | Carlson | Sep 2008 | B2 |
7471995 | Robinson | Dec 2008 | B1 |
8217828 | Kirk | Jul 2012 | B2 |
20010014914 | Muramatsu et al. | Aug 2001 | A1 |
20020148477 | Kwoen | Oct 2002 | A1 |
20030100983 | Bullinger | May 2003 | A1 |
20030220821 | Walter et al. | Nov 2003 | A1 |
20040139385 | Sakaue | Jul 2004 | A1 |
20040158376 | Knueppel | Aug 2004 | A1 |
20050130671 | Frank | Jun 2005 | A1 |
20050208969 | Kwoen | Sep 2005 | A1 |
20050222933 | Wesby | Oct 2005 | A1 |
20050256956 | Littlefield | Nov 2005 | A1 |
20050273219 | Kitao | Dec 2005 | A1 |
20060207941 | Morikawa | Sep 2006 | A1 |
20070168332 | Bussard | Jul 2007 | A1 |
20070266117 | Pomies | Nov 2007 | A1 |
20080016095 | Bhatnagar | Jan 2008 | A1 |
20080123605 | Cho | May 2008 | A1 |
20080176713 | Olivera Brizzio | Jul 2008 | A1 |
20080319666 | Petrov | Dec 2008 | A1 |
20090042518 | Ido | Feb 2009 | A1 |
20090055465 | DePue et al. | Feb 2009 | A1 |
20090112853 | Nishizawa | Apr 2009 | A1 |
20090150560 | Bestgen et al. | Jun 2009 | A1 |
20090177145 | Ohlander et al. | Jul 2009 | A1 |
20090300525 | Jolliff | Dec 2009 | A1 |
20100049006 | Magar | Feb 2010 | A1 |
20100238801 | Smith et al. | Sep 2010 | A1 |
20100328143 | Kirk | Dec 2010 | A1 |
20130300578 | Uchida | Nov 2013 | A1 |
Number | Date | Country |
---|---|---|
1997-0013822 | Mar 1997 | KR |
10-2008-0041911 | May 2008 | KR |
10-2009-0049757 | May 2009 | KR |
Entry |
---|
Wei, Mingzhu, et al. “Supporting a spectrum of out-of-order event processing technologies: from aggressive to conservative methodologies.” Proceedings of the 2009 ACM SIGMOD International Conference on Management of data. ACM (2009): 1031-1033. |
Krishnamurthy, Sailesh, et al. “Continuous analytics over discontinuous streams.” Proceedings of the 2010 ACM SIGMOD International Conference on Management of data. ACM (2010) (12 pages in English). |
Number | Date | Country | |
---|---|---|---|
20120246261 A1 | Sep 2012 | US |