CN114817524A - Method and device, system, medium and electronic device for generating infectious disease epidemiological report - Google Patents
Method and device, system, medium and electronic device for generating infectious disease epidemiological report Download PDFInfo
- Publication number
- CN114817524A CN114817524A CN202210426760.3A CN202210426760A CN114817524A CN 114817524 A CN114817524 A CN 114817524A CN 202210426760 A CN202210426760 A CN 202210426760A CN 114817524 A CN114817524 A CN 114817524A
- Authority
- CN
- China
- Prior art keywords
- infectious disease
- audio data
- call
- report
- text data
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/34—Browsing; Visualisation therefor
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/338—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
- G06F40/295—Named entity recognition
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/26—Speech to text systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- Computational Linguistics (AREA)
- General Physics & Mathematics (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Artificial Intelligence (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Human Computer Interaction (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Telephonic Communication Services (AREA)
Abstract
Description
技术领域technical field
本公开涉及计算机技术领域,具体而言,涉及一种传染病流调报告生成方法、传染病流调报告生成系统、传染病流调报告生成装置、计算机可读存储介质以及电子设备。The present disclosure relates to the field of computer technologies, and in particular, to a method for generating an epidemiological report of an infectious disease, a system for generating an epidemiological report of an infectious disease, an apparatus for generating an epidemiological report of an infectious disease, a computer-readable storage medium, and an electronic device.
背景技术Background technique
传染病流调报告,即传染病流行病学调查报告的简称。在传染病发生时,对传染病确诊人员或者与确诊人员接触过的密接人员进行电话调查,记录其基本信息情况、家庭情况、工作情况、密接情况、最近一段时间内的活动轨迹情况等信息,从而根据这些信息可以对传染病的传播情况进行分析,以辅助相关人员可以根据传播情况及时采取有效的治理措施。Infectious disease epidemiological investigation report is the abbreviation of infectious disease epidemiological investigation report. When an infectious disease occurs, conduct a telephone survey on the person diagnosed with the infectious disease or the close contact person who has been in contact with the confirmed person, and record their basic information, family situation, work situation, close contact situation, and activity trajectory in the recent period of time. Therefore, based on this information, the spread of infectious diseases can be analyzed to assist relevant personnel to take effective control measures in a timely manner according to the spread.
相关技术中,传染病流调报告都是由相关工作人员在撰写的。具体的,相关工作人员在进行传染病流调时,在和被流调对象进行对话的同时手动记录下重点信息,在对话结束后,对记录的重点信息进行整理并撰写成流调报告。In the related art, the infectious disease epidemiological report is written by the relevant staff. Specifically, when the relevant staff conducts an epidemiological investigation, they manually record key information while having a dialogue with the subject to be transferred. After the dialogue is over, the recorded key information is sorted and written into an epidemiological report.
然而,这种通过人工撰写传染病流调报告的方式,效率低下,不利于相关人员根据传染病流调情况及时采取相应的治理措施。However, this method of manually writing an infectious disease epidemiological report is inefficient, and it is not conducive for relevant personnel to take corresponding control measures in a timely manner according to the infectious disease epidemiological situation.
需要说明的是,在上述背景技术部分公开的信息仅用于加强对本公开的背景的理解,因此可以包括不构成对本领域普通技术人员已知的现有技术的信息。It should be noted that the information disclosed in the above Background section is only for enhancement of understanding of the background of the present disclosure, and therefore may contain information that does not form the prior art that is already known to a person of ordinary skill in the art.
发明内容SUMMARY OF THE INVENTION
本公开的目的在于提供一种传染病流行报告的生成方法及装置、传染病流调报告生成系统、计算机可读存储介质及电子设备,进而至少在一定程度上改善相关技术中传染病流调报告生成效率低下的问题。The purpose of the present disclosure is to provide a method and device for generating an infectious disease epidemic report, a system for generating an infectious disease epidemic report, a computer-readable storage medium and an electronic device, so as to improve the infectious disease epidemic report in the related art at least to a certain extent. Generate inefficiencies.
本公开的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本公开的实践而习得。Other features and advantages of the present disclosure will become apparent from the following detailed description, or be learned in part by practice of the present disclosure.
根据本公开的第一方面,提供了一种传染病流调报告生成方法,包括:获取被流调对象在流调通话时的音频数据对应的文本数据;根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息;根据所述结构化流调信息,并采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。According to a first aspect of the present disclosure, there is provided a method for generating an epidemiological report of an infectious disease, including: acquiring text data corresponding to audio data of an object under investigation during an epidemiological call; Setting keywords, extracting information corresponding to the preset keywords from the text data, to generate structured flow tone information corresponding to the text data based on the information corresponding to the preset keywords; according to the structure The epidemiological information is converted into the epidemiological report of the target infectious disease by using the infectious disease epidemiology report template corresponding to the epidemiological report of the infectious disease.
在本公开的一种示例性实施例中,基于前述方案,所述被流调对象基于软件电话进行流调通话;所述获取被流调对象在流调通话时的音频数据对应的文本数据,包括:获取所述软件电话对应的前端网页发送的所述音频数据,或获取所述软件电话对应的呼叫中心后台发送的所述音频数据;对所述音频数据进行文本转换,以得到所述音频数据对应的文本数据。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the stream-tuned object performs a stream-tuned call based on a software phone; the acquiring text data corresponding to the audio data of the stream-tuned object during the stream-tuned call, Including: obtaining the audio data sent by the front-end webpage corresponding to the software phone, or obtaining the audio data sent by the call center background corresponding to the software phone; performing text conversion on the audio data to obtain the audio data The text data corresponding to the data.
在本公开的一种示例性实施例中,基于前述方案,在获取的所述音频数据由所述软件电话对应的前端网页发送的情况下,所述前端网页通过以下方式采集所述被流调对象在流调通话时的音频数据:所述前端网页在建立网页即时通信的网络连接对象时,保存所述网络连接对象的连接实例;在所述流调通话初始化完成时,从所述网络连接对象的连接实例中获取本地端的媒体流对象对应的第一媒体流和远端的媒体流对象对应的第二媒体流,所述远端用于指示所述被流调对象所在的通话终端;合并所述第一媒体流和所述第二媒体流,以生成目标媒体流;对所述目标媒体流进行录音,以采集得到预设音频格式的所述音频数据。In an exemplary embodiment of the present disclosure, based on the foregoing solution, when the acquired audio data is sent by a front-end web page corresponding to the software phone, the front-end web page collects the stream-tuned data in the following manner The audio data of the object during the streaming call: the front-end webpage saves the connection instance of the network connection object when establishing the network connection object of web instant messaging; In the connection instance of the object, the first media stream corresponding to the media stream object of the local end and the second media stream corresponding to the media stream object of the remote end are obtained, and the remote end is used to indicate the calling terminal where the stream-tuned object is located; The first media stream and the second media stream are used to generate a target media stream; and the target media stream is recorded to acquire the audio data in a preset audio format.
在本公开的一种示例性实施例中,基于前述方案,在获取的所述音频数据由所述软件电话对应的呼叫中心后台发送的情况下,所述呼叫中心后台通过以下方式采集所述被流调对象在流调通话时的音频数据:获取所述软件电话对应的前端网页发送的第一音频数据流;获取与所述呼叫中心后台连接的电话运营商网络发送的第二音频数据流,所述第二音频数据流包括所述被流调对象所在终端的音频数据流;合并所述第一音频数据流和所述第二音频数据流,以生成目标音频数据流;对所述目标音频数据流进行录音,以采集得到预设音频格式的所述音频数据。In an exemplary embodiment of the present disclosure, based on the foregoing solution, when the acquired audio data is sent by the call center background corresponding to the software phone, the call center background collects the received audio data in the following manner The audio data of the stream-tuned object during the stream-tuned call: obtain the first audio data stream sent by the front-end web page corresponding to the software phone; obtain the second audio data stream sent by the telephone operator network connected to the background of the call center, The second audio data stream includes the audio data stream of the terminal where the stream-tuned object is located; the first audio data stream and the second audio data stream are combined to generate a target audio data stream; The data stream is recorded to acquire the audio data in the preset audio format.
在本公开的一种示例性实施例中,基于前述方案,所述被流调对象基于软件电话进行流调通话;所述获取被流调对象在流调通话时的音频数据对应的文本数据,包括:获取所述软件电话对应的呼叫中心后台发送的所述被流调对象在流调通话时的音频数据对应的文本数据。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the stream-tuned object performs a stream-tuned call based on a software phone; the acquiring text data corresponding to the audio data of the stream-tuned object during the stream-tuned call, The method includes: acquiring text data corresponding to the audio data of the stream-tuned object sent by the call center background corresponding to the software phone during the stream-tuned call.
在本公开的一种示例性实施例中,基于前述方案,所述根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以生成所述文本数据对应的结构化流调信息,包括:基于正则化表达式和/或命名实体识别方式,在所述文本数据中提取出所述预设关键词对应的信息;以所述预设关键词为关键字,所述预设关键词对应的信息为所述关键字对应的值,生成所述文本数据对应的结构化流调信息。In an exemplary embodiment of the present disclosure, based on the aforementioned solution, the information corresponding to the preset keyword is extracted from the text data according to the preset keyword related to the infectious disease flow report, To generate the structured flow tone information corresponding to the text data, comprising: extracting information corresponding to the preset keywords in the text data based on a regularized expression and/or a named entity recognition method; The preset keyword is a keyword, the information corresponding to the preset keyword is a value corresponding to the keyword, and the structured flow tone information corresponding to the text data is generated.
在本公开的一种示例性实施例中,基于前述方案,所述根据所述结构化流调信息,基于所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告,包括:将所述结构化流调信息中的关键字与所述传染病流调报告模板中的各个项目名称进行匹配;针对匹配成功的关键字和项目名称,将所述关键字对应的值确定为所述项目名称所指示的项目对应的项目信息,以生成所述目标传染病流调报告。In an exemplary embodiment of the present disclosure, based on the foregoing solution, according to the structured epidemiological information, based on the infectious disease epidemiology report template corresponding to the infectious disease epidemiology report, the target infectious disease epidemiology report is generated The report includes: matching the keywords in the structured flow survey information with each item name in the infectious disease flow survey report template; for the successfully matched keywords and project names, matching the keywords corresponding to the keywords The value is determined as the item information corresponding to the item indicated by the item name, so as to generate the epidemiological report of the target infectious disease.
根据本公开的第二方面,提供了一种传染病流调报告生成系统,包括:软件电话,用于与被流调对象进行流调通话,并采集被流调对象在流调通话时的音频数据;文本转换子系统,用于将所述音频数据转换为对应的文本数据;报告生成子系统,用于接收所述文本转换子系统发送的所述文本数据,并根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息,根据所述结构化流调信息,采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。According to a second aspect of the present disclosure, there is provided a system for generating an epidemiological report of an infectious disease, including: a software phone for conducting a streaming call with a subject to be streamed, and collecting audio from the subject during the streamed call data; a text conversion subsystem, for converting the audio data into corresponding text data; a report generation subsystem, for receiving the text data sent by the text conversion subsystem, and reporting according to the flow of infectious diseases Relevant preset keywords, extract information corresponding to the preset keywords in the text data, so as to generate structured flow tone information corresponding to the text data based on the information corresponding to the preset keywords, according to For the structured epidemiological information, an epidemiological report template corresponding to the infectious disease epidemiology report is used to generate a target infectious disease epidemiology report.
在本公开的一种示例性实施例中,基于前述方案,所述软件电话包括前端网页和呼叫中心后台;所述采集被流调对象在流调通话时的音频数据包括:通过所述前端网页采集所述被流调对象在流调通话时的音频数据或通过所述呼叫中心后台采集所述被流调对象在流调通话时的音频数据。In an exemplary embodiment of the present disclosure, based on the foregoing solution, the software phone includes a front-end web page and a call center background; the collecting audio data of the stream-tuned object during a stream-tuned call includes: using the front-end web page The audio data of the streamed object during the streamed call is collected, or the audio data of the streamed object during the streamed call is collected through the call center background.
根据本公开的第三方面,提供了一种传染病流调报告生成装置,包括:通话文本数据获取模块,被配置为获取被流调对象在流调通话时的音频数据对应的文本数据;结构化流调信息生成模块,被配置为根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息;目标传染病流调报告生成模块,被配置为根据所述结构化流调信息,并采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。According to a third aspect of the present disclosure, an apparatus for generating an epidemiological report of an infectious disease is provided, comprising: a call text data acquisition module, configured to acquire text data corresponding to the audio data of the subject to be streamed during the streamed call; structure The flow pattern information generation module is configured to extract information corresponding to the preset keywords from the text data according to the preset keywords related to the epidemic situation report of infectious diseases, so as to use the preset keywords based on the preset keywords. The corresponding information generates the structured epidemiological information corresponding to the text data; the target infectious disease epidemiology report generation module is configured to use the infectious disease epidemiology report corresponding to the infectious disease epidemiology report according to the structured epidemiological information. Epidemic report template to generate epidemiological reports of target infectious diseases.
根据本公开的第四方面,提供了一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例中第一方面所述的传染病流调报告生成方法。According to a fourth aspect of the present disclosure, there is provided a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, implements the infectious disease flow regulation described in the first aspect of the above embodiments Report generation method.
根据本公开实施例的第五方面,提供了一种电子设备,包括:处理器;以及,存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如上述实施例中第一方面所述的传染病流调报告生成方法。According to a fifth aspect of the embodiments of the present disclosure, there is provided an electronic device, comprising: a processor; and a storage device for storing one or more programs, when the one or more programs are stored by the one or more programs When executed by each processor, the one or more processors are made to implement the method for generating an infectious disease epidemiology report as described in the first aspect of the above embodiment.
由上述技术方案可知,本公开示例性实施例中的传染病流调报告生成方法、传染病流调报告生成系统、传染病流调报告生成装置,以及实现所述传染病流调报告生成方法的计算机可读存储介质及电子设备,至少具备以下优点和积极效果:It can be known from the above technical solutions that the method for generating an epidemiological report of an infectious disease, a system for generating an epidemiological report of an infectious disease, an apparatus for generating an epidemiological report of an infectious disease in the exemplary embodiments of the present disclosure, and a method for realizing the generating method for an epidemiological report of an infectious disease. The computer-readable storage medium and electronic device have at least the following advantages and positive effects:
在本公开的一些实施例所提供的技术方案中,可以获取被流调对象在流调通话时的音频数据对应的文本数据;然后,根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以生成所述文本数据对应的结构化流调信息;进而根据所述结构化流调信息,基于所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。与相关技术相比,本公开基于获取到的流调通话时的音频数据对应的文本数据,通过对该文本数据进行结构化处理,再将结构化处理后得到的结构化的流调信息和传染病流调报告模板相结合,可以基于流调通话自动的生成传染病流调报告,而无需人工进行整理或记录,从而提高了传染病流调报告的生成效率,进一步辅助相关人员提高了基于传染病流调报告对传染病传播情况进行分析的效率。In the technical solutions provided by some embodiments of the present disclosure, the text data corresponding to the audio data of the stream-tuned object during the stream-tune call can be obtained; The information corresponding to the preset keywords is extracted from the text data to generate structured flow regulation information corresponding to the text data; and then according to the structured flow regulation information, based on the infectious disease flow regulation report corresponding The infectious disease epidemiological report template of , generates a target infectious disease epidemiological report. Compared with the related art, the present disclosure is based on the acquired text data corresponding to the audio data during the streaming call, by performing structured processing on the text data, and then structuring the structured streaming information and contagion information obtained after the structured processing. Combined with the report templates of epidemic epidemiology, the epidemic epidemiology report can be automatically generated based on the epidemiological call, without manual sorting or recording, thereby improving the generation efficiency of the epidemiological report and further assisting the relevant personnel to improve the efficiency of epidemic epidemiology reports based on the infection control. Efficiency of epidemiological reports in analyzing the spread of infectious diseases.
本公开应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood in the present disclosure that the foregoing general description and the following detailed description are exemplary and explanatory only and are not limiting of the present disclosure.
附图说明Description of drawings
此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。显而易见地,下面描述中的附图仅仅是本公开的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and for those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.
图1示出本公开一示例性实施例中的传染病流调报告生成方法的流程示意图;1 shows a schematic flowchart of a method for generating an epidemiological report of an infectious disease in an exemplary embodiment of the present disclosure;
图2示出本公开一示例性实施例中的从前端网页中,采集流调通话时的音频数据的方法的流程示意图;2 shows a schematic flowchart of a method for collecting audio data during a streaming call from a front-end web page in an exemplary embodiment of the present disclosure;
图3示出本公开一示例性实施例中的从呼叫中心后台,采集流调通话时的音频数据的方法的流程示意图;3 shows a schematic flowchart of a method for collecting audio data during a streaming call from a call center background in an exemplary embodiment of the present disclosure;
图4示出本公开一示例性实施例中的生成结构化流调信息的方法的流程示意图;4 shows a schematic flowchart of a method for generating structured flow regulation information in an exemplary embodiment of the present disclosure;
图5示出本公开一示例性实施例中的传染病流调报告生成系统的结构示意图;5 shows a schematic structural diagram of an infectious disease epidemiology report generation system in an exemplary embodiment of the present disclosure;
图6示出本公开一示例性实施例中的传染病流调报告生成装置的结构示意图;6 shows a schematic structural diagram of an apparatus for generating an epidemiological report of an infectious disease in an exemplary embodiment of the present disclosure;
图7示出本公开示例性实施例中计算机存储介质的结构示意图;FIG. 7 shows a schematic structural diagram of a computer storage medium in an exemplary embodiment of the present disclosure;
图8示出本公开示例性实施例中电子设备的结构示意图。FIG. 8 shows a schematic structural diagram of an electronic device in an exemplary embodiment of the present disclosure.
具体实施方式Detailed ways
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本公开将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施方式中。在下面的描述中,提供许多具体细节从而给出对本公开的实施方式的充分理解。然而,本领域技术人员将意识到,可以实践本公开的技术方案而省略所述特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知技术方案以避免喧宾夺主而使得本公开的各方面变得模糊。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
本说明书中使用用语“一个”、“一”、“该”和“所述”用以表示存在一个或多个要素/组成部分/等;用语“包括”和“具有”用以表示开放式的包括在内的意思并且是指除了列出的要素/组成部分/等之外还可存在另外的要素/组成部分/等;用语“第一”和“第二”等仅作为标记使用,不是对其对象的数量限制。The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements/components/etc; the terms "include" and "have" are used to indicate open-ended Inclusive means and means that additional elements/components/etc may be present in addition to the listed elements/components/etc; the terms "first" and "second" etc. are used only as labels, not for The number of its objects is limited.
此外,附图仅为本公开的示意性图解,并非一定是按比例绘制。图中相同的附图标记表示相同或类似的部分,因而将省略对它们的重复描述。附图中所示的一些方框图是功能实体,不一定必须与物理或逻辑上独立的实体相对应。Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repeated descriptions will be omitted. Some of the block diagrams shown in the figures are functional entities that do not necessarily necessarily correspond to physically or logically separate entities.
传染病流调报告,即传染病流行病学调查报告的简称。在传染病发生时,对传染病确诊人员或者与确诊人员接触过的密接人员进行电话调查,记录其基本信息情况、家庭情况、工作情况、密接情况、最近一段时间内的活动轨迹情况等信息,从而根据这些信息可以对传染病的传播情况进行分析,以辅助相关人员可以根据传播情况及时采取有效的治理措施。Infectious disease epidemiological investigation report is the abbreviation of infectious disease epidemiological investigation report. When an infectious disease occurs, conduct a telephone survey on the person diagnosed with the infectious disease or the close contact person who has been in contact with the confirmed person, and record their basic information, family situation, work situation, close contact situation, and activity trajectory in the recent period of time. Therefore, based on this information, the spread of infectious diseases can be analyzed to assist relevant personnel to take effective control measures in a timely manner according to the spread.
相关技术中,传染病流调报告都是由相关工作人员在撰写的。具体的,相关工作人员在进行传染病流调时,在和被流调对象进行对话的同时手动记录下重点信息,在对话结束后,对记录的重点信息进行整理并撰写成流调报告。In the related art, the infectious disease epidemiological report is written by the relevant staff. Specifically, when the relevant staff conducts an epidemiological investigation, they manually record key information while having a dialogue with the subject to be transferred. After the dialogue is over, the recorded key information is sorted and written into an epidemiological report.
然而,这种通过人工撰写传染病流调报告的方式,效率低下,不利于相关人员根据传染病流调情况及时采取相应的治理措施。However, this method of manually writing an infectious disease epidemiological report is inefficient, and it is not conducive for relevant personnel to take corresponding control measures in a timely manner according to the infectious disease epidemiological situation.
在本公开的实施例中,首先提供了一种传染病流调报告生成方法,至少在一定程度上改善相关技术中存在的缺陷。In the embodiments of the present disclosure, a method for generating an epidemiological report of an infectious disease is provided, at least to a certain extent, to improve the defects existing in the related art.
图1示出本公开一示例性实施例中传染病流调报告生成方法的流程示意图,参考图1,该方法包括:FIG. 1 shows a schematic flowchart of a method for generating an epidemiological report of an infectious disease in an exemplary embodiment of the present disclosure. Referring to FIG. 1 , the method includes:
步骤S110,获取被流调对象在流调通话时的音频数据对应的文本数据;Step S110, acquiring the text data corresponding to the audio data of the stream-tuned object during the stream-tuned call;
步骤S120,根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息;Step S120, according to the preset keywords related to the infectious disease flow report, extract the information corresponding to the preset keywords from the text data, so as to generate the text based on the information corresponding to the preset keywords The structured flow adjustment information corresponding to the data;
步骤S130,根据所述结构化流调信息,并采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。Step S130 , generating a target infectious disease epidemiology report according to the structured epidemiological information and using an infectious disease epidemiology report template corresponding to the infectious disease epidemiology report.
在图1所示实施例所提供的技术方案中,可以获取被流调对象在流调通话时的音频数据对应的文本数据;然后,根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以生成所述文本数据对应的结构化流调信息;进而根据所述结构化流调信息,基于所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。与相关技术相比,本公开基于获取到的流调通话时的音频数据对应的文本数据,通过对该文本数据进行结构化处理,再将结构化处理后得到的结构化的流调信息和传染病流调报告模板相结合,可以基于流调通话自动的生成传染病流调报告,而无需人工进行整理或记录,从而提高了传染病流调报告的生成效率,进一步辅助相关人员提高了基于传染病流调报告对传染病传播情况进行分析的效率。In the technical solution provided by the embodiment shown in FIG. 1, the text data corresponding to the audio data of the flow-tuned object during the flow-tuned call can be obtained; then, according to the preset keywords related to the infectious disease flow-track report, in The information corresponding to the preset keywords is extracted from the text data to generate structured flow regulation information corresponding to the text data; and then according to the structured flow regulation information, based on the infectious disease flow regulation report corresponding The infectious disease epidemiological report template of , generates a target infectious disease epidemiological report. Compared with the related art, the present disclosure is based on the acquired text data corresponding to the audio data during the streaming call, by performing structured processing on the text data, and then structuring the structured streaming information and contagion information obtained after the structured processing. Combined with the report templates of epidemic epidemiology, the epidemic epidemiology report can be automatically generated based on the epidemiological call, without manual sorting or recording, thereby improving the generation efficiency of the epidemiological report and further assisting the relevant personnel to improve the efficiency of epidemic epidemiology reports based on the infection control. Efficiency of epidemiological reports in analyzing the spread of infectious diseases.
以下对图1所示实施例中各个步骤的具体实施方式进行详细阐述:The specific implementation of each step in the embodiment shown in FIG. 1 is described in detail below:
在步骤S110中,获取被流调对象在流调通话时的音频数据对应的文本数据。In step S110, the text data corresponding to the audio data of the stream-tuned object during the stream-tuned call is acquired.
在一种可选的实施方式中,被流调对象基于软件电话进行流调通话。软件电话即softphone,也称为软电话,是一种通信终端设备,是虚拟电话,只要在同一网内,就可以不受限制的进行通话,其可以支持电脑到电脑、电脑到电话、电话到电脑等多种通话方式。软件电话又称为IP(Internet Protocol,互联网协议)电话,它是通过互联网协议来进行语音传送的。In an optional implementation manner, the streamed object conducts a streamed call based on a software phone. Softphone, also known as softphone, is a communication terminal device and a virtual phone. As long as it is in the same network, it can make calls without restrictions. It can support computer-to-computer, computer-to-phone, and phone-to-phone. computer and other communication methods. Softphone is also called IP (Internet Protocol, Internet Protocol) phone, which transmits voice through Internet Protocol.
举例而言,流调工作人员可以通过前端网页嵌入的软件电话拨打被流调对象的电话号码,呼出后可以向软件电话对应的呼叫中心后台发送呼叫指令,呼叫中心后台和电话运营商之间建立好链接,并等待电话运营商将呼叫指令中包括的电话号码接通,即呼叫中心后台可以通过电话运营商去呼叫被流调对象。当被流调对象接听电话后,流调工作人员和被流调对象之间的语音通话链路就建立完毕。这样,基于呼叫中心后台,可以将语音通话链路和前端网页的数据通话链路进行对接,使得流调工作人员和被流调对象之间可以进行正常通话。For example, the flow dispatcher can dial the phone number of the object to be dispatched through the software phone embedded in the front-end web page, and can send a call instruction to the call center background corresponding to the software phone after the call is made. Good link, and wait for the phone operator to connect the phone number included in the call instruction, that is, the call center background can call the transferred object through the phone operator. After the transferee answers the call, the voice communication link between the transferee and the transferee is established. In this way, based on the background of the call center, the voice call link and the data call link of the front-end web page can be connected, so that normal calls can be made between the flow dispatcher and the flow dispatched object.
在一种可选的实施方式中,被流调对象可以包括传染病的确诊人员,还可以包括与传染病确诊人员直接或间接接触过的密接人员。其中,和传染病确诊人员间接接触过的密接人员可以理解为,如A为传染病的确诊人员、B与A接触过,C和A虽然没有接触过,但是和B接触过,则B为与传染病确诊人员直接接触过的人员,C为与传染病确诊人员间接接触过的人员。In an optional embodiment, the subject to be transferred may include a person diagnosed with an infectious disease, and may also include a close contact person who has been in direct or indirect contact with the person diagnosed with an infectious disease. Among them, the close contact person who has indirect contact with the confirmed person of the infectious disease can be understood as, if A is the confirmed person of the infectious disease, B has contact with A, and although C and A have not been in contact with B, then B is contact with B. Persons who have been in direct contact with persons diagnosed with infectious diseases, C is persons who have indirect contact with persons diagnosed with infectious diseases.
其中,间接接触过的密接人员可以包括多个层级的间接接触的人员。其中,层级可以理解为,如,上述的C为第一级间接接触人员,与第一级间接接触人员直接接触过的人员为第二级间接接触人员,即与C直接接触过的人员为第二级间接接触人员,与第二级间接接触人员直接接触过的人员为第三级间接接触人员,以此类推。多个层级的数量可以根据需求进行自定义,如,间接接触过的密接人员可以包括3个层级,即分别为第一级、第二级、第三级间接接触人员等,本示例性实施方式对此不做特殊限定。Wherein, the indirect contact personnel may include indirect contact personnel at multiple levels. Among them, the level can be understood as, for example, the above-mentioned C is the first-level indirect contact person, and the person who has direct contact with the first-level indirect contact person is the second-level indirect contact person, that is, the person who has direct contact with C is the first-level indirect contact person. The second-level indirect contact person, the person who has direct contact with the second-level indirect contact person is the third-level indirect contact person, and so on. The number of multiple levels can be customized according to requirements. For example, the indirect contact personnel can include three levels, namely, the first level, the second level, the third level indirect contact personnel, etc. This exemplary embodiment There is no special restriction on this.
在一种可选的实施方式中,步骤S110的具体实施方式可以是:获取所述软件电话对应的前端网页发送的所述音频数据;对所述音频数据进行文本转换,以得到所述音频数据对应的文本数据。In an optional implementation manner, the specific implementation of step S110 may be: acquiring the audio data sent by the front-end web page corresponding to the software phone; performing text conversion on the audio data to obtain the audio data corresponding text data.
换言之,可以基于软件电话对应的前端网页,由前端网页中实时采集被流调对象在进行流调通话时的音频数据,然后,前端网页将实时的将该音频数据发送给流调后台。流调后台可以基于文本转换子系统,对接收到的音频数据进行文本转换,以得到音频数据对应的文本数据,如文本转换子系统可以基于语音识别技术或音频识别技术对接收到的音频数据进行文本转换。这样,流调后台就可以获取到被流调对象在流调通话时的音频数据对应的文本数据,并继续执行后续的步骤S120和步骤S130,以自动生成传染病流调报告。In other words, based on the front-end web page corresponding to the software phone, the audio data of the stream-tuned object during the stream-tune call can be collected in real time from the front-end web page, and then the front-end web page will send the audio data to the stream-tune background in real time. The streaming background can perform text conversion on the received audio data based on the text conversion subsystem to obtain text data corresponding to the audio data. For example, the text conversion subsystem can perform text conversion on the received audio data based on speech recognition technology or audio recognition technology. Text conversion. In this way, the streaming background can obtain the text data corresponding to the audio data of the streaming object during the streaming call, and continue to perform the subsequent steps S120 and S130 to automatically generate an infectious disease streaming report.
示例性的,图2示出本公开一示例性实施例中的从前端网页中,采集流调通话时的音频数据的方法的流程示意图。参考图2,该方法可以包括步骤S210至步骤S240。其中:Exemplarily, FIG. 2 shows a schematic flowchart of a method for collecting audio data during a streaming call from a front-end web page in an exemplary embodiment of the present disclosure. Referring to FIG. 2, the method may include steps S210 to S240. in:
在步骤S210中,所述前端网页在建立网页即时通信的网络连接对象时,保存所述网络连接对象的连接实例。In step S210, the front-end webpage saves the connection instance of the network connection object when establishing the network connection object of the webpage instant messaging.
其中,网页即时通信即WebRTC(Web Real-Time Communication),是一个支持网页浏览器进行实时语音对话或视频对话的API(Application Programming Interface,应用程序接口)。Among them, Web Real-Time Communication, or WebRTC (Web Real-Time Communication), is an API (Application Programming Interface, application programming interface) that supports a web browser to conduct real-time voice dialogue or video dialogue.
举例而言,针对呼叫中心后台是通过WebRTC实现的软件电话而言,可以在前端网页建立WebRTC的网络连接对象时,对网络连接对象的连接实例进行保存。其中,网络连接对象可以是RTCPeerConnection,WebRTC使用RTCPeerConnection在浏览器之间传输流数据。For example, for a softphone whose backend of the call center is implemented through WebRTC, the connection instance of the network connection object can be saved when a WebRTC network connection object is established on the front-end webpage. Among them, the network connection object can be RTCPeerConnection, and WebRTC uses RTCPeerConnection to transmit stream data between browsers.
在一种示例性的实施方式中,前端网页可以保存本地端网络连接对象的连接实例和远端网络连接对象的连接实例。其中,本地端可以理解为软件电话发起端,远端可以理解为接听软件电话的终端。以上述的流调工作人员给被流调对象打电话进行流调通话为例,本地端可以理解为流调工作人员所在终端,远端可以理解为被流调对象所在终端。In an exemplary implementation, the front-end web page may store the connection instance of the local network connection object and the connection instance of the remote network connection object. The local end can be understood as the originating end of the software phone, and the remote end can be understood as the terminal that answers the software phone. Taking the above-mentioned flow adjustment staff calling the flow adjustment object to make a flow adjustment call as an example, the local end can be understood as the terminal where the flow adjustment staff is located, and the remote end can be understood as the terminal where the flow adjustment object is located.
接下来,在步骤S220中,在所述流调通话初始化完成时,从所述网络连接对象的连接实例中获取本地端的媒体流对象对应的第一媒体流和远端的媒体流对象对应的第二媒体流。Next, in step S220, when the initialization of the streaming call is completed, the first media stream corresponding to the media stream object at the local end and the first media stream corresponding to the media stream object at the remote end are obtained from the connection instance of the network connection object. Two media streams.
在一种示例性的实施方式中,以上述的流调工作人员通过软件电话给被流调电话打电话以进行传染病流调的场景为例,远端用于指示所述被流调对象所在的通话终端。In an exemplary implementation, taking the above-mentioned scenario where the dispatch staff makes a call to the dispatched phone through a software phone to conduct infectious disease dispatch as an example, the remote end is used to indicate where the dispatched object is located. call terminal.
举例而言,在流调通话的语音通话的初始化工作完成时,前端网页可以从保存的网络连接对象的连接实例中找到活跃的媒体流(MediaStream)对象。其可以从保存的本地端的网络连接对象的连接实例中获取本地端的媒体流对象对应的第一媒体流,即本地麦克风的媒体流,可以从保存的远端的网络连接对象的连接实例中获取远端的媒体流对象对应的第二媒体流,即远端媒体流。For example, when the initialization of the voice call of the streaming call is completed, the front-end web page can find the active media stream (MediaStream) object from the saved connection instance of the network connection object. It can obtain the first media stream corresponding to the media stream object of the local end from the saved connection instance of the network connection object of the local end, that is, the media stream of the local microphone, and can obtain the remote end from the saved connection instance of the network connection object of the remote end. The second media stream corresponding to the media stream object of the end, that is, the remote media stream.
获取到第一媒体流和第二媒体流后,在步骤S230中,合并所述第一媒体流和所述第二媒体流,以生成目标媒体流。After the first media stream and the second media stream are acquired, in step S230, the first media stream and the second media stream are combined to generate a target media stream.
举例而言,可以采用前端网页提供的Web Audio API(Web Audio ApplicationProgramming Interface,网页音频应用程序接口)对本地麦克风的媒体流(即第一媒体流)和远端的媒体流(即第二媒体流)进行流合并。具体的,可以采用Web Audio API提供的ChannelMergerNode类对第一媒体流和第二媒体流进行合并。For example, the Web Audio API (Web Audio Application Programming Interface, web audio application programming interface) provided by the front-end web page can be used to control the media stream of the local microphone (ie, the first media stream) and the remote media stream (ie, the second media stream). ) for stream merging. Specifically, the ChannelMergerNode class provided by the Web Audio API can be used to merge the first media stream and the second media stream.
接下来,在步骤S240中,对所述目标媒体流进行录音,以采集得到预设音频格式的所述音频数据。Next, in step S240, the target media stream is recorded to acquire the audio data in a preset audio format.
在一种示例性的实施方式中,可以根据预设的采样率、通道数和采样位、以及预设的音频格式对目标媒体流进行录音,以得到音频数据。In an exemplary implementation, the target media stream may be recorded according to a preset sampling rate, number of channels and sampling bits, and a preset audio format to obtain audio data.
例如,预设的采样率可以为16000,通道数可以为1,采样位可以为16bit(比特),录音格式可以使用PCM(Pulse Code Modulation,音频编码格式,也被称为脉冲编码调制)格式。其中,PCM格式可以将声音等模拟信号变成符号化的脉冲列,再进行记录存储。其中,通道数选择为1可以避免其它多余的通道对后续文本转换的干扰,提高后续的文本转换的准确性。当然,也可以根据自己的需求设置录音的参数,本示例性实施方式对此不做特殊限定。For example, the preset sampling rate can be 16000, the number of channels can be 1, the sampling bit can be 16 bits, and the recording format can use PCM (Pulse Code Modulation, audio coding format, also called pulse code modulation) format. Among them, the PCM format can convert analog signals such as sound into a symbolized pulse train, and then record and store it. Among them, selecting 1 for the number of channels can avoid the interference of other redundant channels on subsequent text conversion, and improve the accuracy of subsequent text conversion. Of course, you can also set recording parameters according to your own needs, which is not specifically limited in this exemplary embodiment.
示例性的,可以采用MediaRecorder类对目标媒体流进行录音。手机一般都有麦克风和摄像头,而Android(安卓)系统就可以利用这些硬件来录制音视频。Android系统提供了一个MediaRecorder类,可以支持对录制音视频。Exemplarily, the MediaRecorder class can be used to record the target media stream. Mobile phones generally have microphones and cameras, and the Android system can use these hardware to record audio and video. The Android system provides a MediaRecorder class that supports recording audio and video.
由于是对目标媒体流进行录音,而目标媒体流本身就包括了本地端的媒体流和远端的媒体流,所以录音得到的音频数据也就包括了本地端和远端的双向音频数据。Since the target media stream is recorded, and the target media stream itself includes the media stream of the local end and the media stream of the remote end, the audio data obtained by the recording also includes the bidirectional audio data of the local end and the remote end.
举例而言,从前端网页进行流调通话时的语音数据采集时,对于基于WebRTC实现的呼叫中心后台而言,可以在建立WebRTC的网络连接对象时,对RTCPeerConnection连接实例进行保存,当语音通话初始化完毕后,从RTCPeerConnection中找到活跃的媒体流(MediaStream)对象,采用浏览器提供的Web Audio API对本地麦克风的媒体流和远端的媒体流进行流合并,并将合并的媒体流的采样率设置为16000赫兹(HZ),通道数设置为1,采样位深度设置为16bit(比特),使用MediaRecorder类对合并完成的媒体流进行录音,录音格式使用PCM格式。录音获取到的数据流就包含了本地和远端的双向音频数据,并且格式支持进行文本转换,即支持语音识别。For example, when collecting voice data during streaming calls from the front-end web page, for a call center background implemented based on WebRTC, the RTCPeerConnection connection instance can be saved when the WebRTC network connection object is established, and when the voice call is initialized After completion, find the active media stream (MediaStream) object from RTCPeerConnection, use the Web Audio API provided by the browser to merge the media stream of the local microphone and the remote media stream, and set the sampling rate of the merged media stream. It is 16000 hertz (HZ), the number of channels is set to 1, the sampling bit depth is set to 16bit (bit), the MediaRecorder class is used to record the merged media stream, and the recording format uses PCM format. The data stream obtained from the recording contains local and remote bidirectional audio data, and the format supports text conversion, that is, voice recognition.
在另一种可选的实施方式中,步骤S110的具体实施方式可以是:获取所述软件电话对应的呼叫中心后台发送的所述音频数据;对所述音频数据进行文本转换,以得到所述音频数据对应的文本数据。In another optional implementation manner, the specific implementation manner of step S110 may be: acquiring the audio data sent by the call center background corresponding to the software phone; performing text conversion on the audio data to obtain the audio data Text data corresponding to audio data.
换言之,可以基于软件电话对应的呼叫中心后台,由呼叫中心后台实时采集被流调对象在进行流调通话时的音频数据,并由呼叫中心后台将实时的将该音频数据发送给流调后台。流调后台可以基于文本转换子系统,对接收到的音频数据进行文本转换,以得到音频数据对应的文本数据。同样的,文本转换子系统可以根据语音识别技术或者音频识别技术,对接收到的音频数据进行文本转换。这样,流调后台就可以获取到被流调对象在流调通话时的音频数据对应的文本数据。In other words, based on the call center background corresponding to the software phone, the call center background collects the audio data of the streaming object during the streaming call in real time, and the call center background sends the audio data to the streaming background in real time. The streaming background can perform text conversion on the received audio data based on the text conversion subsystem to obtain text data corresponding to the audio data. Similarly, the text conversion subsystem can perform text conversion on the received audio data according to the speech recognition technology or the audio recognition technology. In this way, the streaming background can obtain the text data corresponding to the audio data of the streaming object during the streaming call.
示例性的,图3示出本公开一示例性实施例中的从呼叫中心后台,采集流调通话时的音频数据的方法的流程示意图。参考图3,该方法可以包括步骤S310至步骤S340。其中:Exemplarily, FIG. 3 shows a schematic flowchart of a method for collecting audio data during a streaming call from a call center background in an exemplary embodiment of the present disclosure. Referring to FIG. 3 , the method may include steps S310 to S340. in:
在步骤S310中,获取所述软件电话对应的前端网页发送的第一音频数据流。In step S310, the first audio data stream sent by the front-end web page corresponding to the software phone is acquired.
示例性的,在基于软件电话进行流调通话时,前端网页需要将本地端的音频数据流发送给呼叫中心后台,以通过呼叫中心后台将本地端的音频数据流发送给电话运营商网络,然后运营商网络再将本地端的音频数据流发送给远端。Exemplarily, when making a streaming call based on a software phone, the front-end web page needs to send the audio data stream of the local end to the call center background, so as to send the audio data stream of the local end to the telephone operator network through the call center background, and then the operator The network then sends the audio data stream from the local end to the remote end.
基于此,可以直接在呼叫中心后台获取前端网页发送给呼叫中心后台的第一音频数据流,即本地端音频数据流。Based on this, the first audio data stream sent by the front-end webpage to the background of the call center, that is, the local audio data stream, can be directly obtained in the call center background.
接下来,在步骤S320中,获取与所述呼叫中心后台连接的电话运营商网络发送的第二音频数据流。Next, in step S320, the second audio data stream sent by the telephone operator network connected to the background of the call center is acquired.
其中,第二音频数据流包括所述被流调对象所在终端的音频数据流。Wherein, the second audio data stream includes the audio data stream of the terminal where the stream-tuned object is located.
示例性的,在基于软件电话进行流调通话时,被流调对象所在终端可以将通话时的音频数据流发送给电话运营商网络,以通过电话运营商网络将被流调对象所在终端的音频数据流,发送给软件电话对应的呼叫中心后台,呼叫中心后台再将被流调对象所在终端的音频数据流发送给前端网页。Exemplarily, when a streaming call is performed based on a software phone, the terminal where the object to be streamed can send the audio data stream during the call to the telephone operator network, so as to transmit the audio data of the terminal where the object to be streamed is located through the telephone operator network. The data stream is sent to the call center background corresponding to the software phone, and the call center background sends the audio data stream of the terminal where the stream-tuned object is located to the front-end web page.
基于此,可以直接在呼叫中心后台获取电话运营商网络发送给呼叫中心后台的第二音频数据流,即远端音频数据流,也就是被流调对象所在终端的音频数据流。Based on this, the second audio data stream sent by the telephone operator network to the call center background, that is, the remote audio data stream, that is, the audio data stream of the terminal where the stream-tuned object is located, can be directly obtained in the call center background.
接下来,在步骤S330中,合并所述第一音频数据流和所述第二音频数据流,以生成目标音频数据流。Next, in step S330, the first audio data stream and the second audio data stream are combined to generate a target audio data stream.
可以在呼叫中心后台进行编程,根据后端编程语言,如Python语言可以使用pydub库,实现将第一音频数据流和第二音频数据流进行合并。It can be programmed in the background of the call center, and the pydub library can be used according to the back-end programming language, such as the Python language, to realize the combination of the first audio data stream and the second audio data stream.
将第一音频数据流和第二音频数据流进行合并可以理解为,将第一音频数据流和第二音频数据流拼接成一个音频数据流,以得到目标音频数据流。Combining the first audio data stream and the second audio data stream can be understood as splicing the first audio data stream and the second audio data stream into one audio data stream to obtain the target audio data stream.
在步骤S340中,对所述目标音频数据流进行录音,以采集得到预设音频格式的所述音频数据。In step S340, the target audio data stream is recorded to acquire the audio data in a preset audio format.
同样的,可以利用后端编程语言,实现根据预设的采样率、通道数和采样位、以及预设的音频格式对目标音频数据流进行录音,以得到预设音频格式的音频数据。其中,采样率也可以设置为16000赫兹,通道数也可以设置为1,采样位也可以设置为16bit,预设音频格式也可以为上述的PCM格式。Similarly, the back-end programming language can be used to record the target audio data stream according to the preset sampling rate, the number of channels and sampling bits, and the preset audio format, so as to obtain audio data in the preset audio format. The sampling rate can also be set to 16000 Hz, the number of channels can also be set to 1, the sampling bit can also be set to 16bit, and the preset audio format can also be the above-mentioned PCM format.
举例而言,可以直接从呼叫中心后台进行流调通话时的语音数据采集,即直接从呼叫中心后台采集前端网页传递的第一音频数据流和电话运营商网络传递的第二音频数据流,这两个音频数据流就分别对应了通话的两个方向。然后,对第一音频数据流和第二音频数据流进行合并,再对合并后得到的音频数据流进行录音,以将其保存为预设音频格式,如上述的PCM格式。For example, voice data collection during streaming calls can be performed directly from the call center background, that is, the first audio data stream delivered by the front-end web page and the second audio data stream delivered by the telephone operator network can be collected directly from the call center background. The two audio data streams correspond to the two directions of the call, respectively. Then, the first audio data stream and the second audio data stream are combined, and then the audio data stream obtained after the combination is recorded to save it in a preset audio format, such as the above-mentioned PCM format.
相比于从前端网页采集语音数据的方式而言,从呼叫中心后台直接采集语音数据更加简单直接,并且稳定性较好。所以,在呼叫中心后台支持可以实时采集通话时的语音数据的情况下,可以优先从呼叫中心后台采集语音数据,如果呼叫中心后台不支持,则可以选择从前端网页采集语音数据。Compared with the method of collecting voice data from the front-end web page, collecting voice data directly from the background of the call center is simpler and more direct, and has better stability. Therefore, if the call center background supports real-time collection of voice data during a call, the voice data can be collected from the call center background first. If the call center background does not support it, you can choose to collect voice data from the front-end web page.
在再一种可选的实施方式中,步骤S110的具体实施方式还可以是,获取所述软件电话对应的呼叫中心后台发送的所述被流调对象在流调通话时的音频数据对应的文本数据。In yet another optional implementation manner, the specific implementation of step S110 may also be: acquiring the text corresponding to the audio data of the stream-tuned object when the stream-tuned call is sent by the call center background corresponding to the software phone data.
举例而言,在呼叫中心后台已集成文本转换功能的情况下,可以从呼叫中心后台直接获取对采集到的音频数据段进行文本转换后的文本,如可以直接对接呼叫中心后台指定的接口,即可实时的获取到被流调对象在流调通话时的音频数据对应的文本数据。换言之,仍然可以在呼叫中心后台通过上述的步骤S310至步骤S340进行音频数据采集,但由于呼叫中心后台已经具有了文本转换功能,所以可以直接基于呼叫中心后台的文本转换功能,对在呼叫中心后台采集并处理得到的预设音频格式的音频数据进行文本转换,以直接通过呼叫中心后台获取到音频数据对应的文本数据。For example, if the text conversion function has been integrated in the background of the call center, the text converted from the collected audio data segment can be directly obtained from the background of the call center. For example, the interface specified in the background of the call center can be directly connected, namely The text data corresponding to the audio data of the stream-tuned object during the stream-tuned call can be acquired in real time. In other words, audio data collection can still be performed in the call center background through the above-mentioned steps S310 to S340, but since the call center background already has a text conversion function, it can be directly based on the text conversion function of the call center background. The audio data in the preset audio format obtained by collecting and processing is converted into text, so as to directly obtain the text data corresponding to the audio data through the background of the call center.
在实际中,可以根据呼叫中心后台所支持的不同功能或者根据自己的需求自定义的选择上述的任一种方式,以获取到被流调对象在流调通话时的音频数据对应的文本数据。本示例性实施方式对此不做特殊限定。In practice, any of the above methods can be selected according to different functions supported by the call center background or according to your own needs, so as to obtain the text data corresponding to the audio data of the streamed object during the streaming call. This exemplary embodiment does not specifically limit this.
接下来,在步骤S120中,根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息。Next, in step S120, according to the preset keywords related to the epidemiological report of the infectious disease, the information corresponding to the preset keywords is extracted from the text data, so that based on the preset keywords corresponding to the preset keywords, the information corresponding to the preset keywords is extracted from the text data. The information generates structured flow tone information corresponding to the text data.
在一种示例性的实施方式中,可以预先配置与传染病流调报告相关的一个或多个预设关键词。预设关键词可以包括姓名、性别、家庭住址、工作单位、活动轨迹、出行日期、出行时间、出行地点、密接人、出行方式、防护状态等用于表征不同的流调信息的信息类别名称。其中,防护状态可以理解为是否采取对传染病进行防护的措施,如是否戴口罩,是否打疫苗等。In an exemplary embodiment, one or more preset keywords related to infectious disease epidemiology reports may be preconfigured. The preset keywords may include name, gender, home address, work unit, activity track, travel date, travel time, travel location, close contact person, travel mode, protection status and other information category names used to characterize different flow-adjustment information. Among them, the protection status can be understood as whether to take measures to protect against infectious diseases, such as whether to wear masks, whether to vaccinate, etc.
相应地,预设关键词对应的信息可以理解为被流调对象的姓名、性别、家庭住址、工作单位、活动轨迹、出行日期、出行时间、出行地点、密接人姓名、出行方式、防护状态等信息类别对应的具体提信息。比如,预设关键词中包括有日期和地点,则可以根据日期信息和地点信息的提取规则,提取出文本数据中涉及到的日期信息和地点信息。又比如,预设关键词中包括有活动轨迹信息,则可以提取出行日期、出行时间、出行地点、密接人、出行方式、防护状态等对应的具体信息,然后将其进行关联,以生成活动轨迹信息。进而,根据提取到的每个预设关键词对应的具体信息,生成结构化流调信息。Correspondingly, the information corresponding to the preset keywords can be understood as the name, gender, home address, work unit, activity track, travel date, travel time, travel location, close contact person name, travel mode, protection status, etc. The specific information corresponding to the information category. For example, if the preset keywords include date and location, the date information and location information involved in the text data can be extracted according to the extraction rules for date information and location information. For another example, if the preset keywords include activity track information, the specific information corresponding to travel date, travel time, travel location, close contact person, travel mode, protection status, etc. can be extracted, and then correlated to generate the activity track. information. Further, structured flow tone information is generated according to the extracted specific information corresponding to each preset keyword.
下面,结合图4对步骤S120的具体实施方式进行进一步的说明。示例性的,图4示出本公开一示例性实施例中的生成结构化流调信息的方法的流程示意图。参考图4,该方法可以包括步骤S410至步骤S420。其中:The specific implementation of step S120 will be further described below with reference to FIG. 4 . Exemplarily, FIG. 4 shows a schematic flowchart of a method for generating structured flow modulation information in an exemplary embodiment of the present disclosure. Referring to FIG. 4 , the method may include steps S410 to S420. in:
在步骤S410中,基于正则化表达式和/或命名实体识别方式,在所述文本数据中提取出所述预设关键词对应的信息。In step S410, information corresponding to the preset keyword is extracted from the text data based on a regularized expression and/or a named entity recognition method.
示例性的,对于一些特异性强的信息,如性别、出行日期、出行时间、防护状态、出行方式等信息,可以通过枚举的方式预先生成与其对应的预设正则化表达式,进而根据预设正则化表达式提取出这些预设关键词对应的具体信息。而对于一些特异性不强的信息,如出行地点、密接人姓名等信息,则可以通过命名实体识别方式,提取出这些预设关键词对应的具体信息。Exemplarily, for some highly specific information, such as gender, travel date, travel time, protection status, travel mode, etc., the corresponding preset regular expressions can be pre-generated by enumeration, and then according to the pre-defined regularization expressions. A regularized expression is set to extract the specific information corresponding to these preset keywords. For some information with low specificity, such as travel location, name of close contact person, etc., specific information corresponding to these preset keywords can be extracted by means of named entity recognition.
接下来,在步骤S420中,以所述预设关键词为关键字,所述预设关键词对应的信息为所述关键字对应的值,生成所述文本数据对应的结构化流调信息。Next, in step S420, using the preset keyword as a keyword, and the information corresponding to the preset keyword as a value corresponding to the keyword, generate structured flow tone information corresponding to the text data.
示例性的,提取出预设关键词对应的信息后,可以以预设关键词为键值对中的键,即关键字(key),预设关键词对应的信息为键值对中的值(value),对预设关键词和其对应的信息进行结构化存储,以生成文本数据对应的结构化流调信息。Exemplarily, after the information corresponding to the preset keyword is extracted, the preset keyword may be used as a key in the key-value pair, that is, a keyword (key), and the information corresponding to the preset keyword is the value in the key-value pair. (value), structured storage of preset keywords and their corresponding information to generate structured flow tone information corresponding to text data.
举例而言,如提取到的出行日期对应的信息为2022年1月15日,则可以将其存储为“出行日期:2022年1月15日”这样的键值对的形式。For example, if the information corresponding to the extracted travel date is January 15, 2022, it can be stored in the form of a key-value pair such as "travel date: January 15, 2022".
通过上述的步骤S410和步骤S420,可以实现对被流调对象在流调通话时的音频数据对应的文本数据的结构化处理。进而在后续的步骤中,根据结构化的信息自动生成传染病流调包括。Through the above steps S410 and S420, the structured processing of the text data corresponding to the audio data of the stream-tuned object during the stream-tuned call can be realized. Furthermore, in the subsequent steps, infectious disease epidemiology is automatically generated according to the structured information.
接下来,继续参考图1,在步骤S130中,根据所述结构化流调信息,并采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。Next, with continued reference to FIG. 1 , in step S130 , a target infectious disease epidemiology report is generated according to the structured epidemiological information and using an infectious disease epidemiology report template corresponding to the infectious disease epidemiology report.
示例性的,步骤S130的具体实施方式可以包括:将所述结构化流调信息中的关键字与所述传染病流调报告模板中的各个项目名称进行匹配;针对匹配成功的关键字和项目名称,将所述关键字对应的值确定为所述项目名称所指示的项目对应的项目信息,以生成所述目标传染病流调报告。Exemplarily, the specific implementation of step S130 may include: matching the keywords in the structured epidemiological information with each item name in the infectious disease epidemiology report template; name, and the value corresponding to the keyword is determined as the item information corresponding to the item indicated by the item name, so as to generate the target infectious disease epidemiology report.
举例而言,可以基于传染病流调报告模板中的各个项目名称和结构化流行信息中的关键字的匹配情况,基于模板技术,将匹配成功的关键字对应的值填入到传染病流调报告模板中的相应的项目名称对应的信息填写区域,从而自动的生成被流调对象对应的目标传染病流调报告。For example, based on the matching of each item name in the infectious disease epidemiology report template and the keywords in the structured epidemic information, and based on the template technology, the value corresponding to the successfully matched keyword can be filled into the infectious disease epidemiology report. The information corresponding to the corresponding project name in the report template is filled in the area, so as to automatically generate the epidemiological report of the target infectious disease corresponding to the subject of epidemiological investigation.
在基于模板技术,自动生成目标传染病流调报告时,还可以根据需求为传染病流调报告模板中的各个项目添加对应的样式,如字体大小、字体类型、字体颜色等,本示例性实施方式对此不做特殊限定。When the target infectious disease epidemiology report is automatically generated based on the template technology, corresponding styles can also be added to each item in the infectious disease epidemiology report template, such as font size, font type, font color, etc., as required. This exemplary implementation There is no special restriction on the method.
在本公开中,通过实时的获取流调通话时的音频数据,并基于对获取到的音频数据进行实时文本转换,可以自动的得到音频数据对应的文本数据,进而对文本数据进行结构化处理,以基于结构化的信息和传染病流调报告模板自动的生成传染病流调报告,极大的提高了传染病流调报告的生成效率,同时,也辅助提高了后续的基于传染病流调报告对传染病传播情况进行分析的效率,以及基于传染病的流调情况对传染病进行有效的预防控制的效率。In the present disclosure, by acquiring the audio data of the streaming call in real time, and based on the real-time text conversion of the acquired audio data, the text data corresponding to the audio data can be automatically obtained, and then the text data can be structured. The infectious disease epidemiology report is automatically generated based on structured information and infectious disease epidemiological report template, which greatly improves the generation efficiency of the infectious disease epidemiology report, and also assists in improving the follow-up infectious disease epidemiological report. The efficiency of analyzing the spread of infectious diseases, and the efficiency of effective prevention and control of infectious diseases based on the epidemiological situation of infectious diseases.
本领域技术人员可以理解实现上述实施方式的全部或部分步骤被实现为由CPU执行的计算机程序。在该计算机程序被CPU执行时,执行本发明提供的上述方法所限定的上述功能。所述的程序可以存储于一种计算机可读存储介质中,该存储介质可以是只读存储器,磁盘或光盘等。Those skilled in the art can understand that all or part of the steps for implementing the above-described embodiments are implemented as computer programs executed by the CPU. When the computer program is executed by the CPU, the above-mentioned functions defined by the above-mentioned methods provided by the present invention are executed. The program can be stored in a computer-readable storage medium, which can be a read-only memory, a magnetic disk, an optical disk, or the like.
此外,需要注意的是,上述附图仅是根据本发明示例性实施方式的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, it should be noted that the above-mentioned drawings are only schematic illustrations of the processes included in the method according to the exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
本公开的示例性实施例中还提供了一种传染病流行报告生成系统。该系统可以包括软件电话、文本转换子系统、报告生成子系统。其中:软件电话用于与被流调对象进行流调通话,并采集被流调对象在流调通话时的音频数据;文本转换子系统用于将所述音频数据,并将所述音频数据转换为对应的文本数据;报告生成子系统,用于接收所述文本转换子系统发送的所述文本数据,并根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息,根据所述结构化流调信息,采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。An exemplary embodiment of the present disclosure also provides an infectious disease epidemic report generation system. The system may include a softphone, a text conversion subsystem, and a report generation subsystem. Wherein: the software phone is used to conduct a stream call with the stream-tuned object, and collect the audio data of the stream-tuned object during the stream-tune call; the text conversion subsystem is used to convert the audio data and convert the audio data is the corresponding text data; the report generation subsystem is used to receive the text data sent by the text conversion subsystem, and extract the text data from the text data according to the preset keywords related to the report on the flow of infectious diseases. The information corresponding to the preset keywords is used to generate structured flow pattern information corresponding to the text data based on the information corresponding to the preset keywords, and according to the structured flow pattern information, the infectious disease flow pattern is used. Report the corresponding infectious disease epidemiological report template, and generate the target infectious disease epidemiological report.
在一种示例性的实施方式中,所述软件电话包括前端网页和呼叫中心后台;所述采集被流调对象在流调通话时的音频数据包括:通过所述前端网页采集所述被流调对象在流调通话时的音频数据或通过所述呼叫中心后台采集所述被流调对象在流调通话时的音频数据。In an exemplary implementation, the software phone includes a front-end web page and a call center background; the collecting audio data of the stream-tuned object during a stream-tuned call includes: collecting the stream-tuned object through the front-end web page The audio data of the streamed object during the streaming call or the audio data of the streamed object during the streaming call is collected through the call center background.
其中,通过前端网页和通过呼叫中心后台采集被流调对象在流调通话时的音频数据的具体实施细节已经分别在上述的传染病流调报告生成方法中进行了详细的说明,此处不再进行赘述。Among them, the specific implementation details of collecting the audio data of the flow-adjusted object during the flow-adjustment call through the front-end web page and through the call center background have been described in detail in the above-mentioned method for generating the infectious disease flow-adjustment report, and will not be repeated here. Repeat.
同样的,根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息;以及根据所述结构化流调信息,采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告的具体实施方式也已经在上述的传染病流调报告生成方法中的相应部分进行了详细的说明,此处也不再进行赘述。Similarly, according to the preset keywords related to the infectious disease flow report, the information corresponding to the preset keywords is extracted from the text data, so as to generate the text based on the information corresponding to the preset keywords The structured epidemiological information corresponding to the data; and according to the structured epidemiological information, using the infectious disease epidemiology report template corresponding to the infectious disease epidemiological report, the specific implementation of generating the target infectious disease epidemiological report has also been described in The corresponding part in the above-mentioned method for generating an epidemiological report of an infectious disease has been described in detail, and will not be repeated here.
在一种示例性的实施方式中,文本转换子系统可以部署在呼叫中心后台。这样,呼叫中心后台在采集到音频数据后,可以直接将采集到的音频数据发送给集成在呼叫中心后的文本转换子系统,以基于文本转换子系统得到音频数据对应的文本数据。然后,呼叫中心后台可以直接将得到的文本数据发送给报告生成子系统。In an exemplary embodiment, the text conversion subsystem may be deployed in the background of the call center. In this way, after the call center background collects the audio data, it can directly send the collected audio data to the text conversion subsystem integrated in the call center, so as to obtain text data corresponding to the audio data based on the text conversion subsystem. Then, the call center background can directly send the obtained text data to the report generation subsystem.
在另一种示例性的实施方式中,文本转换子系统也可以独立于软件电话,软件电话在采集到音频数据后,可以将实时采集的音频数据直接发送给文本转换子系统。然后,文本转换子系统可以根据接收到的音频数据,将其实时转换为对应的文本数据。In another exemplary implementation, the text conversion subsystem may also be independent of the software phone, and after the software phone collects audio data, it may directly send the audio data collected in real time to the text conversion subsystem. Then, the text conversion subsystem can convert the received audio data into corresponding text data in real time according to the received audio data.
在再一种示例性的实施方式中,传染病流调报告生成系统还可以包括流调后台,流调后台用于接收软件电话发送的被流调对象在流调通话时的音频数据,并将该音频数据发送给文本转换子系统。换言之,软件电话在采集到音频数据,还可以将音频数据发送给流调后台,然后流调后台再将接收到的音频数据发送给文本转换子系统,以使得文本转换子系统,可以将该音频数据实时转换为文本数据。In yet another exemplary embodiment, the system for generating an epidemiological report of an infectious disease may further include a streaming background, where the streaming background is configured to receive the audio data of the streaming object sent by the software phone during the streaming call, and send the audio data to the streaming background. The audio data is sent to the text conversion subsystem. In other words, when the software phone collects audio data, it can also send the audio data to the streaming background, and then the streaming background sends the received audio data to the text conversion subsystem, so that the text conversion subsystem can use the audio Data is converted to text data in real time.
接下来,图5示出本公开另一示例性实施例中的传染病流调报告生成系统的结构示意图。其中,传染病流调系统500应用于软件通话场景。参考图5,该系统500可以包括前端网页501、呼叫中心后台502、电话运营商503、流调后台504、文本转换子系统505、报告生成子系统506。Next, FIG. 5 shows a schematic structural diagram of an infectious disease epidemiology report generation system in another exemplary embodiment of the present disclosure. Among them, the infectious
在一种示例性的应用场景中,流调工作人员可以通过前端网页501嵌入的软件电话对被流调对象进行电话拨号,呼出后指令发送到软件电话对应的呼叫中心后台502,呼叫中心后台502和电话运营商503之间建立好链接,并等待电话运营商将被流调对象的电话接通。当被流调对象接听电话后,流调工作人员和被流调对象之间的语音通话链路就建立完毕。呼叫中心后台502可以将语音通话链路和前端网页的数据通话链路打通,使得流调工作人员和被流调对象之间可以正常通话。In an exemplary application scenario, the flow dispatcher can dial the object to be dispatched through the software phone embedded in the front-
在流调工作人员和被流调对象进行正常通话时,流调工作人员的语音数据,可以经过流调工作人员所在的前端网页501被发送给呼叫中心后台502,然后,呼叫中心后台502再可以将其发送给电话运营商503,最后,通过电话运营商503将其发送给被流调对象的终端,以使得被流调对象可以听到流调工作人员的语音。同样的,被流调对象的语音数据可以通过被流调对象所在的终端设备发送给电话运营商503,然后电话运营商503可以将接收到的被流调对象的语音数据发送给呼叫中心后台502,呼叫中心后台再将接收到的被流调对象的语音数据发送给前端网页501,流调工作人员通过前端网页501就可以听到被流调对象的语音。When the flow dispatch staff and the flow dispatched object have a normal call, the flow dispatch staff's voice data can be sent to the
换言之,无论是流调工作人员在流调通话时的语音对应的音频数据,还是被流调对象在流调通话时的语音对应的音频数据,都可以到达前端网页或者呼叫中心后台。所以,可以在前端网页或者呼叫中心后台采集流调工作人员和被流调对象在流调通话的沟通过程中的语音数据。In other words, whether it is the audio data corresponding to the voice of the streaming staff during the streaming call, or the audio data corresponding to the voice of the streamed object during the streaming call, both can reach the front-end web page or the background of the call center. Therefore, the voice data of the flow dispatching staff and the dispatched object during the communication process of the dispatching call can be collected on the front-end web page or the background of the call center.
在一种可选的实施方式中,可以通过前端网页501采集流调工作人员所在终端和被流调对象所在终端的语音数据,即图5中的标记(1)所示,前端网页501可以将采集到的WebRTC语音数据发送给流调后台504。具体的,前端网页501可以根据上述的步骤S210至步骤S240所示的方法,采集预设音频格式的WebRTC语音数据。流调后台504可以将接收到的WebRTC语音数据发送给文本转换子系统505,文本转换子系统505可以对接收到的WebRTC语音数据进行文本转换,如通过语音识别技术对其进行文本转换,以得到WebRTC语音数据对应的文本数据,并将得到的文本数据发送给报告生成子系统506,报告生成子系统506可以对文本数据进行关键信息提取,并根据提取到的关键信息生成结构化的流调信息,然后根据结构化的流调信息和模板生成技术,自动生成被流调对象的目标传染病流调报告。In an optional implementation manner, the front-
在另一种可选的实施方式中,还可以通过呼叫中心后台502采集流调工作人员所在终端和被流调对象所在终端的语音数据,如图5中的标记(2)所示,呼叫中心后台502可以将采集到的语音数据发送给流调后台504。具体的,呼叫中心后台可以根据上述的步骤S310至步骤S340所示的方法采集预设音频格式的语音数据。流调后台504可以将接收到的语音数据发送给文本转换子系统505,以让文本转换子系统505对该语音数据进行文本转换,从而得到该语音数据对应的文本数据。文本转换子系统505将得到的文本数据发送给报告生成子系统506,报告生成子系统506可以对文本数据进行关键信息提取,并根据提取到的关键信息生成结构化的流调信息,然后根据结构化的流调信息和模板生成技术,自动生成被流调对象的目标传染病流调报告。In another optional implementation, the
在再一种可选的实施方式中,在呼叫中心后台502已经集成了文本转换功能的情况下,如集成了实时文本转换功能,呼叫中心后台502可以直接将音频数据对应的文本发送给报告生成子系统506,如图5中的标记(3)所示。具体的,呼叫中心后台502可以根据上述的步骤S310至步骤S340所示的方法采集预设音频格式的语音数据,然后基于集成的文本转换功能对采集到的语音数据进行文本转换,以得到语音数据对应的文本,然后将该文本发送给报告生成子系统506,报告生成子系统506可以对该文本进行关键信息提取,并根据提取到的关键信息生成结构化的流调信息,然后根据结构化的流调信息和模板生成技术,自动生成被流调对象的目标传染病流调报告。In yet another optional implementation, when the
需要说明的是,上述的文本转换子系统505和报告生成子系统506也可以直接集成在流调后台504中,本示例性实施方式对此不做特殊限定。It should be noted that, the above-mentioned text conversion subsystem 505 and report
进一步的,图6示出本公开示例性实施例中传染病流调报告生成装置的600结构示意图。参考图6,该传染病流调报告生成装置600可以包括通话文本数据获取模块610、结构化流调信息生成模块620、目标传染病流调报告生成模块630。其中:Further, FIG. 6 shows a schematic structural diagram 600 of an apparatus for generating an epidemiological report of an infectious disease in an exemplary embodiment of the present disclosure. Referring to FIG. 6 , the
通话文本数据获取模块610,被配置为获取被流调对象在流调通话时的音频数据对应的文本数据;The call text data acquisition module 610 is configured to acquire text data corresponding to the audio data of the stream-tuned object during the stream-tuned call;
结构化流调信息生成模块620,被配置为根据与传染病流调报告相关的预设关键词,在所述文本数据中提取出所述预设关键词对应的信息,以基于所述预设关键词对应的信息生成所述文本数据对应的结构化流调信息;The structured flow pattern
目标传染病流调报告生成模块630,被配置为根据所述结构化流调信息,并采用所述传染病流调报告对应的传染病流调报告模板,生成目标传染病流调报告。The target infectious disease epidemiology
在一种示例性的实施方式中,基于前述实施例,所述被流调对象基于软件电话进行流调通话;基于此,所述通话文本数据获取模块610可以包括音频数据获取单元和文本转换单元。其中,所述音频数据获取单元被配置为获取所述软件电话对应的前端网页发送的所述音频数据,或获取所述软件电话对应的呼叫中心后台发送的所述音频数据;所述文本转换单元被配置为对所述音频数据进行文本转换,以得到所述音频数据对应的文本数据。In an exemplary implementation, based on the foregoing embodiment, the streamed object conducts a streamed call based on a software phone; based on this, the call text data acquisition module 610 may include an audio data acquisition unit and a text conversion unit . Wherein, the audio data acquisition unit is configured to acquire the audio data sent by the front-end webpage corresponding to the software phone, or to obtain the audio data sent by the call center background corresponding to the software phone; the text conversion unit is configured to perform text conversion on the audio data to obtain text data corresponding to the audio data.
在一种示例性的实施方式中,基于前述实施例,所述前端网页通过以下方式采集所述被流调对象在流调通话时的音频数据:所述前端网页在建立网页即时通信的网络连接对象时,保存所述网络连接对象的连接实例;在所述流调通话初始化完成时,从所述网络连接对象的连接实例中获取本地端的媒体流对象对应的第一媒体流和远端的媒体流对象对应的第二媒体流,所述远端用于指示所述被流调对象所在的通话终端;合并所述第一媒体流和所述第二媒体流,以生成目标媒体流;对所述目标媒体流进行录音,以采集得到预设音频格式的所述音频数据。In an exemplary implementation, based on the foregoing embodiment, the front-end web page collects the audio data of the stream-tuned object during the stream-tuned call in the following manner: the front-end web page is establishing a network connection for web instant messaging object, save the connection instance of the network connection object; when the initialization of the streaming call is completed, obtain the first media stream corresponding to the media stream object at the local end and the media at the remote end from the connection instance of the network connection object The second media stream corresponding to the stream object, the remote end is used to indicate the calling terminal where the streamed object is located; the first media stream and the second media stream are combined to generate the target media stream; The target media stream is recorded to acquire the audio data in the preset audio format.
在一种示例性的实施方式中,基于前述实施例,所述呼叫中心后台通过以下方式采集所述被流调对象在流调通话时的音频数据:获取所述软件电话对应的前端网页发送的第一音频数据流;获取与所述呼叫中心后台连接的电话运营商网络发送的第二音频数据流,所述第二音频数据流包括所述被流调对象所在终端的音频数据流;合并所述第一音频数据流和所述第二音频数据流,以生成目标音频数据流;对所述目标音频数据流进行录音,以采集得到预设音频格式的所述音频数据。In an exemplary implementation, based on the foregoing embodiment, the call center background collects the audio data of the stream-tuned object during the stream-tuned call in the following manner: acquiring the audio data sent by the front-end web page corresponding to the software phone the first audio data stream; obtain the second audio data stream sent by the telephone operator network connected to the background of the call center, the second audio data stream includes the audio data stream of the terminal where the stream-tuned object is located; The first audio data stream and the second audio data stream are generated to generate a target audio data stream; the target audio data stream is recorded to collect the audio data in a preset audio format.
在一种示例性的实施方式中,基于前述实施例,所述通话文本数据获取模块可以包括语音文本获取单元,该单元被配置为获取所述软件电话对应的呼叫中心后台发送的所述被流调对象在流调通话时的音频数据对应的文本数据。In an exemplary implementation, based on the foregoing embodiment, the call text data acquisition module may include a voice text acquisition unit, which is configured to acquire the streamed data sent by the call center background corresponding to the software phone Text data corresponding to the audio data when the tune object is streaming a call.
在一种示例性的实施方式中,基于前述实施例,所述结构化流调信息生成模块620可以被具体配置为:基于正则化表达式和/或命名实体识别方式,在所述文本数据中提取出所述预设关键词对应的信息;以所述预设关键词为关键字,所述预设关键词对应的信息为所述关键字对应的值,生成所述文本数据对应的结构化流调信息。In an exemplary implementation, based on the foregoing embodiments, the structured flow tone
在一种示例性的实施方式中,基于前述实施例,所述目标传染病流调报告生成模块630可以被具体配置为:将所述结构化流调信息中的关键字与所述传染病流调报告模板中的各个项目名称进行匹配;针对匹配成功的关键字和项目名称,将所述关键字对应的值确定为所述项目名称所指示的项目对应的项目信息,以生成所述目标传染病流调报告。In an exemplary implementation, based on the foregoing embodiment, the target infectious disease epidemiology
上述传染病流调报告生成装置中各模块或者各单元的具体细节已经在对应的传染病流调报告生成方法中进行了详细的描述,因此此处不再赘述。The specific details of each module or each unit in the above-mentioned infectious disease epidemiological report generating device have been described in detail in the corresponding infectious disease epidemiological report generating method, and therefore will not be repeated here.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本公开的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present disclosure, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
此外,尽管在附图中以特定顺序描述了本公开中方法的各个步骤,但是,这并非要求或者暗示必须按照该特定顺序来执行这些步骤,或是必须执行全部所示的步骤才能实现期望的结果。附加的或备选的,可以省略某些步骤,将多个步骤合并为一个步骤执行,以及/或者将一个步骤分解为多个步骤执行等。Additionally, although the various steps of the methods of the present disclosure are depicted in the figures in a particular order, this does not require or imply that the steps must be performed in the particular order or that all illustrated steps must be performed to achieve the desired result. Additionally or alternatively, certain steps may be omitted, multiple steps may be combined into one step for execution, and/or one step may be decomposed into multiple steps for execution, and the like.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、移动终端、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
在本公开示例性实施方式中,还提供了一种能够实现上述方法的计算机存储介质。其上存储有能够实现本说明书上述方法的程序产品。在一些可能的实施例中,本公开的各个方面还可以实现为一种程序产品的形式,其包括程序代码,当所述程序产品在终端设备上运行时,所述程序代码用于使所述终端设备执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。In an exemplary embodiment of the present disclosure, a computer storage medium capable of implementing the above method is also provided. A program product capable of implementing the method described above in this specification is stored thereon. In some possible embodiments, various aspects of the present disclosure may also be implemented in the form of a program product including program code for causing the program product to run on a terminal device when the program product is run on a terminal device. The terminal device performs the steps according to various exemplary embodiments of the present disclosure described in the above-mentioned "Example Method" section of this specification.
参考图7所示,描述了根据本公开的实施方式的用于实现上述方法的程序产品700,其可以采用便携式紧凑盘只读存储器(CD-ROM)并包括程序代码,并可以在终端设备,例如个人电脑上运行。然而,本公开的程序产品不限于此,在本文件中,可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Referring to FIG. 7 , a
所述程序产品可以采用一个或多个可读介质的任意组合。可读介质可以是可读信号介质或者可读存储介质。可读存储介质例如可以为但不限于电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples (non-exhaustive list) of readable storage media include: electrical connections with one or more wires, portable disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
计算机可读信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了可读程序代码。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。可读信号介质还可以是可读存储介质以外的任何可读介质,该可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a propagated data signal in baseband or as part of a carrier wave with readable program code embodied thereon. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A readable signal medium can also be any readable medium, other than a readable storage medium, that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
可读介质上包含的程序代码可以用任何适当的介质传输,包括但不限于无线、有线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言的任意组合来编写用于执行本公开操作的程序代码,所述程序设计语言包括面向对象的程序设计语言—诸如Java、C++等,还包括常规的过程式程序设计语言—诸如“C”语言或类似的程序设计语言。程序代码可以完全地在用户计算设备上执行、部分地在用户设备上执行、作为一个独立的软件包执行、部分在用户计算设备上部分在远程计算设备上执行、或者完全在远程计算设备或服务器上执行。在涉及远程计算设备的情形中,远程计算设备可以通过任意种类的网络,包括局域网(LAN)或广域网(WAN),连接到用户计算设备,或者,可以连接到外部计算设备(例如利用因特网服务提供商来通过因特网连接)。Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages—such as Java, C++, etc., as well as conventional procedural Programming Language - such as the "C" language or similar programming language. The program code may execute entirely on the user computing device, partly on the user device, as a stand-alone software package, partly on the user computing device and partly on a remote computing device, or entirely on the remote computing device or server execute on. Where remote computing devices are involved, the remote computing devices may be connected to the user computing device over any kind of network, including a local area network (LAN) or wide area network (WAN), or may be connected to an external computing device (eg, using an Internet service provider business via an Internet connection).
此外,在本公开的示例性实施例中,还提供了一种能够实现上述方法的电子设备。In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
所属技术领域的技术人员能够理解,本公开的各个方面可以实现为系统、方法或程序产品。因此,本公开的各个方面可以具体实现为以下形式,即:完全的硬件实施方式、完全的软件实施方式(包括固件、微代码等),或硬件和软件方面结合的实施方式,这里可以统称为“电路”、“模块”或“系统”。As will be appreciated by one skilled in the art, various aspects of the present disclosure may be implemented as a system, method or program product. Therefore, various aspects of the present disclosure can be embodied in the following forms: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, which may be collectively referred to herein as implementations "circuit", "module" or "system".
下面参照图8来描述根据本公开的这种实施方式的电子设备800。图8显示的电子设备800仅仅是一个示例,不应对本公开实施例的功能和使用范围带来任何限制。An
如图8所示,电子设备800以通用计算设备的形式表现。电子设备800的组件可以包括但不限于:上述至少一个处理单元810、上述至少一个存储单元820、连接不同系统组件(包括存储单元820和处理单元810)的总线830以及显示单元840。As shown in FIG. 8,
其中,所述存储单元存储有程序代码,所述程序代码可以被所述处理单元810执行,使得所述处理单元810执行本说明书上述“示例性方法”部分中描述的根据本公开各种示例性实施方式的步骤。例如,所述处理单元810可以执行如图1至图4所示的各个步骤。Wherein, the storage unit stores program codes, and the program codes can be executed by the
存储单元820可以包括易失性存储单元形式的可读介质,例如随机存取存储单元(RAM)8201和/或高速缓存存储单元8202,还可以进一步包括只读存储单元(ROM)8203。The
存储单元820还可以包括具有一组(至少一个)程序模块8205的程序/实用工具8204,这样的程序模块8205包括但不限于:操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。The
总线830可以为表示几类总线结构中的一种或多种,包括存储单元总线或者存储单元控制器、外围总线、图形加速端口、处理单元或者使用多种总线结构中的任意总线结构的局域总线。The
电子设备800也可以与一个或多个外部设备900(例如键盘、指向设备、蓝牙设备等)通信,还可与一个或者多个使得用户能与该电子设备800交互的设备通信,和/或与使得该电子设备800能与一个或多个其它计算设备进行通信的任何设备(例如路由器、调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口850进行。并且,电子设备800还可以通过网络适配器860与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器860通过总线830与电子设备800的其它模块通信。应当明白,尽管图中未示出,可以结合电子设备800使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。The
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本公开实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、终端装置、或者网络设备等)执行根据本公开实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present disclosure may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , including several instructions to cause a computing device (which may be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to an embodiment of the present disclosure.
此外,上述附图仅是根据本公开示例性实施例的方法所包括的处理的示意性说明,而不是限制目的。易于理解,上述附图所示的处理并不表明或限制这些处理的时间顺序。另外,也易于理解,这些处理可以是例如在多个模块中同步或异步执行的。In addition, the above-mentioned figures are merely schematic illustrations of the processes included in the methods according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above figures do not indicate or limit the chronological order of these processes. In addition, it is also readily understood that these processes may be performed, for example, synchronously or asynchronously in multiple modules.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其他实施例。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由权利要求指出。Other embodiments of the present disclosure will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the claims.
Claims (12)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210426760.3A CN114817524A (en) | 2022-04-21 | 2022-04-21 | Method and device, system, medium and electronic device for generating infectious disease epidemiological report |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202210426760.3A CN114817524A (en) | 2022-04-21 | 2022-04-21 | Method and device, system, medium and electronic device for generating infectious disease epidemiological report |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN114817524A true CN114817524A (en) | 2022-07-29 |
Family
ID=82505935
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202210426760.3A Pending CN114817524A (en) | 2022-04-21 | 2022-04-21 | Method and device, system, medium and electronic device for generating infectious disease epidemiological report |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN114817524A (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102769633A (en) * | 2012-08-03 | 2012-11-07 | 深圳中兴网信科技有限公司 | Call recording system and call recording method |
| CN103095752A (en) * | 2011-10-31 | 2013-05-08 | 中兴通讯股份有限公司 | Transcribing method, device and system of voice and video |
| CN104869106A (en) * | 2014-02-25 | 2015-08-26 | 华为技术有限公司 | Sound recording method, voice switching equipment, sound recording server and sound recording system |
| CN114255831A (en) * | 2021-12-16 | 2022-03-29 | 国网江苏省电力有限公司连云港供电分公司 | Personnel management method and system for dispatching |
-
2022
- 2022-04-21 CN CN202210426760.3A patent/CN114817524A/en active Pending
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103095752A (en) * | 2011-10-31 | 2013-05-08 | 中兴通讯股份有限公司 | Transcribing method, device and system of voice and video |
| CN102769633A (en) * | 2012-08-03 | 2012-11-07 | 深圳中兴网信科技有限公司 | Call recording system and call recording method |
| CN104869106A (en) * | 2014-02-25 | 2015-08-26 | 华为技术有限公司 | Sound recording method, voice switching equipment, sound recording server and sound recording system |
| CN114255831A (en) * | 2021-12-16 | 2022-03-29 | 国网江苏省电力有限公司连云港供电分公司 | Personnel management method and system for dispatching |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111159220B (en) | Method and apparatus for outputting structured query statement | |
| US8682640B2 (en) | Self-configuring language translation device | |
| WO2021175007A1 (en) | Online customer service consultation method and apparatus, medium, and electronic device | |
| CN110381221B (en) | Call processing method, device, system, equipment and computer storage medium | |
| JP2023522092A (en) | INTERACTION RECORD GENERATING METHOD, APPARATUS, DEVICE AND MEDIUM | |
| CN111913867A (en) | Fault feedback method, device, equipment and storage medium | |
| JP2022050309A (en) | Information processing method, device, system, electronic device, storage medium, and computer program | |
| CN106845101A (en) | Information input method and system | |
| CN113891372B (en) | A method, device and storage medium for locating VoLTE complaint problems | |
| CN108848276A (en) | Telephone number method for detecting availability, system, equipment and storage medium | |
| CN111435354A (en) | Data export method, device, storage medium and electronic device | |
| CN118673093A (en) | Dialogue information analysis method, device, equipment and storage medium | |
| CN110740212A (en) | Call answering method and device based on intelligent voice technology and electronic equipment | |
| CN108257600A (en) | Method of speech processing and device | |
| WO2020000976A1 (en) | Method and device for acquiring music data, and computer storage medium | |
| CN114817524A (en) | Method and device, system, medium and electronic device for generating infectious disease epidemiological report | |
| WO2014180362A1 (en) | Terminal and method thereof for managing multimedia notepad | |
| CN111556096A (en) | Information push method, device, medium and electronic device | |
| CN114420105A (en) | Training method, device, server and storage medium for speech recognition model | |
| CN101976186B (en) | Voice recognition method of computer and computer | |
| CN112711654B (en) | Chinese character interpretation technique generation method, system, equipment and medium for voice robot | |
| CN113079086B (en) | Message transmission method, message transmission device, electronic device, and storage medium | |
| CN110727759A (en) | Method and device for determining theme of voice information | |
| CN107894972A (en) | A kind of session tokens method, apparatus, aggregate server and storage medium | |
| CN114822549B (en) | Method and device for processing flow information, storage medium, and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination |