Monitoring sensor data using expiring hashes
The use of locality-sensitive hashes and significance values in a trusted execution environment addresses data protection constraints in automated sensor monitoring systems, enabling secure and efficient data comparison and alert generation without storing raw data, thus enhancing data protection and system deployment.
Patent Information
- Application Number
- GB2022010027
- Authority / Receiving Office
- GB · GB
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2022-07-08
- Publication Date
- 2024-10-23
- Estimated Expiration
- 2042-07-08
Smart Images

Figure 00000001_0000 
Figure 00000002_0000 
Figure 00000002_0001
Abstract
Description
The present techniques relate to monitoring sensor data and in particular to comparing locality-sensitive expiring hashes generated on the basis of the sensor data. Advancements in sensor technology and in the processing of sensor data generated by sensors mean that automated systems for monitoring sensor data may be provided, in which comparisons between previously gathered sensor data and “live” sensor data can also be automated to provide useful information to the users or owners of those systems. For example, an area may be monitored by cameras directed to record images of the area and object recognition technology can be employed to categorise and identify objects which appear in the area. Subsequently appropriate reporting on the basis of the objects recognised can be generated and thus such systems may be used, for example, as security enhancements. Nevertheless, in parallel to such technological developments, requirements for data protection are also now commonplace, such that - taking the above example of the camera-monitored area -data representing images of individuals who pass through the monitored area must be carefully stored and managed, so that access to such data is not available to unauthorised individuals and such data cannot be distributed in an unrestricted manner. Accordingly, these data protection requirements can significantly constrain the extent to which automated systems for monitoring sensor data can be deployed. At least some examples described herein provide an apparatus comprising: a sensor data processing unit arranged to generate a locality-sensitive hash from sensor data captured from an environment; hash storage arranged to store hashes generated by the sensor data processing unit, wherein each of the hashes is stored in association with a significance value, wherein the hash storage is arranged to periodically decrease the significance values; and a hash comparison unit arranged to generate a similarity metric for the localitysensitive hash with respect to the hashes stored in the hash storage, wherein when the similarity metric for the locality-sensitive hash with respect to a similar hash stored in the hash storage exceeds a similarity threshold the hash comparison unit is arranged to increase the significance value stored in association with the similar hash, and wherein the hash comparison unit is responsive to the significance value stored in association with the similar hash exceeding an alert threshold to cause an alert signal to be generated. At least some examples described herein provide a method of monitoring an environment comprising the steps of: receiving sensor data captured from the environment; generating a locality-sensitive hash from the sensor data; storing in a hash storage hashes generated by the generating step, wherein each of the hashes is stored in association with a significance value; periodically decreasing the significance values; generating a similarity metric for the locality-sensitive hash with respect to the hashes stored in the hash storage; when the similarity metric for the locality-sensitive hash with respect to a similar hash stored in the hash storage exceeds a similarity threshold, increasing the significance value stored in association with the similar hash, and when the significance value stored in association with the similar hash exceeds an alert threshold, causing an alert signal to be generated. The present techniques will be described further, by way of example only, with reference to embodiments thereof as illustrated in the accompanying drawings, to be read in conjunction with the following description, in which: Figure 1 schematically illustrates an example apparatus comprising a number of sensors providing sensor data, on the basis of which hashes are generated and compared with previously stored hashes in accordance with some examples; Figure 2A shows an example format in which hash values and associated significance values may be stored in accordance with some examples; Figure 2B shows an example format in which hash values, significance values, and time stamps may be stored in accordance with some examples; Figure 3 schematically illustrates an example apparatus which generates hashes and compares these with previously stored hashes on the basis of sensor data, in which the hashes are encrypted in accordance with some examples; Figure 4A schematically illustrates an example apparatus which generates hashes on the basis of sensor data, wherein the hash generation also uses a randomly generated salt value in accordance with some examples; Figure 4B shows an example format in which hash values, salts, significance values, and time stamps may be stored in accordance with some examples; Figure 5A schematically illustrates an example apparatus which employs a convolutional neural network in order to identify objects in accordance with some examples; Figure 5B schematically illustrates an example apparatus in which sensor data and generated hashes are protected within a trusted execution environment in accordance with some examples; Figure 6A schematically illustrates an example deployment of the present techniques in association with an automobile; Figure 6B schematically illustrates an example deployment of the present techniques in association with an area adjacent to a building; Figure 6C schematically illustrates an example deployment of the present techniques in association with the interior of a building; and Figure 7 is a flow diagram showing a sequence of steps which are taken when generating hashes on the basis of sensor data and comparing the hashes with previously stored hashes in accordance with some examples. In one example herein there is an apparatus comprising: a sensor data processing unit arranged to generate a locality-sensitive hash from sensor data captured from an environment; hash storage arranged to store hashes generated by the sensor data processing unit, wherein each of the hashes is stored in association with a significance value, wherein the hash storage is arranged to periodically decrease the significance values; and a hash comparison unit arranged to generate a similarity metric for the localitysensitive hash with respect to the hashes stored in the hash storage, wherein when the similarity metric for the locality-sensitive hash with respect to a similar hash stored in the hash storage exceeds a similarity threshold the hash comparison unit is arranged to increase the significance value stored in association with the similar hash, and wherein the hash comparison unit is responsive to the significance value stored in association with the similar hash exceeding an alert threshold to cause an alert signal to be generated. The apparatus generates hashes on the basis of received sensor data which has been captured by at least one sensor, where these hashes are locality-sensitive, i.e. two separate sets of sensor data which are determined to be similar to one another result in similar or indeed identical hashes. Conversely, the similarity of a given set of sensor data to previously encountered sets of sensor data can be quantified by the similarity of their respective hashes. On the one hand, where the apparatus store hashes which it generates in a hash storage, this therefore enables the apparatus to perform a comparison for a newly generated hash generated on the basis of some new sensor data and thereby to determine whether this new sensor data resembles previously gathered sensor data. Moreover, when such similarity is established, a significance value stored in association with the previously stored similar hash is increased, providing a metric for the frequency of observation or relevance of the relevant sensor data. When the similarity metric crosses a defined threshold, an alert signal is generated signifying that this, or a sufficiently similar, set of sensor data has been observed sufficiently frequently in the recent past that a corresponding notification (the various purposes of which are discussed in more detail later herein) is generated. One the other hand, the hash storage is also arranged periodically to decrease the significance values it stores, such that a stored hash based on an observed set of sensor data incrementally expires. In consequence, only hash data (rather than any sensor data) need be stored in the system, which provides a significant degree of anonymization (rather than, say storing raw data representing camera images of individuals), and moreover the expiration of the hash data means that any given observed set of sensor data is “forgotten” after a predetermined time. In some examples, when the similarity metric for the locality-sensitive hash with respect to each of the hashes stored hash storage does not exceed the similarity threshold the hash comparison unit is arranged to cause the locality-sensitive hash to be stored in the hash storage. Accordingly, a “new” observation, in the form of a set of sensor data which has not been previously observed, can in this way have its hash recorded in the hash storage, such that subsequent sets of sensor data can have their hashes compared against it. A range of steps may be taken to protect the data handled by the apparatus. In some examples the hash storage is arranged to store the hashes in an encrypted format. In some examples the apparatus further comprises a trusted execution environment, wherein at least the sensor data and the hash storage are comprised within the trusted execution environment, such that access to the sensor data and the hashes is restricted to privileged processes executing within the trusted execution environment. Accordingly, it becomes essentially impossible for an external agent to access any of the potentially sensitive data handled by the apparatus. Where the hashes are arranged to expire via the mechanism of periodically decreasing associated significance values, further steps may be taken even to remove certain outdated hashes from the hash storage. In some examples, the hash storage is arranged to remove the hashes from the hash storage after a predetermined storage period has elapsed. In some examples, the hash storage is arranged to remove an expired hash from the hash storage when a significance value for the expired hash falls below a discard threshold. Further steps may also be taken to enhance the security of the hashes generated on the basis of the sensor data. In some examples the apparatus further comprises a salt value generation unit arranged to generate a salt value according to a randomisation process, wherein the sensor data processing unit is arranged to generate the localitysensitive hash from a combination of the sensor data and the salt value, and the hash storage is arranged to store each of the hashes in association with its salt value. When a salt value is used in this manner, given that the salt value is required in order to access the stored hash, this provides another mechanism by which hash values can be expired and hence in some examples the hash storage is arranged to remove the salt value associated with the expired hash from the hash storage when the significance value for the expired hash falls below a discard threshold. The alert signal may take a wide variety of forms, where the particular form taken depends on the particular application of the present techniques, and hence in some examples the alert signal causes the sensor data, from which the localitysensitive hash generated the similarity metric which exceeded the similarity threshold, to be at least one of: presented to a user of the apparatus; and / or stored in a sensor data store for later presentation to the user of the apparatus. The generation of the locality-sensitive hash on the basis of the captured sensor data may be variously configured. In particular, a set of sensor data used to generate the hash may be data from a single sensor or from plural sensors. Moreover, the set of sensor data used to generate the hash may be a snapshot of the data provided by one or more sensors at a given moment in time or may be data representative of an extended period of time. Accordingly, in some examples the sensor data processing unit is arranged to generate the locality-sensitive hash from a sequence of captured sensor data. The sensor or sensors providing the sensor data may take a great variety of forms and the present techniques are not limited to application with any particular types of sensor. In some examples the sensor data comprises data captured by at least one of: at least one camera; at least one audio sensor; at least one lidar sensor; at least one radar sensor; and / or at least one sonar sensor. Whilst the hash generation may be applied relatively directly to the data received from at least one sensor, further processing of the data received may also be employed before the hash generation. This further processing may take various forms and in some examples the sensor data processing unit further comprises an object identification unit arranged to identify objects in the environment around the apparatus, and wherein the sensor data processing unit is arranged to generate the localitysensitive hash for each object identified. In some examples the object identification unit comprises a convolutional neural network. Furthermore, when such object identification processing is carried out, the apparatus can be configured to respond to different objects in different ways, and in particular to group objects by type for the purpose of defining its response. In some examples the object identification unit is arranged to categorise the objects identified and to cause the hash comparison unit arranged to prioritise comparison of at least one category of objects when generating similarity metrics. The comparison between hashes may be carried out in a variety of ways. In some examples the hash comparison unit is arranged to generate the similarity metric for the locality-sensitive hash with respect to the hashes stored in the hash storage on a basis of Hamming distances between the locality-sensitive hash and the hashes. The apparatus may be deployed in a wide variety of applications. In some examples the apparatus is arranged to form a static part of a static structure. In some examples the static structure is a building and the environment around the apparatus comprises an interior or an exterior of the building. In some examples the apparatus is provided as part of an automobile. In one example herein there is a method of monitoring an environment comprising the steps of: receiving sensor data captured from the environment; generating a locality-sensitive hash from the sensor data; storing in a hash storage hashes generated by the generating step, wherein each of the hashes is stored in association with a significance value; periodically decreasing the significance values; generating a similarity metric for the locality-sensitive hash with respect to the hashes stored in the hash storage; when the similarity metric for the locality-sensitive hash with respect to a similar hash stored in the hash storage exceeds a similarity threshold, increasing the significance value stored in association with the similar hash, and when the significance value stored in association with the similar hash exceeds an alert threshold, causing an alert signal to be generated. Some particular embodiments are now described with reference to the figures. Figure 1 schematically illustrates an example apparatus 10 comprising a number of sensors 11, 12, 13, 14 which provide sensor data, on the basis of which hashes are generated and compared with previously stored hashes in accordance with some examples. The apparatus 10 could take a wide variety of forms in the present techniques are not limited to any particular application context. To give just a few exemplary situations in which the present techniques might be employed, and the apparatus 10 may represent, form part of, or be provided in association with a mobile item such as an automobile or a static item such as a building. The one or more sensors 11, 12, 13, 14 may be consider as forming part of the apparatus 10, or may be separate devices merely providing inputs to the apparatus, and can take a wide variety of forms as applicable to the particular context in which the apparatus is deployed. Example sensors which are contemplated comprise cameras, audio sensors, lidar sensors, radar sensors, and sonar sensor. However, any other kind of sensor which is capable of generating sensor data from which a hash value can be generated could be employed. The sensors may also be all of the same type or may be a heterogeneous group of different types of sensor. The output of the sensors is passed to the sensor data processing unit 15, which performs a signal processing in order to generate suitable basis signals for hash generation. The output of the sensor data processing unit 15 is passed to the hash compare and update unit 16 which generates hash values on the basis of the signals it receives. In addition, the hash compare and update unit 16 is arranged to compare are generated hash value with any hash values which have previously been stored in the hash storage 17. Initially, e.g. when the apparatus first starts working, the hash storage is empty and a new set of sensor data results in the generation of a new hash value, which is stored in hash storage 17. Thereafter, when a further set of sensor data is gathered and a corresponding hash value is generated, the hash compare and update unit 16 compares the newly generated hash with any hash values which have been previously stored in the hash storage 17. The hash values generated in a locality-sensitive manner, that is such that similar sets of sensor data will result in similar, or indeed identical, hash values. The comparison of hash values may be performed by determining a Hamming distance between two hash values. Various thresholds are defined for the operation of the hash compare and update unit 16. When the comparison between a generated hash value and one of the hash value stored in the hash storage 17 exceeds a given similarity threshold, a significance value stored in association with the relevant hash value in the hash storage 17 is increased. Conversely when the comparison between generated hash value and each of the hash values stored in the hash storage 17 does not exceed a predetermined difference threshold, the set of sensor data which has resulted in the generated hash value is determined to be previously unseen, and the newly generated hash value is caused to be stored in the hash storage 17. Accordingly, as a general principle of operation of the hash storage 17, new combinations of sensor data which result in hash values which are sufficiently different to any existing content of the hash storage 17, cause their hash values to be newly stored in the hash storage 17, whilst combinations of sensor data which result in hash values which are sufficiently similar to existing content of the hash storage 17, cause the respective significance values of those existing hash values to be increased. The significance values of all hash values stored in the hash storage 17 are periodically decreased, meaning that a hash value stored in the hash storage 17, for which no further similar hashes are generated, will have its significance value further and further decreased. The hash compare and update unit 16 monitors the significance values stored in the hash storage 17. If a significance value rises above a predetermined alert threshold, the hash compare and update unit 16 generates an alert signal 18. This alert signal 18 may take a variety of forms and indeed may simply comprise the recording of a corresponding data item to log the event, or may comprise the generation of an explicit user directed signal in order to inform a user that the predetermined alert threshold has been exceeded, i.e. that a set of sensor data has been sufficiently frequently observed that user notification of this fact has been triggered. Figure 2A shows an example format in which hash values and associated significance values may be stored in accordance with some examples. As shown, each hash value is stored in association with a significance value. As mentioned above, the significance values stored in the hash storage are monitored (e.g. by the hash compare and update unit 16 or by control circuitry associated with the hash storage 17 itself) and a significance value which exceeds an alert threshold causes a corresponding alert signal to be generated. Conversely, the expiration of stored hash values can also be administered with reference to the significance values stored, in that when a significance value falls below a predetermined expiration threshold, the corresponding hash value (and its significance value) can then be deleted from the hash storage. Figure 2B shows an example format in which hash values, significance values, and timestamps may be stored in accordance with some examples. Accordingly, in addition to the significance value the hash storage can be arranged to also store a timestamp in association with a stored hash value. The above described monitoring and administration of the significance values can also be carried out with respect to the Figure 2B example and in addition the timestamp value can also be monitored, whereby a maximum storage period is defined and hash values which have been stored in the hash storage for that maximum storage period are automatically deleted. The deletion criteria may also reference both the significance value and the timestamp, such that hash values with higher significance values are retained for longer than hash values with lower significance values. Figure 3 schematically illustrates an example apparatus 20 which generates hashes and compares these with previously stored hashes on the basis of sensor data, in which the hashes are encrypted in accordance with some examples. The schematic illustration of Figure 3 only shows one sensor 21, but this is merely for the purpose of clarity of illustration. An arbitrary number of sensors may be provided and these may form part of the apparatus or merely provide an input to it. The output of the sensor 21 is passed to a sensor data recording unit 22, which buffers and processes the received signals. The hash generation unit 23 is arranged to generate a hash value on the basis of the processed signals provided to it from the sensor data recording unit 22. These processed signals may represent a relatively instantaneous snapshot of what the sensor has recorded or alternatively may represent a time sequence of sensor data providing a set of data representing an evolution of the sensor’s observation. A hash value generated by the hash generation unit 23 is then passed to the hash compare and update unit 24, which in the manner described above can either cause the hash value to be newly stored in the hash storage 25 (when it does not correspond to an existing stored hash) or can cause the significance value associated with a previously stored hash value to be increased (when the two hash values are sufficiently similar). Additionally, the hash compare and update unit 24 has access to an encryption function 26 and the hash values stored in the hash storage 25 are encrypted by means of the encryption function 26. The example configuration of Figure 4 is shown to provide explicit hash storage administration circuitry 27, which is arranged to monitor the content of the hash storage 25. Thus the hash storage administration circuitry 27 provides the above-described administration functions, in particular relating to the managed expiration of the stored hash values. For this purpose, the hash storage administration circuitry makes reference to a defined expiry period 28. The hash values stored in hash storage 25 are therefore stored in association with a timestamp indicative of when they were first stored, in the manner illustrated in Figure 2B. The hash compare and update circuitry 24 determines whether a calculated similarity between a newly generated hash value and a previously stored hash value results in the similarity value associated with the previously stored hash value exceeding a predetermined alert threshold. When this occurs, the hash compare and update circuitry 24 passes are signalled to the alert control circuitry 29. In the example configuration shown in Figure 3 the apparatus 20 is arranged such that the output of the sensor data recording unit 22 is also passed to the alert control circuitry 29. In this way, when a newly generated hash value causes the predetermined alert threshold to be exceeded, the alert control circuitry 29 can generate a user alert, but in additional or alternatively can also cause the corresponding processed sensor data to be provided as sensor data for presentation 30. The sensor data for presentation 30 may directly provide the sensor data in a format for immediate user consumption, such as by display on a screen, or may take the form of storage, whereby sensor data which has thus been determined to be of user interest is stored, such that a user can later review one or more instances of sensor data which have caused the predetermined alert threshold to be exceeded. Figure 4A schematically illustrates an example apparatus 40 which generates hashes on the basis of sensor data, wherein the hash generation also uses a randomly generated salt value in accordance with some examples. The sensor data processing unit 41 receives the sensor data generated by one or more sensors. The hash generation functionality 42 of the sensor data processing unit 41 is arranged not only to receive the sensor data, but for each set of sensor data for which a hash value is to be generated a random salt value is generated by the random salt generation value 43. The set of sensor data and the generated random salt value are combined by the combination circuitry 44 to provide the input for the hash generation circuitry 42. The generated hash value as well as the salt value are passed to the hash compare and update circuitry 45. The comparison of hash values with previously stored hash values in the hash storage 46 takes place in accordance with any of the above described examples, although of course further taking the salt value into account. The use of salt values as part of the technique means that the generated hashes are not comparable among different systems (i.e. data within each apparatus provided is unique), mitigating against ethical concerns relating to the capturing of data which potentially includes e.g. images of individuals. Figure 4B shows an example format in which hash values, salts, significance values, and timestamps may be stored in accordance with some examples. The use of salt values in association with generated hash values and their storage in associated with saved hash values is a technique with which the person of ordinary skill in the art is familiar. Two possible techniques for implementing perceptual hashing with salts as described herein are: (1) Bloom filters, as a way to achieve a hash that is both perceptual and that can be easily encrypted (see for example: Uwe Breidenbach, Martin Steinebach, and Huajian Liu, 2020, Privacy-enhanced robust image hashing with bloom filters. In Proceedings of the 15th International Conference on Availability, Reliability and Security (ARES '20). Association for Computing Machinery, New York, NY, USA, Article 56, 1-10. DOI: https: / / doi.ore / 10.1145 / 3407023.3409212) and (2) more modern deep learning architectures, which can be adapted to the present implementations (e.g. by training with salted images while applying a contrastive loss to put images created with a different salt separated in the latent space, but keeping the other properties for comparison within the same salt) (see JIN Guoqing, ZHANG Yongdong, LU Ke, Deep Hashing Based on VAE-GAN for Efficient Similarity Retrieval, Chinese Journal of Electronics, 2019, 28(6): 1191-1197. DOI: https: / / doi.org. / 10.1049 / cje.2019.08.001). Figure 5A schematically illustrates an example apparatus 50 which employs a convolutional neural network in order to identify objects in accordance with some examples. As shown, the sensor data (from one or more sensors) is received by a sensor data processing unit 51, which comprises a convolutional neural network 53. The convolutional neural network 53 has been trained to identify certain objects. It should be appreciated that in this context “objects” is used in a broad sense and accordingly whilst in some examples this could refer to physical objects which appear in the field of view of an imaging camera, a radar / lidar detector and so on, in other examples, such as those making use of acoustic sensors, these “objects” could represent coherent entities to which certain sets of sensor data (e.g. sound patterns) are attributed. The objects identified 54 are passed to an object categorisation and prioritisation unit 55, which is configured to categorise the identified objects by type, and to prioritise them on the basis of the allocated type. For example, in a configuration in which the apparatus is provided with one or more cameras observing a particular area (e.g. the immediate vicinity of a parked automobile), and where the object identification and categorisation is trained to distinguish humans from domestic pets, the prioritisation function could be configured to prioritise the identified humans over the identified domestic pets (on the basis that some humans could pose a security threat to the parked automobile, but domestic pets are considered to pose only a low threat or no threat at all). The sensor data relating to the prioritised objects is then passed by the sensor data processing unit 51 to the hash generation circuitry 52, which generates corresponding hash values in the manner described elsewhere herein. Figure 5B schematically illustrates an example apparatus 60 in which sensor data and generated hashes are protected within a trusted execution environment in accordance with some examples. The apparatus 60 can be seen to comprise two zones or environments, a first, trusted environment 61 and a second, non-trusted environment 62. This division of the apparatus into these two environments may be variously achieved, but the example illustrated in Figure 5B is contemplated in the context of the TrustZone® technology provided by Arm® Limited, Cambridge, UK. This arrangement isolates data and data processing which needs to be protected in the trusted environment 61, whilst allowing greater access and imposing fewer security constraints on the non-trusted environment 62. In the present context, this involves the sensor data storage 63, the hash generation, comparison and update circuitry 64, and hash storage 65 being comprised within the trusted environment 61, whilst other processing circuitry 66 and other storage 67 is comprised within the non-trusted environment 62. This arrangement provides a high degree of security for the sensor data gathered, the hashes generated in dependence thereon, and any directly associated data processing, such that it cannot be accessed by non-trusted agents. The present techniques can be applied is a wide range of environments. Figures 6A-6C show just three exemplary implementations. Figure 6A schematically illustrates an example deployment of the present techniques in association with an automobile 70. As shown a set of sensors 71 is mounted on the roof of the automobile and provide sensor data indicative of the immediate vicinity. The sensor data is passed to an apparatus 72 provided within the automobile 70, which performs the hash generation, hash comparison, and alert generation functions described herein. The alert system may be integrated with the displays provided within the automobile, such that for example, if the automobile has generated an alert whilst the automobile has been parked, this information, perhaps along with a corresponding image taken from the sensors 71, is shown to the user when then enter the automobile to start using it. Figure 6B schematically illustrates an example deployment of the present techniques in association with an area adjacent to a building 75. An example sensor 76, such as a security camera, is shown mounted near the roofline of the building and passes the data it generates to an apparatus 77 within the building 75. The nearby area, for example the area close to the door of the building, can thereby be monitored. Figure 6C schematically illustrates an example deployment of the present techniques in association with the interior of a building 80. In this example, two sensors 82 are directed to survey the interior space 81 of the building. The sensors 82 pass the data they generate to an apparatus 83 within the building 80. It will be appreciated that although these examples relate to automotives and buildings, the present techniques are not limited to these domains. Any system that monitors various entities via a number of sensor inputs and aims to segment them out in order to identify entities of interest can benefit from the described techniques. Further examples include, but are not limited to: the anonymous identification of distress and / or loss patterns in people's behaviour; the monitoring of returning animals in local environments to identify breeding / nesting patterns; the monitoring pupil behaviour in large schools to counter bullying; and the identification of irregularities in large, automated warehouses. Figure 7 is a flow diagram showing a sequence of steps which are taken when generating hashes on the basis of sensor data and comparing the hashes with previously stored hashes in accordance with some examples. The flow can be considered to begin at step 100 which shows the capturing of sensor data from the environment. Next at step 101a locality-sensitive hash is generated from the captured sensor data. This generated hashes then compared against any previously stored hash values and at step 102 a similarity metric for the newly generated hash is generated with respect to the stored hashes. At step 103 it is determined if this similarity metric exceeds a defined similarity threshold. When it does the flow proceeds to step 104 where a significance value for the matching hash in the hash storage is increased. Then at step 105 it is determined if the significance value has now exceeded a defined alert threshold. When it does the flow proceeds to step 106 where an alert is generated. Returning to a consideration of step 103, if the newly generated hash does not result in a similarity metric which exceeds the similarity threshold, then the flow proceeds to step 107 at which the node newly generated hash is itself stored in hash storage. From either step 106 or step 107 a subsequent step 108, 109 decreases the significance of all stored significances and the flow returns to step 100. In brief overall summary, apparatuses and methods for monitoring sensor data are provided. Sensor data is captured from an environment and a locality-sensitive hash is generated from the sensor data. Hashes which have been generated are stored in association with a significance value, which periodically decrease. A similarity metric is generated for the locality-sensitive hash with respect to the hashes stored in the hash storage and when it exceeds a similarity threshold the significance value stored in association with the similar hash is increased. When the significance value stored in association with the similar hash exceeds an alert threshold an alert signal is generated. In the present application, the words “configured to...” are used to mean that an element of an apparatus has a configuration able to carry out the defined operation. In this context, a “configuration” means an arrangement or manner of interconnection of hardware or software. For example, the apparatus may have dedicated hardware which provides the defined operation, or a processor or other processing device may be programmed to perform the function. “Configured to” does not imply that the apparatus element needs to be changed in any way in order to provide the defined operation. Although illustrative embodiments have been described in detail herein with reference to the accompanying drawings, it is to be understood that the invention is not limited to those precise embodiments, and that various changes, additions and modifications can be effected therein by one skilled in the art without departing from 5 the scope of the invention as defined by the appended claims. For example, various combinations of the features of the dependent claims could be made with the features of the independent claims without departing from the scope of the present invention. 10
Claims
1. Apparatus comprising:a sensor data processing unit arranged to generate a locality-sensitive hash from sensor data captured from an environment;hash storage arranged to store hashes generated by the sensor data processing unit, wherein each of the hashes is stored in association with a significance value, wherein the hash storage is arranged to periodically decrease the significance values; anda hash comparison unit arranged to generate a similarity metric for the localitysensitive hash with respect to the hashes stored in the hash storage,wherein when the similarity metric for the locality-sensitive hash with respect to a similar hash stored in the hash storage exceeds a similarity threshold the hash comparison unit is arranged to increase the significance value stored in association with the similar hash, andwherein the hash comparison unit is responsive to the significance value stored in association with the similar hash exceeding an alert threshold to cause an alert signal to be generated.
2. The apparatus as claimed in claim 1, wherein when the similarity metric for the locality-sensitive hash with respect to each of the hashes stored hash storage does not exceed the similarity threshold the hash comparison unit is arranged to cause the locality-sensitive hash to be stored in the hash storage.
3. The apparatus as claimed in claim 1 or claim 2, wherein the hash storage is arranged to store the hashes in an encrypted format.
4. The apparatus as claimed in any preceding claim, further comprising a trusted execution environment, wherein at least the sensor data and the hash storage are comprised within the trusted execution environment, such that access to the sensor data and the hashes is restricted to privileged processes executing within the trusted execution environment.
5. The apparatus as claimed in any preceding claim, wherein the hash storage is arranged to remove the hashes from the hash storage after a predetermined storage period has elapsed.
6. The apparatus as claimed in any preceding claim, wherein the hash storage is arranged to remove an expired hash from the hash storage when a significance value for the expired hash falls below a discard threshold.
7. The apparatus as claimed in any preceding claim, further comprising a salt value generation unit arranged to generate a salt value according to a randomisation process,wherein the sensor data processing unit is arranged to generate the localitysensitive hash from a combination of the sensor data and the salt value,and the hash storage is arranged to store each of the hashes in association with its salt value.
8. The apparatus as claimed in any claim, when dependent on claim 6, wherein the hash storage is arranged to remove the salt value associated with the expired hash from the hash storage when the significance value for the expired hash falls below a discard threshold.
9. The apparatus as claimed in any preceding claim, wherein the alert signal causes the sensor data, from which the locality-sensitive hash generated the similarity metric which exceeded the similarity threshold, to be at least one of:presented to a user of the apparatus; and / orstored in a sensor data store for later presentation to the user of the apparatus.
10. The apparatus as claimed in any preceding claim, wherein the sensor data processing unit is arranged to generate the locality-sensitive hash from a sequence of captured sensor data.
11. The apparatus as claimed in any preceding claim, wherein the sensor data comprises data captured by at least one of:at least one camera;at least one audio sensor;at least one lidar sensor;at least one radar sensor; and / or at least one sonar sensor.
12. The apparatus as claimed in any preceding claim, wherein the sensor data processing unit further comprises an object identification unit arranged to identify objects in the environment around the apparatus,and wherein the sensor data processing unit is arranged to generate the localitysensitive hash for each object identified.
13. The apparatus as claimed in claim 12, wherein the object identification unit comprises a convolutional neural network.
14. The apparatus as claimed in claim 12 or claim 13, wherein the object identification unit is arranged to categorise the objects identified and to cause the hash comparison unit arranged to prioritise comparison of at least one category of objects when generating similarity metrics.
15. The apparatus as claimed in any preceding claim, wherein the hash comparison unit is arranged to generate the similarity metric for the locality-sensitive hash with respect to the hashes stored in the hash storage on a basis of Hamming distances between the locality-sensitive hash and the hashes.
16. The apparatus as claimed in any preceding claim, wherein the apparatus is arranged to form a static part of a static structure.
17. The apparatus as claimed in claim 16, wherein the static structure is a building and the environment around the apparatus comprises an interior or an exterior of the building.
18. An automobile comprising the apparatus as claimed in any of claims 1-15.
19. A method of monitoring an environment comprising the steps of:receiving sensor data captured from the environment;generating a locality-sensitive hash from the sensor data;storing in a hash storage hashes generated by the generating step, wherein each of the hashes is stored in association with a significance value;periodically decreasing the significance values;generating a similarity metric for the locality-sensitive hash with respect to the hashes stored in the hash storage;when the similarity metric for the locality-sensitive hash with respect to a similar hash stored in the hash storage exceeds a similarity threshold, increasing the significance value stored in association with the similar hash, andwhen the significance value stored in association with the similar hash exceeds an alert threshold, causing an alert signal to be generated.
Citation Information
Patent Citations
Method and device for detecting abnormal events in surveillance videos
CN108427928A
Moving target detection and identification method for video monitoring
CN113743304A
Hash-based appearance search
US20200026949A1
Frame-accurate automated cutting of media content by using multiple airings
US20210124777A1
