Mindful Algorithms: Context-Aware, Carbon-Efficient Execution Pipelines for Sustainable Smart City AI Infrastructure
DOI:
https://doi.org/10.66635/rf0rsy93Keywords:
Green AI, Mindful Algorithms, Smart Cities, Sustainable Computing, Carbon-Aware Computing, Dynamic Neural Networks, Edge Computing, Information Entropy, Environmental SustainabilityAbstract
As artificial intelligence (AI) becomes deeply embedded across municipal smart city infrastructure governing real-time traffic surveillance, power microgrid management, and dynamic urban logistics the operational energy consumption and associated carbon emissions of continuous compute pipelines have grown exponentially. Traditional "always-on" AI deployments execute parameter-heavy deep neural networks unconditionally upon data arrival, driving substantial computational overhead even during invariant or low-risk urban conditions. To resolve this tension between algorithmic utility and ecological impact, this paper introduces the Mindful Algorithmic Framework: a three-stage adaptive execution pipeline designed for edge-fog-cloud municipal environments. The architecture operationalizes digital mindfulness through three self-evaluative decision stages: (1) an edge-situated Contextual Necessity Assessment that utilizes Shannon entropy gating to skip downstream inference when environmental variance falls below dynamic uncertainty thresholds; (2) Dynamic Fidelity Scaling that leverages early-exit deep neural networks and INT8 edge quantization to adjust inference depth dynamically based on input ambiguity; and (3) Carbon-Aware Execution Scheduling that couples non-latency-critical batch computations (e.g., historical analytical modelling and off-line optimization) with real-time electrical grid carbon intensity APIs (gCO2/kWh). Evaluated across three representative smart city domains traffic monitoring, microgrid dispatch, and municipal waste fleet routing the framework achieves an estimated 35% to 65% reduction in operational floating-point operations (FLOPs) and up to a 25% reduction in grid-attributable carbon emissions without compromising service quality or incident detection latency. Finally, we propose concrete policy directives for public sector AI procurement and carbon-aware municipal governance, establishing a blueprint for aligning urban digital transformation with global climate sustainability goals.
References
1.Almalki, F. A., Soufiene, B. O., Alsamhi, S. H., & Sakli, H. (2021). A low-cost platform for environmental smart city monitoring system based on IoT and cloud computing. Sustainability, 13(7), 3598. https://doi.org/10.3390/su13073598
2.Bibri, S. E., & Allam, Z. (2023). Synthesizing the state of the art in smart eco-cities and sustainable smart cities: A systematic review of AI and AIoT technologies. Energy and Built Environment, 4(5), 589–608. https://doi.org/10.1016/j.enbenv.2022.06.002
3.Bibri, S. E., & Krogstie, J. (2017). Smart sustainable cities of the future: An extensive interdisciplinary literature review. Sustainable Cities and Society, 31, 183–212. https://doi.org/10.1016/j.scs.2017.02.016
4.Bibri, S. E., & Krogstie, J. (2020). The emerging data-driven smart sustainable city: A conceptual framework for environmental sustainability. Journal of Cleaner Production, 263, 121194. https://doi.org/10.1016/j.jclepro.2020.121194
5.Brevini, B. (2020). Black boxes, green spots: Compute, artificial intelligence, and the climate emergency. European Journal of Communication, 35(3), 226–237. https://doi.org/10.1177/0267323120922080
6.Brevini, B. (2020). Black boxes, green spots: Why AI is unsustainable for the planet. Social Media + Society, 6(2), 1–12. https://doi.org/10.1177/2056305120928172
7.Dauvergne, P. (2020). AI in the wild: Sustainability in the age of artificial intelligence. MIT Press. https://doi.org/10.7551/mitpress/12350.001.0001
8.dos Santos, R. B. (2024). AI-driven energy management in sustainable smart cities: Operational optimization and carbon abatement. Renewable and Sustainable Energy Reviews, 189, 113942. https://doi.org/10.1016/j.rser.2023.113942
9.Gogineni, S., Chinnam, Y., Returi, K. D., Mohan, V. M., & Suryanarayana, G. (2025). Green AI: A comprehensive survey on sustainable and eco-efficient artificial intelligence practices. Proceedings of the International Conference on Intelligent Information Systems Design, 198–215. https://doi.org/10.2991/978-94-6463-976-6_14
10.Han, Y., Huang, G., Song, S., Yang, L., Wang, H., & Wang, Y. (2022). Dynamic neural networks: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 44(11), 7436–7456. https://doi.org/10.1109/TPAMI.2021.3117837
11.Höller, T., Ikuno, J. C., & Riegler, M. (2019). Edge computing: A survey on mobile edge frameworks and standards. IEEE Access, 7, 166747–166768. https://doi.org/10.1109/ACCESS.2019.2942467
12.Huang, G., Chen, D., Li, T., Wu, S., van der Maaten, L., & Weinberger, K. Q. (2017). Multi-scale dense networks for resource efficient image classification. Proceedings of the 5th International Conference on Learning Representations (ICLR).
13.Leal Filho, W., Wall, T., Rayman-Bacchus, L., Mifsud, M., Pritchard, D. J., & Lovren, V. O. (2022). Impacts of fourth industrial revolution technologies on environmental sustainability. Environmental Science & Policy, 129, 107–118. https://doi.org/10.1016/j.envsci.2021.12.020
14.Pathare, P. (2025). Carbon-aware edge computing: Greener AI at the edge of innovation. Journal of Edge Intelligence & Green Computing, 4(2), 45–58. https://medium.com/@prathm.p20/carbon-aware-edge-computing-greener-ai-at-the-edge-of-innovation-e21b7cb6ea04
15.Radovanovic, A., Koningstein, R., Bizo, L., Chen, R., Duarte, F., Waisman, A., & Bialecki, A. (2023). Carbon-aware computing for datacenters. IEEE Transactions on Power Systems, 38(2), 1270–1280. https://doi.org/10.1109/TPWRS.2022.3173250
16.Ranpara, R. (2025). Energy-efficient Green AI architectures for circular economies through multi-layered sustainable resource optimization framework. Discover Sustainability, 6(1), 1031. https://doi.org/10.1007/s43621-025-01846-x
17.Scardapane, S., Scarpiniti, M., Baccarelli, E., & Uncini, A. (2020). Why should we use early exits? A survey. Cognitive Computation, 12(5), 1042–1058. https://doi.org/10.1007/s12559-020-09734-2
18.Schwartz, R., Dodge, J., Smith, N. A., & Etzioni, O. (2020). Green AI. Communications of the ACM, 63(12), 54–63. https://doi.org/10.1145/3381831
19.Shannon, C. E. (1948). A mathematical theory of communication. Bell System Technical Journal, 27(3), 379–423. https://doi.org/10.1002/j.1538-7305.1948.tb01338.x
20.Shi, W., Cao, J., Zhang, Q., Li, Y., & Xu, L. (2016). Edge computing: Vision and challenges. IEEE Internet of Things Journal, 3(5), 637–646. https://doi.org/10.1109/JIOT.2016.2579198
21.Strubell, E., Ganesh, A., & McCallum, A. (2019). Energy and policy considerations for deep learning in NLP. Proceedings of the 57th Annual Meeting of the Association for Computational Linguistics (ACL), 3645–3650. https://doi.org/10.18653/v1/P19-1355
22.Teerapittayanon, S., McDanel, B., & Kung, H. T. (2016). BranchyNet: Fast inference via early exiting from deep neural networks. 2016 23rd International Conference on Pattern Recognition (ICPR), 2464–2469. https://doi.org/10.1109/ICPR.2016.7900006
23.United Nations University. (2026). Beyond carbon: Measuring the multi-dimensional environmental footprint of operational AI systems. UNU Institute for Environment and Human Security. https://india.un.org/en/316754-ai%E2%80%99s-environmental-costs-threaten-water-land-and-climate
24.United Nations. (2022). Sustainable Development Goals Report 2022. UN Department of Economic and Social Affairs. https://unstats.un.org/sdgs/report/2022/
25.Wiesner, P. (2024). Carbon-aware quality adaptation for energy-intensive services. arXiv. https://arxiv.org/abs/2411.19058
26.Wiesner, P., Ilgner, R., Thamsen, L., & Kao, O. (2021). Sustainable computing with Cucumber: Carbon-aware temporal workload shifting. Proceedings of the 2nd Workshop on Sustainable Computer Systems (SustKVS).
27.Yigitcanlar, T., Mehmood, R., & Corchado, J. M. (2021). Green artificial intelligence: Towards an efficient, sustainable and equitable technology for smart cities and futures. Sustainability, 13(16), 8952. https://doi.org/10.3390/su13168952.





