{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,8,1]],"date-time":"2026-08-01T17:30:27Z","timestamp":1785605427467,"version":"3.56.0"},"reference-count":52,"publisher":"Elsevier BV","license":[{"start":{"date-parts":[[2023,5,1]],"date-time":"2023-05-01T00:00:00Z","timestamp":1682899200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.elsevier.com\/tdm\/userlicense\/1.0\/"},{"start":{"date-parts":[[2023,5,1]],"date-time":"2023-05-01T00:00:00Z","timestamp":1682899200000},"content-version":"tdm","delay-in-days":0,"URL":"https:\/\/www.elsevier.com\/legal\/tdmrep-license"},{"start":{"date-parts":[[2023,5,1]],"date-time":"2023-05-01T00:00:00Z","timestamp":1682899200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-017"},{"start":{"date-parts":[[2023,5,1]],"date-time":"2023-05-01T00:00:00Z","timestamp":1682899200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-037"},{"start":{"date-parts":[[2023,5,1]],"date-time":"2023-05-01T00:00:00Z","timestamp":1682899200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-012"},{"start":{"date-parts":[[2023,5,1]],"date-time":"2023-05-01T00:00:00Z","timestamp":1682899200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-029"},{"start":{"date-parts":[[2023,5,1]],"date-time":"2023-05-01T00:00:00Z","timestamp":1682899200000},"content-version":"stm-asf","delay-in-days":0,"URL":"https:\/\/doi.org\/10.15223\/policy-004"}],"funder":[{"DOI":"10.13039\/100000001","name":"National Science Foundation","doi-asserted-by":"publisher","award":["CNS-1952096"],"award-info":[{"award-number":["CNS-1952096"]}],"id":[{"id":"10.13039\/100000001","id-type":"DOI","asserted-by":"publisher"}]},{"DOI":"10.13039\/100003187","name":"NSF","doi-asserted-by":"publisher","id":[{"id":"10.13039\/100003187","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":["elsevier.com","sciencedirect.com"],"crossmark-restriction":true},"short-container-title":["Pervasive and Mobile Computing"],"published-print":{"date-parts":[[2023,5]]},"DOI":"10.1016\/j.pmcj.2023.101802","type":"journal-article","created":{"date-parts":[[2023,5,9]],"date-time":"2023-05-09T15:57:57Z","timestamp":1683647877000},"page":"101802","update-policy":"https:\/\/doi.org\/10.1016\/elsevier_cm_policy","source":"Crossref","is-referenced-by-count":4,"special_numbering":"C","title":["CitySpec with shield: A secure intelligent assistant for requirement formalization"],"prefix":"10.1016","volume":"92","author":[{"ORCID":"https:\/\/orcid.org\/0000-0002-6466-4549","authenticated-orcid":false,"given":"Zirong","family":"Chen","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Isaac","family":"Li","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Haoxiang","family":"Zhang","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Sarah","family":"Preum","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"John A.","family":"Stankovic","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Meiyi","family":"Ma","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"78","reference":[{"issue":"9","key":"10.1016\/j.pmcj.2023.101802_b1","doi-asserted-by":"crossref","first-page":"39","DOI":"10.1109\/MC.2021.3082991","article-title":"Toward formal methods for smart cities","volume":"54","author":"Ma","year":"2021","journal-title":"Computer"},{"issue":"15","key":"10.1016\/j.pmcj.2023.101802_b2","doi-asserted-by":"crossref","first-page":"11793","DOI":"10.1109\/JIOT.2021.3069943","article-title":"A novel spatial\u2013temporal specification-based monitoring system for smart cities","volume":"8","author":"Ma","year":"2021","journal-title":"IEEE Internet Things J."},{"key":"10.1016\/j.pmcj.2023.101802_b3","series-title":"2018 ACM\/IEEE 9th International Conference on Cyber-Physical Systems","first-page":"55","article-title":"Cityresolver: a decision support system for conflict resolution in smart cities","author":"Ma","year":"2018"},{"issue":"5s","key":"10.1016\/j.pmcj.2023.101802_b4","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1145\/3477032","article-title":"Predictive monitoring with logic-calibrated uncertainty for cyber-physical systems","volume":"20","author":"Ma","year":"2021","journal-title":"ACM Trans. Embed. Comput. Syst. (TECS)"},{"key":"10.1016\/j.pmcj.2023.101802_b5","series-title":"2021 20th IEEE International Conference on Machine Learning and Applications","first-page":"1245","article-title":"A transformer-based approach for translating natural language to bash commands","author":"Fu","year":"2021"},{"key":"10.1016\/j.pmcj.2023.101802_b6","series-title":"Seq2sql: Generating structured queries from natural language using reinforcement learning","author":"Zhong","year":"2017"},{"key":"10.1016\/j.pmcj.2023.101802_b7","series-title":"Evaluating large language modelsdamerau1964technique trained on code","author":"Chen","year":"2021"},{"key":"10.1016\/j.pmcj.2023.101802_b8","series-title":"2022 IEEE International Conference on Smart Computing","first-page":"32","article-title":"CitySpec: An intelligent assistant system for requirement specification in smart cities","author":"Chen","year":"2022"},{"key":"10.1016\/j.pmcj.2023.101802_b9","series-title":"Emissions from transportation, NYC environment protection","author":"NYC.gov","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b10","series-title":"Restricting the Use of Bus Lanes By Sight-Seeing Buses","article-title":"A local law to amend the administrative code of the city of New York, in relation to restricting the use of bus lanes by sight-seeing buses","author":"Matteo","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b11","unstructured":"NYC Environment Protection, Use of Heating Oil Remaining in Tanks, The city of New York, 2019."},{"key":"10.1016\/j.pmcj.2023.101802_b12","series-title":"Energy Resources for State and Local Governments","article-title":"Residential energy efficiency","author":"United States Environmental Protection Agency","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b13","series-title":"San francisco noise pollution construction","author":"San Francisco","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b14","series-title":"Guide to Indoor Air Quality Management","article-title":"Guide to indoor air quality management in Hong Kong regional offices and public places","author":"Hong Kong","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b15","series-title":"New York Public Law","article-title":"Stopping, standing or parking prohibited in specified places","author":"NYC.gov","year":"2016"},{"key":"10.1016\/j.pmcj.2023.101802_b16","series-title":"Pre-hospital medical emergency regulations","author":"Beijing Emergency Agency","year":"2016"},{"key":"10.1016\/j.pmcj.2023.101802_b17","series-title":"Safety management for kindergarten, primary and secondary school","author":"Beijing Government","year":"2016"},{"key":"10.1016\/j.pmcj.2023.101802_b18","series-title":"Air quality - motor vehicular pollutants, lead, odors, and nuisance pollutants","author":"District of Columbia Municipal Regulations","year":"2016"},{"key":"10.1016\/j.pmcj.2023.101802_b19","series-title":"Official city of Los Angeles municipal code","author":"LA Sec 111.03. Minimum Ambient Noise Level","year":"2016"},{"key":"10.1016\/j.pmcj.2023.101802_b20","series-title":"Notice of draft title V permit public comment period \u2013 architect of the Capitol, library buildings and grounds jurisdiction, library of congress","author":"DC.gov","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b21","series-title":"Code of ordinances, metro government of Nashville and Davidson County, TN","author":"tn.gov","year":"2022"},{"key":"10.1016\/j.pmcj.2023.101802_b22","series-title":"Code of ordinances, city of MEMPHIS, TENNESSEE","author":"tn.gov","year":"2022"},{"key":"10.1016\/j.pmcj.2023.101802_b23","series-title":"Code of ordinances, City of ATLANTA, GEORGIA","author":"ga.gov","year":"2023"},{"issue":"3","key":"10.1016\/j.pmcj.2023.101802_b24","doi-asserted-by":"crossref","first-page":"171","DOI":"10.1145\/363958.363994","article-title":"A technique for computer detection and correction of spelling errors","volume":"7","author":"Damerau","year":"1964","journal-title":"Commun. ACM"},{"key":"10.1016\/j.pmcj.2023.101802_b25","series-title":"Bert: Pre-training of deep bidirectional transformers for language understanding","author":"Devlin","year":"2018"},{"key":"10.1016\/j.pmcj.2023.101802_b26","unstructured":"A.X. Chang, C.D. Manning, Sutime: A library for recognizing and normalizing time expressions, in: LREC, Vol. 3735, 2012, p. 3740."},{"issue":"5","key":"10.1016\/j.pmcj.2023.101802_b27","doi-asserted-by":"crossref","first-page":"728","DOI":"10.1016\/j.jbi.2011.03.011","article-title":"Document-level classification of CT pulmonary angiography reports based on an extension of the ConText algorithm","volume":"44","author":"Chapman","year":"2011","journal-title":"J. Biomed. Inform."},{"key":"10.1016\/j.pmcj.2023.101802_b28","series-title":"Findings of the Association for Computational Linguistics","first-page":"945","article-title":"Towards improving adversarial training of NLP models","author":"Yoo","year":"2021"},{"key":"10.1016\/j.pmcj.2023.101802_b29","series-title":"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing","first-page":"6174","article-title":"BAE: BERT-based adversarial examples for text classification","author":"Garg","year":"2020"},{"key":"10.1016\/j.pmcj.2023.101802_b30","series-title":"Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing","first-page":"6193","article-title":"BERT-ATTACK: Adversarial attack against BERT using BERT","author":"Li","year":"2020"},{"key":"10.1016\/j.pmcj.2023.101802_b31","series-title":"Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing","first-page":"3719","article-title":"Pathologies of neural models make interpretations difficult","author":"Feng","year":"2018"},{"key":"10.1016\/j.pmcj.2023.101802_b32","series-title":"Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics","first-page":"5582","article-title":"Combating adversarial misspellings with robust word recognition","author":"Pruthi","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b33","series-title":"Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics","first-page":"6066","article-title":"Word-level textual adversarial attacking as combinatorial optimization","author":"Zang","year":"2020"},{"key":"10.1016\/j.pmcj.2023.101802_b34","series-title":"Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics","first-page":"1085","article-title":"Generating natural language adversarial examples through probability weighted word saliency","author":"Ren","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b35","series-title":"Textbugger: Generating adversarial text against real-world applications","author":"Li","year":"2018"},{"key":"10.1016\/j.pmcj.2023.101802_b36","doi-asserted-by":"crossref","unstructured":"D. Jin, Z. Jin, J.T. Zhou, P. Szolovits, Is bert really robust? a strong baseline for natural language attack on text classification and entailment, in: Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 34, No. 05, 2020, pp. 8018\u20138025.","DOI":"10.1609\/aaai.v34i05.6311"},{"key":"10.1016\/j.pmcj.2023.101802_b37","series-title":"Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics","first-page":"4902","article-title":"Beyond accuracy: Behavioral testing of NLP models with CheckList","author":"Ribeiro","year":"2020"},{"key":"10.1016\/j.pmcj.2023.101802_b38","series-title":"Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies","first-page":"5053","article-title":"Contextualized perturbation for textual adversarial attack","author":"Li","year":"2021"},{"key":"10.1016\/j.pmcj.2023.101802_b39","series-title":"2018 IEEE Security and Privacy Workshops","first-page":"50","article-title":"Black-box generation of adversarial text sequences to evade deep learning classifiers","author":"Gao","year":"2018"},{"key":"10.1016\/j.pmcj.2023.101802_b40","doi-asserted-by":"crossref","unstructured":"J. Morris, E. Lifland, J.Y. Yoo, J. Grigsby, D. Jin, Y. Qi, TextAttack: A Framework for Adversarial Attacks, Data Augmentation, and Adversarial Training in NLP, in: Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing: System Demonstrations, 2020, pp. 119\u2013126.","DOI":"10.18653\/v1\/2020.emnlp-demos.16"},{"key":"10.1016\/j.pmcj.2023.101802_b41","series-title":"Phrase-bert: Improved phrase embeddings from bert with an application to corpus exploration","author":"Wang","year":"2021"},{"key":"10.1016\/j.pmcj.2023.101802_b42","series-title":"2022 IEEE International Conference on Smart Computing","first-page":"174","article-title":"An intelligent assistant for converting city requirements to formal specification","author":"Chen","year":"2022"},{"key":"10.1016\/j.pmcj.2023.101802_b43","series-title":"Contextual augmentation: Data augmentation by words with paradigmatic relations","author":"Kobayashi","year":"2018"},{"key":"10.1016\/j.pmcj.2023.101802_b44","first-page":"649","article-title":"Character-level convolutional networks for text classification","volume":"28","author":"Zhang","year":"2015","journal-title":"Adv. Neural Inf. Process. Syst."},{"key":"10.1016\/j.pmcj.2023.101802_b45","series-title":"Eda: Easy data augmentation techniques for boosting performance on text classification tasks","author":"Wei","year":"2019"},{"key":"10.1016\/j.pmcj.2023.101802_b46","doi-asserted-by":"crossref","first-page":"54","DOI":"10.1016\/j.neunet.2019.01.012","article-title":"Continual lifelong learning with neural networks: A review","volume":"113","author":"Parisi","year":"2019","journal-title":"Neural Netw."},{"key":"10.1016\/j.pmcj.2023.101802_b47","first-page":"1","article-title":"Lifelong machine learning","volume":"vol. 12, no. 3","author":"Chen","year":"2018"},{"issue":"3\u20134","key":"10.1016\/j.pmcj.2023.101802_b48","doi-asserted-by":"crossref","first-page":"157","DOI":"10.1561\/2400000013","article-title":"Introduction to online convex optimization","volume":"2","author":"Hazan","year":"2016","journal-title":"Found. Trends\u00ae Optim."},{"key":"10.1016\/j.pmcj.2023.101802_b49","series-title":"Reinforcement Learning: An Introduction","author":"Sutton","year":"2018"},{"key":"10.1016\/j.pmcj.2023.101802_b50","series-title":"Findings of the Association for Computational Linguistics","first-page":"1616","article-title":"BERT-defense: A probabilistic model based on BERT to combat cognitively inspired orthographic adversarial attacks","author":"Keller","year":"2021"},{"key":"10.1016\/j.pmcj.2023.101802_b51","series-title":"Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics","first-page":"2744","article-title":"Pretrained transformers improve out-of-distribution robustness","author":"Hendrycks","year":"2020"},{"key":"10.1016\/j.pmcj.2023.101802_b52","series-title":"Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies","first-page":"2716","article-title":"Don\u2019t sweat the small stuff, classify the rest: Sample shielding to protect text classifiers against adversarial attacks","author":"Rusert","year":"2022"}],"container-title":["Pervasive and Mobile Computing"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/api.elsevier.com\/content\/article\/PII:S1574119223000603?httpAccept=text\/xml","content-type":"text\/xml","content-version":"vor","intended-application":"text-mining"},{"URL":"https:\/\/api.elsevier.com\/content\/article\/PII:S1574119223000603?httpAccept=text\/plain","content-type":"text\/plain","content-version":"vor","intended-application":"text-mining"}],"deposited":{"date-parts":[[2025,10,28]],"date-time":"2025-10-28T02:47:07Z","timestamp":1761619627000},"score":1,"resource":{"primary":{"URL":"https:\/\/linkinghub.elsevier.com\/retrieve\/pii\/S1574119223000603"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,5]]},"references-count":52,"alternative-id":["S1574119223000603"],"URL":"https:\/\/doi.org\/10.1016\/j.pmcj.2023.101802","relation":{},"ISSN":["1574-1192"],"issn-type":[{"value":"1574-1192","type":"print"}],"subject":[],"published":{"date-parts":[[2023,5]]},"assertion":[{"value":"Elsevier","name":"publisher","label":"This article is maintained by"},{"value":"CitySpec with shield: A secure intelligent assistant for requirement formalization","name":"articletitle","label":"Article Title"},{"value":"Pervasive and Mobile Computing","name":"journaltitle","label":"Journal Title"},{"value":"https:\/\/doi.org\/10.1016\/j.pmcj.2023.101802","name":"articlelink","label":"CrossRef DOI link to publisher maintained version"},{"value":"article","name":"content_type","label":"Content Type"},{"value":"\u00a9 2023 Elsevier B.V. All rights reserved.","name":"copyright","label":"Copyright"}],"article-number":"101802"}}