# ODIN112-AI-Assisted Emergency Services in Romania
## 3 Method
### ODIN112 Architecture  
Our ODIN112 architecture (see Figure 4) is built around various speech processing systems to enhance Romanian emergency services. It includes an Automatic Speech Recognition module to transcribe calls automatically and augment the operator's notes, as well as a module to classify the caller's emotions. ODIN112 is meant to support the operator in evaluating the situation with the end goal of reducing the response times of emergency services (e.g., ambulances, firefighters, and police). The general architecture of the information system is composed of a telephone exchange proxy, the IVR module (presented in detail in [33]), the ODIN112 user interface, and \begin{table}
\begin{tabular}{c c c c c c} \hline \hline
**Gender** & **Male** & **Female** & **N/A** & **Total** \\ \hline  & & 41 & 71 & 103 & 215 \\ \hline \hline \end{tabular}
\end{table} 
Table 4: Statistics about the gender of the volunteers. Figure 4: ODIN112 Architecture: Functional Components (the existing emergency services system components are represented in blue). \begin{table}
\begin{tabular}{c c c c c} \hline \hline
**Data Set** & **Duration** & **Recordings** & **Unique** & **Unique Word** & **Speakers** \\ \hline Drama & 6 h & 4146 & 523 & 2724 & 77 \\ Emergencies & 10 h & 6937 & 1309 & 822 & 205 \\ Legal & 13 h & 4101 & 577 & 3079 & 76 \\ Narratives & 23 h & 10,978 & 482 & 7961 & 81 \\ News & 11 h & 4879 & 168 & 4391 & 76 \\ Poetry & 3 h & 917 & 112 & 1836 & 71 \\ Wikipedia & 92 h & 35,754 & 1001 & 7509 & 212 \\ \hline Echo Total & 155 h & 66,795 & 4059 & 22,521 & 215 \\ \hline \hline \end{tabular}
\end{table} 
Table 2: Subsets of the collected speech corpora for the Romanian language. a set of microservices that provide the services of the scene and acoustic event classification, emotion analysis, speech transcription. The Manager component uses the microservices to handle the real-time processing of the audio streams associated with the inbound calls. All modules are delivered as standard (Docker-like) containers, and the communication between them is done through simple or standard interfaces. Those decisions make it easy to be integrated into SNUAU, the Unique National Emergency Call System. SNUAU is composed of single emergency call centers, integrated emergency dispatch centers, and emergency dispatch centers of specialized intervention agencies. Both the single centers for emergency calls, operated by the Romanian Special Telecommunication Services (STS), and the emergency dispatches of specialized intervention agencies are organized at the level of each county in Romania. STS and their partners developed the current infrastructure of the emergency services in the direction of the NG112 specifications. Our demonstrator is not fully integrated with the new Romanian emergency system which is not yet in full operation, yet we considered the usage of standard and open interfaces for rapid further integration: the data format for intermodule communication and archiving is done in a JSON format to facilitate further integration into the existing emergency system; archiving is done in a system that enables rapid scaling--i.e., HDFS (Hadoop File System); our decision support system based on keywords can be easily triggered via REST services; the decision support system identifies the emergency index nodes that are usually used by the existing emergency system to classify the emergency cases based on type into different subcategories. Thus, the response to the incidents is triggered (e.g., the decision to involve an ambulance). In order to achieve the online processing of the audio streams, we used TCP sockets to continuously feed the processing modules with new parts of the audio call. The requirements are different compared to real-time communication (such as VoIP), which is usually done using UDP/RTP since the automated process requires reliable communication. Our solution was developed to enable multiple parallel calls between the operator, the caller, and the agencies providing the emergency services.