Wednesday, February 25, 2015

Step 3.3: Implementation - Optimization

In the last post, we have defined Camera Coverage Quality Metric (CCQM) that defines the quality of a camera network based on the view of the cameras. In the next step, we would like to perform an optimization search to find the view of the camera that maximizes this metric.

In summary, the first step was to simulate the possible trajectories followed by humans in a scenario, followed by identifying the high occupancy regions in the scenario. Expectation Maximization algorithm was used to identify these regions which gave us clusters of regions that have high occupancy. To begin with, we assume that each cluster is viewed by a single camera and the idea is to perform optimization to maximize the CCQM for the cluster. Depending on the size of the cluster, there might be a need for employing multiple cameras for a single cluster which will be addressed later.

Setup: We start by optimizing the camera network for the floor depicted in figure 4. of the previous blog. This triangle mesh constitutes 4562 triangles. We use the same mesh for the ceiling but at a height of 10 ft. To begin with we pursue optimization in a discrete fashion. We assume that the only possible location of the cameras are the centroids  of the triangles in the ceiling triangle mesh. The only possible orientations of the cameras are those pointed towards the centroids of the triangles on the floors triangle mesh. As a brute force algorithm would have a complexity of $O(n^2)$. Further more for every possible configurations. we need to locate points in the view of the camera (points not obstructed by geometry) to accumulate their area and human occupancy. This would multiply the complexity to be $O(n^3)$. Given the number of the triangles, this would require significant amount of time and computations. This calls for a heuristic optimization algorithm. 

The optimization is applied on one cluster at a time. Given a cluster, first the points in the ceiling that have a view of the centeroid of the cluster are identified and these points are considered as the possible location of the cameras. The only possible orientation for each camera are pointing towards the points in the cluster. This would simplify the problem to finding two points, one on the ceiling to position the camera and the second on the floor to point the camera towards. We use a variation of a Hill Climbing algorithm called the Random-Restart Hill Climbing. Random-Restart Hill Climbing is a relatively simple optimization search approach that provides near optimal performance[1, 2]. The idea is to search a certain number of points randomly and choose the best start location for hill climbing. But this is done at two levels since two variables need to be optimized. Given a point on the ceiling we perform random restart hill climb for points on the floor to find its optimized pair. This process is repeated for a certain percentage of points on the ceiling to find a suitable starting point. This is used as the starting point to perform hill climbing. The search continues through the neighbors until more progress is noticed.


The obtained results are as shown below
To recap the cluster are







Cluster 0Blue
Cluster 1Red
Cluster 2Green
Cluster 3Aqua
Cluster 4Light Pink
Cluster 5Pink
Cluster parameters Info

ClusterMeanXVarXMeanZVarZMeanOVarO
02627.1913252.0491227.281525.9540.0020.0016
11784.9107502.9819426.347448.08790.00290.0029
2725.5888280.347219.670625.62760.00110.0009
32617.2649258.5819633.892831.24690.0010.0008
41577.61431017.7892420.1754163.068300
5700.9391292.696643.345322.54340.00110.0008
Considering 5 valid clusters
Optimized parameters
Here var1 = Eye  and var2 = center
ClusterEyeXEyeYEyeZCenterXCenterYCenterZ
03001.88119189.9712282.3568460.1
12281.82119380.4911169.2468650.761
21206.07119209.531216.73168216.935
32245.89119671.5842177.1368219.217
4------
51205.58119637.524185.95768637.978

Going ahead we will perform experiments to quantify these results and perform comparison with state of the art.

References

[1] Yuan Zhang, Tao Lei, Regina Barzilay, Tommi Jaakkola Greed is Good if Randomized: New Inference for Dependency Parsing, Proceedings of the 2014 Conference on Empirical Methods in Natural Language Processing (EMNLP)
[2] Filho, C.F.F.C.; Costa, M.G.F.; Filho, J.E.C.; de Oliveira, A.L.M., "Using a random restart hill-climbing algorithm to reduce component assembly time in printed circuit boards," Industrial Technology (ICIT), 2010 IEEE International Conference on , vol., no., pp.1706,1711, 14-17 March 2010

8 comments:

  1. IPhone accessories for any iphone from the Iphone 6 to the Iphone 11pro max! We like to sell phone cases that are of good quality and provide your needs with the quality you are looking for. What we aim to have is a 4 star rating or more ,we shop for ecommerce store that have top selling products . We try to put a list of top quality products on our site to help save you time and shopping online can be fun and taking up less time in your already busy day fo rmore information click website crossbody bags 9 and get quality result


    ReplyDelete
  2. Nice reading, I love your content. This is really a fantastic and informative post. Keep it up and if you are looking for camera on rent in mumbai then visit Paxton Equipments

    ReplyDelete
  3. Really nice information, This information will always help to everyone for gaining knowledge. So please always share your valuable information. I am very thankful to you for providing good information. Bradford Networks Houston

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. J'apprécie vraiment votre travail que vous avez partagé ici sur le location site internet de commerce en ligne. L'article que vous avez partagé ici est très instructif et les points que vous avez mentionnés sont très utiles. Merci beaucoup.location site internet de commerce en ligne France

    ReplyDelete
  6. I admire this article for the well-researched content and excellent wording. I got so involved in this material that I couldn’t stop reading. I am impressed with your work and skill. Thank you so much.dental insurance coverage charlotte NC

    ReplyDelete
  7. Wow, What an Excellent post. I really found this to much informative. It is what I was searching for. I would like to suggest you that please keep sharing such type of info.Stock Market Research Reports

    ReplyDelete
  8. You have provided valuable data for us. It is great and informative for everyone. Keep posting always. I am very thankful to you. Cork Wall Tiles

    ReplyDelete