Feasibility of Using Grammars to Infer Room Semantics
Abstract
:1. Introduction
- (1)
- To the best of our knowledge, this is the first time inferring the types of rooms by using grammars given geometric maps.
- (2)
- To a certain degree, we prove that grammars can benefit semantic enrichment.
2. Related Works
3. Formal Representation of Layout Principles of Research Buildings
3.1. Definition of Research Buildings
3.2. Hierarchical Semantic Division of Research Buildings
3.3. Constrained Attribute Grammar
3.4. Predicates
- edgeAdj (,): Object is adjacent to object via a shared edge without inclusive relationships between and .
- inclusionAdj (,,): Object includes object and they are connected through an internal door .
- withExtDoor(): Object has an external door connected to corridors.
- onExtWall (): Object is at the edge of external walls.
- inCenter (): Most of the rooms in object (zone) is not located at the external walls of buildings.
- conByIntDoor(, ): Multiple objects are connected through internal doors .
- isTripleLoaded(): Building owns a triple-loaded circulation system.
- isDoubleLoaded(): Building owns a double-loaded circulation system.
- formFullArea(): Multiple objects form a complete area (e.g., a perimeter area or central dark zone), including all the primitive rooms and internal doors.
3.5. Defined Rules
- A1:
- A room object can be assigned with one of the eight types. When applying this rule, Bayesian inference methods are used to calculate the initial probability of belonging the room to corresponding type.
- A2:
- A Toilet object is generated by merging one to three room objects when they satisfy the predicate conByIntDoor and only one of the room objects has an external door. Bayesian inference techniques are used to calculate the mean initial probability of each room to a toilet.
- A3:
- Toilet, Copy, Storage, Kitchen, Lounge, Computer, Lecture, and Library objects are interpreted as Ancillary objects.
- A4:
- A Library object is generated by merging a couple of room objects when they are connected by internal doors. Bayesian inference methods are used to calculate the mean probability of each room belonging to a library.
- A5:
- A couple of lecture objects that are adjacent or connected by internal doors can be interpreted as an academic Zone.
- A6:
- A Library object is interpreted as an academic Zone.
- A7:
- A Lab object is generated by merging a single room and an optional internal room included by when . is on external walls. The Bayesian inference method is used to calculate the initial probability of belonging to a lab.
- A8:
- A LGroup object is generated by merging at least one Lab object and optional Support objects when they are connected by internal doors.
- A9:
- A lab Zone is generated by merging multiple adjacent LGroup objects.
- A10:
- A room object with an optional internal room contained by can be explained as an Office object if has an external door. The Bayesian inference method is used to calculate the initial probability of belonging to an office.
- A11:
- An office Zone can be generated by merging multiple Office objects if they are adjacent or connected through internal doors.
- A12:
- A Center object can be generated by combining at most three Ancillary objects and optional adjacent or connected Support objects if the generated object satisfies the predicate formFullArea. If no Support objects exist, the type of the generated Center object is assigned ancillary otherwise support.
- A13:
- A CZone object can be generated by combining at most three Ancillary objects and a Zone object if the generated object satisfies the predicate formFullArea.
- A14:
- An office-centered or academic-centered building unit can be generated by merging at least one CZone object with the type of office, at most two Center objects with the type of ancillary, and at most two CZone objects with the type of academic if the generated object satisfies the predicate formFullArea.
- A15:
- A lab-centered building unit can be generated by merging at least one CZone object with the type of lab, at least one CZone object with the type of office, and optional CZone objects with the type of academic if the generated object satisfies the predicate formFullArea. Note that if the building unit has a triple-loaded circulation system (with central dark areas), there exists at least one Center object with the type of support.
- A16:
- A Building object can be generated by combining all the BUnit objects if they are adjacent.
4. Algorithm of Inferring Room Types
4.1. Workflow
4.2. Bayesian Inference
4.3. Compute Parse Forest
4.3.1. Partition Grammar Rules into Layers
- (1)
- Build dependency graph. Traversal each rule and draw a direct edge from current rule to the rules whose left-hand objects intersect the right-hand objects of this rule. If the right-hand objects of a rule include only primitive objects (e.g., rooms and doors), it is treated as a free rule.
- (2)
- Delete free rules. Put the free rules at the lowest layer and then delete the free rules and all the edges connecting them from the graph.
- (3)
- Handle new free rules. Identify new free rules and put them at the next layer. Similarly, delete the free rules and the corresponding edges. Repeat this step until no rules exist in the graph.
4.3.2. Apply Rules
- (1)
- Initialize an object list with the primitives and set the current layer as the first layer.
- (2)
- Apply all the rules at the current layer to the objects in the list to generate superior objects.
- (3)
- Fill the child list of the generated object with the inferior objects that form the generated objects.
- (4)
- Assign a probability value to newly generated objects. When applying rules 1, 2, 4, 7, and 10, the probability is estimated through the Bayesian inference. Otherwise, we assign a probability of one to the generated objects.
- (5)
- Add the newly generated objects to the object list.
- (6)
- Move to the next layer and repeat steps (2)–(6).
- (7)
- Create a root node and add all the Building objects to its child list.
Procedure = ComputeParsingForest (,G); Input: // partitioned rules. denotes the number of layers. G // all the primitives: rooms and internal doors Output: // parse forest |
begin for to do for each rule do end end for each object do if the type of is a Building end end end |
4.4. Calculating Probability
5. Experiments
5.1. Training Data
5.2. Testbeds
5.3. Experimental Results
6. Discussions
7. Conclusions
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
Appendix A
References
- Zhang, D.; Xia, F.; Yang, Z.; Yao, L.; Zhao, W. Localization technologies for indoor human tracking. In Proceedings of the 2010 5th International Conference on Future Information Technology, Busan, South Korea, 21–23 May 2010; pp. 1–6. [Google Scholar]
- Yassin, A.; Nasser, Y.; Awad, M.; Al-Dubai, A.; Liu, R.; Yuen, C.; Raulefs, R.; Aboutanios, E. Recent advances in indoor localization: A survey on theoretical approaches and applications. IEEE Commun. Surv. Tutor. 2016, 19, 1327–1346. [Google Scholar] [CrossRef]
- Elhamshary, M.; Youssef, M. SemSense: Automatic construction of semantic indoor floorplans. In Proceedings of the 2015 International Conference on Indoor Positioning and Indoor Navigation (IPIN), Banff, AB, Canada, 13–16 October 2015; pp. 1–11. [Google Scholar]
- Youssef, M. Towards truly ubiquitous indoor localization on a worldwide scale. In Proceedings of the 23rd SIGSPATIAL International Conference on Advances in Geographic Information Systems, Seattle, WA, USA, 3–6 November 2015; ACM: New York, NY, USA, 2015. [Google Scholar]
- Gao, R.; Zhao, M.; Ye, T.; Ye, F.; Wang, Y.; Bian, K.; Wang, T.; Li, X. Jigsaw: Indoor floor plan reconstruction via mobile crowdsensing. In Proceedings of the 20th Annual International Conference on Mobile Computing and Networking, Maui, HI, USA, 7–11 September 2014; ACM: New York, NY, USA, 2014; pp. 249–260. [Google Scholar]
- Dosch, P.; Tombre, K.; Ah-Soon, C.; Masini, G. A complete system for the analysis of architectural drawings. Int. J. Doc. Anal. Recognit. 2000, 3, 102–116. [Google Scholar] [CrossRef]
- De las Heras, L.P.; Ahmed, S.; Liwicki, M.; Valveny, E.; S’anchez, G. Statistical segmentation and structural recognition for floor plan interpretation. Int. J. Doc. Anal. Recognit. 2014, 17, 221–237. [Google Scholar] [CrossRef]
- De las Heras, L.P.; Terrades, O.R.; Robles, S.; S’anchez, G. CVC-FP and SGT: A new database for structural floor plan analysis and its groundtruthing tool. Int. J. Doc. Anal. Recognit. 2015, 18, 15–30. [Google Scholar] [CrossRef]
- Dodge, S.; Xu, J.; Stenger, B. Parsing floor plan images. In Proceedings of the IEEE IAPR International Conference on Machine Vision Application, Nagoya, Japan, 8–12 May 2017. [Google Scholar]
- Xiong, X.; Adan, A.; Akinci, B.; Huber, D. Automatic creation of semantically rich 3D building models from laser scanner data. Autom. Constr. 2013, 31, 325–337. [Google Scholar] [CrossRef] [Green Version]
- Armeni, I.; Sener, O.; Zamir, A.R.; Jiang, H.; Brilakis, I.; Fischer, M.; Savarese, S. 3D semantic parsing of large-scale indoor spaces. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 1534–1543. [Google Scholar]
- Qi, C.R.; Su, H.; Mo, K.; Guibas, L.J. Pointnet: Deep learning on point sets for 3d classification and segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 652–660. [Google Scholar]
- Ambruş, R.; Claici, S.; Wendt, A. Automatic room segmentation from unstructured 3-d data of indoor environments. IEEE Robot. Autom. Lett. 2017, 2, 749–756. [Google Scholar] [CrossRef]
- Furukawa, Y.; Curless, B.; Seitz, S.M.; Szeliski, R. Reconstructing building interiors from images. In Proceedings of the 2009 IEEE 12th International Conference on Computer Vision, Kyoto, Japan, 29 September–2 October 2009; pp. 80–87. [Google Scholar]
- Henry, P.; Krainin, M.; Herbst, E.; Ren, X.; Fox, D. RGB-D mapping: Using Kinect-style depth cameras for dense 3D modeling of indoor environments. Int. J. Robot. Res. 2012, 31, 647–663. [Google Scholar] [CrossRef] [Green Version]
- Ikehata, S.; Yang, H.; Furukawa, Y. Structured indoor modeling. In Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile, 7–13 December 2015; pp. 1323–1331. [Google Scholar]
- Alzantot, M.; Youssef, M. Crowdinside: Automatic construction of indoor floorplans. In Proceedings of the 20th International Conference on Advances in Geographic Information Systems, Redondo Beach, CA, USA, 6–9 November 2012; ACM: New York, NY, USA, 2012; pp. 99–108. [Google Scholar]
- Zhang, J.; Kan, C.; Schwing, A.G.; Urtasun, R. Estimating the 3d layout of indoor scenes and its clutter from depth sensors. In Proceedings of the IEEE International Conference on Computer Vision, Sydney, NSW, Australia, 1–8 December 2013; pp. 1273–1280. [Google Scholar]
- Luperto, M.; Riva, A.; Amigoni, F. Semantic classification by reasoning on the whole structure of buildings using statistical relational learning techniques. In Proceedings of the 2017 IEEE International Conference on Robotics and Automation (ICRA), Singapore, 29 May–3 June 2017; pp. 2562–2568. [Google Scholar]
- Elhamshary, M.; Basalmah, A.; Youssef, M. A fine-grained indoor location-based social network. IEEE Trans. Mob. Comput. 2017, 16, 1203–1217. [Google Scholar] [CrossRef]
- De la Higuera, C. Grammatical Inference: Learning Automata and Grammars; Cambridge University Press: Cambridge, UK, 2010. [Google Scholar]
- D’Ulizia, A.; Ferri, F.; Grifoni, P. A survey of grammatical inference methods for natural language learning. Artif. Intell. Rev. 2011, 36, 1–27. [Google Scholar] [CrossRef]
- Charlotte, K. New Laboratories: Historical and Critical Perspectives on Contemporary Developments; Walter de Gruyter GmbH: Berlin, Germany, 2016. [Google Scholar]
- Braun, H.; Grömling, D. Research and Technology Buildings: A Design Manual; Walter de Gruyter: Berlin, Germany, 2005. [Google Scholar]
- Hain, W. Laboratories: A Briefing and Design Guide; Taylor & Francis: London, UK, 2003. [Google Scholar]
- Watch, D.D. Building Type Basics for Research Laboratories; John Wiley & Sons: New York, NY, USA, 2002. [Google Scholar]
- Hu, X.; Fan, H.; Zipf, A.; Shang, J.; Gu, F. A conceptual framework for indoor mapping by using grammars. In ISPRS Annals of the Photogrammetry, Remote Sensing and Spatial Information Sciences; ISPRS Geospatial Week: Wuhan, China, 2017; Volume IV-2/W4, pp. 335–342. [Google Scholar]
- Azhar, S. Building information modeling (BIM): Trends, benefits, risks, and challenges for the AEC industry. Leadersh. Manag. Eng. 2011, 11, 241–252. [Google Scholar] [CrossRef]
- Santos, R.; Costa, A.A.; Grilo, A. Bibliometric analysis and review of Building Information Modelling literature published between 2005 and 2015. Autom. Constr. 2017, 80, 118–136. [Google Scholar] [CrossRef]
- Kolbe, T.H. Representing and exchanging 3D city models with CityGML. In 3D Geo-Information Sciences; Springer: Berlin/Heidelberg, Germany, 2017; pp. 15–31. [Google Scholar]
- Li, K.J.; Kim, T.H.; Ryu, H.G.; Kang, H.K. Comparison of cityGML and indoorGML—A use-case study on indoor spatial information construction at real sites. Spat. Inf. Res. 2015, 23, 91–101. [Google Scholar]
- Kim, J.S.; Yoo, S.J.; Li, K.J. Integrating IndoorGML and CityGML for indoor space. In International Symposium on Web and Wireless Geographical Information Systems; Springer: Berlin/Heidelberg, Germany, 2014; pp. 184–196. [Google Scholar]
- Kang, H.K.; Li, K.J. A standard indoor spatial data model—OGC IndoorGML and implementation approaches. ISPRS Int. J. Geo-Inf. 2017, 6, 116. [Google Scholar] [CrossRef]
- Macé, S.; Locteau, H.; Valveny, E.; Tabbone, S. A system to detect rooms in architectural floor plan images. In Proceedings of the IEEE IAPR International Workshop on Document Analysis Systems, Boston, MA, USA, 9–11 June 2010. [Google Scholar]
- Ahmed, S.; Liwicki, M.; Weber, M.; Dengel, A. Improved automatic analysis of architectural floor plans. In Proceedings of the IEEE International Conference on Document Analysis and Recognition, Beijing, China, 18–21 September 2011. [Google Scholar]
- Ahmed, S.; Liwicki, M.; Weber, M.; Dengel, A. Automatic room detection and room labeling from architectural floor plans. In Proceedings of the IEEE IAPR International Workshop on Document Analysis Systems, Gold Cost, QLD, Australia, 27–29 March 2012. [Google Scholar]
- Gimenez, L.; Robert, S.; Suard, F.; Zreik, K. Automatic reconstruction of 3D building models from scanned 2D floor plans. Autom. Constr. 2016, 63, 48–56. [Google Scholar] [CrossRef]
- De las Heras, L.P.; Mas, J.; S’anchez, G.; Valveny, E. Notation-invariant patchbased wall detector in architectural floor plans. In Proceedings of the International Workshop on Graphics Recognition, Seoul, Korea, 15–16 September 2011. [Google Scholar]
- Sankar, A.; Seitz, S. Capturing indoor scenes with smartphones. In Proceedings of the 25th Annual ACM Symposium on User Interface Software and Technology, Cambridge, MA, USA, 7–10 October 2012; ACM: New York, NY, USA, 2012; pp. 403–412. [Google Scholar]
- Pintore, G.; Gobbetti, E. Effective mobile mapping of multi-room indoor structures. Vis. Comput. 2014, 30, 707–716. [Google Scholar] [CrossRef]
- Tsai, G.; Xu, C.; Liu, J.; Kuipers, B. Real-Time Indoor Scene Understanding Using Bayesian Filtering with Motion Cues. In Proceedings of the 2011 International Conference on Computer Vision (ICCV), Barcelona, Spain, 6–13 November 2011; pp. 121–128. [Google Scholar]
- Jiang, Y.; Xiang, Y.; Pan, X.; Li, K.; Lv, Q.; Dick, R.P.; Shang, L.; Hannigan, M. Hallway based automatic indoor floorplan construction using room fingerprints. In Proceedings of the 2013 ACM International Joint Conference on Pervasive and Ubiquitous Computing, Zurich, Switzerland, 8–12 September 2013; ACM: New York, NY, USA, 2013; pp. 315–324. [Google Scholar]
- Chen, S.; Li, M.; Ren, K.; Qiao, C. Crowd map: Accurate reconstruction of indoor floor plans from crowdsourced sensor-rich videos. In Proceedings of the IEEE 35th International Conference on Distributed Computing Systems (ICDCS), Columbus, OH, USA, 29 June–2 July 2015; pp. 1–10. [Google Scholar]
- Gao, R.; Zhou, B.; Ye, F.; Wang, Y. Knitter: Fast, resilient single-user indoor floor plan construction. In Proceedings of the INFOCOM 2017—IEEE Conference on Computer Communications, Atlanta, GA, USA, 1–4 May 2017; pp. 1–9. [Google Scholar]
- Mura, C.; Mattausch, O.; Villanueva, A.J.; Gobbetti, E.; Pajarola, R. Automatic room detection and reconstruction in cluttered indoor environments with complex room layouts. Comput. Graph. 2014, 44, 20–32. [Google Scholar] [CrossRef] [Green Version]
- Nikoohemat, S.; Peter, M.; Elberink, S.O.; Vosselman, G. Exploiting Indoor Mobile Laser Scanner Trajectories for Semantic Interpretation of Point Clouds. ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci. 2017, IV-2/W4, 355–362. [Google Scholar] [CrossRef]
- Becker, S.; Peter, M.; Fritsch, D. Grammar-supported 3d Indoor Reconstruction from Point Clouds for” as-built” BIM. ISPRS Ann. Photogramm. Remote Sens. Spat. Inf. Sci. 2015, 2, 17. [Google Scholar] [CrossRef]
- Yue, K.; Krishnamurti, R.; Grobler, F. Estimating the interior layout of buildings using a shape grammar to capture building style. J. Comput. Civ. Eng. 2011, 26, 113–130. [Google Scholar] [CrossRef]
- Philipp, D.; Baier, P.; Dibak, C.; Dürr, F.; Rothermel, K.; Becker, S.; Peter, M.; Fritsch, D. Mapgenie: Grammar-enhanced indoor map construction from crowd-sourced data. In Proceedings of the 2014 IEEE International Conference on Pervasive Computing and Communications, Budapest, Hungary, 24–28 March 2014; pp. 139–147. [Google Scholar]
- Rosser, J.F. Data-driven estimation of building interior plans. Int. J. Geogr. Inf. Sci. 2017, 31, 1652–1674. [Google Scholar] [CrossRef] [Green Version]
- Luperto, M.; Amigoni, F. Exploiting structural properties of buildings towards general semantic mapping systems. In Intelligent Autonomous Systems 13; Springer: Cham, Switzerland, 2016; pp. 375–387. [Google Scholar]
- Luperto, M.; Li, A.Q.; Amigoni, F. A system for building semantic maps of indoor environments exploiting the concept of building typology. In Robot Soccer World Cup; Springer: Berlin/Heidelberg, Germany, 2013; pp. 504–515. [Google Scholar]
- Khoshelham, K.; Díaz-Vilariño, L. 3D modelling of interior spaces: Learning the language of indoor architecture. Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci. 2014, 40, 321. [Google Scholar] [CrossRef]
- Mitchell, W.J. The Logic of Architecture: Design, Computation, and Cognition; MIT Press: Cambridge, MA, US, 1990. [Google Scholar]
- Dehbi, Y.; Hadiji, F.; Gröger, G.; Kersting, K.; Plümer, L. Statistical relational learning of grammar rules for 3D building reconstruction. Trans. GIS 2017, 21, 134–150. [Google Scholar] [CrossRef]
- Liu, Z.; von Wichert, G. Extracting semantic indoor maps from occupancy grids. Robot. Auton. Syst. 2014, 62, 663–674. [Google Scholar] [CrossRef]
- Liu, Z.; von Wichert, G. A generalizable knowledge framework for semantic indoor mapping based on Markov logic networks and data driven MCMC. Future Gener. Comput. Syst. 2014, 36, 42–56. [Google Scholar] [CrossRef] [Green Version]
- Deransart, P.; Jourdan, M.; Lorho, B. Attribute Grammars: Definitions, Systems and Bibliography; Springer Science & Business Media: Heidelberg, Germany, 1988; Volume 323. [Google Scholar]
- Deransart, P.; Jourdan, M. Attribute grammars and their applications. In Lecture Notes in Computer Science; Springer: Heidelberg, Germany, 1990; Volume 461. [Google Scholar]
- Boulch, A.; Houllier, S.; Marlet, R.; Tournaire, O. Semantizing complex 3D scenes using constrained attribute grammars. Comput. Graph. Forum 2013, 32, 33–42. [Google Scholar] [CrossRef]
- Russakovsky, O.; Deng, J.; Su, H.; Krause, J.; Satheesh, S.; Ma, S.; Huang, Z.; Karpathy, A.; Khosla, A.; Bernstein, M.; et al. Imagenet large scale visual recognition challenge. Int. J. Comput. Vis. 2015, 115, 211–252. [Google Scholar] [CrossRef]
- Müller, P.; Wonka, P.; Haegler, S.; Ulmer, A.; Van Gool, L. Procedural modeling of buildings. ACM Trans. Graph. 2006, 25, 614–623. [Google Scholar] [CrossRef]
Floor Plan | Lab-Centered | Office-Centered | Academic-Centered |
---|---|---|---|
(a) | 1 | 0 | 1 |
(b) | 1 | 1 | 0 |
(c) | 0 | 0 | 2 |
(d) | 1 | 0 | 0 |
(e) | 1 | 0 | 0 |
(f) | 1 | 0 | 0 |
(g) | 1 | 0 | 0 |
(h) | 0 | 1 | 0 |
(i) | 0 | 1 | 2 |
(j) | 0 | 1 | 1 |
(k) | 0 | 1 | 0 |
(l) | 0 | 1 | 1 |
(m) | 1 | 0 | 0 |
(n) | 0 | 1 | 0 |
(o) | 0 | 2 | 0 |
Floor Plan | Identification Accuracy | Number of Rooms | Time Consumption(s) |
---|---|---|---|
Floor plan (a) | 0.82 | 39 | 8.05 |
Floor plan (b) | 0.90 | 29 | 3.93 |
Floor plan (c) | 0.80 | 10 | 2.40 |
Floor plan (d) | 0.95 | 21 | 3.10 |
Floor plan (e) | 1.00 | 43 | 27.02 |
Floor plan (f) | 0.94 | 48 | 7.18 |
Floor plan (g) | 0.97 | 32 | 459.00 |
Floor plan (h) | 0.74 | 19 | 3.68 |
Floor plan (i) | 0.86 | 22 | 4.14 |
Floor plan (j) | 0.82 | 22 | 4.45 |
Floor plan (k) | 0.74 | 27 | 2.62 |
Floor plan (l) | 0.69 | 13 | 5.66 |
Floor plan (m) | 0.38 | 34 | 13.12 |
Floor plan (n) | 0.86 | 36 | 2.33 |
Floor plan (o) | 1.00 | 13 | 2.09 |
Overall | 0.84 | 408 | 548 |
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Hu, X.; Fan, H.; Noskov, A.; Zipf, A.; Wang, Z.; Shang, J. Feasibility of Using Grammars to Infer Room Semantics. Remote Sens. 2019, 11, 1535. https://doi.org/10.3390/rs11131535
Hu X, Fan H, Noskov A, Zipf A, Wang Z, Shang J. Feasibility of Using Grammars to Infer Room Semantics. Remote Sensing. 2019; 11(13):1535. https://doi.org/10.3390/rs11131535
Chicago/Turabian StyleHu, Xuke, Hongchao Fan, Alexey Noskov, Alexander Zipf, Zhiyong Wang, and Jianga Shang. 2019. "Feasibility of Using Grammars to Infer Room Semantics" Remote Sensing 11, no. 13: 1535. https://doi.org/10.3390/rs11131535
APA StyleHu, X., Fan, H., Noskov, A., Zipf, A., Wang, Z., & Shang, J. (2019). Feasibility of Using Grammars to Infer Room Semantics. Remote Sensing, 11(13), 1535. https://doi.org/10.3390/rs11131535