## 4 Immersive Environment Architecture  
Connectivity and accessibility of XR technologies are key features, which refer to the ability of users to access virtual environments, regardless of the devices they use or the skills they have. Providing the necessary level of connectivity for XR environments requires a combination of technologies and infrastructure components, such as high-speed Internet connections, low-latency network infrastructure, and robust compute and storage capabilities. Interfaces with virtual environments should include accessibility features, making experiences inclusive and adaptable for users with disabilities.  
The proposed architecture (Figure 1) incorporates extended reality (XR) technologies and generative artificial intelligence (AI) to establish an adaptive, inclusive educational platform for children with special needs. This system is designed to provide a transformative learning experience by dynamically adjusting to each user's unique requirements and progress.  
Figure 1: The immersive environment architecture.  
The current version of the software, designated as version 0.6-alpha, is under development, incorporating XR technologies and generative AI for adaptive, inclusive learning environments. The key components within the architecture are as follows: User Interface (UI), Unity XR Engine, generative AI Module, XR Learning Environment, and External Database.  
At the same time, innovative approaches and solutions are proposed to develop the XR inclusive environment:  
* Integration of XR technologies and generative AI--utilizing XR to create immersive learning environments tailored to children with special needs, alongside generative AI to personalize the learning experience based on individual progress and preferences.
* Adaptive learning environments to dynamically adjust learning scenarios, ensuring they are aligned with each child's learning pace.
* Data-driven development and evaluation to generate reports for parents, educators, and healthcare professionals, allowing for real-time monitoring and adjustment of the learning modules based on the child's development.  
The User Interface serves as the gateway for users to access a variety of XR learning experiences. The Unity (XR) Engine acts as the backbone, creating custom environments within which the generative AI module operates. This module, fueled by the OpenAI API (openai-python v1.52.1), dynamically tailors the XR learning environments in the XR Learning Environment component.  
The virtual environment developed within the project can be used for three main aims: learning, training, and assessment. The Learning Mode provides customized experiences addressing specific special needs, while the Training Mode immerses users in simulated social scenarios guided by a dynamically adjusting NPC that uses text-to-speech technology. In the Assessment Mode, therapeutic benefits are quantified through measured improvements in motor skills and coordination, and the results are stored in the External Database for later analysis. This data storage component not only captures assessment outcomes but also houses user progress and preferences, providing a comprehensive foundation for a transformative and inclusive learning experience for children with special needs. These components are visually represented in Figure 1, highlighted within the orange area.  
A schematic representation for the integration of the Unity XR Engine with AI modules is presented in Figure 2.  
Figure 2: Integration of Unity XR with AI modules.  
Next, the components of the architecture of the inclusive immersive environment will be analyzed in detail, as well as the relationships between them and the modes of operation.