A method and system for online diagnosis of electroencephalogram based on artificial intelligence

Through the combination of file server, message queue and Redis server, JAVA application server and AI server are decoupled, low-latency online EEG diagnosis is realized, and the problem of high interface delay between JAVA application server and AI server in the existing technology is solved. problems, meet the response requirements of Internet applications, and take advantage of deep learning algorithms.

CN114785820BActive Publication Date: 2024-10-18ZHAOQING MEILANTE TECH CO LTD JAVASCRIPT
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202210260893.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-16
Publication Date
2024-10-18
Estimated Expiration
2042-03-16

AI Technical Summary

Technical Problem

When the existing online electroencephalogram intelligent diagnosis system uses deep learning algorithms, the interface delay between the JAVA application server and the AI ​​server is high, which cannot meet the Internet application response requirements within 200 milliseconds, and cannot give full play to the security of the JAVA application server. and stability.

Method used

Through the file server, message queue middleware and Redis server, the connection between the JAVA application server and the AI ​​server is decoupled, and the http interface and websocket are used to implement a non-blocking diagnosis process. The AI ​​server performs diagnosis based on the deep learning algorithm and caches the results to Redis. Server, JAVA application server pushes the processing results to the user terminal through message queue and websocket.

Benefits of technology

It achieves Internet-level latency of less than 200 milliseconds, meets the response requirements of Internet applications, and gives full play to the advantages of JAVA application servers and Python deep learning AI algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114785820B_ABST
    Figure CN114785820B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for online diagnosis of electroencephalogram based on artificial intelligence, and the method includes: receiving electroencephalogram files uploaded by user terminals based on file servers; receiving AI diagnosis requests initiated by user terminals based on http interfaces on JAVA application servers; the JAVA application servers interact the AI ​​diagnosis requests to AI servers based on message queues; the AI ​​servers obtain electroencephalogram files from the file servers based on the upload records in the AI ​​diagnosis requests, and perform artificial intelligence diagnosis on the electroencephalogram files; the JAVA application servers obtain electroencephalogram information from Redis servers based on the electroencephalogram results of the user terminals and return them to the user terminals. The present invention enables the service interfaces ultimately provided to the outside by the entire online electroencephalogram artificial intelligence diagnosis system to meet Internet-level delays of less than 200 milliseconds.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a method and system for online diagnosis of electroencephalogram based on artificial intelligence. Background Art

[0002] With the maturity of the Internet and the rapid development of artificial intelligence technology in recent years, online EEG artificial intelligence diagnosis systems have gradually entered medical applications. Doctors log in to the system through a browser and upload EEG files. The system can quickly give the time period that may be abnormal waveforms, and the doctor will confirm it to assist the doctor in making a quick diagnosis. The mainstream application server program is now written in JAVA. Modern JAVA application servers have the most mature security and stability solutions, while the software system for processing EEG data and artificial intelligence judgment is written in Python. The Python environment has the most mature deep learning framework such as tensorflow and dependent libraries for EEG data processing such as mne. In order to allow systems written in different languages ​​to be seamlessly combined into an overall online EEG artificial intelligence diagnosis system and ensure that the system can run stably and efficiently, a high-performance system architecture solution suitable for this intelligent diagnosis system is proposed here.

[0003] The current system architecture solutions for online EEG intelligent diagnosis include: introducing some classical machine learning algorithm dependency packages on the JAVA application server for intelligent diagnosis, or directly using the AI ​​system developed in Python to provide a network access interface to the outside world, or the JAVA application server and the Python AI server provide network interfaces to each other and directly connect data to each other.

[0004] Directly introducing classical machine learning algorithm dependency packages on the JAVA application server side cannot bring into play the capabilities of today's advanced and highly accurate deep learning neural network algorithms. Directly using the python AI server to provide external network interface services can bring into play the capabilities of deep learning, but it cannot have the robustness, scalability and security of JAVA to cope with large systems. As for the JAVA application server and the python AI server providing network interfaces to each other, since it takes several seconds for the python AI service to diagnose a long-term EEG, the JAVA application server directly calling the python interface needs to wait for the AI ​​processing to complete before returning, which will cause the request interface released by the JAVA application server to fail to meet the minimum requirement of Internet application interface response delay within 200 milliseconds. Summary of the invention

[0005] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a method and system for online diagnosis of electroencephalogram based on artificial intelligence, which solves the problem of low-latency and non-blocking docking between JAVA application server and AI server, so that the entire online electroencephalogram artificial intelligence diagnosis system can give full play to the mature security and stability advantages of JAVA application server.

[0006] In order to solve the above problems, the present invention proposes a method for online diagnosis of electroencephalogram based on artificial intelligence, the method comprising:

[0007] Receiving the EEG file uploaded by the user terminal based on the file server;

[0008] After the EEG file is successfully uploaded, the JAVA application server receives an AI diagnosis request initiated by the user terminal based on the http interface, wherein the AI ​​diagnosis request includes an upload record, and the upload record includes an ID and a storage address of the EEG file on the file server;

[0009] The JAVA application server exchanges the AI ​​diagnosis request to the AI ​​server based on a message queue;

[0010] The AI ​​server obtains the EEG file from the file server based on the upload record in the AI ​​diagnosis request, performs artificial intelligence diagnosis on the EEG file, and sends the diagnosis result of the EEG file and the parsed EEG information to the Redis server for caching;

[0011] After the AI ​​server processes the EEG file, the JAVA application server requests the Redis server to obtain the EEG information based on the EEG result of the user terminal and returns it to the user terminal.

[0012] The file server is an object storage server or an FTP server.

[0013] The JAVA application server receives the AI ​​diagnosis request initiated by the user terminal based on the http interface, including:

[0014] The JAVA application server receives the upload record inserted by the user terminal based on the http interface;

[0015] The JAVA application server receives the AI ​​diagnosis request initiated by the user, and encapsulates the AI ​​diagnosis request and the upload record based on an http request message.

[0016] The message queue is a RabbitMQ message queue, or an ActiveMQ message queue, or a RocketMQ message queue.

[0017] After the AI ​​server processes the EEG file, the method further includes:

[0018] The AI ​​server exchanges the EEG processing result status with the JAVA application server based on the message queue.

[0019] The JAVA application server requests the Redis server to obtain the EEG information based on the EEG result of the user terminal and returns it to the user terminal, including:

[0020] The JAVA application server receives the processing result status of the EEG by the AI ​​server through a subscription message queue;

[0021] The JAVA application server pushes the processing result status to the user terminal via websocket;

[0022] The JAVA application server receives a request initiated by a user terminal to read an electroencephalogram diagnosis result;

[0023] The JAVA application server obtains and organizes the EEG information from the Redis server based on the EEG diagnosis result and feeds it back to the user terminal.

[0024] The method further comprises:

[0025] The database server obtains the read and write records of the uploaded records in the JAVA application server; after the AI ​​server processes the EEG file, the database server updates the status of the uploaded record to processed.

[0026] The artificial intelligence diagnosis of the EEG file comprises:

[0027] The AI ​​server performs artificial intelligence diagnosis on the EEG file based on a deep learning AI algorithm under a python architecture.

[0028] Accordingly, the present invention also provides a system for online diagnosis of electroencephalogram, the system comprising:

[0029] A file server, used to receive EEG files uploaded by user terminals;

[0030] The JAVA application server is used to receive an AI diagnosis request initiated by a user terminal based on an http interface after the EEG file is successfully uploaded, wherein the AI ​​diagnosis request includes an upload record, and the upload record includes an ID and a storage address of the EEG file on the file server; the AI ​​diagnosis request is interacted with the AI ​​server based on a message queue; after the AI ​​server processes the EEG file, the EEG result of the user terminal is requested to obtain the EEG information from the Redis server and return it to the user terminal;

[0031] Message queue middleware, used to provide message queues to implement information interaction between JAVA application servers and AI servers;

[0032] The AI ​​server is used to obtain the EEG file from the file server based on the upload record in the AI ​​diagnosis request, perform artificial intelligence diagnosis on the EEG file, and send the diagnosis result of the EEG file and the parsed EEG information to the Redis server for caching;

[0033] The Redis server is used to cache the diagnosis result of the EEG file and the parsed EEG information.

[0034] The system further comprises:

[0035] The database server is used to obtain the read and write records of the uploaded records in the JAVA application server; after the AI ​​server processes the EEG file, the database server updates the status of the uploaded record to processed.

[0036] The embodiment of the present invention decouples the connection between the JAVA application server and the AI ​​server through OBS, Redis, websocket, and message queue MQ middleware, so that the service interface ultimately provided to the outside by the entire online EEG artificial intelligence diagnosis system can meet the Internet-level delay of less than 200 milliseconds, and enables the system to give full play to the advantages of the JAVA application server and python deep learning AI algorithm. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 Schematic diagram of the structure of a system for online diagnosis of electroencephalogram based on artificial intelligence in an embodiment of the present invention;

[0039] Figure 2 It is a flow chart of a method for online diagnosis of electroencephalogram based on artificial intelligence in an embodiment of the present invention. DETAILED DESCRIPTION

[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0041] Figure 1 A schematic diagram of the structure of a system for online diagnosis of electroencephalogram based on artificial intelligence in an embodiment of the present invention is shown, and the system includes:

[0042] The user terminal is used to upload the EEG file to the file server. After the EEG file is successfully uploaded, the http interface of the JAVA application server is called to insert an upload record into the data. The upload record contains the ID and the address of the EEG file on the file server. Based on the record, the AI ​​diagnosis service button is triggered to be displayed on the interface of the user terminal. That is, the "AI service diagnosis" button is lit in the EEG record operation bar on the user terminal, indicating that the next step can be taken to notify the AI ​​server that the EEG can be subjected to artificial intelligence diagnosis processing; after the user terminal recognizes that the user clicks the AI ​​diagnosis server button, it initiates an http request to the JAVA application server. The http request carries the upload record. The hppt request requires the system to perform AI diagnosis processing on the EEG; after receiving the JAVA application server After receiving the feedback processing status sent by the JAVA application server, the processing status of the EEG is displayed, that is, the EEG record status bar on the user status shows that it is being processed. This process does not wait for the AI ​​server to complete the processing before returning, which meets the Internet application interface delay of less than 200 milliseconds and avoids blocking the user terminal; the user terminal can receive the processing result status pushed by the JAVA application server through websocket, and the user terminal displays the EEG record status as processed based on the processing result status, that is, at this time the user terminal lights up the "View" button, and the EEG record status bar shows "Processed"; after clicking the "View" button, the user terminal initiates an http request to the JAVA application server to read the EEG diagnosis result, and what needs to be returned is the EEG itself and the abnormal brain wave time interval diagnosed by AI;

[0043] A JAVA application server cluster, which includes several JAVA application servers. The JAVA application server is used to interact with the user terminal. After receiving the http request initiated by the user terminal, the JAVA application server publishes a message to the queue with the theme "AI_FP" of the message queue MQ. The message carries the upload record. After publishing the message, the processing status of the EEG record in the database server is updated, and then the processing status is immediately fed back to the user terminal. The JAVA application server can receive the processing result status of the EEG file by the AI ​​server by subscribing to the queue of "AI_FP". The JAVA application server pushes the processing result status to the user terminal through websocket. After receiving the http request to read the EEG diagnosis result, the JAVA application server goes to the Redis cache server to obtain and organize part of the EEG information and returns it to the user terminal.

[0044] The file server can be implemented as an object storage server or an FTP server to store EEG files uploaded by users; the Object Storage Service (OBS) is an object-based mass storage service that provides customers with massive, secure, highly reliable, and low-cost data storage capabilities. The OBS system and a single bucket have no restrictions on the total data capacity and the number of objects / files, providing users with ultra-large storage capacity, suitable for storing any type of files, and suitable for ordinary users, websites, enterprises, and developers. OBS is a service for Internet access, providing a Web service interface based on the HTTP / HTTPS protocol. Users can access and manage data stored in OBS through the OBS management console or various OBS tools on computers connected to the Internet anytime and anywhere. In addition, OBS supports SDK and OBSAPI interfaces, which allows users to easily manage their data stored on OBS and develop various types of upper-level business applications. The original EEG files here can be stored on an OBS server or an FTP server.

[0045] The message queue middleware is used to provide a message queue to realize information interaction between the JAVA application server and the AI ​​server. For example, the AI ​​server receives the AI ​​diagnosis request from the JAVA application server by subscribing to the "AI_FP" queue of the message queue MQ; the AI ​​server sends the status information of the processing result (such as success or failure) to the queue titled "AI_FP" in the message queue MA.

[0046] The AI ​​server cluster includes several AI servers, each of which is an AI system that supports Python development. The AI ​​server can use the AI ​​system developed in Python to provide a network access interface for the JAVA application server, or the JAVA application server and the Python AI server can provide network interfaces to each other to directly connect data. The AI ​​server receives the AI ​​diagnosis request from the JAVA application server by subscribing to the "AI_FP" queue of the message queue MQ, and then downloads the EEG file from the OBS server according to the upload record, and then performs deep learning forward propagation on the EEG file to obtain the diagnosis result, and caches the diagnosis result and the parsed EEG information to the Redis server; the AI ​​server sends the status information of the processing result (such as success or failure) to the queue titled "AI_FP" in the message queue MA. Python provides efficient high-level data structures and simple and effective object-oriented programming. Python syntax and dynamic typing, as well as the nature of interpreted languages, make it a programming language for writing scripts and rapidly developing applications on most platforms. With the continuous update of versions and the addition of new language functions, it is gradually used for the development of independent, large-scale projects. The Python interpreter is easy to extend, and new functions and data types can be extended using C or C++ (or other languages ​​that can be called through C). Python can also be used as an extension language in customizable software. Python's rich standard library provides source code or machine code for all major system platforms.

[0047] Object Storage Service (OBS) is an object-based mass storage service that provides customers with massive, secure, highly reliable, and low-cost data storage capabilities. The OBS system and individual buckets have no restrictions on the total data capacity and the number of objects / files, providing users with ultra-large storage capacity, suitable for storing any type of files, and suitable for ordinary users, websites, enterprises, and developers. OBS is a service for Internet access, providing a Web service interface based on the HTTP / HTTPS protocol. Users can access and manage data stored in OBS through the OBS management console or various OBS tools on computers connected to the Internet anytime and anywhere. In addition, OBS supports SDK and OBSAPI interfaces, which allow users to easily manage their data stored on OBS and develop various types of upper-level business applications. The original EEG file can be stored on an OBS server or an FTP server. FTP servers (File Transfer Protocol Server, FTP) are computers that provide file storage and access services on the Internet. They provide services in accordance with the FTP protocol. FTP is a protocol specifically used to transfer files. A server that supports the FTP protocol is an FTP server.

[0048] The Redis server is used to receive the diagnosis results of the AI ​​server's AI diagnosis of the EEG file, and store the diagnosis results and the parsed EEG information; the Redis cache server stores data through the computer's memory, so the reading speed is very fast. Some EEG information is sorted because a long-distance EEG will have more than 100 megabytes of data. If all of it is returned, it will affect the bandwidth and response speed, and will fill up the browser memory of the user terminal. Only part of it needs to be returned once, so that the user terminal can cache it locally to ensure that the user can continue to read;

[0049] The database server is used to obtain the read and write records of the uploaded records in the JAVA application server; after the AI ​​server processes the EEG file, the status of the uploaded record is updated to processed.

[0050] It should be noted that the database in the database server is a MySQL database or an Oracle database, and the database server consists of three servers forming a master-slave cluster.

[0051] It should be noted that the user terminal can access the system end using a web browser, Chrome, Edge, Firefox, etc.

[0052] It should be noted that the JAVA application server uses the spring series framework and is clustered by 3 servers, with load balancing performed through nginx.

[0053] It should be noted that the AI ​​server uses RTX 3070ti graphics card for deep learning forward propagation GPU acceleration. It is composed of a cluster of 8 units, each with 4 graphics cards, and can process 32 EEG AI diagnosis requests in parallel.

[0054] It should be noted that the message queue MQ may adopt RabbitMQ, ActiveMQ or RocketMQ.

[0055] The system decouples the connection between the JAVA application server and the python AI server through OBS, Redis, websocket, and message queue MQ middleware, so that the service interface ultimately provided by the entire online EEG artificial intelligence diagnosis system can meet the Internet-level latency of less than 200 milliseconds, and enable the system to give full play to the advantages of the JAVA application server and python deep learning AI algorithm.

[0056] The present embodiment involves a method for online diagnosis of electroencephalogram, which includes: receiving an electroencephalogram file uploaded by a user terminal based on a file server; after the electroencephalogram file is successfully uploaded, a JAVA application server receives an AI diagnosis request initiated by the user terminal based on an http interface, wherein the AI ​​diagnosis request includes an upload record, and the upload record includes an ID and a storage address of the electroencephalogram file on the file server; the JAVA application server interacts the AI ​​diagnosis request to the AI ​​server based on a message queue; the AI ​​server obtains the electroencephalogram file from the file server based on the upload record in the AI ​​diagnosis request, performs artificial intelligence diagnosis on the electroencephalogram file, and sends the diagnosis result of the electroencephalogram file and the parsed electroencephalogram information to a Redis server for caching; after the AI ​​server processes the electroencephalogram file, the JAVA application server requests the Redis server to obtain the electroencephalogram information based on the electroencephalogram result of the user terminal and returns it to the user terminal.

[0057] Specifically, Figure 2 The flowchart of the method for online diagnosis of electroencephalogram based on artificial intelligence in an embodiment of the present invention is shown, comprising the following steps:

[0058] S201, the user terminal uploads the EEG file to the file server;

[0059] That is, the system receives the EEG file uploaded by the user terminal based on the file server, and the file server here can be implemented by an object storage server or an FTP server.

[0060] The user terminal uploads the EEG file to the file server. After the upload is successful, the http interface of the JAVA application server is called to insert an upload record into the data. The upload record contains the ID and the storage address of the EEG file on the file server. At this time, the operation interface on the user terminal will display the EEG record operation bar and light up the "AI Assisted Diagnosis" button, indicating that the next step can be taken to notify the AI ​​server to perform artificial intelligence diagnosis on the EEG.

[0061] S202, the JAVA application server receives an AI diagnosis request initiated by the user terminal based on the http interface;

[0062] After the EEG file is successfully uploaded, the JAVA application server receives an AI diagnosis request initiated by the user terminal based on the http interface, wherein the AI ​​diagnosis request includes an upload record, and the upload record includes an ID and a storage address of the EEG file on the file server.

[0063] Specifically, the JAVA application server receives the upload record inserted by the user terminal based on the http interface; the JAVA application server receives the AI ​​diagnosis request initiated by the user, and encapsulates the AI ​​diagnosis request and the upload record based on the http request message.

[0064] That is, the user terminal clicks the "AI Assisted Diagnosis" button to initiate an http request to the JAVA application server. The http request parameters contain the upload record, and the http request requires the system to perform AI diagnosis on the EEG.

[0065] S203, the JAVA application server exchanges the AI ​​diagnosis request to the AI ​​server based on a message queue;

[0066] It should be noted that the message queue is a RabbitMQ message queue, or an ActiveMQ message queue, or a RocketMQ message queue.

[0067] Specifically, after receiving the http request, the JAVA application server publishes a message to the queue with the topic "AI_FP" of the message queue MQ. The message published by the queue carries the upload record. After publishing the message, it updates the processing status of the EEG record in the database and then returns immediately. At this time, the status bar of the EEG record on the user terminal shows "Processing". This process does not wait for the AI ​​server to complete the processing before returning, which meets the Internet application interface delay of less than 200 milliseconds and avoids blocking the user terminal.

[0068] S204, the AI ​​server obtains the EEG file from the file server based on the upload record in the AI ​​diagnosis request;

[0069] Specifically, the AI ​​server obtains the EEG file from the file server based on the upload record in the AI ​​diagnosis request, performs artificial intelligence diagnosis on the EEG file, and sends the diagnosis result of the EEG file and the parsed EEG information to the Redis server for caching.

[0070] It should be noted that the AI ​​server receives the AI ​​diagnosis request issued by the JAVA application server by subscribing to the "AI_FP" queue of the message queue MQ, and then downloads the EEG file address from the file server according to the ID, and then performs deep learning forward propagation to obtain the diagnosis result.

[0071] S205, the AI ​​server exchanges the EEG processing result status with the JAVA application server based on the message queue;

[0072] During the specific implementation process, the AI ​​server sends the status information (success / failure) of the processing result to the queue titled "AI_BP" in the message queue MQ. The JAVA application server receives the processing result status of the AI ​​server by subscribing to the "AI_BP" queue.

[0073] S206: The JAVA application server requests the Redis server to obtain the EEG information based on the EEG result of the user terminal and returns it to the user terminal.

[0074] It should be noted that after the AI ​​server processes the EEG file, the JAVA application server requests the Redis server to obtain the EEG information based on the EEG result of the user terminal and returns it to the user terminal.

[0075] Specifically, the JAVA application server requests the Redis server to obtain the EEG information based on the EEG result of the user terminal and returns it to the user terminal, including: the JAVA application server receives the processing result status of the EEG by the AI ​​server through the subscription message queue; the JAVA application server pushes the processing result status to the user terminal through websocket; the JAVA application server receives the request for reading the EEG diagnosis result initiated by the user terminal; the JAVA application server obtains and organizes the EEG information from the Redis server based on the EEG diagnosis result and feeds it back to the user terminal.

[0076] During the specific implementation process, the JAVA application server pushes the processing result status to the user terminal through websocket. At this time, the "View" button will be lit on the operation interface of the user terminal, and the status bar of the EEG record will change to "Processed"; after the user terminal clicks the "View" button, the user terminal initiates an http request to the JAVA application server to read the EEG diagnosis result. What needs to be returned is the EEG itself and the abnormal brain wave time interval diagnosed by AI; after receiving the request, the JAVA application server goes to the Redis cache server to obtain and organize part of the EEG information and return it to the user terminal. The Redis cache server stores data through the computer's memory, so the reading speed is very fast. The reason for organizing part of the EEG information is that a long-distance EEG will have more than 100 megabytes of data. If all of it is returned, it will affect the bandwidth and response speed, and will fill up the browser memory of the user terminal. Only part of it needs to be returned once, so that the user terminal can cache it locally to ensure that the user can continue to read.

[0077] During the specific implementation process, the database server obtains the read and write records of the uploaded records in the JAVA application server; after the AI ​​server processes the EEG file, the database server updates the status of the uploaded record to processed.

[0078] The above method decouples the connection between the JAVA application server and the python AI server through OBS, Redis, websocket, and message queue MQ middleware, so that the service interface ultimately provided by the entire online EEG artificial intelligence diagnosis system can meet the Internet-level latency of less than 200 milliseconds, and enables the system to give full play to the advantages of the JAVA application server and python deep learning AI algorithm.

[0079] The embodiments of the present invention are described in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for online diagnosis of electroencephalogram based on artificial intelligence, characterized in that: The method comprises: The file server receives the EEG file uploaded by the user terminal. After the upload is successful, the http interface of the JAVA application server is called to insert an upload record into the data. The operation bar of the EEG record on the operation interface of the user terminal lights up the "AI Assisted Diagnosis" button, indicating that the next step is to notify the AI ​​server to perform artificial intelligence diagnosis on the EEG. After the EEG file is successfully uploaded, the JAVA application server receives an AI diagnosis request initiated by the user terminal based on the http interface, wherein the AI ​​diagnosis request includes an upload record, and the upload record includes an ID and a storage address of the EEG file on the file server; The JAVA application server exchanges the AI ​​diagnosis request to the AI ​​server based on a message queue; The AI ​​server obtains the EEG file from the file server based on the upload record in the AI ​​diagnosis request, performs artificial intelligence diagnosis on the EEG file, and sends the diagnosis result of the EEG file and the parsed EEG information to the Redis server for caching; After the AI ​​server processes the EEG file, the JAVA application server requests the Redis server to obtain the EEG information based on the EEG result of the user terminal and returns it to the user terminal.

2. The method for online diagnosis of electroencephalogram based on artificial intelligence as claimed in claim 1, characterized in that: The file server is an object storage server or an FTP server.

3. The method for online diagnosis of electroencephalogram based on artificial intelligence as claimed in claim 1, characterized in that: The JAVA application server receives the AI ​​diagnosis request initiated by the user terminal based on the http interface, including: The JAVA application server receives the upload record inserted by the user terminal based on the http interface; The JAVA application server receives the AI ​​diagnosis request initiated by the user, and encapsulates the AI ​​diagnosis request and the upload record based on an http request message.

4. The method for online diagnosis of electroencephalogram based on artificial intelligence as claimed in claim 3, characterized in that: The message queue is a RabbitMQ message queue, or an ActiveMQ message queue, or a RocketMQ message queue.

5. The method for online diagnosis of electroencephalogram based on artificial intelligence as claimed in claim 4, characterized in that: After the AI ​​server processes the EEG file, the method further includes: The AI ​​server exchanges the EEG processing result status with the JAVA application server based on the message queue.

6. The method for online diagnosis of electroencephalogram based on artificial intelligence as claimed in claim 5, characterized in that: The JAVA application server requests the Redis server to obtain the EEG information based on the EEG result of the user terminal and returns it to the user terminal, including: The JAVA application server receives the processing result status of the EEG by the AI ​​server through a subscription message queue; The JAVA application server pushes the processing result status to the user terminal via websocket; The JAVA application server receives a request initiated by a user terminal to read an electroencephalogram diagnosis result; The JAVA application server obtains and organizes the EEG information from the Redis server based on the EEG diagnosis result and feeds it back to the user terminal.

7. The method for online diagnosis of electroencephalogram based on artificial intelligence according to any one of claims 1 to 6, characterized in that: The method further comprises: The database server obtains the read and write records of the uploaded records in the JAVA application server; after the AI ​​server processes the EEG file, the database server updates the status of the uploaded record to processed.

8. The method for online diagnosis of electroencephalogram based on artificial intelligence as claimed in claim 7, characterized in that: The artificial intelligence diagnosis of the EEG file comprises: The AI ​​server performs artificial intelligence diagnosis on the EEG file based on a deep learning AI algorithm under a python architecture.

9. A system for online diagnosis of electroencephalogram based on artificial intelligence, characterized in that: The system comprises: The file server is used to receive the EEG file uploaded by the user terminal. After the upload is successful, the http interface of the JAVA application server is called to insert an upload record into the data. The operation bar of the EEG record on the operation interface of the user terminal will light up the "AI Assisted Diagnosis" button, indicating that the next step is to notify the AI ​​server to perform artificial intelligence diagnosis on the EEG; The JAVA application server is used to receive an AI diagnosis request initiated by a user terminal based on an http interface after the EEG file is successfully uploaded, wherein the AI ​​diagnosis request includes an upload record, and the upload record includes an ID and a storage address of the EEG file on the file server; the AI ​​diagnosis request is interacted with the AI ​​server based on a message queue; after the AI ​​server processes the EEG file, the EEG result of the user terminal is requested to obtain the EEG information from the Redis server and return it to the user terminal; Message queue middleware, used to provide message queues to implement information interaction between JAVA application servers and AI servers; The AI ​​server is used to obtain the EEG file from the file server based on the upload record in the AI ​​diagnosis request, perform artificial intelligence diagnosis on the EEG file, and send the diagnosis result of the EEG file and the parsed EEG information to the Redis server for caching; The Redis server is used to cache the diagnosis result of the EEG file and the parsed EEG information.

10. The system according to claim 9, characterized in that The system further comprises: The database server is used to obtain the read and write records of the uploaded records in the JAVA application server; after the AI ​​server processes the EEG file, the database server updates the status of the uploaded record to processed.

Citation Information

Patent Citations

  • Operation method and operation system of big data process through API (Application Programming Interface) server

    CN105450618A

  • Medical image data timely acquisition system and method

    CN110827958A

  • Artificial intelligence visualization PACS system and method

    CN111091882A

  • Internet + cervix uteri image intelligent auxiliary smear reading method and auxiliary smear reading system

    CN111785364A

  • System and method for realizing message queue and message scheduling system

    CN112698965A