I. INTRODUCTION
Analysis and comprehension of video sequences is a growing area of study. The identification of moving objects in the scene is a first step in many applications in this area (video tracking, optical motion capture, multimedia applications). The separation of moving objects, referred to as the foreground, from static data, referred to as the background, is the basic operation required. Background Subtraction is the most commonly used process. Obtaining a background image that does not contain any moving objects is the best way to model the background. The background is not always available in certain environments, but it can always be altered in crucial circumstances such as lighting changes or the addition or removal of items from the scene. As a result, the background representation model must be more adaptable and stable. Every modern video monitoring system includes motion detection.
In computer vision systems, background subtraction is a popular technique for identifying movement regions. It simply refers to the division of the current scene into two parts: the background and foreground. Using a constant model for the background is one of the easiest ways to enforce background subtraction. The moving regions are then distinguished from the background using this model. However, there are several drawbacks to this approach. It is incapable of dealing with changes in lighting, objects being shifted to or removed from the background, shadows, and repeated motion such as the tree leaves, among other things. More intelligent approaches to adapt the background model to the evolving world have been implemented to address at least some of these problems.
Intelligent control systems are capable of distinguishing between moving objects in the foreground and stationary objects in the background, in addition to detecting motion. In recent years, several of these motion detection methods have been proposed. The most widely used techniques for this separation are background subtraction methods . Statistical approaches such as Mixture of Gaussians , Kernel Density Estimation , and Eigen backgrounds are more accurate and complex.
The Temporal Averaging Method (TAM) [11-13] is a simple method for background subtraction that is the subject of this article. The original method is shown, and new versions of the algorithm are proposed in this paper. The background model is the first step in the original TAM process. It represents a portion of the scene that is relatively still. algorithm (3). We find the threshold t adaptive to each pixel difference , just as in the first approach
II. OUR APPROACH
When the scene illumination is constant, the original TAM approach is reasonably effective in estimating foreground-background. However, when there are sudden lighting changes or repeating backgrounds, such as waving trees, there are a lot of false positive pixels and the output parameter levels are lower. The original method's flaw is the slowness with which it updates the background model determined by , (1). For all pixels in the current frame, the method assumes is equal. When the background is changing rapidly, this is not the best choice. So, if the updating speed could be adjusted to each pixel difference , the algorithm would respond faster to sudden light changes and repeated backgrounds. Furthermore, the above-mentioned solution would be insufficient in very noisy and complex background scenes. An adaptive threshold will be used to reduce the number of false positive pixels in the predicted scene. The threshold T is constant in the original algorithm (3). We find the threshold t adaptive to each pixel difference , just as in the first approach.
III. ADPATIVE THRESHOLDING
For every incoming image a new background model is estimated by:
is the pixel value, t is the image number, is the pixel location in the image and is learning rate.
The first background is formed by the pixels that have least absolute difference value. Then the absolute difference is calculated by the following equation:
The sum of absolute difference makes pixel by pixel comparison between two consecutive frames. The absolute difference is added up the pixels that have least sum of absolute difference value is the background. To handle variation in background such has color and illumination changes. The rule of updating is given by:
is the adaptive learning rate updating , c value is given by the user, n is the dynamic range of the signal.
The foreground mask is estimated by the equation:
Where is adaptive thresholding.
a) Modeling background pixels using Gaussian distributions
To use K Gaussian probability density distributions to constitute the background of each pixel in the image. The pixel is defined as a time series.
Where K refers to the image sequence and is the intensity value of the pixel at time instant j.
The background pixels are modeled using Gaussian distribution method. The probability of pixel value within the history values of the pixel is determined as
where K refers to the number of Gaussian distributions used. is the weight parameter that is used to describe which part of the data is described by the i th Gaussian distribution. is a Gaussian distribution that has two parameters: is the mean of the Gaussian distribution at time t and is the covariance matrix at time instant t. Any new pixel value is compared to the existing Gaussian distributions for each frame. If a new pixel is within 2.5 standard deviations of the distribution's mean, it is said to fit the distribution. If a pixel matches one of the weighted Gaussian distributions, the distribution's mean and variance are modified.






Matlab is used to apply the procedures under investigation. The Gaussian distribution approach is contrasted to the Adaptive Temporal Averaging Method.
For two separate videos, kathak and kuchipudi, both methods are used. Each adjustable parameter is expressed as a function of the quality of background subtraction. The F-measure is used to assess the consistency quantitatively. For kathak and kuchipudi, the Gaussian distribution method gives the highest accuracy than the adaptive method, depending on the F-Measure parameter.
| Method | Parameter | Test Case | |
| Kathak | Kuchipudi | ||
| Adaptive temporal averaging method | Precision | 0.70 | 0.70 |
| Recall | 0.89 | 0.89 | |
| F-Measure | 0.68 | 0.79 | |
| Gaussian distribution method | Precision | 0.75 | 0.75 |
| Recall | 0.88 | 0.88 | |
| F-Measure | 0.76 | 0.81 | |


V. CONCLUSION
An adaptive background approach was presented. Gaussian distributions were used to model any other or third pixel in the image in our system. Our process is quicker than the original system, according to the findings. The ability to track moving areas and the amount of noise in the binary motion picture are identical to the original system's properties. Our method can be implemented in a real-world video surveillance framework and run on regular computers due to its speed and robustness. We focused on the algorithm's speed, so some other issues, such as slow learning at first or too quick adaptation of still objects, would need to be addressed in the future.