Building system monitoring or control

A distributed AI architecture using fog and edge computing addresses the limitations of existing building control systems by enabling adaptive and efficient management of building systems, optimizing energy use and air quality through local processing, and enhancing occupant comfort while ensuring security and cost-effectiveness.

WO2024188600A1PCT designated stage expired Publication Date: 2024-09-19SANO DEV LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
PCT/EP2024/054249
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-09-28
Filing Date
2024-02-20
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

Current building control systems, particularly in residential settings, are limited by their reactive nature and lack of adaptability to specific building attributes and occupant needs, with cloud computing solutions facing issues like security risks, latency, and vendor lock-in, which hinder the effective implementation of AI for smart building management.

Method used

A distributed AI architecture that employs fog computing for training machine learning algorithms and edge computing for executing them, allowing for real-time processing and control of building systems, such as HVAC, security, and energy management, while reducing reliance on cloud services and enhancing scalability and privacy.

Benefits of technology

This approach enables more efficient and adaptive control of building systems, optimizing energy use, improving air quality, and enhancing occupant comfort by leveraging local processing capabilities, thereby reducing energy consumption and carbon footprint while providing a secure and cost-effective solution.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure EP2024054249_19092024_PF_FP_ABST
    Figure EP2024054249_19092024_PF_FP_ABST
Patent Text Reader

Abstract

A computer implemented method of monitoring or controlling systems within a building. The method is implemented using a distributed AI architecture associated with the building comprising one or more edge computing devices (102) and a fog computing device (103). The fog computing device (103) trains (802) a first machine learning algorithm using device data received (801) from at least one device (101) relating to the building or forming part of a first building system. The trained first machine learning algorithm is provided to a first edge computing device (102). The first edge computing device (102) receives (803) device data from at least one device (101) and processes (804) the received device data using the trained first machine learning algorithm to generate (805) an output signal relating to the first building system or a control signal for the first building system.
Need to check novelty before this filing date? Find Prior Art

Description

BUILDING SYSTEM MONITORING OR CONTROLTECHNICAL FIELD

[0001] The present invention relates to monitoring or controlling a building system. In particular, but not exclusively, the present invention relates to a computer implemented method of monitoring or controlling a system within a building to generate an output signal relating to the building system or a control signal for the building system. The present invention further relates to an Artificial Intelligence (Al) system or computing platform for performing the monitoring or control of a system within a building. The present invention further relates to a computer implemented method of training a machine learning algorithm for monitoring or controlling a system within a building. The building system may, for instance, be a building heating, ventilation or air conditioning system, the monitoring or control being intended to monitor or control, particularly increase, the quality of the air within the building. Certain embodiments of the present invention are particularly directed to monitoring or controlling building systems within domestic premises such as houses and apartments - that is, homes. Further exemplary uses of the Al system are presented in the context of air quality measurement, air purification, and video data processing.BACKGROUND

[0002] Buildings, including homes, offices and commercial or industrial premises, are becoming increasingly complex. A single building, for instance a single home, may include multiple separate building systems each linking together a range of devices. The devices include sensors providing sensor data indicative of a sensed parameter for the building or the building system and components forming part of the building system and providing component data indicative of a component state. As an example, a typical home Heating, Ventilation and Air Conditioning (HVAC) system may include an array of environment sensors, including for instance temperature and humidity sensors distributed through the home. A HVAC system may include an array of controllable components, for instance fans and valves for controlling ventilation, heating, and cooling sub-systems within the home. Clearly, there is a need for some form of control system to control the HVAC system components based on their component state and based on sensing data.

[0003] One particular type of HVAC system (or a component or sub-system within a HVAC system) is a Mechanical Ventilation with Heat Recovery (MVHR) system. MVHR is a type of mechanical ventilation system used in residential and commercial buildings to provide fresh air while recovering the heat from the outgoing air. Extracted stale air from the building passes through a first duct network to a heat exchanger which transfers the heat from the outgoing air to the incoming fresh air, which is then distributed back into the building through a separate duct network. This process helps to maintain a comfortable indoor temperature while reducing energy consumption and carbon emissions. The MVHR system also helps to improve indoor air quality by continuously exchanging stale air with fresh air, reducing the build-up of pollutants and excess moisture. It will be appreciated that an MVHR system requires a control system for its respective parts (which may include at a minimum pumps or fans and optionally control valves. A typical home may includenumerous further building systems (or sub systems), for instance security systems, health care or health monitoring systems and energy supply and control systems, each with their own specific requirements for sensors, controllable components, and control mechanisms (though in some cases there may be overlap in terms of shared sensors).

[0004] Commercially deployed building control systems are often limited in terms of their performance. They may be relatively “dumb” in the sense that they are purely reactive. For instance, if the sensed temperature is below a set threshold, then a heating system may be turned up. Typically, there is no capability for building systems to learn and adapt to the specific attributes of a building, nor to adapt to the requirements of the building occupants.

[0005] There is an industry trend towards “smarter” buildings. Smarter in the sense of better able to react and adapt to the attributes of a building and to adapt to the needs of the building occupants. Al holds much promise for developing smarter buildings. Particularly the use of machine learning or deep learning to analyse real life data for a building and its building systems, to train suitable machine learning algorithms for the building systems and to apply those trained algorithms to provide for control of building systems that are better adapted to meet the needs of the building occupants. Al may improve building systems with the result that the buildings themselves are more energy efficient, secure, comfortable, or healthier for their occupants.

[0006] While the majority of modern buildings have an internet gateway provided by an Internet Service Provider (ISP), those gateways typically have no inbuilt Al inference acceleration capability. Neither is it commonplace for Al hardware capability to be separately provided within buildings (at least for homes - in commercial and industrial settings the use of Al to control building systems is more well established). With the rise of web 3.0 (also known as the “Semantic Web”) it is expected that the need for Al capability within the home will increase. Web 3.0 refers to the next evolution of the World Wide Web, in which data is interconnected and machine-readable, allowing for more intelligent and efficient use of information. Web 3.0 is also expected to provide greater privacy and security for users, as well as more personalized and relevant experiences for users.

[0007] In the interim, before widespread deployment of Al hardware capability to homes, any Al task or insight, including for the control of building systems, is normally carried out using cloud computing. Cloud computing refers to the delivery of computing services such as servers, storage, databases, software, and networking over the internet. These services are provided by remote servers that are maintained by a cloud service provider, allowing users to access and use them on- demand without needing to own and manage their own infrastructure. Cloud computing offers advantages such as cloud scalability, flexibility, and cost-efficiency. While cloud computing offers numerous benefits, there are some potential problems and challenges to consider, including:• Security: Storing data and applications in the cloud can potentially expose them to security risks, such as data breaches or unauthorized access, if the appropriate security measures are not implemented. For a home control system this data could include personally identifiable or sensitive information such as whether the building is occupied.• Availability: Cloud services depend on reliable internet connectivity, so disruptions to the internet or to the cloud service provider’s infrastructure can result in downtime. For instance, for control of a home HVAC system such interruption may be unacceptable.• Vendor lock-in: Switching cloud providers can be difficult and expensive, so customers may feel “locked in” to their current provider.• Cost: While cloud computing can be cost-efficient, the costs can add up over time, especially if users are not careful to monitor and manage their usage.• Latency and bandwidth can potentially be a problem for cloud computing, depending on the specific application or use case.

[0008] As a result of these factors, particularly latency and bandwidth, cloud computing may not provide an acceptable Quality of Service (QoS) for Al based control of building systems.

[0009] It is an aim of certain examples of the present invention to solve, mitigate or obviate, at least partly, at least one of the problems and / or disadvantages associated with the prior art. Certain examples aim to provide at least one of the advantages described below.BRIEF SUMMARY OF THE INVENTION

[0010] There is disclosed herein a computer implemented method of monitoring or controlling a system within a building, the method comprising: training a machine learning algorithm using device data from at least one device relating to the building or forming part of a building system at a fog computing device associated with the building; receiving device data from the at least one device at an edge computing device associated with the building; and processing the received device data at the edge computing device using the trained machine learning algorithm to generate an output signal relating to the building system or a control signal for the building system.

[0011] According to a first aspect of the present invention there is provided a computer implemented method of monitoring or controlling systems within a building, the method comprising: training a first machine learning algorithm using device data from at least one device relating to the building or forming part of a first building system at a fog computing device associated with the building; providing the trained first machine learning algorithm to a first edge computing device associated with the building; receiving device data from at least one device at the first edge computing device; and processing the received device data at the first edge computing device using the trained first machine learning algorithm to generate an output signal relating to the first building system or a control signal for the first building system.

[0012] An advantage of certain embodiments of the present invention is that control or monitoring of building systems (particularly for a smart home) may be improved using an Al distributed architecture in which training of a machine learning algorithm is performed by a fog computing device and execution of the trained algorithm is performed by an edge computing device. The principle advantage of this is that the Al distributed architecture is scalable and extensible: the more complex / expensive fog computing device can perform training for multiple machine learning algorithms associated with different building systems, while the trained machine learning algorithmfor each building system (for instance, air quality, security or health monitoring) can be executed on a respective edge device which communicates with an appropriate set of devices such as sensors and controllable system components to receive data, make predictions and / or control devices.

[0013] This split between fog computing and edge computing gives benefits in terms of cost reduction (where there are multiple systems in a building needing separate control), extensibility / scalability through the ability to add additional edge computing devices to expand to control additional building systems, while leveraging the investment in a single (or reduced number) of fog computing devices to provide Al algorithm training, future proofing by permitting as yet unanticipated future building systems to be controlled through the same Al distributed architecture, cost effectiveness, security, privacy and the ability to additionally communicate with cloud computing services due to the edge / fog implementation (for instance, for data collection, fault reporting, communication with other external systems).

[0014] An advantage of certain embodiments of the present invention is that the Al distributed architecture allows for more efficient control of building systems compared to conventional alternatives. As an example, for a HVAC building system (or particularly an MVHR system) controlled according to an embodiment of the present invention, the heating of the building may be optimised to the predicted occupancy level of the building thereby reducing excess heating (for instance when it is predicted that the building will be empty) which can reduce the carbon intensity of the building. A further example is that when it is predicted that the building will be occupied at a future time point then the building may be preferentially heated during time periods when the electricity supply is anticipated to be predominantly supplied by renewable or low carbon energy sources, or when there is typically overcapacity on the electricity supply network (which may also correspond to periods of reduced cost electricity supply).

[0015] The method may further comprise: training a second machine learning algorithm using device data from at least one device relating to the building or forming part of a second building system at the fog computing device; providing the trained second machine learning algorithm to a second edge computing device associated with the building; receiving device data from at least one device at the second edge computing device; and processing the received device data at the second edge computing device using the second trained machine learning algorithm to generate an output signal relating to the second building system or a control signal for the second building system.

[0016] Each building system may comprise a separate building system selected from a group including: a building ventilation system; a building heating and ventilation system; a building heating, ventilation, and air conditioning system; a building security system; a building energy use monitoring and control system; or a healthcare system.

[0017] According to a second aspect of the present invention there is provided a computer- readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of an edge computing device and a processor forming part of a fog computing device, causes the edge computing device and the fog computing device to perform the method of any one of the preceding claims.

[0018] According to a third aspect of the present invention there is provided a system for monitoring or controlling a system within a building, the system comprising: at least one device relating to the building or forming part of a first building system and configured to provide device data; a first edge computing device configured to receive device data from the at least one device and process the received device data using a trained first machine learning algorithm to generate an output signal relating to the first building system or a control signal for the first building system; and a fog computing device configured to train the first machine learning algorithm and to provide the trained first machine learning algorithm to the first edge computing device.

[0019] The system described above may be further configured to execute any part of the abovedescribed methods of monitoring or controlling a building.

[0020] According to a fourth aspect of the present invention there is provided a computer implemented method of operating a first edge computing device to monitor or control a system within a building, the method comprising: receiving a trained first machine learning algorithm from a fog computing device associated with the building; receiving device data from at least one device relating to the building or forming part of a first building system at the first edge computing device, the first edge computing device being associated with the building; and processing the received device data at the first edge computing device using the trained first machine learning algorithm to generate an output signal relating to the first building system or a control signal for the first building system; wherein the first machine learning algorithm is trained using device data at the fog computing device.

[0021] The first edge computing device may be further configured to perform any part of the above-described methods of monitoring or controlling a building.

[0022] According to a fifth aspect of the present invention there is provided a computer-readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of a first edge computing device, causes the edge computing device to perform the above-described method of operating an edge computing device.

[0023] According to a sixth aspect of the present invention there is provided a first edge computing device comprising a processor and a memory storing executable instructions that, in response to execution by the processor, cause the first edge computing device to perform the above-described method of operating an edge computing device.

[0024] According to a seventh aspect of the present invention there is provided a computer implemented method of operating a fog computing device to train a first machine learning algorithm for monitoring or controlling a system within a building, the method comprising: receiving device data from at least one device relating to the building or forming part of a first building system; forming a training data set from the device data; training a first machine learning algorithm using the training data set; and providing the trained first machine learning algorithm to a first edge computing device for processing received device data at the first edge computing device to generate an output signal, relating to the building or the first building system, or a control signal for the first building system.

[0025] According to an eighth aspect of the present invention there is provided a computer- readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of a fog computing device, causes the fog computing device to perform the above-described method of training a machine learning algorithm.

[0026] According to a nineth aspect of the present invention there is provided a fog computing device comprising a processor and a memory storing executable instructions that, in response to execution by the processor, cause the fog computing device to perform the above-described method of training a machine learning algorithm.

[0027] Further aspects of the present invention are defined by the appended claims.

[0028] There are further disclosed methods of purifying air or measuring air quality within a building using a robot, a robot configured to implement the method and an air purifying or air quality measurement system for a building, the system comprising such a robot and a fixed air quality sensor (optionally, a plurality of distributed sensors).

[0029] According to an example there is provided a method of controlling a robot, the method comprising: obtaining air quality data measured at a fixed air quality sensor within a building; and determining, based on the received air quality data, whether to operate the robot within the building; wherein operating the robot within the building comprises: navigating the robot within the building; and operating an air purifying device mounted on the robot to improve the air quality; or operating an air quality sensor mounted upon the robot to measure air quality.

[0030] Advantageously, by taking account of air quality data measured at a fixed air quality sensor, robotic air purification can be performed more efficiently. It may be that the robot is only operated if received air quality data from the fixed sensor is outside of an acceptable air quality range (for instance if measured pollution exceeds a threshold). It may be that if the building further includes fixed air purifying or ventilation devices then these may be operated in preference to operating the robot if it is expected that those devices can return the measured air quality to the acceptable range within an accepted time span. Certain embodiments provide further efficiency gains by optimising the navigation of the building based on the measured air quality data or based on sensed parameters such as the layout of a room.

[0031] Advantageously, by combining air quality measurements from fixed air quality sensors and measurements performed by a robot as it navigates the building, a more accurate picture of air quality within the building can be established.

[0032] Determining whether to operate the robot may further comprise inferring, based on the received air quality data, a first location within the building where air quality is outside of an air quality range indicating acceptable air quality; or inferring, based on the received air quality data, a second location within the building where the air quality is unknown.

[0033] Navigating the robot within the building may further comprise navigating the robot such that it traverses the first location or the second location.

[0034] Navigating the robot may further comprise inferring, based on the received air quality data, a third location within the building where air quality is within the air quality range; and navigating the robot to avoid the third location.

[0035] Determining whether to operate the robot may comprise forming a map of air quality within the building based on the received air quality data and corresponding measurement locations for the fixed air quality sensors; and using the map to infer the first location, second location or third location.

[0036] The method may further comprise supplementing the map with air quality data measured by the air quality sensor mounted on the robot and corresponding measurement locations.

[0037] The method may further comprise using the map to infer the second location by calculating a location remote from air quality measurement locations.

[0038] The method may further comprise updating the map to remove air quality data older than a first time threshold.

[0039] The method may further comprise interpolating air quality at locations between measurement locations.

[0040] Determining whether to operate the robot further may comprise: determining an estimated time to improve air quality at the first location such that the air quality is within the air quality range using a fixed air purifying or ventilation device within the building; comparing the estimated time to a second time threshold; and determining whether to navigate the robot and operate the robot’s air purifying device or whether to operate the fixed air purifying or ventilation device based on the result of the comparison.

[0041] Determining an estimated time may comprise processing received air quality data or air quality data measured by the robot using a trained predictive machine learning algorithm to determine an estimated time.

[0042] The method may further comprise processing received air quality data or air quality data measured by the robot using the trained predictive machine learning algorithm to infer a location within the building where future air quality will be outside of the air quality range.

[0043] The method may further comprise receiving the trained predictive machine learning algorithm from a fog computing device; and forwarding air quality data measured by the robot or data indicating operation of the robot air purifying device to the fog computing device fortraining or updating the training of the predictive machine learning algorithm.

[0044] The method may further comprise: processing received air quality data, air quality data measured by the robot, or data obtained from the fixed air purifying or ventilation device using a trained reinforcement machine learning algorithm to determine a preferred remedy to an inference of air quality outside of the air quality range; wherein determining whether to navigate the robot andoperate the robot’s air purifying device or whether to operate the fixed air purifying or ventilation device is further based on the determined preferred remedy.

[0045] Navigating the robot within the building may comprise prioritising visiting: known regions of the building where air quality measurements have previously differed from measurements recorded at a fixed air quality sensor, those known regions being preprogramed or determined from previous operation of the robot; regions of the building where it is predicted that air quality measurements may differ from measurements recorded at a fixed air quality sensor, the prediction being based on operation of a camera mounted on the robot to determine a layout of the building or a room within the building or furniture or other obstacles located within the building indicative of low air circulation; or regions within the building that are a priority for maintaining air quality within the air quality range, including regions where people congregate, either preprogramed or determined using a camera mounted on the robot.

[0046] Navigating the robot within the building may comprise one or more of: providing the robot with a map indicating the layout of the building; using a camera mounted on the robot to determine a layout of the building or a room within the building; or using the camera mounted on the robot to detect furniture or other obstacles located within the building.

[0047] The map may indicate the locations of a fixed air quality sensor or fixed air purifying or ventilation devices; or the method further comprises using the camera mounted on the robot to detect the locations of fixed air quality sensors or fixed air purifying or ventilation devices.

[0048] Different air quality ranges may be applied in different regions of a building; or an air quality range applied in a region of the building where it is known or detected that people congregate may be indicative of cleaner air than an air quality range applied in a region of the building that is unoccupied.

[0049] The method further comprises determining sources of pollution through fixed or robot air quality measurements or through a camera mounted upon the robot and navigating the robot towards determined sources of pollution to perform air quality measurements or to perform air purification; or receiving a signal from a building occupancy sensor indicative of occupancy levels and adjusting the frequency of navigating the robot through the building according to detected occupancy levels.

[0050] According to a further example there is provided a computer-readable storage medium having computer-readable program code stored therein that, in response to execution by a processor, causes the processor to control a robot perform the above method.

[0051] According to a yet further example there is provided a robot comprising: propulsion means for navigating through a building; an air purifying device or an air quality sensor; a processor; and a memory storing executable instructions that, in response to execution by the processor, cause the processor to control the robot to perform the above method.

[0052] According to a yet further example there is provided an air purifying or air quality measurement system for a building, the system comprising: a robot as described above, and a fixed air quality sensor configured to be located within the building and configured to measure air quality.

[0053] The system may further comprise: a fog computing device configured to train or to update the training of the predictive machine learning algorithm for execution by the robot.

[0054] According to a yet further example of the present invention there is provided a computer implemented method of processing video data within a building, the method comprising: responsive to the detection of an object within video data, performing first video data processing upon the video data at an edge computing device associated with the building, wherein the first video data processing comprises further classification of the detected object or classification of a further object within the video data; determining, at the edge computing device, based on the first video data processing, whether second video data processing of the video data is required; and if it is determined that second video data processing is required, performing second video data processing at a fog computing device associated with the building; wherein the second video data processing determines whether to generate an output signal or a control signal for a building system based on the video data, the detected object, and the results of the first video data processing.

[0055] The first video data processing may further comprise image segmentation. The second video data processing may further comprise context aware or situation aware processing of the video data.

[0056] The method may further comprise receiving, at the edge computing device, the video data, and the indication of a detected object within the video data from a video camera associated with the building.

[0057] The method may further comprise receiving, at the edge computing device, the video data from a video camera associated with the building; and processing the received video data at the edge computing device to detect an object within the video data.

[0058] An object detected within the video data may comprise one or more of: a person; a vehicle; or an animal.

[0059] If the detected object comprises a person, the first video data processing may comprise further classification of the detected person as one of: a child; a teenager or young person; an adult; or an elderly person.

[0060] If the detected object comprises a person, the first video data processing may comprise detecting and classifying one or more further object within the video data; and wherein the one or more further object comprises one or more of: a food item held by the detected person; or a potential weapon held by the detected person.

[0061] If the detected object comprises a person, the first video data processing may comprise identifying one or more body part visible in the video data from a group including: an arm; a leg; or a hand.

[0062] The method may further comprise training a first machine learning algorithm using video data and indications of detected objects within the video data at the fog computing device; and providing the trained first machine learning algorithm to the edge computing device; wherein the first video data processing comprises processing the video data using the trained first machine learning algorithm.

[0063] According to a yet further example of the present invention there is provided a computer- readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of an edge computing device and a processor forming part of a fog computing device, cause the edge computing device and the fog computing device to perform the above described methods.

[0064] According to a yet further example of the present invention there is provided a system for processing video data within a building, the system comprising: an edge computing device; and a fog computing device; wherein the edge computing device is configured to: responsive to the detection of an object within video data, perform first video data processing upon the video data, wherein the first video data processing comprises further classification of the detected object or classification of a further object within the video data; and determine, at the edge computing device, based on the first video data processing, whether second video data processing of the video data is required; and wherein the fog computing device is configured, if it is determined that second video data processing is required, to perform second video data processing; wherein the second video data processing determines whether to generate an output signal or a control signal for a building system based on the video data, the detected object, and the results of the first video data processing.

[0065] According to a yet further example of the present invention there is provided a computer implemented method of operating an edge computing device to process video data within a building, the method comprising: responsive to the detection of an object within video data, performing first video data processing upon the video data, wherein the first video data processing comprises further classification of the detected object or classification of a further object within the video data; and determining, at the edge computing device, based on the first video data processing, whether second video data processing of the video data is required.

[0066] According to a yet further example of the present invention there is provided a computer- readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of an edge computing device, cause the edge computing device to perform the above described method.

[0067] According to a yet further example of the present invention there is provided an edge computing device comprising a processor and a memory storing executable instructions that, in response to execution by the processor, cause the edge computing device to perform the above described method.

[0068] According to a yet further example of the present invention there is provided a computer implemented method of operating a fog computing device to process video data within a building, the method comprising: responsive to a determination, at an edge computing device, based on first video data processing, that second video data processing of the video data is required, performing second video data processing at a fog computing device associated with the building; wherein the second video data processing determines whether to generate an output signal or a control signal for a building system based on the video data, the detected object, and the results of the first video data processing.

[0069] According to a yet further example of the present invention there is provided a computer- readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of a fog computing device, cause the fog computing device to perform the above described method.

[0070] According to a yet further example of the present invention there is provided a fog computing device comprising a processor and a memory storing executable instructions that, in response to execution by the processor, cause the fog computing device to perform the above described method.

[0071] Embodiments of the present invention are described in connection with controlling or monitoring building systems, and the term “building” should be broadly construed to mean any structure defining a space which is wholly or partially contained. The term “building” includes industrial, commercial, retail and office buildings or structures as well as domestic premises including houses and apartments (hereinafter referred to as “homes”). However, as will become apparent from the following description, embodiments of the present invention are particularly suited to monitoring or controlling building systems within homes. This is because, as noted above, up until now homes have not typically been provided with Al hardware capability (particularly, Al inference acceleration capability), resulting in home systems being reliant on cloud computing for advanced system control functions. Furthermore, embodiments of the present invention facilitate context awareness and situational awareness as part of Al control of building systems. As but one example, an embodiment of the present invention may take account of current and predicted future occupancy information when controlling a building system so that the building system may be optimised to meet the needs of the building occupants (both for total occupancy levels and for the specific requirements of identified occupants). That is, embodiments of the present invention can observe and predict the behaviour of occupants of a building and take this into account when controlling a building system. For instance, for controlling a building ventilation system, it may be observed that certain occupants cook food or use bathrooms at certain times of day, meaning that it can be predicted that the air quality within the home may be affected at a future point in time and the ventilation system controlled to address this predicted reduction in air quality.BRIEF DESCRIPTION OF THE DRAWINGS

[0072] Examples of the invention are further described hereinafter with reference to the accompanying drawings, in which:

[0073] Figure 1 is a process flow diagram for a distributed Al architecture comprising an edge computing device and a fog computing device for monitoring or controlling a building system according to an embodiment of the present invention;

[0074] Figure 2 is a process flow diagram for an embodiment of the present invention comprising a modification to the distributed Al architecture of figure 1 in which both a predictive machine learning model and an inference machine learning model are executed upon the edge computing device;

[0075] Figure 3 is a process flow diagram for an embodiment of the present invention comprising a modification to the distributed Al architecture of figure 1 in which both sensor data and data from a component forming part of a building control system are processed;

[0076] Figure 4 is a process flow diagram for an embodiment of the present invention comprising a modification to the distributed Al architecture of figure 2 in which both sensor data and data from a component forming part of a building control system are processed;

[0077] Figure 5 is a process flow diagram for an embodiment of the present invention comprising a modification to the distributed Al architecture of figure 4 in which the distributed Al architecture further comprises both a sensing edge computing device which executes a predictive machine learning model and system edge computing device which executes an inference machine learning model, the edge computing devices processing both sensor data and data from a component forming part of a building control system;

[0078] Figure 6 is a process flow diagram for an embodiment of the present invention corresponding to the distributed Al architecture of figure 5 for the example of monitoring or controlling a ventilation system;

[0079] Figure 7a is a perspective view and figure 7b is a cross section plan view of a domestic premise, particularly a home (specifically a home constructed as a hybrid building) incorporating a distributed Al architecture according to an embodiment of the present invention;

[0080] Figure 8 is a flow chart illustrating a process of training and implementing a machine learning algorithm for monitoring or controlling a building system where a distributed Al architecture is deployed within a building, the process being in accordance with an embodiment of the present invention;

[0081] Figure 9 is a modification to the flow chart of figure 8 further illustrating a method of updating the training of a machine learning algorithm for monitoring or controlling a building system according to an embodiment of the present invention;

[0082] Figure 10 is a modification to the flow chart of figure 8 further illustrating a more detailed method of training of a machine learning algorithm for monitoring or controlling a building system according to an embodiment of the present invention;

[0083] Figure 11 is a flow chart illustrating a method of operating an edge computing device for monitoring or controlling a building system according to an embodiment of the present invention;

[0084] Figure 12 is a flow chart illustrating a method of operating a fog computing device for training a machine learning algorithm for monitoring or controlling a building system according to an embodiment of the present invention;

[0085] Figure 13 is a network topology diagram for a distributed Al architecture according to an embodiment of the present invention;

[0086] Figure 14 illustrates an edge computing device forming part of a distributed Al architecture according to an embodiment of the present invention;

[0087] Figure 15 illustrates a fog computing device forming part of a distributed Al architecture according to an embodiment of the present invention;

[0088] Figure 16 illustrates a building or building system sensor device configured to communicate sensor data to a distributed Al architecture according to an embodiment of the present invention;

[0089] Figure 17 illustrates a building system component configured to communicate component data to a distributed Al architecture according to an embodiment of the present invention;

[0090] Figure 18 is a process flow diagram for an embodiment of the present invention corresponding to a modified form of the distributed Al architecture of figure 6 for the example of monitoring or controlling a ventilation system;

[0091] Figure 19 illustrates a floor plan for a building within which the methods of figures 21 to 24 may be implemented;

[0092] Figure 20 schematically illustrates a robot adapted to perform the methods of figure 21 to 24;

[0093] Figure 21 is a process flow diagram for a method of purifying air within a building according;

[0094] Figure 22 is a process flow diagram for a further method of purifying air within a building according;

[0095] Figure 23 is a process flow diagram for a yet further method of purifying air within a building;

[0096] Figure 24 is a process flow diagram for a method of measuring air quality within a building;

[0097] Figure 25 illustrates a conventional video processing system;

[0098] Figure 26 illustrates a video processing system according to an embodiment of the present invention; and

[0099] Figure 27 is a flow chart illustrating a video processing method according to an embodiment of the preset invention.

[0100] In the following description of the drawings, where corresponding features are shown, the same reference numbers are used.DETAILED DESCRIPTION

[0101] Embodiments of the present invention relate to a novel distributed Al architecture for monitoring or controlling a building system in which a machine learning model training is performed by a fog computing device and execution of the trained machine learning algorithm is performed by an edge computing device. In particular, but not exclusively, this Al distributed architecture may be deployed within a smart home interacting with a broad range of devices including sensors for sensing parameters of the building such as environmental parameters. The devices may furthercomprise system components, such as controllable system actuators, capable of providing sensor information or component state information. In some cases, the components may also be configured to receive control signals output from the trained machine learning algorithm for controlling the building system.

[0102] As previously noted, while it is known for building systems to be controlled through cloud computing, it has been identified that particularly latency and bandwidth issues relating to conventional implementations of cloud computing may not provide an acceptable quality of service for monitoring or controlling building systems. Edge computing addresses at least some of the issues associated with cloud computing by bringing data processing closer to the sources of data.

[0103] Edge computing is a distributed computing paradigm that involves processing and analysing data at or near the edge of the network, where the data is generated, rather than relying solely on a centralized cloud computing infrastructure. This enables faster response times, reduced network bandwidth, improved reliability, and enhanced security and privacy for applications and services that require real-time or low-latency processing.

[0104] In the context of embodiments of the present invention this may mean processing building system data to provide output signals and control signals for the building system using an edge computing device in or associated with the home. An edge computing device as used in accordance with embodiments of the present invention as part of a distributed Al architecture may comprise a relatively low-cost computing device that has the capacity to receive and process device data by executing a trained machine learning algorithm (also referred to herein as a trained Al model or simply trained model or model). The edge computing device may receive data from one or a plurality of devices, process the data and generate an output signal or a control signal. In particular, the edge computing device may incorporate the Al acceleration (particularly, in some embodiments, Al inference acceleration) hardware capability that is necessary to execute a trained Al model. As noted above, conventionally most buildings, especially homes, lack such Al acceleration hardware capability. However, an edge computing device according to embodiments of the present invention may lack the computational capacity to train a machine learning algorithm in order to generate a trained Al model.

[0105] Fog computing is a distributed computing paradigm that extends the capabilities of edge computing by adding an intermediate layer of computing and storage resources between the edge devices and the cloud. The fog layer is typically located closer to the edge devices than the cloud, and provides more powerful computing resources and storage than the edge devices. This allows for more complex processing and analysis of data at the edge. Fog computing is especially useful in applications where data must be processed and analysed in real-time, or where there are limitations on network bandwidth or latency.

[0106] In the context of embodiments of the present invention a fog computing device is provided in or associated with the home and communicates with one or more edge computing devices. The fog computing device may be a relatively high-cost computing device that provides the capability fortraining machine learning algorithms for each edge computing device. The fog computing device may also provide orchestration and coordination services for the distributed Al architecture. In certain embodiments of the present invention, each edge computing device may be responsible for processing device data using a trained Al model for a separate building system. Each edge computing device may be responsible for monitoring or controlling a single building system, or potentially a relatively small number of building systems. The devices supplying device data to each edge computing device may be unique to each building system or there may be overlap with a device supplying device data for use in monitoring or controlling two or more building systems (on one or more edge computing devices). This use of a single, powerful fog computing device with a plurality of edge computing devices to monitor or control disparate building systems provides a scalable distributed Al architecture computing platform that may be extended through the provision of additional edge computing devices as required as new building systems are added or expanded.

[0107] Referring now to figure 1 , this illustrates a device 101 and a distributed Al architecture comprising an edge computing device 102 and a fog computing device 103 in accordance with an embodiment of the present invention. For simplicity of explanation, in figures 1 to 6 only a single edge computing device 102 is illustrated. That is, these figures illustrate simplified deployment scenarios in which only a single building system is to be controlled or monitored using a single edge computing device 102. However, from the discussion above it will be apparent to the skilled person how this is scalable to the fog computing device 103 communicating with and providing machine learning algorithm training for multiple edge computing devices 102 associated with multiple building systems.

[0108] The edge computing device 102 communicates with at least one device 101 in order to receive device data. For instance, a device 101 may comprise a sensor, in which case the edge computing device 102 may be referred to as a sensing edge computing device 102. A sensor 101 may provide sensor data indicative of a sensed parameter for the building or the building system. In figure 1 for simplicity the edge computing device 102 is labelled simple Edge. A sensor 101 may for instance be an environment or air quality sensor 101 , in which case the edge computing device may be referred to as an environment sensing edge computing device 102 (discussed in greater detail below in connection with figure 6). As is illustrated in figure 1 , there may be only a single device 101 sending device data to the edge computing device 102. However, there may be a plurality of devices 101 providing separate device data to the edge computing device 102, as indicated by the dashed box Device x.

[0109] Figure 1 (and also figures 2 to 6 and 18, described below) are process flow diagrams in which system components (particularly the distributed Al architecture comprising the edge computing device 102 and the fog computing device 103) are illustrated at the top and by descending vertical lines. The exchange of information between system components is illustrated by interconnecting lines. Processes happening at each system component are illustrated upon the descending lines. These process flow diagrams may also be referred to as ladder diagrams. It should not be assumed that the exchange of information and processing illustrated define a strictchronology descending downwards, except where this is required or made apparent in the following description.

[0110] As well or instead, at least one device 101 may be a building system component. For instance, the building system may be ventilation system. It will be understood that in the context of the present document the term ventilation system is intended to encompass building systems including one or more element of heating and air conditioning as well as ventilation. A HVAC system, including an MVHR system, remains a ventilation system. A component of a ventilation system may include a fan arranged to provided component state information such as fan speed or airflow to the edge computing device. In some cases, as will be discussed below, such a system component may be configured to receive a control signal from the edge computing device operating a trained machine learning algorithm, particularly an inference model that has identified the component as an influence for the building system and seeks to control the building system through controlling the component. Where the device 101 comprises a system component the device data may comprise component data indicative of a component state. The component may include a sensor providing the component state information. The component state may indicate a setting or mode of operation for the sensor.

[0111] In some embodiments of the present invention where a plurality of devices is supplying device data for monitoring or controlling a building, the devices may include both sensors (for instance, supplying data indicating an environment parameter for the building) and system components relating to the building system being controlled or monitored. Examples of this are presented below in connection with figures 3 to 6.

[0112] As already noted, the edge computing device 102 receives device data from the at least one device 101 as indicated by arrows 104 (with the optional supply of device data from further devices indicated by dashed line 104). Only a single transfer of device data 104 is illustrated. However, it will be appreciated that the devices 101 may continuously, regularly, or periodically transfer device data to the edge computing device 102, and this may continue in parallel (that is, simultaneously or concurrently) to the other processes described below. This device data 104 is processed by the edge computing device 102 using a trained machine learning model that executes at step 109 on the edge computing device 102 to provide a model output, for instance an alert or message to a building occupant, or a control signal, for instance to control a component such as a fan. As will be well understood by the skilled person, a machine learning algorithm operates to map an input (or a series of inputs) to an output (for instance, a prediction of a future building state). Particularly, the trained machine learning algorithm executed by the edge computing device to process the received device data may be one or typically both of a predictive machine learning model and an inference machine learning model. Deep learning is a particular subfield of machine learning (and both are subsets of Al) that involves training artificial neural networks, which are composed of layers of interconnected nodes, to learn from vast amounts of data. Deep learning algorithms are typically used for tasks such as image recognition, natural language processing, and speech recognition, where they have achieved state-of-the-art results. Deep learning models aremore complex than traditional machine learning models and require large amounts of data and computational power to train effectively. For the control of building systems, the present inventor has identified that deep learning is particularly suited, however in this document the generic term machine learning is used.

[0113] A predictive machine learning model is a type of machine learning model that uses historical data to make predictions or forecasts about future events or trends. These models use algorithms to analyse large amounts of data, identify patterns and correlations, and create a mathematical model that can be used to make predictions based on new data. An inference machine learning model is a machine learning model that has been trained on a dataset to learn to identify patterns and correlations in the data that allow it to identify factors within a system that influence a system state. Either or both of a predictive machine learning model (referred to herein for simplicity as a predictive model) and an inference machine learning model (referred to herein for simplicity as an inference model) may be executed by an edge computing device 102 for processing device data to monitor or control a building system. Figure 2 presents an example in which a single edge computing device implements both predictive and inference machine learning models and figure 5 presents an example in which the respective model types are implemented by separate edge computing devices.

[0114] In the context of the present invention, a predictive machine learning model executed by the edge computing device 102 may process received device data 104 in order to make a prediction of a current or future building system state. An inference machine learning model executed by the edge computing device 102 may process received device data, including building system component state information and identify how building system components should be controlled in order to influence a predicted system state (for instance, a prediction of a current or future system state provided by a predictive machine learning algorithm). In its broadest sense however, the edge computing device 102 may operate a generic trained machine learning algorithm capable of providing a prediction or a control signal for an influencing a system state, and the distinction between predictive and inference machine learning algorithms may be arbitrary or not apparent.

[0115] Prior to execution 109 of a trained model, the fog computing device 103 performs the training of the machine learning algorithm. This training process is based upon a training data set of device data. As illustrated in figure 1 , the edge computing device 102 may pass through the device data to the fog computing device 103 at step 106. Optionally (as indicated by the dashed box 105) the edge computing device 102 may also store the device data, particularly in the event that later execution 109 of the trained machine learning algorithm makes use of historic as well as current device data.

[0116] As illustrated, each device 101 associated with a particular building system provides device data at step 104 to the edge computing device 102, and this passes the device data through to the fog computing device 103 as required at step 106. This pass through of the device data may occur in real time - that is the edge computing device 102 forwards the device data to the fog computing device 103 substantially as it is received. In other embodiments, the transfer of device data mayoccur intermittently, for instance once a predetermined buffer of device data is filled. In some embodiments device data may only be provided to the fog computing device 103 in order to form a training data set. Once the machine learning algorithm is trained it may be that no further device data is provided to the fog computing device 103. However, especially where the fog computing device 103 periodically updates the training of the machine learning algorithm, the supply of device data from the edge computing device 102 to the fog computing device 103 may be an ongoing process.

[0117] It will be appreciated that the arrangement illustrated in figure 1 whereby for monitoring or control of a single building system the associated devices 101 communicate only with the respective edge computing device 102, which in turn forwards device data to the fog computing device advantageously provides a simple network topology. This is readily extendable to additional building systems whereby the fog computing device 10 need only communicate with a relatively small number of edge computing devices. However, the present invention is not restricted to this particular network topology. Each device 101 may also communicate its device data directly to the fog computing device 103 in addition to the edge computing device 102. Optionally, in some examples or for some devices, device data may be sent to the fog computing device 103 and forwarded to the edge computing device 102 as required. In some embodiments of the present invention there may be a blend by which some devices 101 communicate primarily with the edge computing device and some devices 102 communicate primarily with the fog computing device 103, or both (an example of which is presented in figure 3).

[0118] In one embodiment data collection is implemented by the edge computing device 102 whereby device data is sent to the edge computing device 102 until a given threshold of data records is reached, at which point a data transfer to the fog computing device 103 occurs and training may commence.

[0119] Once a sufficient training data set of device data is built up at the fog computing device 103 (not specifically illustrated in figure 1) then machine learning or deep learning techniques are applied by the fog computing device 103 at step 107 to train or generate a trained machine learning algorithm. The process of training the machine learning algorithm is described in greater detail below in connection with figures 8 to 10. It will be appreciated that the volume of training data required may be specific to the type of building system, the particular deployment scenario, or the selected machine learning algorithm. Once the model is trained, it is provided to the edge computing device 102 at step 108 for processing device data.

[0120] The received trained model is executed at step 109. The executing trained Al model receives and process device data received at steps 104 from the or each device 101. As an example, a device 101 may be configured to periodically send device data to the edge computing device 102 according to a duty cycle or as new data becomes available (or data may be buffered and transmitted periodically). The executing trained Al model uses newly received device data as well as, optionally, previously received device data, which may also include the training set of device data noted above. Outputs from the execution trained Al model including control signals asappropriate are output at step 110. Execution of the model at step 109 will be dependent on the nature of the selected and trained machine learning algorithm, as will be apparent to the skilled person. The model output 110 may comprise an output message or alert to a user indicating a state of the building or the building system or if the state or the building or the building system state is outside of a defined range. Alternatively, or additionally, the model output 110 may comprise a prediction of a current or future state for of the building or the building system. Alternatively, or additionally, the model output 110 may comprise a signal instructing a component setting or change of operation for a component forming part of the building system either immediately or a future point in time. The component may comprise one of the devices 101 that supplies device data to the edge computing device for processing using the trained model, or it may be a separate device. A model output may be provided through a local area network portal, a mobile device application or a display or touchscreen device within the building.

[0121] As hinted at above, and indicated by the dashed lines, in some cases device data may continue to be supplied at step 111 to the fog computing device 103 (indicated as via the edge computing device 102, though it could be direct) for updating the training of the machine learning algorithm at step 112. The updated training may be continuous or periodic. The model update may take account of the training set of device data, previously received device data and / or newly received device data as appropriate to the implementation of the present invention. The updated model is supplied to the edge computing device 102 at step 113 which may then substitute the updated model for the previously received model for processing further device data (not illustrated).

[0122] An advantage of certain embodiments of the present invention is that the edge computing device can execute a predictive machine learning and / or an inference machine learning algorithm without relying on cloud computing, with all the associated disadvantages that entails, as set out above. Furthermore, while only a single edge computing device associated with a single building system is illustrated in figure 1 , the solution is scalable in that a relatively low cost edge computing device may be associated with each building system and executing a respective trained machine learning algorithm, while a single (or smaller number) fog computing device may perform the more computationally expensive but less frequently required task of training the respective machine learning algorithms. In a test system established by the present inventor, an edge computing device was implemented on hardware costing under £100, while a fog computing device was implemented on hardware costing around £500 (2022 prices).

[0123] In certain embodiments of the present invention, the range of device data that may be collected by an edge computing device may be extended to enable context awareness and situation awareness. In particular, sensors or other data sources capable of providing an indication of building occupancy (or the whereabouts of normal building occupants) greatly enhance the ability of a building system to be responsive to the needs of the building’s users.

[0124] Context awareness refers to a system’s ability to understand the context in which it is operating, such as the user’s location, preferences, and behaviour, as well as the state of the system and its environment. The goal of context awareness is to provide users with a more personalizedand relevant experience, by adapting to their needs and preferences. Situation awareness, on the other hand, refers to a system’s ability to understand the current situation or environment in which it is operating. This includes being aware of the current state of the system and its environment, as well as any potential threats or hazards. As an example, an air quality monitoring and control system implemented according to an embodiment of the present invention may take account of the number (and optionally identity) of predicted building occupants when determining whether a predicted air quality measure is acceptable or whether it must be changed by control of ventilation system components.

[0125] Further examples of context awareness or situational awareness could include learning behavioural usage patterns of simple appliances like lighting, music, heating, ventilation, hot water, and even garden sprinklers. These behavioural models are not controlling the devices directly, rather the devices are observers, with habits learnt and improvements to the ecosystem proposed to other inference models. A further example could include computer vision inference being used to extend security or support a healthcare requirement like stopping someone falling down the stairs in an inference situational awareness model. Situational awareness involves not only understanding the behaviours and environment but also the situations itself. This could be a burglar breaking in with intent to harm, a potential fire, someone at harm doing DIY in the garden on a ladder that is not positioned correctly.

[0126] Referring now to figure 2, this is a process flow diagram for an embodiment of the present invention comprising a modification to the distributed Al architecture of figure 1 in which both a predictive machine learning model and an inference machine learning model are executed upon the edge computing device 102. For figure 2, and also for figures 3 to 6 discussed below, where steps are the same as presented and described for an earlier figure, the same reference numbers are used, and the description is not repeated.

[0127] Figure 2 differs from figure 1 in that on receipt of the device data at step 106 the fog computing device 103 trains two machine learning algorithms to generate two trained models at step 201 . Both a trained predictive model and a trained inference model are supplied to the edge computing device 102 at steps 202 and 203. Both trained models are executed by the edge computing device 102 at step 204 and one or both models may generate model outputs at step 205.

[0128] Particularly, the predictive machine learning model may be adapted to provide a prediction of a current or future state for the building or the building system. The inference machine learning model may be adapted to provide a control signal instructing a component setting or a change of operation for a component forming part of the building system either immediately or a future point in time to control or adjust a predicted state for the building system. In some embodiments the prediction from the predictive machine learning algorithm may comprise an input to the inference machine learning algorithm (optionally, along with device data relating to sensors or system components). The inference machine learning model allows for the identification of system components that influence a building or building system state and which may be controlled to adjust a prediction of a future state. Advantageouslv the distributed Al architecture of figure 2 allows botha prediction of a current or future system state to be generated (which may or may not be provided to a user or building occupant) and the building system to be controlled to adjust the system state, for instance if the predicted system state falls outside of a predetermined range.

[0129] Referring now to figure 3, this is a process flow diagram for an embodiment of the present invention comprising a modification to the distributed Al architecture of figure 1 in which both sensor data and data from a component 301 forming part of a building control system are processed to train a machine learning algorithm (or processed when the trained model is executed, or both) for monitoring or controlling a building system.

[0130] Accordingly, figure 3 illustrates at least one (optionally, plural as indicated by the dashed lines) sensors 101 providing sensor data to the edge computing device 102 at step 104 and at least one (optionally, plural as indicated by the dashed lines) system components 301 providing system component state data to the fog computing device 103 at step 302. Although not explicitly illustrated, in some embodiments the fog computing device 103 may provide the system component data to the edge computing device in an analogous way to the supply of sensor data from the edge computing device 102 to the fog computing device 103 at step 106. A further alternative is for the system components 301 to communicate systems component data to both the fog computing device 103 and the edge computing device 102, or primarily to the edge computing device. Optionally, the system component data may be stored by the fog computing device 103 at step 303. More generally, either of the edge computing device 102 and the fog computing device 103 or both may store any portion of data from the sensors 101 and the system components 301 for use in model training or model execution. Irrespective of the network topology, at step 107 the training of the machine learning algorithm may be based on a training data set comprising data from both sensors 101 and system components 301.

[0131] At step 109, as before the trained Al model processes data received from the devices 101 at step 104. Additionally, the trained Al model may process data received from the system components 301 at step 302 (either directly or via the fog computing device 103). That is, both the devices 101 and the system components 301 send data to the edge computing device 102 that is processed using the trained machine learning model at step 109 to generate model outputs.

[0132] At step 110, as before the trained machine learning model generates model outputs. Those outputs may comprise one or more control signals for controlling one or more of the system components 301 . That control may be responsive to a prediction of a current or future system state.

[0133] Although not specifically illustrated, updating of the trained model at step 112 may also take account of further received system component data.

[0134] Figure 4 is a further refinement to the process flow diagram of figure 3 in which the fog computing device 103 trains both a predictive machine learning model and an inference machine learning model, as for figure 2, on the basis of both sensor data and system component data. As for figure 2, both trained models are provided to the edge computing device which may execute both models, processing received sensor data and / or system component data to provide model outputs (which may include control signals or data controlling the system components 301).

[0135] Figure 5 is a process flow diagram for an embodiment of the present invention comprising a modification to the distributed Al architecture of figure 4 in which the distributed Al architecture further comprises both a sensing edge computing device 501 which executes a predictive machine learning model and a system edge computing device 502 which executes an inference machine learning model. The edge computing devices 501 , 502 both form part of a distributed Al architecture for monitoring or controlling a single building system. Each edge computing device 501 , 502 may process both sensor data from sensors 101 and system component data from a component 301 forming part of a building control system. More generally, it may be that each edge computing device 501 , 502 processes part or the whole of the available sensor and component data.

[0136] For clarity, in figure 5 (and also figure 6) the processing of updating the training of the machine learning models is not illustrated, though the skilled reader will appreciate that this process is analogous to that illustrated for figure 4.

[0137] As for figure 4 the distributed Al architecture includes a single fog computing device 103 which is responsible for machine learning algorithm training to generate both predictive and inference machine learning models at step 201 , using part or the whole of the available sensor and component data. However, differing from figure 4, at step 503 the trained predictive model is supplied to the sensing edge computing device 501 and the trained inference model is supplied to the system edge computing device 502 at step 504.

[0138] Figure 5 illustrates an example embodiment in which the sensing edge computing device executes the predictive model at step 505 processing sensor data received from one or more sensors 101 . The supply of device data to the executing predictive model at step 505 is not illustrated for clarity in figure 5. At step 506 the predictive model generates a model output, for instance a prediction of a current or future state of the building or the controlled building system based on the sensor data. However, in certain other embodiments the predictive model may also accept as inputs data from one or more system components 301 . The output at step 506 may be a value for a current or future system state. Alternatively, the output may be an indication that a predicted value exceeds a threshold or falls outside of a predefined range. At step 507 either an indication that a threshold or range will be breached, or a predicted current or future value of the building system state (or both) is transmitted from the sensing edge 501 to the system edge 502 where it forms an input to the executing inference machine learning model at step 508.

[0139] Figure 5 illustrates an example embodiment in which the system edge computing device 502 executes the inference model at step 508 processing system component data received from one or more system components 301 . The supply of system component state data to the executing inference model at step 508 is not specifically illustrated for clarity. However, in certain other embodiments the inference model may also accept as inputs data from one or more sensors 101 . Furthermore, the inference model receives as an input a prediction of a system state or an indication that this falls outside of a predefined range from the predictive model executing on the sensing edge 501 . The executing inference model generates an output at step 509. The outputs from the inference model comprise control data 510 that is supplied to system components 301 at step 510.

[0140] The control data output 510 comprises settings or instructions for control of building system components 301 to maintain the state of the system within normal operational bounds. The provision of a separate system edge computing device 502 allows for closer integration between the control of the building system and the building system components 301 . Such improved control may include Digital Signal Processing (DSP) based control of system components, for instance a ventilation fan, as opposed to conventional digital control whereby components are typically only switched on or off.

[0141] Furthermore, where a prediction or indication that a prediction falls outside of a defined range is received by the inference model at step 508, the close integration between the system edge and the system components allows for more flexible control of the system components 301 to adjust the system to ensure that the system state remains in a predefined range. An example of this is presented in figure 6. Figure 6 is like figure 5 for the specific example of an air quality monitoring and control system based on the same distributed Al architecture of figure 5. Sensors 101 are now identified specifically as environment sensors, for instance temperature, pressure, humidity, particulate matter, and certain gases. This sensor data is processed by an environment sensing edge 501 . The building system is specifically a ventilation system. In one example, this may be an MVHR system, which may be referred to as a “smart MVHR system” through its integration with a ventilation system edge 502. The ventilation system components 301 may include fans, valves, heaters, and other conventional components of a ventilation system. The ventilation system components 301 may be configured to provide data indicative of a setting or state such as a fan speed, airflow or whether a valve is open, and to receive control data to control those states.

[0142] At step 505 the environment sensing edge executes a predictive model based on sensor data (and optionally state data for components of the ventilation system). It forms a prediction at step 506 for a current or future measure of air quality for the building. If this falls outside of accepted bounds then at step 507 an output is passed to the inference model executing on the smart MVHR, which is adapted to adjust the operation of the ventilation system components so as to prevent the air quality falling outside of the accepted bounds. As an example, if it is predicted that air quality will reduce at a future time, then in advance of that time point the ventilation system may be adjusted to increase the supply of fresh air into the home.

[0143] Although not specifically illustrated in figure 6, as well as sensor data the predictive model may also receive data from other sources. For instance, occupancy sensors, for instance cameras may detect how many people (and optionally, which particular people) are present in a home at a given time. Through observation of typical occupancy patterns the training of the predictive model may take account of how many people and which people are typically present within a home at different times of day and days of the week. This may be correlated during the training process with observed fluctuations in air quality which may correspond to activities within the home, for instance showering or cooking at "normal" times of day. This information about occupancy enables a degree of situational awareness to be built into the building system monitoring and control: a prediction of a future reduction in air quality may result from a prediction that based on observed behaviouralpatterns for building occupants it is likely that the activities of the building occupants within the home will lead to a drop in air quality at a future time.

[0144] Furthermore, the operation of the inference model may be optimised to not only address a predicted drop in air quality, but to do so in an efficient manner (for instance, adjusting heating or ventilation components such that they operate in advance of the predicted low air quality during times where energy prices are lower or where electricity is predominantly supplied by low carbon sources.

[0145] In certain embodiments of the present invention the predictive model may be further trained and respond to other data sources. For instance, particularly for the example of an air quality monitoring and control system, weather forecast data may be received through a network connection (as described below in connection with figure 13), which may affect how the ventilation system is to be controlled to remain within acceptable bounds. Information received from outside of the home may also include occupancy information, for instance mobile device location data indicating the whereabouts of frequent building occupants and calendar information indicating the likely future whereabouts of frequent building occupants.

[0146] Referring now to figures 7a and 7b, as noted previously, while embodiments of the present invention are applicable to buildings in general, they are particularly to suited to domestic premises such as houses and apartments (referred to generically in this document as homes). Partly this is because the daily routines of people within a home and the range of activities that take place within a home are significantly more complex than for industrial, retail, or commercial premises, with the result that the ability to implement situational awareness functions described above taking account of building occupancy are especially beneficial. Figure 7a is a perspective view of one particular form of home, and figure 7b illustrates a cross section plan view of such a home incorporating a distributed Al architecture for monitoring or controlling air quality according to an embodiment of the present invention.

[0147] Figures 7a and 7b, show a home 700 which is constructed as a hybrid building 700 (which may also be referred to as a modular building). The hybrid building 700 comprises a first building section 701 and a second building section 702. The first building section 701 can take the form of a dock. The term “dock” is used to describe a building section to which another building section may be docked, installed, connected, or attached. The first building section 701 is an on-site construction at a final location of the building 700, which may be a fixed, on-site location. That is, the building 700 has a final, fixed, on-site location. In this exemplary embodiment, said final, fixed, on-site location is determined by construction plans and fixed by virtue of building foundations. The term “on-site location” is used to refer to the building site, which will be understood to refer to the immediate proximity of the building 700 and the entire building site, including housing estate, on which the building 700 is to be built. It will be understood that the site may be a large building / construction site comprising a plurality of plots, the final location for the building 100 being provided by one of said plots.

[0148] The second building section 702 can take the form of a module. The term “module” is used to describe a building section which may be docked to another building section or is installable, connectable, or attachable to another building section, particularly a first building section in the form of a dock. The second building section 702 is transportable to the final location in a substantially assembled form.

[0149] During construction of the first building section 701 at the on-site location, the first building section 701 is preconfigured to receive the second building section 702. That is, the first building section 702 is constructed with the knowledge and design that a second building section is to be subsequently connected, and the first building section 701 is thus preconfigured for connection and receipt of the second building section. The second building section 702 may be removable. This could relate to the shaping of the first building section 701 , through to sealing and connection features. The second building section 702 is connected to the first building section 701 at the final location of the building 700, thereby to provide said building 700 at the final, fixed, on-site location.

[0150] The first building section 701 further includes a services hub 703, which may include part or the whole of certain building systems. For instance, for a ventilation system, the services hub 703 may include ventilation system components such as the pumping and heat exchange elements of an MVHR.

[0151] Figure 7b shows the system edge computing device 502 and the fog computing device 103 located within the services hub along within at least one system component 301 , though it will be understood that this location is merely exemplary, and the system edge 502 and the fog computing device 103 may be located at any convenient location. Similarly, the sensing edge computing device 501 is shown located within the first building section 701 , though it may be located at any convenient location. Figure 7b shows a range of sensors 101 and system components 301 distributed through the first and second building sections 701 , 702. It will be understood that their locations are determined according either to optimal placement for sensing or where required to form an effective part of the building system. The sensors 101 , system components 301 , fog computing device 103 and edge computing devices 501 , 502 may be connected wirelessly, as will be described in greater detail below in connection with figure 13.

[0152] Referring now to figure 8, this is a flow chart illustrating a process of training and implementing a machine learning algorithm for monitoring or controlling a building system where a distributed Al architecture is deployed within a building. As an example, this may relate to the air quality monitoring and control of figure 6. Figure 8 specifically relates to an example in which a machine learning model for monitoring and controlling air quality has been previously established but is to be newly deployed within a building such as the hybrid home of figures 7a and 7b. It will be understood that the behaviour of a specific building regarding patterns of air quality must first be observed during a training process.

[0153] At step 801 the fog computing device 103 collects device data relating to the environment sensors 101 and the ventilation system components 301 . As previously described, this data may be received via the sensing or system edge coiw iting devices 501 , 502 or directly from the sensors101 or ventilation system components 301 . Data is collected until a sufficiently large training data set is established. The size of that data set may be dependent on a particular building, but for instance may comprise a period of several days, weeks or months. It will be understood that during that time the ventilation system may be controlled by the ventilation system edge 502 according to a default or less fully featured control algorithm.

[0154] At step 802 once the training data set is established then the machine learning algorithm or algorithms may be trained, for instance using machine learning or specifically deep learning techniques. This may include, for instance, Exploratory Data Analysis (EDA), clustering machine learning techniques such k-means for correlation matching, machine learning gradient descent fit regression algorithms and deep learning Long Short-Term Memory (LSTM) to generate trained predictive and inference models. This training process is described in greater detail in connection with figure 10, below. The trained model or each of a predictive model and an inference model are supplied to the edge computing device 102 or respective edge computing devices 501 , 502.

[0155] At step 803 the edge computing device 102 or each of the edge computing devices 501 , 502 receive device data from sensors and / or system components and at step 804 the edge computing devices 501 , 502 implement the trained models. Appropriate model outputs such as alerts or control signals are generated at step 805.

[0156] Figure 9 is a modification to the flow chart of figure 8 further illustrating a method of updating the training of a machine learning algorithm for monitoring or controlling a building system according to an embodiment of the present invention. Specifically, figure 9 illustrates a feedback loop whereby in addition to the collected device data at step 803 being supplied to the edge computing device for implementing the machine learning algorithm at step 804, it is further supplied to the fog computing device 103 for updating the machine learning algorithm at step 901 . Once an updated machine learning algorithm is generated then the updated algorithm is implemented at step 804.

[0157] Figure 10 is a modification to the flow chart of figure 8 further illustrating a more detailed method of training of a machine learning algorithm for monitoring or controlling a building system according to an embodiment of the present invention. The training method of figure 10 may be applicable to training a machine learning model for the first time, though it will be understood that part or the whole of the method of figure 10 may be applicable when deploying a previously identified model algorithm for the first time in a new building.

[0158] As for figures 8 and 9, the method of figure 10 begins with the collection of device data at step 801 . Particularly where a new type of building system is considered for model development, it may be that a considerable period of data collection may be required to generate a training data set for model development, for instance over a period of days, weeks, or months. It may be that the data collection phase comprises collecting data from a large number of devices including sensors and system components, whereas during model development it may be that some data sources may be excluded as not being significant influences on the building system or not generating significant data for the generation of model outputs such as predictions and control signals. Step 801 mayfurther include removing missing values, handling outliers, normalizing the data, and encoding categorical variables.

[0159] At step 1001 algorithm type may be evaluated. This may be a largely manual process, or it may be at least partially automated through analysis of the device data and an understanding of type of monitoring or control outputs that are required. Essentially step 1001 comprises selection of a suitable machine learning algorithm for us in the building system. It may be that more than one algorithm is evaluated and tested, or trained, before the most suited algorithm is selected. Particularly, deep learning algorithms based on exploitation of a neural network may be evaluated and selected for model development. The skilled person will be aware of suitable machine learning algorithms that may be deployed. However, suitable examples include linear regression, logistic regression, decision tree, SVM algorithm, naive Bayes algorithm, KNN algorithm, K-means, random forest algorithm, dimensionality reduction algorithms, gradient boosting algorithms, gradient descent fit algorithms, Long Short-Term Memory (LSTM) and the AdaBoost algorithm.

[0160] At step 1002 data types are prepared. This comprises a process of identifying the data sources from the collected device data at step 801 , identifying the data format including the precision and update frequency of the collected data, and defining data types to be provided to the algorithm type or types evaluated at step 1001 . Step 1001 may further include transforming the data into a format that can be used by the machine learning algorithm. This may involve removing missing values, handling outliers, normalizing the data, and encoding categorical variables.

[0161] At step 1003 Exploratory Data Analysis (EDA) is performed based on the collected device data. Exploratory data analysis (EDA) in machine learning refers to the process of analysing and understanding data to extract insights, patterns, and trends. During EDA, the data is analysed for missing values, outliers, skewness, and other data quality issues. Data distributions and correlations are explored using summary statistics and visualization techniques, such as histograms, box plots, scatter plots, and heatmaps. EDA also involves the identification of potential features and the formulation of hypotheses that can be tested through machine learning models. EDA is an essential step in machine learning because it helps to identify the distribution and characteristics of the data, understand relationships between variables, detect outliers and anomalies, and ultimately prepare data for modelling. EDA typically involves techniques such as data visualization, statistical analysis, and data summarization. The goal of EDA is to gain a better understanding of the data and inform decisions about feature engineering, model selection, and other important aspects of the machine learning process. Ultimately, EDA helps to ensure that machine learning models are trained on high-quality data, which is critical for achieving accurate and reliable predictions.

[0162] At step 1004 the machine learning algorithm is built, taking account of the model selection and prepared data types from the preceding steps.

[0163] At step 802 the machine learning algorithm is trained. Training the model involves using the data to adjust the model parameters so that it can accurately make predictions or decisions. For instance, this may involve defining a loss function that measures the difference between the modelpredictions and the actual outcomes, and using an optimization algorithm to minimize this loss function. At step 1005 the machine learning algorithm is evaluated. Evaluation may involve testing the performance of the trained model on a separate dataset to determine how well it generalizes to new data. This may require the collection of further data, or it may be that the data collected at step 801 is partitioned into two parts, a first part for model training and a second part for model evaluation. This may involve computing various performance metrics, such as accuracy, precision, recall, and F1 -score.

[0164] At step 1006 the model may be fine-tuned, for instance if certain data sources or data types are found to not be influential in monitoring or controlling the building system they may be excluded. Or it may be that model prediction accuracy indicates that further data sources may be required. As an example, for a system modelling air quality within a home it may be identified that more environment sensors covering particular portions of the home may be required.

[0165] At step 1007 the model is deployed. For instance, this may comprise the step of supplying the trained model to an edge computing device as described above in connection with figures 1 to 6.

[0166] Turning now to figure 1 1 , this is a flow chart illustrating a method of operating an edge computing device for monitoring or controlling a building system according to an embodiment of the present invention. In certain embodiments, the edge computing device serves to receive some or all the device data at step 1101 , optionally store the device data step 1102 and supply the device data to the fog computing device at step 1103 for model training. However, as noted above, while this arrangement is logical and readily scalable for other building systems, if may be that some or all the devices supply data also or primarily to the fog computing device.

[0167] At step 1104 the edge computing device receives one or more trained machine learning algorithms from the fog computing device for monitoring or controlling a building system. At step 1106 the trained algorithm is executed for processing device data received at step 1105, and model outputs are generated at step 1107. Optionally, though not illustrated in figure 11 , device data received at step 1105 may be supplied to the fog computing device for updating the training.

[0168] Turning now to figure 12, this is a flow chart illustrating a method of operating a fog computing device for training a machine learning algorithm for monitoring or controlling a building system according to an embodiment of the present invention. Device data is received at step 1201 , either via the edge computing device or directly (or a combination of both). At step 1202 the machined learning algorithm is trained, for instance according to the method of figure 10. At step 1203 the trained algorithm is supplied to the edge computing device for implementation.

[0169] At step 1204 the fog computing device receives further device data which is used for updating the training at step 1205 such that an updated trained algorithm may be supplied to the edge computing device at step 1206.

[0170] Figure 13 is a network topology diagram for a distributed Al architecture according to an embodiment of the present invention. Specifically, figure 13 is a network diagram showing a distributed Al architecture within a building such as a home. A single fog computing device 103 is illustrated. This is communicating with a sensing edge 501 and a system edge 502 according to theembodiment of figure 5, (for instance, for monitoring or controlling a building ventilation system as illustrated in figure 6). However, in some examples there may only be a single edge computing device 102 for controlling a building system (for instance according to the embodiments of figures 1 to 4).

[0171] Furthermore, as previously described, a key advantage of certain embodiments of the present invention is that it is scalable for controlling multiple building systems within a building, for instance a home, with a single fog computing device (or a low number of fog computing devices) providing machine learning algorithm training and providing those trained models to an array of edge computing devices associated with the multiple building systems. Each building system may be associated with one or more edge computing devices. In some cases, an edge computing device may execute trained machine learning models for more than one building system, particularly where there is overlap in the devices that provide data to be processed by those models, as discussed below. Accordingly, figure 13 illustrates this scalability by the representation of additional sensing edge computing devices 501 or system edge computing devices 502 indicated by dashed lines. Furthermore, the fog computing device 13 provides further orchestration and coordination services for the control of the multiple building systems.

[0172] Figure 13 further illustrates a variety of devices that provide device data for training a machine learning model or to be processed by a trained model. For instance, there may be at least one sensor 101 (and optionally multiple sensors as indicated by the dashed lines). Alternatively, or in addition, there may be at least one building system component 503 and optionally multiple building system components as indicated by the dashed lines). In some embodiments it may be that each sensor 101 or system component 503 is associated only with a single building system that is monitored or controlled by a single edge computing device 501 , 502. However, in other embodiments I may be that at least one sensor 101 or system component 503 is associated more than one building system, and those building systems may be monitored or controlled by one or more edge computing device 501 , 502. It will be understood that the arrangement of sensors 101 , system components 503 and edge computing devices 501 , 502 will be context dependent for the particular building and building systems to be monitored or controlled. In particular, the precise way in which device data is communicated through the distributed Al architecture will be implementation specific.

[0173] The sensors 101 , system components 503, edge computing devices 501 , 502 and fog computing device 103 communicate with one another through a building network 1301. This may a wired or a wireless network. The present invention is not limited to the nature of the network, nor the communication protocols used to communicate across the network. However, as one example, the Matter protocol, formerly known as Project CHIP (Connected Home over IP), is an open-source standard for smart home devices which may be used in some embodiments of the present invention, at least for communicating device data from sensors 101 and system components 503 and optionally control data for the system components 503. The Matter protocol specification is defined by the Connectivity Standards Alliance and is available at the following URL: https: / / csa-iot.org / all- solutions / matter / . The goal of the Matter protocol is to create a unified, secure, and reliable standardfor smart home devices, so that they can work seamlessly with each other and with different ecosystems. In certain examples of the present invention the edge computing device and the fog computing device may be Matter compliant so as to be able to receive device data from standard Matter compatible smart home sensors and system components. In some cases, off-the-shelf Matter compatible home devices may be used to form sensors or system components according to embodiments of the present invention, with the edge computing device or the fog computing device configured to receive the communicated information in addition to or in place of a conventional data end point for those off-the-shelf components.

[0174] The interoperability Matter protocol is designed to work with a variety of wired and wireless technologies, including Wi-Fi, Bluetooth Low Energy, and Thread. That is, the building network 1301 may suitably be any conventional wireless network. The Matter protocol defines a set of common communication physical layer protocols, security mechanisms, and different vendor device profiles that can be used by smart home devices to communicate with each other within a single ecosystem.

[0175] Thread is a low-power, wireless networking protocol designed for smart home and Internet of Things (loT) devices. Thread is based on the IEEE 802.15.4 standard for low-rate Wireless Personal Area Networks (WPANs). The Thread specification is defined by the Thread Group and is available at the following URL: https: / / www.threadgroup.Org / support#specifications. It uses a mesh networking architecture, which allows devices to communicate with each other directly or through other devices in the network. This means that Thread can provide a reliable and flexible network for smart home devices, even in environments with many devices and obstacles.

[0176] One of the key advantages of Thread is its low power consumption. Thread-enabled devices can operate on small batteries for months or even years, depending on the usage. This makes it ideal for smart home devices such as sensors and switches, which need to operate for long periods of time without requiring frequent battery replacements.

[0177] Figure 13 further illustrates a router 1302 coupled to the building network 1301 . In some embodiments the router may control the building network 1301 , for instance where the building network is a Wi-Fi network and the router 1302 acts as a Wi-Fi access point. The router 1302 links the distributed Al architecture to the internet, and particularly to cloud computing services indicated by cloud 1303. In some embodiments of the invention the fog computing device 103 may be combined with or implement the functionality of a router 1302 such that no separate router 1302 is required.

[0178] According to certain embodiments of the present invention described above an edge computing device and a fog computing device comprise a distributed Al architecture for monitoring or controlling building systems such that building systems may be controlled more effectively without recourse to cloud computing to execute Al algorithms. That is, the edge computing layer and the fog computing layer do not require there to be an available cloud computing layer to implement the present invention. However, there may be embodiments of the present invention in which coordination with cloud computing services may be desirable. As an example, data from buildingsystems may be collected and stored in the cloud 1303. Data from multiple buildings (each implementing their own distributed Al architecture) may be aggregated which may allow for greater insights to be gathered in how building systems operate. This may in turn guide the development of enhanced building control algorithms in the future.

[0179] Furthermore, the presence of a router 1302 and access to cloud computing services allows for additional data to be collected for use in training and executing building control Al models. As noted previously, for monitoring or controlling a ventilation system it may be desirable to obtain information about forecast weather or occupancy information from an outside data source.

[0180] Figure 14 illustrates an edge computing device 102 (or 501 , 502) forming part of a distributed Al architecture according to an embodiment of the present invention. The edge computing device comprises a processor 1401 , memory 1402 and some form of input / output device 1403 configured to communicate with other devices across a network, for instance the building network 1301 of figure 13. The memory 1402 stores executable instructions that, in response to execution by the processor 1401 , cause the edge computing device to perform the method described above in connection with figure 11 or any of the other functions described above in connection with the other embodiments of the invention. The input / output device 1403 allows the edge computing device to communicate with devices such as sensors 101 and system components 503 for receiving device data and transmitting control data, as well as to communicate with the fog computing device 103. In particular, the edge computing device receives a trained Al model (or an update to the trained Al model) from the fog computing device, which is stored in the memory 1402. The processor 1401 executes the trained Al model and uses this to process device data.

[0181] According to certain embodiments, the edge computing device may be a relatively low cost computing device so long as it has the computational capacity to execute a trained Al model. For instance, for monitoring or controlling some building systems a Raspberry Pi computing device may be used, and is available from Raspberry Pi Ltd and described at the following URL: https: / / www.raspberrypi.com / . In some embodiments of the present invention, advantageously the edge computing device incorporates hardware support for predictive or inference Al acceleration.

[0182] Figure 15 illustrates a fog computing device 103 forming part of a distributed Al architecture according to an embodiment of the present invention. The fog computing device comprises a processor 1501 , memory 1502 and some form of input / output device 1503 configured to communicate with other devices across a network, for instance the building network 1301 of figure 13. The memory 1502 stores executable instructions that, in response to execution by the processor 1501 , cause the fog computing device to perform the method described above in connection with figure 12 or any of the other functions described above in connection with the other embodiments of the invention (particularly in relation to training a machine learning algorithm as described in connection with figures 8 to 10). The input / output device 1503 allows the fog computing device to communicate with devices, particularly edge computing devices 102, 501 , 502 and optionally communicate directly with sensors 101 and system components 503. In particular, the fog computing device receives device data to form a training data set and uses this to train a machinelearning algorithm to then provide a trained Al model (or an update to the trained Al model) to an edge computing device.

[0183] According to certain embodiments, the fog computing device may be a relatively expensive computing device (relative to an edge computing device) in order to provide the computational capacity to train a machine learning algorithm in support of an edge computing device to execute the trained algorithm. For instance, suitably an NVIDIA Xavier computing device may be used, which is available from Nvidia Corporation and described at the following URL: https: / / www.nvidia.com / en- qb / autonomous-machines / embedded-systems / jetson-xavier-nx / . Nvidia Xavier computing devices provide for hardware Al acceleration allowing for machine learning algorithm training within the building. In some embodiments, Al acceleration (and in particular, Al inference acceleration) may be provided by leveraging multiple Graphics Processing Units (GPUs) within the fog computing device in parallel.

[0184] In certain embodiments of the invention, for at least one building system where a plurality of building control systems is monitored or controlled it may be that in addition to the fog computing device training a machine learning algorithm adapted for monitoring or controlling that system, the fog computing device also executes the trained Al model to process received device data. While a key advantage of the present invention is scalability through the separation of training and prediction or inference execution, in some situations it may be desirable for the fog computing device to additionally be responsible for model execution.

[0185] In certain embodiments of the invention, in addition to their functions described above, at least one edge computing device or fog computing device may receive device data from at least one controllable device within or associated with the building, process the device data using a control algorithm, and return a control signal to the controllable device. In particular, while the present invention is suitable for controlling complex building system, including those with multiple sensor inputs and system components that influence system states, there may be relatively simple systems or single device that require a degree of control but may not require the use of Al. Spare computing capacity upon one of the devices within the distributed Al architecture may suitably be used to achieve that control. For instance, a relatively simple device that may require control may include a kitchen appliance, for instance an oven, microwave, refrigerator, freezer, or dishwasher; a utility appliance, for instance a clothes washing machine or tumble drier; or a home entertainment device, for instance a television or other audio or visual device.

[0186] Figure 16 illustrates a building or building system sensor device 101 configured to communicate sensor data to a distributed Al architecture according to an embodiment of the present invention. At a minimum the sensor device 101 comprises a sensor 1601 capable of generating sensor data indicative of at least one sensed parameter and some form of input / output device 1602 configured to communicate that sensor data to other devices (particularly, edge computing devices) across a network, for instance the building network 1301 of figure 13. The sensed parameter may be an air quality parameter, for instance temperature, humidity, CO2, and particulate matter (for instance, 2 nm, 2.5 or 10 nm particulate matter). It will be appreciated that in other embodiments thesensor device 101 may include further components, for instance memory configured to buffer sensor data for periodic transmission and a processor to control the other parts.

[0187] Figure 17 illustrates a building system component 301 configured to communicate component data to a distributed Al architecture according to an embodiment of the present invention. At a minimum the building system component 301 comprises an actuator 1701 capable of providing system data indicative of an actuator state and some form of input / output device 1702 configured to communicate that system data to other devices (particularly, edge computing devices) across a network, for instance the building network 1301 of figure 13. The input / output device 1702 may further receive control data to control the actuator 1701 . The actuator may be part of a ventilation system, for instance a fan motor, such that system data provided by the action 1701 may be fan speed and the control data may instruct a change in fan speed. It will be appreciated that in other embodiments the building system component 301 may include further components, for instance memory configured to buffer system data for periodic transmission and a processor to control the actuator in response to received control data.

[0188] Turning now to Figure 18, this is a process flow diagram for an embodiment of the present invention corresponding to a modified form of the distributed Al architecture of figure 6 for the example of monitoring or controlling a ventilation system. Specifically, as noted previously, certain embodiments of the present invention can provide context awareness and / or situation awareness as part of monitoring or controlling a building system. Figure 18 is one example of how this may be implemented.

[0189] Figure 18 corresponds to figure 6 except as noted below and those parts of the system and flows of information should be considered to be the same where indicated by the same reference number, and so will not be described.

[0190] Figure 18 differs from figure 6 firstly in that the ventilation system components 301 do not provide component state information 302 to the fog computing device 103 for training the Al models, though in other variants of the embodiment of figure 18 training of the Al models may continue to be based in part on component state data in addition to sensor data, for the purposes of predicting air quality and controlling the ventilation system components.

[0191] As for figure 6, a predictive Al model is trained by the fog computing device 103 and executed by the environment sensing edge 501 at step 505 for the purpose of forming predictions relating to air quality within the building. As for figure 6, an inference Al model is trained by the fog computing device 103 and executed by the system sensing edge 502 at step 509 for the purpose of controlling components of the ventilation system which the trained model has learnt influence the output of the predictive Al model. Specifically, as for figure 6, the inference model receives as an input a prediction from the predictive model, for instance a prediction that a predicted air quality will fall outside of an air quality or system state range (that is, corrective action is required). The inference model generates control data outputs 510 that are provided to components of the ventilation system that influence the predictive model output to seek to ensure that predicted airquality does not exceed the state range (for instance, to ensure that air quality stays within safe limits).

[0192] Figure 18 differs from figure 6 in that as well as training predictive and inference models based on sensor data (and optionally ventilation system component data), the fog computing device 103 further trains an observational Al model or a reinforcement learning model that is executed by the system edge 502.

[0193] An observational Al model is a type of machine learning model that is designed to learn patterns and relationships in data, in this context the behaviour of a ventilation system by observing and analysing it, without any direct intervention or feedback from humans. Observational Al models are often used for tasks such as anomaly detection, prediction, and classification, where the model is trained on large amounts of data to identify patterns or relationships that can be used to make accurate predictions or classifications on new data. These models are typically trained using unsupervised learning methods, where the model is left to identify patterns in the data without being explicitly told what to look for.

[0194] A reinforcement learning Al model is a type of machine learning model that learns to make decisions based on trial and error through interacting with an environment. It involves an agent that is trained to take actions in an environment to maximize a cumulative reward signal, which is a scalar value that measures the agent's success in achieving its goals. In reinforcement learning, the agent learns by receiving feedback in the form of a reward signal based on its actions. The agent tries to maximize the cumulative reward over time by choosing actions that lead to higher rewards and avoiding actions that lead to lower rewards.

[0195] In the embodiment of figure 18 it is specifically a reinforcement learning model that is executed by the system edge computing device. The purpose of the reinforcement model is to observe and record the states and actions of components of the building system, in this context the ventilation system, and the states and actions of the building occupants. Specifically, at step 1801 observations of the control data sent to the ventilation system components (and optionally the ventilation system component state data) are stored and transmitted to the fog computing device at step 1802. In some cases, this information may not be stored first. As previously described, the fog computing device 103 is also in receipt of environment sensing data indicative of air quality, and also occupancy information relating to the building occupants.

[0196] The purpose of the reinforcement model is to determine what patterns exist within the data, not to control the components devices itself. For the specific example of figure 18 the observations used to train the reinforcement model in relation to air quality and a ventilation system may include:• What air quality threshold or range is set.• Current and historic air quality data.• Algorithm banding for the reinforcement model.• When the occupants are present.• How long building occupants are present.• Time of day that building occupants are present.• How long the inference model and the control data to the ventilation system takes to achieve a desired level.• How much power is needed.

[0197] These metrics are indexed with a machine learning algorithm, classified and a decision discovery machine learning or deep learning algorithm applied.

[0198] The trained reinforcement model is provided to the system edge 502 at step 1803 and executed at step 1804. At step 1805 the executing reinforcement model provides an input to the predictive model. This enables the reinforcement model not only to consider the raw metrics but also behavioural perceptions. An example of this is the reinforcement model adjusts the air quality threshold within safe limits of the banding autonomously without any human intervention if the occupant does not disagree with the change, then the change becomes the threshold.

[0199] The reinforcement model not only considers the raw metrics of the building system component usage but can adjust thresholds autonomously through behavioural perceptions with a condition of safety limits or threshold banding. In the event that the occupant does not raise a concern to the change, the change becomes the new threshold.

[0200] Advantageously, this additional use of a reinforcement model allows for habits and preferences of specific building occupants to be learnt without human intervention, which create historic datasets for future usage and prediction. This can help to reduce energy consumption due to learning new occupant thresholds, for instance for a comfortable heating range.

[0201] As will be apparent from the previous disclosure of methods of predicting air quality, indoor air pollution is an increasing concern in the modern world. Sources of indoor air pollution may be external or internal to a building. It is known to install air quality sensors within a building to measure air quality, and so to quantify indoor air pollution. Such sensors may measure one or more environmental parameters, such as levels of particulate matter in an air sample. It is also known to provide fixed devices within the building to seek to reduce levels of pollution or to maintain measured air quality within a predetermined acceptable range. Such fixed devices may include ventilation devices designed to extract polluted or stale air from a building. Ventilation devices may, for instance, include a MVHR system, a Positive Input Ventilation (PIV) device (which serves to draw in fresh air to push out stale air), extractor fans and window trickle vents. It is known for a building to be provided with a fixed air purifying device whereby a closed circuit is formed in which building air is drawn in, purified, and returned to the building (optionally in the same location or a different location). An air purifier may make use of a pre-filter, to capture larger particles such as dust, pet hair, and lint, and a main filter. The main filter may, for instance, be a HEPA (High-Efficiency Particulate Air) filter formed from densely packed fibres that can trap up to 99.97% of particles as small as 0.3 microns in size, or an activated carbon filter which may also be effective at removing odours, and Volatile Organic Compounds through a process of adsorption.

[0202] It will be appreciated that fixed ventilation or air purification devices are limited in that they can only directly improve air quality in their immediate vicinity and their effectiveness reduces with distance. Unless a building is provided with a dense network of fixed ventilation or air purification devices then there will be locations within the building in which air pollution is not adequately addressed: that is, ventilation or air purification dead spots.

[0203] It is known to use a robot to navigate a building and perform air purification in order to tackle indoor air pollution. For instance, US patent US-10443874-B2 discloses a method for multipoint purification by a robotic air purifier. The method comprises establishing a map of an area to be purified, moving the robotic air purifier within that area, measuring air quality, noting where a pollution threshold is exceeded, marking those locations on the map, and later returning to those locations to perform air purification. However, the method disclosed in US-10443874-B2 is inefficient in that it requires the whole building to be surveyed by the robot before locations where air purification is required can be identified and returned to.

[0204] There will now be described methods of addressing poor indoor air quality that can be combined with or built off the above described methods of controlling building systems.

[0205] The disclosed methods and systems address poor indoor air quality through a novel combination of one or more fixed air quality sensors that may be distributed through an indoor space such as a room or whole building and a robot that is able to navigate through the building either to perform localised air purification or to provide supplementary air quality measurements. Indoor air quality may be improved by performing air purification where it is most required, which may be at locations remote from fixed ventilation or air purification devices or close to sources of pollution. At the same time, a more efficient robotic air purification system is provided, for instance because the robot need only be operated when the fixed sensor network indicates that it is required.Furthermore, an improved understanding of the variance of indoor air quality may be provided by supplementing the fixed air quality sensor data with air quality data measured as the robot traverses the building.

[0206] Turning to figure 19, this illustrates a floorplan for a building 1900 within which a robot may be operated to perform air purification or to measure air quality. For simplicity, only a single room 1900 is illustrated though of course this is extensible to any building layout, for instance interconnected rooms. The building 1900 includes a plurality of objects 1901 , such as furniture, internal room dividers or anything else around which a robot 1902 must navigate, as is expanded upon in the following description. The building 1900 further includes a fixed ventilation system comprising an air inlet 1903 at one side of the room and an air outlet 1904 upon another side of the room. It will be appreciated that this is only one example and any combination of known, fixed ventilation or air purification devices may be provided within the room, and which can be activated in the event that poor indoor air quality is detected. In the example of figure 19 the ventilation system may comprise part of an MVHR system, a PIV system (combined with an outlet), an air conditioning system or any other known ventilation system type. The present disclosure is not directly concernedwith the nature of any fixed ventilation or air purification system, only whether one is provided within a building and whether it can be activated upon demand, as discussed below.

[0207] The room further includes first and second fixed air quality sensors 1905 which are shown mounted roughly upon diametrically opposite sides of the room. It will be appreciated that there may be any type, number, or distribution of air quality sensors within a building 1900, including the option for there to be only a single fixed air quality sensor. The air quality sensors 1905 may, for instance comprise particulate matter sensors, for instance adapted to measures levels of particulate matter in an air sample. Known particulate matter sensors can provide air quality data indicating levels of particulate matter down to a minimum particle size of 10 microns, 4 microns, 2.5 microns, or even 1 micron. Furthermore, the air quality sensors 1905 may be adapted to provide air quality data in respect of other environmental parameters, for instance level of gas such as CO2, temperature, humidity, or any other factor known to be used to characterise indoor air quality. The air quality sensors 1905 may further provide air quality data giving an indication of air quality based upon a combination of different sensed parameters. The present invention is not directly concerned with the nature of the air quality sensors or the type of air quality data that they can provide, only how this may be interpreted and used to control a robot, as discussed below. Figure 19 further shows an air quality data dead spot 190, roughly equidistant between the air quality sensors 1905. It will be appreciated that a dead spot comprises a region of the building 1900 remote from a fixed air quality sensor 1905 and / or for which it is possible that there could be a significant deviation from the air quality data measured at the fixed sensor 1905. That is, a dead spot comprises a location where the air quality is unknown. Depending upon the size, shape, and layout of a building, there may be multiple dead spots 1906 within a building. The number of dead spots 1906 may also depend on the number, type, and distribution of air quality sensors.

[0208] Figure 19 further shows robot 1902 and robot docking station 1907. An exemplary robot 1902 is shown in figure 20. The robot docking station 1907 may comprise a location to which the robot 1902 returns after use. It may provide power to the robot 1902, for instance through a wireless charging mechanism. In some examples there may be no such docking station. It will be appreciated that a robotic air purification system or air quality measurement system is not new, per se, for instance one is disclosed in US-10443874-B2 discussed in the background section above. Accordingly, the configuration of a robot and any docking station is not further discussed beyond the schematic illustration of figure 20.

[0209] Figure 20 schematically illustrates the robot 1902. The robot 1902 comprises one or both of an air purification system 2000 and an air quality sensor 2001 . These may be of any known type. The robot 1902 further comprises some form of propulsion 2002. This may be of any suitable type. For instance, the robot 1902 may be mounted on wheels that are electrically driven, in a manner that is well known for robots including in domestic settings, such as robot vacuum cleaners. The robot 1902 further comprises some form of power supply 2003, for instance a battery and a wireless charger to operate in connection with the robot docking station 2005. Robot 1902 further comprisesa processor 2004 and a memory 2005 to store computer program code executed by the processor 2004 to control the various functions of the robot 1902.

[0210] Turning now to figure 21 , this illustrates a method of purifying air within a building using a robot according to a first example. Figure 21 is a process flow diagram illustrating processes happening at robot 1902, and first and second air quality sensors 1905 within a building. The robot 1902 and the sensors 1905 may be the same as described above in connection with figure 19. However, of course, the method of figure 21 is not limited to the specific floor plan for figure 19. For instance, there may be any number of air quality sensors 15 throughout the building, including the option that there may only be a single air quality sensor 1905.

[0211] At step 2100 the robot 1902 scans a network to detect one or more air quality sensors 1905. For instance, the sensors 1905 may be configured to wirelessly broadcast their measured air quality data. Or the sensors 1905 may transmit air quality data only to the robot 1902 (directly or indirectly).

[0212] At steps 2101 and 2102 the robot 1902 requests air quality data from each respective air quality sensor 1905 detected through the network scan 2100. It will be appreciated that this process is only one example. In other examples the network scan 2100 may not be required (for instance, necessary if the robot 1902 is already in possession of this information), or not required every time air quality data is to be requested. Furthermore, the air quality sensors 1905 may push the air quality data to the robot 1902 such that no specific request is required.

[0213] At steps 2103 and 2140 the robot 1902 receives air quality data measured at the or each fixed air quality sensor within the building 1900. The embodiment of figure 21 shows the air quality data being transmitted directly from each air quality sensor 1905 to the robot 1902. However, this is only one example. For instance, with reference to figure 6 which shows a distributed Al architecture including an environment sensing edge 501 and environment sensors 101 , it will be understood that the air quality sensors 1905 may comprise examples of environment sensors 101 and that the robot 1902 may receive air quality data via the environment sensing edge computing device 501 (or optionally via fog computing device 103). The present disclosure is concerned more with how the robot 1902 processes air quality data from fixed air quality sensors and responds to the air quality data than with how the robot 1902 acquires the air quality data.

[0214] Once in possession of the air quality data, the robot 1902 determines whether it should operate (that is, to navigate through the building and purify air or perform air quality measurements at one or more locations). This determination of whether to operate may include at step 2105 comparing the received air quality data to an air quality range indicating acceptable air quality to determine at the robot whether air quality within the building is within or outside of the air quality range. The air quality range may comprise a threshold. For instance, where air quality data is indicative of the level of particulate matter in a sample, an upper threshold for the amount of particulate matter may be set, which if exceeded indicates that the indoor air quality is poor. Alternatively, the air quality data may be indicative of a combination of different sensedenvironmental factors, or otherwise indicative of overall air quality. It may be that a higher score is indicative of better or poorer air quality and so the air quality range may comprise a threshold and the comparison may be whether the air quality score is higher or lower than the threshold. The comparison at step 2105 may be performed separately in respect of air quality data for each sensor 1905. Alternatively, aggregate air quality data for a plurality of sensors may be compared to the air quality range. As an example, various government agencies have defined Air Quality Indexes (AQI) for various combinations of sensor data. Within the European Union a Common AQI (CAQI has been defined based on a combination of sensed NO2, O3 and particulate matter, with an index given between 0 and 100 (where a higher number indicates worse air quality). Within this, five bands are determined. The comparison at step 2105 may comprise determining which band the air quality data falls within, and the threshold may be set according to a maximum acceptable band.

[0215] In some embodiments, if it is determined that air quality within the building is outside of the air quality range, at step 2106 the method further comprises navigating the robot 1902 within the building and at step 2107 operating the air purifier 2000 mounted on the robot to improve the air quality within the building. However, in other embodiments described below, particularly in connection with figure 23, a determination of out of range air quality data may not be determinative of whether the robot should operate: other factors may also be considered. Step 2107 may comprise first measuring the air quality at the current location of the robot and only performing air purification if this is required. It may be that the robot will remain in each location for a variable period of time until air quality is restored to within the acceptable air quality range. If the received air quality is not outside of the air quality range (either overall, or for any one of the sensors) then it may be determined that the air quality within the building is acceptable and that there is no need to operate the robot. It will be appreciated that energy is expended in propelling the robot 1902 within the building and in operating the air purifier 2000. Accordingly, if the robot 1902 is able to determine that indoor air quality is acceptable then the robot need not be used for air purification. If on the other hand it is determined that there is a need for robotic air purification, then further efficiency gains may be made by considering which portions of the building should be visited by the robot based on the received air quality data, as discussed below.

[0216] The embodiment of figure 21 (and indeed the embodiments of certain of the following figures) is based upon the robot 1902 performing the required computation for itself (for instance, using processor 2004 of figure 20) to determine whether or not it is necessary to move within the building and perform air purification. However, in other examples it may be that the processing to determine whether the robot should act (and optionally where it should travel to within the building and where the air purifier should be operated) may be performed elsewhere. For instance, with reference to figure 6, it may be that the air quality data is processed at an environment sensing edge computing device 501 , the fog computing device, in the cloud, or optionally a further edge computing device dedicated to controlling the operation of the robot. It will be appreciated that where processing takes place upon the robot 1902, in effect the robot 1902 is operating as an edge computing device (and may thus be referred to as a robot edge computing device). For clarity, thesome or all of the processing indicated as taking place at the robot 1902 in each of figures 21 to 24 may occur elsewhere such that to some degree the robot 1902 is remotely controlled.

[0217] Turning now to figure 22, in some embodiments if the received air quality data indicates that there is or may be poor air quality detected at one or more air quality sensor then step 2106 of navigating the robot within the building is preceded by a process of affordance inference 2200 and route calculation 2201. Affordance inference 2200 comprises an inference at the robot, based on the received air quality data (or predicted air quality as discussed below), of one or more locations within the building where the air quality may be outside of the air quality range, and the necessary actions that the robot should perform including whether it should operate at all. In the context of robotics, an affordance is a relationship between an actor (i.e., robot), an action performed by the actor, an object on which this action is performed, and the observed effect. A robot able to discover and learn the affordances of an environment can autonomously adapt to it. The term “affordance” is discussed in detail in “Affordance Equivalences in Robotics: A Formalism”, M. Andries et al., Frontiers in Neurorobotics, 8 June 2018, and available at the following URL: https: / / www.frontiersin.org / articles / 10.3389 / fnbot.2018.00026 / full. For the purposes of this patent specification, affordance includes a process of inferring whether the robot 1902 should operate in response to the received air quality data. Affordance may include the comparison to the air quality range 2105 (shown separately in the figures for clarity). Affordance may include inferring one or more location within the building where the air quality is outside of the air quality range, or one or more locations where the air quality is unknown (that is, a dead spot). It may further include determining a location where the air quality is within the air quality range (including for instance a location where a fixed air quality sensor reports acceptable air quality). Affordance may include determining whether the robot navigate within the building and if so where it should travel to within the building and where the air purifier should be operated (though again for clarity, the step of calculating a route 2201 is shown separately).

[0218] For a conventional robot adapted to operate within a building, such a robot vacuum cleaner or the robot air purifier disclosed in US-10443874-B2, affordance may typically comprise no more than how to navigate a floor map to avoid objects (for instance, objects 1901 shown in figure 19), for instance through the use of Light Detection And Ranging (LiDAR), or through the use of Bluetooth beacons. It will be appreciated that this may form part of the affordance process for robot 1902 also.

[0219] Affordance inference may take account not only of actual air quality data received from the air quality sensors 1905 but also an air quality predictive model (which may be running upon the robot edge computing device or elsewhere) that seeks to predict future air quality deterioration so that the robot may act sooner (for instance to perform air purification even before the air quality falls outside of the acceptable air quality range). The air quality prediction model may operate substantially as described before, for instance in connection with figure 6, and so a full explanation is not repeated here. However, in summary, the robot (or another computing device within a system such as that of figure 6) may process received air quality data or air quality data measured by the robot using a first trained predictive machine learning algorithm to provide a current or a future airquality prediction for the building or a region within the building. This prediction may be used to navigate the robot within the building and to operate the robot’s air purifying device to improve the air quality within the building if the current or future air quality prediction is outside of the air quality range. The trained predictive machine learning algorithm may be received from a fog computing device such as fog computing device 103 of figure 6. In some embodiments air quality data measured by the robot (and / or air quality data from fixed air quality sensors) or data indicating operation of the robot air purifying device may be provided to the fog computing device for training or updating the training of the first predictive machine learning algorithm.

[0220] As briefly noted above, a further affordance extension in accordance with certain examples is that the locations of the air quality sensors 1905 may be considered along with their reported air quality data. An example is that if one sensor reports poor air quality but for a second sensor the air quality is acceptable then the robot may determine that it is not necessary to navigate to the location of the second sensor. It may also be determined that there is no need to navigate to within a predetermined distance of an air quality sensor that is reporting acceptable air quality. In some embodiments that predetermined distance may be proportional to the air quality data: for example, for an air quality sensor that reports acceptable air quality, but close to the limits of the acceptable air quality range, then the predetermined distance may be smaller than for a further air quality sensor that reports excellent air quality.

[0221] Accordingly, the process of affordance 2200 can be summarised as a process of determining whether a robot should operate, if so which regions of the building should be visited by the robot 1902, and what action should be taken in those regions according to actual or predicted air quality. Optionally, the process of affordance 2200 may encompass the prioritisation of particular regions of a building where air purification may be required, as discussed in greater detail below.This results in greater power efficiency for the robot, and reduce response time for addressing actual or predicted poor air quality.

[0222] Following the step of affordance inference 2200, the step of route calculation 2201 may comprise a process of calculating an optimal route to visit the locations identified by the affordance processing. In some cases, route calculation may be considered to form part of the affordance inference itself. Suitable route calculation algorithms will be well known to the skilled person.

[0223] Figure 22 further includes step 2202 of recording results. This may comprise measuring the air quality at the robot 1902 within the building at locations where there is not a fixed air quality sensor. This may comprise measuring air quality before and after air purification has been performed by the robot 1902. These measurements may be used to supplement a map of air quality data within the building. They may further be used to train or update the training of a predictive machine learning algorithm used as part of the affordance processing, as discussed below, or as part of the training of a reinforcement machine learning algorithm operating for instance on a fog computing device, as discussed below in connection with figure 23. The training data may also include information about the operation of the air purifying device mounted on the robot, for instance locations and times for which the device was activated.

[0224] The process of affordance inference 2200 may further comprise forming at the robot 1902 a map of air quality within the building based on the received air quality data and corresponding measurement locations for the fixed air quality sensors 1905. Such a map may be used to determine a location within the building where the air quality may be outside of the air quality range. The map may be supplemented with air quality data measured by the robot 1902 as it navigates within the building and corresponding measurement locations (step 2202 of figure 22). One use for the map may be to determine a dead spot location within the building spaced apart from known measurement locations. An example dead spot 1906 is shown in figure 19, lying equidistant between a pair of fixed air quality sensors 1905. It will be appreciated that as more measurement locations are added to the map (both fixed sensors and recent air quality measurements performed by the robot 1902) then dead spots may be determined more accurately as being equidistant between two or more measurement locations. Similarly, to the affordance technique noted above, whereby a radius about sensors reporting good air quality is determined, it may be that dead spots are determined to comprise regions outside of a known or assumed good quality zone about recent air quality measurements. As more measurement locations are plotted, the size of a dead spot region may be reduced. Accordingly, a more efficient route may be calculated through the building for the robot to navigate in which less space needs to be investigated for possible air purification.

[0225] In some embodiments, the map may be interpolated to determine estimated air quality data at intermediate locations between measurement locations in order to determine regions of the building where it is expected that air quality falls outside of the acceptable range.

[0226] In a further extension, in some embodiments the map may be updated to remove air quality data older than a first time threshold. That is, the reliability of air quality data may be assumed to degrade with time and a threshold may be established beyond which it is not considered to be reliable enough to be of use in determining whether the robot should operate at all (step 2105) or for affordance inference (step 2200) or route calculation (step 2201).

[0227] Turning now to figure 23, this illustrates an alternative implementation option in which the robot 1902 communicates with a fog computing device 2300 (which may be the same as fog computing device 103 shown in figure 6, for instance) instead of directly communicating with the air quality sensors 1905. The air quality sensors 1905 provide air quality data to the fog computing device 2300 at steps 2301 and 2302. At step 2303 the robot 1902 requests this air quality data from the fog computing device 2300 along with a map of air quality within the building that has been established by the fog computing device 2300 and location data for the air quality sensors 1905.

[0228] As discussed previously, a predictive machine learning algorithm may be operating upon the robot to predict current and future air quality data within the building. This is shown in figure 23 as step 2305. The trained predictive machine learning algorithm may be received from the fog computing device 2300. Additionally, the predictive machine learning algorithm at the robot 1902 may also determine based on the received air quality data an estimated time for a fixed ventilation or purifying system to return an out of acceptable range air quality measurement to the acceptablerange. This may be used during the affordance inference 2200 as part of determining whether the robot should operate, for instance if the time exceeds a second time threshold.

[0229] Furthermore, a reinforcement machine learning algorithm 2306 is implemented upon the fog computing device 2300. In an alternative embodiment the processes described here at the fog computing device 2300 may be performed elsewhere, for instance at a ventilation system edge 502 as illustrated in figure 6. The fog computing device 2300 may be connected to one or more components of a building ventilation or fixed air purifying system, such as inlets and outlets 1903, 1904 shown in figure 19. Accordingly, the fog computing device 2300 may in possession of data concerning the operation and performance of one or more parts of a ventilation or fixed air purifying system, such as a PIV, MVHR, window trickle vent or any other type of actuator. In the event that air quality data received at the fog computing device 2300 indicates that air quality has fallen outside of the acceptable air quality range, the reinforcement machine learning algorithm 2306 also determines an estimated time to improve air quality within the building or at a determined first location such that the air quality is within the air quality range using one or more of the fixed air purifying or ventilation devices within the building. This estimation is determined separately to the robot’s estimation. The reinforcement inference at step 2306 is a determination of a most suitable remedy to a detected instance of poor indoor air quality, which may be to use a fixed building system, the robot, or both. The robot 1902 queries the fog at step 2307 and at step 2308 the fog responds with the result of the reinforcement inference.

[0230] At step 2200 the affordance inference of whether the robot should operate, and if so where within the building it should navigate and what action should take place is also based in part of the fog response 2308. That is, the robot 1902 considers not only its own processing of the received air quality data (for instance, an inference of one or more locations where the air quality is unacceptable or unknown, or its own estimate of the time to remedy that poor air quality using fixed building systems) but also the remedy determined by the fog. In some cases, the robot 1902 may defer to the action instructed by the fog. In other cases, it may have the autonomy to select a different operation. It may be that the robot is only instructed to navigate the building and perform air purification if the estimated time (its own estimate or that estimated by the reinforcement inference at the fog) exceeds the second time threshold. Accordingly, more efficient operation of the robot is enabled by only using the robot when existing building ventilation or air purification systems do not suffice to address detected poor air quality. If the second time threshold is not exceeded, then the fog computing device 2300 may directly control or active one or more ventilation or fixed purification device to address the detected low air quality.

[0231] If the second time threshold is exceeded, then in some cases the determination of route and dead spots to investigate by the robot may be instructed directly by the fog computing device. The results recorded by the robot at step 2202, including information about how the robot has been operated, may be supplied to the reinforcement algorithm operating upon the fog computing device for reinforcement training. As an example, prior to the robot 1902 acting it queries the fog computing device to determine the best option. If a first sensor 1905 has provided air quality data indicating airquality within the acceptable range and a second sensor 1905 is borderline, the fog computing device may determine that the best course of action is to switch on a building ventilation system for a predetermined period of time to remedy the situation. In a second example if two sensors indicate acceptable air quality it may still be determined that the robot should operate to investigate determined dead spots. On completion of the advised best option from the fog computing device the operation of the robot is recorded and returned to the fog computing device for future learning. In a further extension, any detected deviation from air quality predicted at step 2305 may also be recorded for future learning.

[0232] Reinforcement learning may also be used to improve the determination of dead spots, for instance by identifying locations where air quality is detected by the robot to significantly deviate from measurements performed by the fixed air quality sensors.

[0233] Turning now to figure 24, this illustrates a method of measuring air quality within a building in accordance with another example. The focus of the method of figure 24 is on use of a robot to supplement air quality data from fixed sensors with roving measurements performed by the robot 1902. Steps 2100 to 2104 are as described previously for figure 21 . At step 2400 the robot 1902 navigates within the building. This navigation may be the same as previously described for step 2106 however it need not be predicated on comparison of received air quality data to an acceptable air quality range. In some cases, a determination is first made whether the robot should operate based on the received air quality data. For instance, if all fixed sensors report good air quality, the robot may determine to take no action. In some cases, the robot may periodically traverse the building. At step 2401 air quality is measured at the robot 1902 within the building at locations where there is not a fixed air quality sensor. In some examples this measurement process may be combined with or performed simultaneously with the previously described air purification processes. Advantageously, the air quality measurements by the robot allow a more detailed picture of air quality within a building to be established.

[0234] In some embodiments, a map of air quality within the building may be formed based on air quality data received from the fixed air quality sensors at steps 2103 and 2104 and corresponding measurement locations for the fixed air quality sensors. This map may then be supplemented with air quality data measured by the robot 1902 at step 2401 and corresponding measurement locations.

[0235] As previously discussed, the map may be updated to remove air quality data older than a first time threshold. Also, forming a map may further comprise interpolating air quality at locations between measurement locations. The map may be used to determine a location within the building where the air quality may be outside of an air quality range.

[0236] For the previously described examples, navigating the robot through the building comprises may comprise prioritising visiting some portions of the building over visiting other portions.Prioritised portions of the building may include known regions of the building where air quality measurements have previously differed from measurements recorded at the fixed air quality sensors, those known regions being preprogramed or determined from previous operation of therobot. This may be on the basis that regions of the building that have previously shown poor air quality may be expected to be more likely to suffer from poor air quality in the future. Furthermore, regions of the building where it is predicted that air quality measurements may differ from measurements recorded at the fixed air quality sensors may be prioritised to be visited again. This may be based upon a reinforcement learning model whereby repeated operation of the robot allows a picture to be built up of where air quality deterioration may go undetected. As well or instead, the prediction may be based on operation of a camera mounted on the robot to determine a layout of the building or a room within the building or furniture or other obstacles located within the building indicative of low air circulation. Furthermore, in some cases regions within the building that are a priority for maintaining air quality within the air quality range, may be visited more often, including regions where people congregate, either preprogramed or determined using a camera mounted on the robot.

[0237] Where the robot navigates within the building this may comprise one or more of: providing the robot with a map indicating the layout of the building; using a camera mounted on the robot to determine a layout of the building or a room within the building; or using the camera mounted on the robot to detect furniture or other obstacles located within the building. Particularly, the camera mounted on the robot may be used to determine a layout of the building or a room within the building by receiving image data from the camera and classifying received image data according to detected object type.

[0238] Where a map is initially provided to the robot, the map may indicate the locations of fixed air quality sensors or fixed air purifying or ventilation devices. As well or instead, the method may further comprise using the camera mounted on the robot to detect the locations of fixed air quality sensors or fixed air purifying or ventilation devices.

[0239] The previously described examples may make use of a single air quality range throughout the building. Alternatively, different air quality ranges may be applied in different regions of a building. For instance, an air quality range applied in a region of the building where it is known or detected that people congregate is indicative of cleaner air than an air quality range applied in a region of the building that is unoccupied.

[0240] According to some embodiments, the robot may be configured to determine sources of pollution through fixed or robot air quality measurements or through a camera mounted upon the robot. If a pollution source is detected, then the robot may be navigated towards the pollution source to perform air quality measurements or to perform air purification.

[0241] Examples may further comprise receiving a signal from a building occupancy sensor indicative of occupancy levels. This may for instance be received directly or indirectly from a sensor such as a motion sensor or camera system. If a signal is received indicating that the building is occupied, then the robot may navigate through the building to perform air purification or air quality measurements more frequently.

[0242] In some embodiments if it is determined that air quality has fallen outside of an acceptable range then a signal may be transmitted (for instance from the robot) to a fixed air purifying or ventilation device instructing the air purifying or ventilation device to operate.

[0243] As previously described, there are multiple further ways in which the distributed computing platform described above may be effectively and efficiently used. This may take advantage of the fog computing device as required for computationally expensive processing, in combination with one or more edge computing device to perform other parts of the processing. That is, the single fog computing device described above may be used for a portion of its time on one task (such as the building system control algorithm training described above) and be used for another portion of its time on another task. An example relating to video processing will now be presented.

[0244] It is commonplace to deploy video cameras within a building such as a home, particularly as part of a security system. It is known for the cameras to implement a certain degree of video processing, for instance basic object detection, which may be used as a trigger to initiate recording of the video data at a Network Video Recorder (NVR) or to trigger an external system (such as a security alerting system). However, conventional video cameras implementing object detection often result in a large number of false positives (that is, an indication that a predetermined object type has been detected when it is not in fact present). This may cause the user to lose confidence in the accuracy of the security system.

[0245] A conventional security system will now be described in connection with figure 25. Figure 25 shows a plurality of video cameras 2501 (there may be any number including only a single camera). These may be located about a building such as home, for instance monitoring entrances to the building or the grounds around the building. The cameras may be conventional, off the shelf IP cameras. That is, they may communicate through the Internet Protocol (IP) protocol wirelessly or suitably through a wired connection. Figure 25 shows each camera connected through a wired connection to a Power Over Ethernet (POE) switch 2502, though any suitable communication technique and power supply may be used. In turn, the POE switch 2502 is connected to an NVR or Digital Video Recorder (DVR) 2503 for recording video data supplied by each camera 2501 . The POE switch 2502 is also connected to an internet hub 2504 to enable communication between the NVR / DVR 2503 and an external service 2505 via a network such as the internet 2506.

[0246] The IP cameras 2501 send video to the NVR 2503, for instance using the Real Time Streaming Protocol (RTSP). Each camera 2501 also incorporates the native Al processing capability to perform basic object detection and feature extraction. Object detection notifications are communicated to the NVR 2503, for instance through the Open Network Video Interface Forum (ONVIF) protocol. For instance, as illustrated, each camera 2501 is capable of detecting a person, vehicle, or pet within the field of view and sending an object notification along with the underlying video data. For consistency with the embodiments of the invention described below, this may be referred to as layer A processing (though in figure 25 there is no layer B processing).

[0247] In response to an object detection notification the NVR 2503 decides whether to upload data to the cloud or send some form of notification, connecting via the switch 2502 and hub 2504. The NVR 2503 decides on the appropriate action. For instance, the external service may comprise a notification being sent to a user’s mobile device (illustrated at 2505).

[0248] As noted above, IP security cameras with some inbuilt Al capacity are known. They can perform object detection, for instance, to detect a person, animal, or vehicle and when so detected generate an output (for instance, an alert to a user’s device with a stream of the video - live - or a clip showing the detected object). However, the known problem is the high number of false positives - for instance, a leaf blowing past camera, a drop of water on lens etc. may give rise to a false object detection notification. Users may start to ignore alerts sent to their mobile devices 2505. A further issue is that conventional security camera systems have no consideration for “Context Awareness” of their surroundings.

[0249] One option to address the problem of false positives would be to increase the Al capability of cameras, however this is not considered practicable due to the high numbers of installed cameras, and the cost of providing additional computing capacity as frequently a large number of cameras are deployed in a building. An alternative approach would be for security camera video footage to be passed to the cloud for processing. However, this raises privacy concerns.

[0250] The present inventor has identified that for a home where a distributed computing architecture as described above is already employed then this may be leveraged to provide for improved Al driven smart home computer vision. This may be particularly suitable as part of a building security system. This provides the benefit of economy of scale, partly by leveraging the existing computing capacity of the fog computing device and partly by not requiring each camera to be equipped with more expensive computing capability - existing, low cost, off the shelf IP cameras may be used, performing their native object detection.

[0251] Turning now to figure 26, this illustrates a video processing system according to an embodiment of the present invention. In this context, the terms “video processing” or “video data processing” should not be understood as referring to conventional processes such as encoding and decoding. Rather, what is meant is a process whereby video data is processed using Al to perform inferences about the content of the video data. This may be referred to instead as “computer vision inference”. The present invention provides a hierarchical, scalable, computer vision architecture that accelerates computer vision inference. Where components are the same as for figure 25, the same reference number is used, and they will not be described again. In particular, the same form of IP camera, POE switch, and internet hub may be used, and communication may suitably take place through the RTSP and ONVIF protocols (however the present invention is not limited to any particular communication protocols).

[0252] The present invention is in essence a processing prioritisation system. As for the prior art of figure 25, all video data processed at each video camera 2501 to perform basic object detection, for instance to identify a person, vehicle, or pet. This may be referred to as Layer A processing.

[0253] If an object is detected, the result and the underlying video passed (for instance, via the POW switch 2502) to an edge processing device 2601 which performs further classification to reduce the incidence of false positives and to make judgements about what types of objects have been detected. This may be referred to as Layer B processing. The edge processing device 2601 may be generally the same as described earlier in this patent specification. In some cases, an edge processing device that is also responsible for monitoring a building system may also be used for video processing. In other cases, a dedicated edge processing device 2601 may be provided for video processing.

[0254] For example, where video data is processed as part of a security system, if a camera 2501 detects a person, the edge processing device may perform further classification (and / or image segmentation) to determine whether to classify the person as a child, teenager, or adult. Further classifications are possible, for instance whether the person is elderly. The edge processing device may also count the number of people present. Depending on the number or type or person detected, the edge processing device 2601 determines whether to pass the video data, object detection and result of Layer B processing to a fog processing device 2602 for further processing (Layer C processing). As well or instead an output may be generated by the edge computing device 2601 , for instance, a conventional user alert as described above, which may be communicated by the internet hub 2504. Accordingly, data is only passed to the fog processing device 2602 when required, which is advantageous due to other computing demands placed on the fog computing device 2602.

[0255] As an example, if Layer B processing at the edge computing device 2601 detects multiple youths then the fog computing device 2602 may be used to perform Layer C processing to determine whether they represent a security threat. A security threat may be indicated by what the people are doing (for instance, climbing a wall), how dense the cloud is and whether they are carrying anything. The result of Layer C processing is that the fog computing device determines an appropriate response, which may for instance be to alert the user, inform police or private security, issue a visual or audible alarm or control any other part of a building system, for instance to lock exterior doors and windows.

[0256] In some examples, the prioritised processing system of the present invention is failed safe as the edge computing device can continue to perform processing if the fog computing device is unavailable. Similarly, the camera could revert to a conventional mode of operation if the edge computing device is unavailable.

[0257] In some examples, the fog is also responsible for training the classification model performed by the edge (with periodic transfer of classification data and underlying video from edge to fog), as described above. The fog may perform its own model training and execution.

[0258] Embodiments of the present invention described above operate in conjunction with a video camera with the inbuilt Al capability to perform object detection. According to other embodiments, the system may be adapted to work with “dumb” cameras that simply feed video data to the edgeprocessing device to perform initial object detection (or at an intermediary object detection node). It will be understood that this may comprise a less scalable solutions than the use of IP cameras with native object detection, plus many of these are already deployed reducing user friction to buy into the system.

[0259] Other uses case scenarios include monitoring what a person eats for dietary reasons: the camera detects a person, the edge works out if they are eating, and the fog works out what they are eating. Also, the system may be used for elderly person monitoring: the camera detects a person, the edge works out if that person is elderly, and the fog monitors for alert conditions, for instance if the person is lying on floor for long time.

[0260] Embodiments of the present invention provide for context awareness: the presence of people is not necessarily a threat, but people somewhere they are not permitted can be a threat.

[0261] In some cases, the Layer B processing may be an extension of the Layer A processing at the camera. For instance, if camera is 32 point face recognition, the edge might be doing more detailed face recognition.

[0262] Turning now to figure 27, a computer implemented method of processing video data within a building according to an embodiment of the present invention is described in the form of a flowchart. At step 2701 a camera 2501 performs Layer A processing, for instance to perform object detection. At step 2701 a determination is made whether Layer A processing = true (for instance, if an object has been detected). If an object is detected, then a notification is transmitted to the edge computing device 2601 and Layer processing is performed at step 2703. The Layer B processing comprises further classification of the detected object or classification of a further object within the video data. At step 2704 the edge computing device 2601 determines whether Layer B processing of the video data is required. That is, whether the result of Layer B processing = true. If so, then at step 2705 the fog computing device 2602 performs Layer C processing. The Layer C processing determines whether to generate an output signal or a control signal for a building system based on the video data, the detected object, and the results of the first video data processing. If so (that is, Layer C processing = true then at step 2707 the fog computing device issues an output as described above.

[0263] The various processing layers will now be described in greater detail.

[0264] Layer A processing comprises principally object detection. This layer exists within the off the shelf IP camera itself which can perform object detection, light feature extraction and light classification. The most common being object detection typically performed to determine a person, vehicle, or pet. This level of implicit computer vision Al is low in computational requirements making it affordable for low powered embedded IP cameras. Suitably, Layer A processing may be executed using Haar Cascades, Principal Component Analysis (PCA), Convolutional Neural Networks (CNN), or a State Vector Machine (SVM).

[0265] Layer B processing comprises principally image segmentation, advanced classification, or model inference execution. This layer exists 'A,ithin the edge sub system and gets event triggered ifLayer A = true. Layer B also performs computer vision segmentation and more computational classification beyond layer A capabilities. Segmentation partitions the image into multiple image segments this reduces the complexity of the scene and allows for non-linear further classification on different segments. The Layer B processing adds a priority to the hierarchy. Suitably, Layer B processing may be executed using segmentation, clustering k-means, K nearest neighbour, advanced classification, naive Bayes, random forests, logistic regression, or thresholding.

[0266] Layer C processing comprises principally context awareness or situational awareness. Layer C inherits the segmentation of Layer B and classification characteristics. This layer can understand its segmented surroundings and can further classify, predict for instance if an event is a threat, health, or risk disability. Suitably, Layer C processing may be executed using an Al transformer model, indexed parallel inference, CNN, or region-CNN (R-CNN). Table 1 below identifies for three different use case scenarios the processing that takes place at each layer.Table 1 .

[0267] According to certain embodiments, for an IP camera as described above, the method further comprises receiving, at the edge computing device, the video data, and the indication of a detected object within the video data from a video camera associated with the building. However, while it is expected that the IP cameras with inbuilt object detection capability will be used, in some examples of the present invention cameras without such inbuilt capability may be used, in which case the edge computing device receives the video data from a video camera associated with the building and processes the received video data at the edge computing device to detect an object within the video data.

[0268] In some cases, the result of the Layer B processing at the edge computing device may comprise a forked decision. For instance, if a possible threat is identified, this may be termed priority 1 and result in the video data being passed to the fog computing device for further processing as described above. However, another outcome may be a lower priority (priority 2) such as the detection of a teenager carrying a football. This may not be deemed a threat and may result in appropriate action being taken without requiring fog processing.

[0269] In some examples, the edge computing device may be omitted, and the Layer B and Layer C processing executed by a fog computing device (either sequentially or in parallel). It will be appreciated that this loses the benefit of minimising the processing demand placed on the fog computing device (which may have other, unrelated roles).

[0270] The present invention may further comprise training a first machine learning algorithm using video data and indications of detected objects within the video data at the fog computing device; and providing the trained first machine learning algorithm to the edge computing device; wherein the first video data processing comprises processing the video data using the trained first machine learning algorithm. It will be appreciated that this use of the fog to train an Al algorithm or model for the edge to execute mirrors the split between model training and model execution described above in connection with monitoring or controlling a building system.

[0271] It will be appreciated that examples of the present invention can be realized in the form of hardware, software or a combination of hardware and software. Any such software may be stored in the form of volatile or non-volatile storage, for example a storage device like a ROM, whether erasable or rewritable or not, or in the form of memory, for example RAM, memory chips, device, or integrated circuits or on an optically or magnetically readable medium, for example a CD, DVD, magnetic disk or magnetic tape or the like. It will be appreciated that the storage devices and storage media are examples of machine-readable storage that are suitable for storing a program or programs comprising instructions that, when executed, implement examples of the present invention.

[0272] Accordingly, examples provide a program comprising code for implementing apparatus or a method as claimed in any one of the claims of this specification and a machine-readable storage storing such a program. Still further, such programs may be conveyed electronically via any medium, for example a communication signal carried over a wired or wireless connection and examples suitably encompass the same.

[0273] Throughout this specification, the words “comprise” and “contain” and variations of them mean “including but not limited to”, and they are not intended to (and do not) exclude other components, integers, or steps. Throughout this specification, the singular encompasses the plural unless the context otherwise requires. In particular, where the indefinite article is used, the specification is to be understood as contemplating plurality as well as singularity, unless the context requires otherwise. Throughout this specification, the term “about” is used to provide flexibility to a range endpoint by providing that a given value may be “a little above” or “a little below” the endpoint. The degree of flexibility of this term can be dictated by the particular variable and can be determined based on experience and the associated description herein.

[0274] Features, integers, or characteristics described in conjunction with a particular aspect or example of the invention are to be understood to be applicable to any other aspect or example described herein unless incompatible therewith. All of the features disclosed in this specification, and / or all of the steps of any method or process so disclosed, may be combined in any combination, except combinations where at least some of s' 'ch features and / or steps are mutually exclusive. Theinvention is not restricted to the details of any foregoing examples. The invention extends to any novel feature or combination of features disclosed in this specification. It will be also be appreciated that, throughout this specification, language in the general form of “X for Y” (where Y is some action, activity or step and X is some means for carrying out that action, activity or step) encompasses means X adapted or arranged specifically, but not exclusively, to do Y.

[0275] Each feature disclosed in this specification may be replaced by alternative features serving the same, equivalent, or similar purpose, unless expressly stated otherwise. Thus, unless expressly stated otherwise, each feature disclosed is one example only of a generic series of equivalent or similar features.

Claims

CLAIMS:1 . A computer implemented method of monitoring or controlling systems within a building, the method comprising: training a first machine learning algorithm using device data from at least one device relating to the building or forming part of a first building system at a fog computing device associated with the building; providing the trained first machine learning algorithm to a first edge computing device associated with the building; receiving device data from at least one device at the first edge computing device; and processing the received device data at the first edge computing device using the trained first machine learning algorithm to generate an output signal relating to the first building system or a control signal for the first building system.

2. A method according to claim 1 , wherein the method further comprises: training a second machine learning algorithm using device data from at least one device relating to the building or forming part of a second building system at the fog computing device; providing the trained second machine learning algorithm to a second edge computing device associated with the building; receiving device data from at least one device at the second edge computing device; and processing the received device data at the second edge computing device using the second trained machine learning algorithm to generate an output signal relating to the second building system or a control signal for the second building system.

3. A method according to claim 1 or claim 2, wherein each building system comprises a separate building system selected from a group including: a building ventilation system; a building heating and ventilation system; a building heating, ventilation, and air conditioning system; a building security system; a building energy use monitoring and control system; or a healthcare system.

4. A method according to any one of the preceding claims, wherein each device comprises: a sensor providing sensor data indicative of a sensed parameter for the building or a building system; or a component forming part of a building system and providing component data indicative of a component state.

5. A method according to any one of the preceding claims, wherein an output signal comprises at least one of: an output message or alert to a user indicating a state of the building or a building system or if the state or the building or the building system is outside of a defined range; or a prediction of a current or future state of the building or the building system; or wherein the control signal comprises a signal instructing a component setting or change of operation for a component forming part of a building system either immediately or a future point in time.

6. A method according to any one of the preceding claims, wherein the method further comprises: an edge computing device storing device data received from at least one device; an edge computing device forwarding device data received from at least one device to the fog computing device for training the machine learning algorithm or updating the training of the machine learning algorithm; or an edge computing device storing device data received from at least one device and periodically forwarding stored device data to the fog computing device.

7. A method according to any one of the preceding claims, wherein the method further comprises the fog computing device training a machine learning algorithm using a training set of device data received from at least one device, the training set of device data being received directly from at least one device or via an edge computing device.

8. A method according to claim 7, wherein the method further comprises: updating the training of a machine learning algorithm at the fog computing device using device data received from at least one device; and providing an updated trained machine learning algorithm to an edge computing device for use in processing further received device data.

9. A method according to claim 8, wherein updating of the training of a machine learning algorithm further uses the training set of device data or previously received device data; wherein updating of the training of a machine learning algorithm is performed continuously as device data is received from at least one device, the updated trained machine learning algorithm being provided to an edge computing device either continuously or periodically; or wherein updating of the training of a machine learning algorithm is performed intermittently or periodically using device data received from at least one device.

10. A method according to any one of the preceding claims, wherein a trained machine learning algorithm comprises at least one of: a predictive machine learning model adapted to provide a prediction of a current or future state for the building or a building system; oran inference machine learning model adapted to provide a control signal instructing a component setting or a change of operation for a component forming part of a building system either immediately or a future point in time to control or adjust a predicted state for a building system.

11. A method according to any claim 10, wherein both a predictive machine learning model and an inference machine learning model are implemented at an edge computing device; and wherein the predictive machine learning model provides a prediction of a current or future state for a building system and the inference machine learning model provides an output to a component forming part of the building system to control or adjust the building system according to the prediction from the predictive machine learning model.

12. A method according to any one of the preceding claims, wherein at least one device comprises a sensor providing sensor data indicative of a sensed parameter for the building or a building system; wherein at least one component forming part of a building system provides component data indicative of a component state to the fog computing device or to an edge computing device; and wherein the machine learning algorithm is trained at the fog computing device using sensor data and component data.

13. A method according to any claim 12, wherein a machine learning algorithm comprises an inference machine learning model adapted to provide a control signal instructing a component setting or a change of operation for the at least one component forming part of a building system either immediately or a future point in time to control or adjust a predicted state for the building system; or wherein the fog computing device stores sensor data received from at least one sensor or component data from at least one component.

14. A method according to claim 12 or claim 13, wherein the first edge computing device comprises a sensing edge computing device receiving sensor data from the at least one sensor within or associated with the building; wherein the method further comprises a system edge computing device communicating with at least one component of a building system to receive component data; wherein the sensing edge computing device processes the received sensor data using a predictive machine learning algorithm, trained by the fog computing device, to provide a prediction of a current or future state for the building or the building system and to provide an output to the system edge computing device if the prediction is outside of a defined range; and wherein the system edge computing device processes received component data and the output received from the sensing edge computing device using an inference machine learning algorithm, trained by the fog computing device, to provide a control signal instructing a componentsetting or a change of operation either immediately or a future point in time to control or adjust a predicted state for the building system.

15. A method according to claim 14, wherein the method further comprises: the system edge computing device observing building system state data or control data, and providing this data to the fog computing device; the fog computing device training an observational or reinforcement learning model and providing the trained model to the system edge; and the system edge executing the trained observational or reinforcement learning model to adjust at least one threshold or range for a prediction output for the predictive model.

16. A method according to claim 14 or claim 15, wherein the sensing edge computing device comprises an environment sensing edge computing device receiving environment sensor data from at least one environment sensor within or associated with the building; wherein the system edge computing device comprises a ventilation system edge computing device communicating with at least one component forming part of a building ventilation system to receive component data indicative of a ventilation system component state; wherein the environment sensing edge computing device processes the received environment sensor data using a predictive machine learning algorithm, trained by the fog computing device, to provide a current or a future air quality prediction for the building and to provide an output to the system edge computing device if the prediction is outside of a defined range; and wherein the system edge computing device processes received ventilation system state data and the output received from the environment sensing edge computing device using an inference machine learning algorithm, trained by the fog computing device, to provide a control signal instructing a ventilation system component setting or change or operation either immediately or a future point in time to control or adjust a predicted state for the ventilation system.

17. A method according to claim 16, wherein the at least one environment sensor comprises one or more of: a temperature sensor; a humidity sensor; a particulate matter sensor; a gas sensor; or a pressure sensor; wherein the environment sensing edge computing device is further configured to receive sensor data from one or more of: an occupancy sensor; or a camera; or wherein the at least one ventilation system component comprises one or more of: a ventilation fan; a ventilation valve; a heating control or valve; or an air conditioning control or valve.

18. A method according to any one of the preceding claims, wherein for at least one further building system a machine learning algorithm trained by the fog computing device is executed on the fog computing device for processing device data received by the fog computing device.

19. A method according to any one of the preceding claims, wherein at least one edge computing device or fog computing device receives data from a system external to the building for processing using a trained machine learning algorithm together with device data, or for use in training a machine learning algorithm at the fog computing device; wherein, optionally, the data from the system external to the building comprises at least one of: current or predicted meteorological information; and current or predicted location information for building occupants; and wherein, optionally, current or predicted location information for building occupants is derived from at least one of: calendar information; and mobile device location services.

20. A method according to any one of the preceding claims, wherein the output signal is provided through at least one of: a local area network portal; a mobile device application; or a display or touchscreen device within the building.21 . A method according to any one of the preceding claims, wherein each edge computing device, the fog computing device, and any devices, sensors or system components are communicatively coupled either through a wired network within the building or wirelessly; wherein, optionally, data communicated between each edge computing device, the fog computing device, and any devices, sensors or system components is compliant with the Matter protocol; and wherein, optionally, wireless communications are transmitted through a Thread network.

22. A method according to any one of the preceding claims, wherein the building comprises a domestic premise.

23. A computer-readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of an edge computing device and a processor forming part of a fog computing device, causes the edge computing device and the fog computing device to perform the method of any one of the preceding claims.

24. A system for monitoring or controlling a system within a building, the system comprising: at least one device relating to the building or forming part of a first building system and configured to provide device data; a first edge computing device configured to receive device data from the at least one device and process the received device data using a trained first machine learning algorithm to generate an output signal relating to the first building system or a control signal for the first building system; and a fog computing device configured to train the first machine learning algorithm and to provide the trained first machine learning algorithm to the first edge computing device.

25. A system according to claim 24, further configured to execute the method of any one of claims 2 to 22.

26. A computer implemented method of operating a first edge computing device to monitor or control a system within a building, the method comprising: receiving a trained first machine learning algorithm from a fog computing device associated with the building; receiving device data from at least one device relating to the building or forming part of a first building system at the first edge computing device, the first edge computing device being associated with the building; and processing the received device data at the first edge computing device using the trained first machine learning algorithm to generate an output signal relating to the first building system or a control signal for the first building system; wherein the first machine learning algorithm is trained using device data at the fog computing device.

27. A method according to claim 26, wherein the first edge computing device further performs the method of any one of claims 2 to 22.

28. A computer-readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of a first edge computing device, causes the edge computing device to perform the method of claim 26 or claim 27.

29. A first edge computing device comprising a processor and a memory storing executable instructions that, in response to execution by the processor, cause the first edge computing device to perform the method of claim 26 or claim 27.

30. A computer implemented method of operating a fog computing device to train a first machine learning algorithm for monitoring or controlling a system within a building, the method comprising: receiving device data from at least one device relating to the building or forming part of a first building system; forming a training data set from the device data; training a first machine learning algorithm using the training data set; and providing the trained first machine learning algorithm to a first edge computing device for processing received device data at the first edge computing device to generate an output signal, relating to the building or the first building system, or a control signal for the first building system.31 . A method according to claim 30, wherein training the first machine learning algorithm using device data at the fog computing device comprises processing a training set of device data usingmachine learning or deep learning, including one or more steps from a group including: classification; segmentation; correlation; and prediction.

32. A computer-readable storage medium having computer-readable program code stored therein that, in response to execution by a processor forming part of a fog computing device, causes the fog computing device to perform the method of claim 30 or claim 31 .

33. A fog computing device comprising a processor and a memory storing executable instructions that, in response to execution by the processor, cause the fog computing device to perform the method of claim 30 or claim 31 .

Citation Information

Patent Citations

  • Method for multipoint purification by robotic air purifier

    US10443874B2

  • Techniques for using machine learning for control and predictive maintenance of buildings

    US20200379417A1

  • Building management system with hybrid edge-cloud processing

    WO2020159471A1

  • Building control system with smart edge devices having embedded model predictive control

    WO2021108224A1