Computer vision systems and methods for identifying anomalies in building models
11775700 · 2023-10-03
Assignee
Inventors
Cpc classification
G06N7/01
PHYSICS
G06F30/13
PHYSICS
G06F18/2415
PHYSICS
International classification
G06F30/13
PHYSICS
G06F18/2415
PHYSICS
Abstract
Computer vision systems and methods for detecting anomalous building models are provided. The systems and methods can detect anomalies in building models using one or more of an independent univariate Gaussian algorithm, a multivariate Gaussian algorithm, a combination of a multivariate Gaussian algorithm for continuous features and a frequency histogram algorithm for discrete features, and/or a bin frequency model. The system automatically processes computerized models to determine anomalies, and indicates whether the models are accurate and whether correction is required.
Claims
1. A method for identifying an anomaly in a computerized building model, comprising the steps of: receiving at a computer system the computerized building model, said computerized model representing a building; selecting at least one feature of the building for analysis; processing the at least one feature to assign a Gaussian distribution having at least one parameter to the selected at least one building feature; processing the at least one parameter to determine a probability density of a feature value using a sample vector of the computerized building model; processing the computerized building model to improve accuracy of the computerized building model using the probability density; further comprising calculating a mean μ and a variance σ.sup.2 from a training sample using:
2. The method of claim 1, further comprising determining the probability density of the mean μ feature value and the variance σ.sup.2 feature value using a sample vector {circumflex over (x)} using:
3. The method of claim 1, wherein the at least one feature is indicative of one of a source information feature, a modeling feature, a wireframe feature, a sketch element feature, a roof element feature, a wall structure feature, a wall element feature and an exterior element feature.
4. The method of claim 1, further comprising calculating a mean μ and a covariance matrix Σ from a training sample using:
5. The method of claim 1, further comprising determining a probability density of a mean μ feature value and a covariance matrix Σ feature value using a sample vector {circumflex over (x)} using:
6. The method of claim 5, further comprising determining the computerized building model is anomalous when a determined probability density p({circumflex over (x)}) is less than the probability threshold.
7. A system for identifying an anomaly in a building model, the system comprising: a memory; and a processor in communication with the memory, the processor: receiving at a computer system the building model; selecting at least one feature of the building for analysis; processing the at least one feature to assign a Gaussian distribution having at least one parameter to the selected at least one building feature; processing the at least one parameter to determine a probability density of a feature value using a sample vector of the building model; processing the building model to improve accuracy of the building model using the probability density; calculating a mean μ and a variance σ.sup.2 from a training sample using:
8. The system of claim 7, wherein the processor determines the probability density of the mean μ feature value and the variance σ.sup.2 feature value using a sample vector {circumflex over (x)} using:
9. The system of claim 7, wherein the at least one feature is indicative of one of a source information feature, a modeling feature, a wireframe feature, a sketch element feature, a roof element feature, a wall structure feature, a wall element feature and an exterior element feature.
10. The system of claim 7, wherein the processor calculates a mean μ and a covariance matrix Σ from a training sample using:
11. The system of claim 7, wherein the processor determines a probability density of a mean μ feature value and a covariance matrix Σ feature value using a sample vector {circumflex over (x)} using:
12. The system of claim 11, wherein the processor determines the building model is anomalous when a determined probability density p({circumflex over (x)}) is less than the probability threshold.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The foregoing features of the invention will be apparent from the following Detailed Description, taken in connection with the accompanying drawings, in which:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8) The present disclosure relates to computer vision systems and methods for identifying anomalous building models, as discussed in detail below in connection with
(9)
(10) Building features are analyzed in a large sample of buildings to determine which feature combinations can be accepted as normal and which ones should not. The systems and methods disclosed herein can apply anomaly detection to obtain a confidence level for any building model. Anomaly detection can be applied to normal cases that are well-known and where deviations can take many different forms. The systems and methods disclosed herein also improve computer vision capabilities of computer systems by allowing such systems to automatically determine which building models as a whole do not represent anomalous buildings, again improving the accuracy of computer model generation. Moreover, the systems and methods herein improve computer technology by allowing such anomaly detection to occur over a vast amount of data corresponding to detected building features and building models.
(11) Computerized models which can determine whether a building model is anomalous will now be explained in greater detail. These models can automatically calculate a probability for each building model. The lower the probability, the more anomalous the building is. A low probability threshold is defined as (ε) so that models with a probability lower than such a threshold can be considered anomalous. The selection of this value will also be explained in greater detail below.
(12) The present disclosure uses the following notation for a sample set X with m samples of n features. x.sub.j.sup.[i] represents the value of the j.sup.th feature of the i.sup.th element in the sample. x.sub.j represents the vector of m values of the j.sup.th feature in all the m samples. x.sup.[i] represents the vector of n values of all features of the i.sup.th element in the sample. μ represents the vector of the average values of n features. μ.sub.j represents the average value of feature j across all m samples.
(13) An independent univariate Gaussian model for determining model accuracy will now be explained in greater detail.
(14)
(15) The features (as listed in
(16) In step 8, given a new sample vector {circumflex over (x)}, the process 2 evaluates the probability density associated with each feature value
(17)
and then multiplies each of the probabilities densities:
(18)
(19) In step 10, it is determined whether the building model is anomalous based on a probability threshold. Accordingly, it can be said that a building is anomalous if p({circumflex over (x)})<∈.
(20) A multivariate Gaussian model for determining model accuracy will now be explained in greater detail.
(21)
(22) The features (as listed in
(23) In step 18, for a new sample vector the model's probability of accurately representation of the actual building structure is calculated in accordance with the following equation:
(24)
(25) In step 20, it is determined whether the building model is anomalous based on a probability threshold. Accordingly, it can be said that a building is anomalous if p({circumflex over (x)})<∈.
(26)
(27)
(28) Given a new model example {circumflex over (x)}, the probability associated with the discrete features is calculated as the product of the corresponding frequencies: f.sub.j{circumflex over (k)} as the relative frequency corresponding to the bin {circumflex over (k)} corresponding to feature j. This can be represented by the following equation:
(29)
(30) If a discrete feature value appears with a value which has not been seen before, the frequency 1/m can be used. In step 32, the final probability is calculated by multiplying the discrete and continuous probabilities. In step 34, it is determined whether the building model is anomalous based on a probability threshold. Accordingly, it can be said that a building is anomalous if p({circumflex over (x)})<∈.
(31) A bin frequency model for determining model accuracy will now be explained in greater detail.
(32) In order to choose the best epsilon value for anomaly detection, a cross validation dataset can be used. The minimum and maximum probabilities found in the dataset are obtained and the interval [log(min), log(max)] can be divided into 10,000 subintervals (although other numbers of the subintervals can be used). Using the probability value in each interval as the ε (epsilon) value yields different classification results (normal or anomalous). The classification results for the dataset are evaluated using the F1-score metric. The value which gives the best F1-score can be used as the ε (epsilon) value to classify anomalies. This provides a non-biased way of setting a meaningful threshold for determining whether a building model can be considered anomalous.
(33)
(34) The functionality provided by the present disclosure could be provided by a specialized building anomaly detection software module 106, which could be embodied as computer-readable program code stored on the storage device 104 and executed by the CPU 112 using any suitable, high or low level computing language, such as Python, Java, C, C++, C #, .NET, MATLAB, etc. The network interface 108 could include an Ethernet network interface device, a wireless network interface device, or any other suitable device which permits the server 102 to communicate via the network. The CPU 112 could include any suitable single- or multiple-core microprocessor of any suitable architecture that is capable of implementing and running the building anomaly detection program 106 (e.g., Intel processor). The random access memory 114 could include any suitable, high-speed, random access memory typical of most modern computers, such as dynamic RAM (DRAM), etc. The input device 116 could include a microphone for capturing audio/speech signals, for subsequent processing and recognition performed by the engine 106 in accordance with the present disclosure.
(35) Having thus described the system and method in detail, it is to be understood that the foregoing description is not intended to limit the spirit or scope thereof. It will be understood that the embodiments of the present disclosure described herein are merely exemplary and that a person skilled in the art may make any variations and modification without departing from the spirit and scope of the disclosure. All such variations and modifications, including those discussed above, are intended to be included within the scope of the disclosure.