As a well-known World Cultural Heritage Site, the Historic Centre of Macao’s historical buildings possess a wealth of decorative patterns. These patterns contain cultural esthetics, geographical environment, cultural traditions, and other elements from specific historical periods, deeply reflecting the evolution of religious rituals and political and economic systems throughout history. Through long-term research, this article constructs a dataset of 11,807 images of local decorative patterns of historical buildings in Macau, and proposes a fine-grained image classification method using the ConvNeXt-L model. The ConvNeXt-L model is an efficient convolutional neural network that has demonstrated excellent performance in image classification tasks in fields such as medicine and architecture. Its outstanding advantages lie in limited training samples, diverse image features, and complex scenes. The most typical advantage of this model is its structural integration of key design concepts from a Transformer, which significantly enhances the feature extraction and generalization ability of samples. In response to the objective reality that the decorative patterns of historical buildings in Macau have rich levels of detail and a limited number of functional building categories, ConvNeXt-L maximizes its ability to recognize and classify patterns while ensuring computational efficiency. This provides a more ideal technical path for the classification of small-sample complex images. This article constructs a deep learning system based on the PyTorch 1.11 framework and compares ResNet50, EfficientNet-B7, ViT-B/16, Swin-B, RegNet-Y-16GF, and ConvNeXt series models. The results indicate a positive correlation between model performance and structural complexity, with ConvNeXt-L being the most ideal in terms of accuracy in decorative pattern classification, due to its fusion of convolution and attention mechanisms. This study not only provides a multidimensional exploration for the protection and revitalization of Macao’s historical and cultural heritage and enriches theoretical support and practical foundations but also provides new research paths and methodological support for artificial intelligence technology to assist in the planning and decision-making of historical urban areas.
With the global trend towards “carbon neutrality,” the use of electric vehicles is becoming increasingly widespread, leading to new impacts on urban spaces. In the process of allocating resources for urban charging stations, there are widespread issues such as a singular planning approach and inadequate adaptation to actual travel demands. Therefore, this study adopts a method of integrating multi-source data to optimize the planning and layout of public electric vehicle charging facilities in Macau, striving to achieve breakthroughs in theoretical methods and key technologies. The study obtained a determination coefficient of R2 = 0.43 through quantitative analysis, which is within a reasonable range of fitting spatial syntax and charging facility layout. This indicates that there is a moderate positive correlation between the distribution of charging facilities and core indicators such as road network integration and accessibility—about 43% of layout differences can be explained by spatial syntax indicators, and the remaining 57% of differences reserve space for optimizing multiple factors such as population density and parking lot distribution. On this basis, this study compares the layout experience of medium to high-density cities such as Hong Kong and Singapore, and combines the common characteristics of old parishes on Macau Island and new urban areas on outlying islands to explore innovative sustainable development technology paths that are suitable for Macau. This study not only summarizes the key factors and optimization breakthroughs that affect the spatial distribution of charging facilities in Macau, providing basic data and methodological strategies for charging facility planning, but also helps Macau save energy and reduce emissions, build a green city through layout optimization, provide practical reference for the development of land reclamation areas, and provide reference for carbon neutrality and smart city construction in the Guangdong Hong Kong Macau Greater Bay Area.