In response to the urgent demand for living environments caused by population aging, this paper explores a collaborative optimization strategy combining architectural design space optimization and smart home technology. A network indicator system for architectural space was constructed, the fitness of network structure nodes was calculated, and a space optimization model based on the microhabitat genetic algorithm was established. The design of the aging-friendly smart home system incorporates Zigbee technology, featuring a low-power network topology and protocol stack, and deploys a fall detection model for elderly individuals living alone based on the YOLOv5 object detection model. The spatial optimization model improved spatial utilization efficiency and fitness to 78% and 96%, respectively. The smart home system achieved a 96.8% accuracy rate in fall detection for the elderly, and user satisfaction evaluations saw varying degrees of improvement across six dimensions. This approach not only meets the monitoring and assistance needs of elderly individuals living alone while enhancing their comfort but also provides a scientific solution for the renovation of living environments in an aging society.