Data request processing method and device based on edge service, equipment and medium

By using the first neural network model in the edge cloud system to obtain the target edge server information, the problem of data requests being scheduled to inappropriate servers is solved, the accuracy of request scheduling is improved, and the success of data request processing is ensured.

CN118612294APending Publication Date: 2024-09-06TIANJIN UNIV +3
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410724206.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

In edge cloud systems, data requests may be scheduled to inappropriate edge servers, resulting in processing failures.

Method used

The first neural network model is used to obtain the target edge server information to ensure that data requests are scheduled to the appropriate edge server and improve the accuracy of request scheduling.

Benefits of technology

Through the use of the first neural network model, it is ensured that data requests are scheduled to appropriate edge servers, which improves the accuracy of request scheduling and solves the problem of data request processing failure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612294A
    Figure CN118612294A
Patent Text Reader

Abstract

The embodiment of the invention discloses a data request processing method and device based on edge service, equipment and a medium. The method comprises the following steps: receiving a data request sent by a terminal, inputting the data request and edge server information into a first neural network model, and outputting first action information; wherein the first action information comprises information of a scheduled target edge server; sending the data request to the target edge server according to the first action information, so that the target edge server processes the data request to obtain a processing result; and receiving the processing result, and feeding back the processing result to a terminal corresponding to the data request. According to the scheme, the data request and the edge server information are input into the first neural network model, the scheduled target edge server information is obtained, it can be guaranteed that the data request is scheduled to a proper edge server, the request scheduling accuracy is improved, and therefore the problem that data request processing fails is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of edge cloud technology, and in particular to a data request processing method, device, equipment and medium based on edge service. Background Art

[0002] At present, the traditional data request processing method is mainly used in edge cloud scenarios. The edge cloud system mainly includes edge access points, edge servers and cloud. Among them, the edge access point receives the user's data request and sends the data request to the edge server for processing. Among them, before sending the data request to the edge server for processing, the cloud needs to deploy various types of services on the edge server in advance, such as text services and voice services.

[0003] Since there are multiple edge servers in the edge cloud system, data requests may be dispatched to inappropriate edge servers, resulting in data request processing failure. Summary of the invention

[0004] The embodiments of the present invention provide a data request processing method, device, equipment and medium based on edge service, which obtains the information of the scheduled target edge server based on the first neural network model, thereby ensuring that the data request is scheduled to the appropriate edge server, improving the accuracy of request scheduling, and thus solving the problem of data request processing failure.

[0005] In a first aspect, an embodiment of the present invention provides a data request processing method based on edge services, including:

[0006] Receiving a data request sent by a terminal, inputting the data request and edge server information into a first neural network model, and outputting first action information; wherein the first action information includes information of a scheduled target edge server;

[0007] Sending the data request to the target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result;

[0008] The processing result is received, and the processing result is fed back to the terminal corresponding to the data request.

[0009] In a second aspect, an embodiment of the present invention further provides a data request processing device based on edge services, the device comprising:

[0010] A data request receiving module, configured to receive a data request sent by a terminal, input the data request and edge server information into a first neural network model, and output first action information; wherein the first action information includes information of a scheduled target edge server;

[0011] a data request processing module, configured to send the data request to the target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result;

[0012] The processing result feedback module is used to receive the processing result and feed back the processing result to the terminal corresponding to the data request.

[0013] In a third aspect, an embodiment of the present invention further provides an electronic device, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the data request processing method based on edge service described in an embodiment of the present invention.

[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the edge service-based data request processing method described in the embodiment of the present invention when executed.

[0018] The embodiment of the present invention discloses a data request processing method, device, equipment and medium based on edge service, including: receiving a data request sent by a terminal, and inputting the data request and edge server information into a first neural network model, and outputting first action information; wherein the first action information includes the information of the scheduled target edge server; sending the data request to the target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result; receiving the processing result, and feeding back the processing result to the terminal corresponding to the data request. The data request processing method based on edge service provided by the embodiment of the present invention inputs the data request and edge server information into a first neural network model, outputs the first action information, sends the data request to the target edge server according to the first action information, so that the target edge server processes the data request, receives the processing result sent by the target edge server, and feeds back the processing result to the terminal corresponding to the data request, thereby ensuring that the data request is scheduled to a suitable edge server, improving the accuracy of request scheduling, and solving the problem of data request processing failure. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1is a flow chart of a data request processing method based on edge service in Embodiment 1 of the present invention;

[0020] Figure 2 is a flow chart of the first neural network model training method in the second embodiment of the present invention;

[0021] Figure 3 is a flowchart of the second neural network model training method in Embodiment 3 of the present invention;

[0022] Figure 4 It is a structural diagram of a data request processing device based on edge service in Embodiment 4 of the present invention;

[0023] Figure 5 It is a structural schematic diagram of an electronic device in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0024] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0025] Embodiment 1

[0026] Figure 1 This is a flow chart of a data request processing method based on edge service provided in the first embodiment of the present invention. This embodiment is applicable to the case of processing data requests. The method can be executed by a data request processing device based on edge service. The device can be implemented in the form of software and / or hardware. Optionally, it can be implemented by an electronic device, which can be a mobile terminal, a PC or a server. Specifically, it includes the following steps:

[0027] S110, receiving a data request sent by a terminal, inputting the data request and edge server information into a first neural network model, and outputting first action information.

[0028] The edge server information includes cache information, CPU information and memory information; the first action information includes the scheduled target edge server information; and the data request includes the request type, request level and latency information.

[0029] In this embodiment, the data request sent by the terminal is input by the user at the terminal, wherein the request type of the data request can be a text request, a voice request, a video request, etc., the request level can be expressed as VIP1, VIP2, etc., and the delay information can be understood as a delay limit, that is, the data request needs to be processed within the delay limit and fed back to the user; the first neural network model can be a Multi-Agent Advantage Actor-Critic (MA-A2C) algorithm model.

[0030] In this embodiment, data requests are processed based on the edge cloud system, wherein the edge cloud system includes multiple edge access points, multiple edge servers and the cloud, and each edge access point only receives data requests within its own area. Since the edge cloud system includes multiple edge servers, the target edge server information can be understood as the edge server to which the request will be dispatched; the cache information in the edge server information can be understood as the request queue cache information of the edge server, the CPU information can be understood as the remaining CPU of the edge server, and the memory information can be understood as the memory size of the edge server.

[0031] Optionally, the delay information is the sum of transmission delay, queuing delay and processing delay. The transmission delay can be understood as the time required for the edge access point to send a data request to the edge server or cloud transmission terminal and the reverse transmission; the queuing delay can be understood as the waiting time of the data request sent by the terminal in the request queue of the edge server; the processing delay can be understood as the time required for the edge server to process the data request sent by the terminal.

[0032] Exemplarily, assuming that the data request sent by the terminal is a text request, multiple edge access points are represented as eap1, eap2, ..., eapn, multiple edge servers are represented as y1, y2, ..., yn, and the text request sent by the terminal is within the area of ​​edge access point eap1. Then the edge access point eap1 of the edge cloud system receives the text request sent by the terminal, and inputs the request and the cache information, CPU information and memory information of multiple edge servers into the first neural network model to obtain the first action information, that is, obtain the edge server to which the request will be dispatched.

[0033] S120: Send the data request to the target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result.

[0034] Among them, the target edge server is deployed with multiple types of services; the services are deployed by the cloud based on the second neural network model.

[0035] In this embodiment, the multiple types of services may be text services, voice services, video services, etc., and before sending the data request to the target edge server for processing, the cloud needs to deploy various types of services on the edge server in advance. The reason for deploying the services on the edge server is that only by deploying multiple types of services on the edge server can the data request be processed, and the services and requests correspond one to one, for example, the text service processes the text request, the voice service processes the voice request, etc.

[0036] In this embodiment, the cloud can deploy services based on the second neural network model by inputting edge server information and service information to be deployed into the second neural network model and outputting second action information; the cloud deploys the service according to the second action information.

[0037] The service information includes the service type and service quantity.

[0038] In this embodiment, the second neural network model can be a GraphAttention Networks Advantage Actor-Critic (GAT-A2C) algorithm model; the service type can be understood as the type of service to be deployed, such as text service, voice service, etc., and the number of services can be understood as the number of services to be deployed, such as the number of text services, voice services, etc. that need to be deployed. Among them, the second action information can include deploying a service, deleting a service, or not making any changes.

[0039] For example, assuming that the service type to be deployed is a text service, the number of services is 2, and the second action information is to deploy the service, the cache information, CPU information, memory information of the edge server, and the type and number of services to be deployed are input into the second neural network model, and the second action information, i.e., deploy the service, is output, and the cloud deploys the two text services on the corresponding edge servers according to the second action information.

[0040] Exemplarily, assuming that the target edge server is edge server y2, the edge access point eap1 sends the text request to edge server y2 according to the first action information, and the text service deployed by edge server y2 processes the text request to obtain a processing result.

[0041] S130: Receive processing results, and feed back the processing results to the terminal corresponding to the data request.

[0042] In this embodiment, the edge access point receives the processing result sent by the target edge server, and feeds it back to the terminal corresponding to the data request, and the user can view the processing result on the terminal.

[0043] The technical solution of this embodiment receives a data request sent by a terminal, inputs the data request and edge server information into a first neural network model, and outputs first action information; sends the data request to a target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result; receives the processing result, and feeds back the processing result to the terminal corresponding to the data request. The edge service-based data request processing method provided in an embodiment of the present invention sends a data request to a target edge server according to the first action information, processes the data request, and feeds back the processing result to the user, which can ensure that the data request is dispatched to a suitable edge server, improve the accuracy of request scheduling, and thus solve the problem of data request processing failure.

[0044] Embodiment 2

[0045] Figure 2 This is a flow chart of a first neural network model training method provided in Embodiment 2 of the present invention. Based on the above embodiment, the method includes the following steps:

[0046] S210, determining a first intrinsic reward function of a first neural network model based on a set data request, edge server information, and set first action information.

[0047] In this embodiment, the method of determining the first intrinsic reward function of the first neural network model based on the set data request, edge server information and the set first action information can be: using the first neural network model to encode the set data request and edge server information to obtain first encoding information; determining first predicted encoding information based on the first encoding information and the set first action information; determining the first intrinsic reward function based on the first predicted encoding information and the first actual encoding information.

[0048] In this embodiment, the first neural network model includes a first curiosity module, and the first curiosity module includes a first forward neural network unit and a first encoding unit. The first curiosity module can be understood as a first intrinsic curiosity model (ICM), the first encoding information can be understood as the first encoding information at the current moment, the first predicted encoding information can be understood as the first predicted encoding information at the next moment, and the first actual encoding information can be understood as the first actual encoding information at the next moment.

[0049] Specifically, the set data request and edge server information are encoded using the first neural network model, and the first encoding information can be obtained by inputting the set data request and edge server information into the first encoding unit in the first curiosity module to obtain the first encoding information.

[0050] Specifically, the method of determining the first predicted coding information based on the first coding information and the set first action information can be: input the first coding information and the set first action information into the first forward neural network unit in the first curiosity module to obtain the first predicted coding information.

[0051] Exemplarily, the set data request, request type, request level, latency information, cache information, CPU information and memory information in the edge server information are recorded as S1 = {k, l, d, r, c, m}, and the first coding information, the set first action information, the first predicted coding information, and the first actual coding information are recorded as X(S1), a1, X1(S1), and X2(S1), respectively. Then S1 is input into the first coding unit to obtain the first coding information X(S1); the first coding information X(S1) and the set first action information a1 are input into the first forward neural network unit to obtain the first predicted coding information X1(S1); the first intrinsic reward function is determined according to the first predicted coding information and the first actual coding information X2(S1). Among them, the formula of the first intrinsic reward function is expressed as: ρ1 is the set weight.

[0052] S220: Collect data requests and edge server information sample sets.

[0053] In this embodiment, a sample set of request type, request level, latency information, cache information, CPU information and memory information is collected, that is, B = {b1, b2, ..., bn}. There are n samples in the sample set, and each sample contains the corresponding request type, request level, latency information, cache information, CPU information and memory information.

[0054] S230: Input the data request and the edge server information sample set into the first neural network model to obtain a first extrinsic reward function.

[0055] In this embodiment, the data request and edge server information sample set are input into the first neural network model, and the first external reward function is obtained by: performing preprocessing operations on the data request and edge server information sample set to obtain processed data request and edge server information sample set; inputting the processed data request and edge server information sample set into the first neural network model, outputting the time information and load information of the model; and determining the first external reward function based on the time information and load information.

[0056] In this embodiment, the preprocessing operation may be a data cleaning operation, such as deleting samples with missing values ​​in the sample set, deleting outliers in the sample set, etc. The time information may be understood as the time efficiency of the model, and the load information may be understood as the load balancing index of the model.

[0057] Exemplarily, a data cleaning operation is performed on a data request and edge server information sample set B to obtain a processed sample set B', B' is input into a first neural network model, time information u and load information v of the output model are output, and a first extrinsic reward function is determined according to the time information and load information. The first extrinsic reward function formula is expressed as: R1 = W1·u-W2·v, W1 and W2 are set weight coefficients.

[0058] S240: Training a first neural network model based on the first extrinsic reward function and the first intrinsic reward function.

[0059] Exemplarily, the first extrinsic reward function R1 and the first intrinsic reward function I1 are summed to obtain a sum result (R1+I1), and the parameters of the first neural network model are reversely adjusted according to the sum result. The sample set is input into the neural network model after parameter adjustment again, and the above steps are continued to be performed to optimize the first neural network model until the accuracy of the model meets the requirements and the model training is completed.

[0060] The technical solution of this embodiment determines the first intrinsic reward function of the first neural network model based on the set data request, edge server information and the set first action information; collects a sample set of data request and edge server information; inputs the sample set of data request and edge server information into the first neural network model to obtain a first extrinsic reward function; and trains the first neural network model based on the first extrinsic reward function and the first intrinsic reward function. The first neural network model training method provided in the embodiment of the present invention trains the first neural network model according to the first extrinsic reward function and the first intrinsic reward function, which can improve the accuracy of the first neural network model, so that the model can accurately predict the edge server to which the data request sent by the terminal will be scheduled, thereby ensuring that the data request is scheduled to the appropriate edge server, improving the accuracy of request scheduling, and thus solving the problem of data request processing failure.

[0061] Embodiment 3

[0062] Figure 3 This is a flow chart of a second neural network model training method provided in Embodiment 3 of the present invention. Based on the above embodiment, the method includes the following steps:

[0063] S310, determining a second intrinsic reward function of the second neural network model based on the set edge server information, the service information to be deployed, and the set second action information.

[0064] In this embodiment, the method for determining the second intrinsic reward function of the second neural network model based on the set edge server information, the service information to be deployed, and the set second action information can be: using the second neural network model to encode the set edge server information and the service information to be deployed to obtain second encoding information; determining the second predicted encoding information based on the second encoding information and the set second action information; determining the second intrinsic reward function based on the second predicted encoding information and the second actual encoding information.

[0065] In this embodiment, the second neural network model includes a second curiosity module, and the second curiosity module includes a second forward neural network unit and a second encoding unit. The second curiosity module can be understood as a second intrinsic curiosity model (ICM), the second encoding information can be understood as the second encoding information at the current moment, the second predicted encoding information can be understood as the second predicted encoding information at the next moment, and the second actual encoding information can be understood as the second actual encoding information at the next moment.

[0066] Specifically, the set edge server information and the service information to be deployed are encoded using a second neural network model, and the second encoded information can be obtained by inputting the set edge server information and the service information to be deployed into a second encoding unit in a second curiosity module to obtain the second encoded information.

[0067] Specifically, the method of determining the second predicted coding information based on the second coding information and the set second action information can be: input the second coding information and the set second action information into the second forward neural network unit in the second curiosity module to obtain the second predicted coding information.

[0068] Exemplarily, the set edge server information, cache information, CPU information, memory information, service type and service quantity in the service information to be deployed are recorded as S2 = {r, c, m, f, h}, and the second coding information, the set second action information, the second predicted coding information, and the second actual coding information are recorded as Y(S2), a2, Y1(S2), and Y2(S2), respectively. Then S2 is input into the second coding unit to obtain the second coding information Y(S2); the second coding information Y(S2) and the set second action information a2 are input into the second forward neural network unit to obtain the second predicted coding information Y1(S2); the second intrinsic reward function is determined according to the second predicted coding information and the second actual coding information Y2(S2). Among them, the formula of the second intrinsic reward function is expressed as: I2 = ρ2·||Y1(S2)-Y2(S2)|| 2 2, ρ2 is the set weight.

[0069] S320: Collect edge server information and a sample set of service information to be deployed.

[0070] In this embodiment, a sample set of cache information, CPU information, memory information, service type and service quantity is collected, that is, E = {e1, e2, ..., en}. There are n samples in the sample set, and each sample contains corresponding cache information, CPU information, memory information, service type and service quantity.

[0071] S330: Input the edge server information and the sample set of service information to be deployed into the second neural network model to obtain a second extrinsic reward function.

[0072] Exemplarily, the edge server information and the sample set E of service information to be deployed are input into the second neural network model to obtain the second extrinsic reward function. The formula of the second extrinsic reward function is: R2 = -∑ y∈Y |r y |,|r y | represents the length of the unprocessed request queue of edge server y, and Y represents the set of edge servers in the edge cloud system.

[0073] S340: Train a second neural network model based on the second extrinsic reward function and the second intrinsic reward function.

[0074] Exemplarily, the second extrinsic reward function R2 and the second intrinsic reward function I2 are summed to obtain a sum result (R2+I2), and the parameters of the second neural network model are reversely adjusted according to the sum result to optimize the second neural network model until the model accuracy meets the requirements and the model training is completed.

[0075] The technical solution of this embodiment determines the second intrinsic reward function of the second neural network model based on the set edge server information, the service information to be deployed, and the set second action information; collects the edge server information and the sample set of the service information to be deployed; inputs the edge server information and the sample set of the service information to be deployed into the second neural network model to obtain the second extrinsic reward function; and trains the second neural network model based on the second extrinsic reward function and the second intrinsic reward function. The second neural network model training method provided in the embodiment of the present invention trains the second neural network model according to the second extrinsic reward function and the second intrinsic reward function, which can improve the accuracy of the second neural network model, so that the model can accurately deploy various types of services to the edge server, improve the accuracy and efficiency of service deployment, and enable the edge server to process the data request, thereby solving the problem of data request processing failure.

[0076] Embodiment 4

[0077] Figure 4A schematic diagram of a data request processing device based on edge services provided in Embodiment 4 of the present invention is shown in FIG. Figure 4 As shown, the device comprises:

[0078] The data request receiving module 410 is used to receive the data request sent by the terminal, input the data request and the edge server information into the first neural network model, and output the first action information; wherein the first action information includes the information of the scheduled target edge server;

[0079] A data request processing module 420, configured to send the data request to a target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result;

[0080] The processing result feedback module 430 is used to receive the processing result and feed back the processing result to the terminal corresponding to the data request.

[0081] Optionally, the target edge server is deployed with multiple types of services; the services are deployed by the cloud based on the second neural network model.

[0082] Optionally, it also includes: a service deployment module, which is used to:

[0083] The edge server information and the service information to be deployed are input into the second neural network model, and the second action information is output; the cloud deploys the service according to the second action information.

[0084] The service information includes the service type and service quantity.

[0085] Optionally, it further includes: a first neural network model training module, wherein the first neural network model training module includes:

[0086] A first intrinsic reward function determination unit, configured to determine a first intrinsic reward function of a first neural network model based on a set data request, edge server information, and set first action information;

[0087] A sample set collection unit, used to collect data requests and edge server information sample sets;

[0088] A first extrinsic reward function determination unit, configured to input the data request and the edge server information sample set into a first neural network model to obtain a first extrinsic reward function;

[0089] The first neural network model training unit is used to train the first neural network model based on the first extrinsic reward function and the first intrinsic reward function.

[0090] Optionally, the first intrinsic reward function determining unit is further configured to:

[0091] A first neural network model is used to encode the set data request and edge server information to obtain first encoding information; first predicted encoding information is determined based on the first encoding information and the set first action information; and a first intrinsic reward function is determined based on the first predicted encoding information and the first actual encoding information.

[0092] Optionally, the first extrinsic reward function determining unit is further configured to:

[0093] Preprocessing operations are performed on data requests and edge server information sample sets to obtain processed data requests and edge server information sample sets; the processed data requests and edge server information sample sets are input into a first neural network model, and time information and load information of the model are output; and a first extrinsic reward function is determined based on the time information and the load information.

[0094] Optionally, it further includes: a second neural network model training module, wherein the second neural network model training module includes:

[0095] A second intrinsic reward function determination unit, configured to determine a second intrinsic reward function of a second neural network model based on set edge server information, service information to be deployed, and set second action information;

[0096] A sample set collection unit, used to collect edge server information and service information sample sets to be deployed;

[0097] A second extrinsic reward function determination unit, configured to input edge server information and a sample set of service information to be deployed into a second neural network model to obtain a second extrinsic reward function;

[0098] The second neural network model training unit is used to train the second neural network model based on the second extrinsic reward function and the second intrinsic reward function.

[0099] Optionally, the second intrinsic reward function determination unit is further configured to:

[0100] A second neural network model is used to encode the set edge server information and the service information to be deployed to obtain second encoded information; second predicted encoded information is determined based on the second encoded information and the set second action information; and a second intrinsic reward function is determined based on the second predicted encoded information and the second actual encoded information.

[0101] The above device can execute the methods provided by all the above embodiments of the present invention, and has the corresponding functional modules and beneficial effects of executing the above methods. For technical details not described in detail in this embodiment, please refer to the methods provided by all the above embodiments of the present invention.

[0102] Embodiment 5

[0103] Figure 5 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0104] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0105] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0106] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a data request processing method based on edge services.

[0107] In some embodiments, the edge service-based data request processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the edge service-based data request processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the edge service-based data request processing method in any other appropriate manner (e.g., by means of firmware).

[0108] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0109] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0110] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, device, or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0111] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0112] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0113] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0114] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0115] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A data request processing method based on edge service, characterized in that: include: Receiving a data request sent by a terminal, inputting the data request and edge server information into a first neural network model, and outputting first action information; wherein the first action information includes information of a scheduled target edge server; Sending the data request to the target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result; The processing result is received, and the processing result is fed back to the terminal corresponding to the data request.

2. The method according to claim 1, characterized in that The target edge server is deployed with multiple types of services; the services are deployed by the cloud based on the second neural network model.

3. The method according to claim 2, characterized in that The cloud-based deployment service based on the second neural network model includes: Input the edge server information and the service information to be deployed into the second neural network model, and output second action information; wherein the service information includes the service type and the service quantity; The cloud deploys the service according to the second action information.

4. The method according to claim 1, characterized in that The training method of the first neural network model is: Determine a first intrinsic reward function of the first neural network model based on the set data request, edge server information, and set first action information; Collecting a sample set of data requests and edge server information; Inputting the data request and the edge server information sample set into the first neural network model to obtain a first extrinsic reward function; The first neural network model is trained based on the first extrinsic reward function and the first intrinsic reward function.

5. The method according to claim 4, characterized in that Determining a first intrinsic reward function of the first neural network model based on the set data request, edge server information, and the set first action information includes: Encoding the set data request and edge server information using a first neural network model to obtain first encoded information; Determine first predicted coding information based on the first coding information and the set first action information; A first intrinsic reward function is determined based on the first predicted encoding information and the first actual encoding information.

6. The method according to claim 4, characterized in that Inputting the data request and the edge server information sample set into the first neural network model to obtain a first extrinsic reward function, including: Performing a preprocessing operation on the data request and the edge server information sample set to obtain a processed data request and the edge server information sample set; Inputting the processed data request and edge server information sample set into the first neural network model, and outputting time information and load information of the model; A first extrinsic reward function is determined based on the time information and the load information.

7. The method according to claim 3, characterized in that The training method of the second neural network model is: Determine a second intrinsic reward function of the second neural network model based on the set edge server information, the service information to be deployed, and the set second action information; Collect edge server information and a sample set of service information to be deployed; Inputting the edge server information and the sample set of service information to be deployed into the second neural network model to obtain a second extrinsic reward function; The second neural network model is trained based on the second extrinsic reward function and the second intrinsic reward function.

8. The method according to claim 7, characterized in that Determining a second intrinsic reward function of the second neural network model based on the set edge server information, the service information to be deployed, and the set second action information includes: Using a second neural network model to encode the set edge server information and the service information to be deployed to obtain second encoded information; Determine second prediction coding information based on the second coding information and the set second action information; A second intrinsic reward function is determined based on the second predicted encoding information and the second actual encoding information.

9. A data request processing device based on edge service, characterized in that: include: A data request receiving module, configured to receive a data request sent by a terminal, input the data request and edge server information into a first neural network model, and output first action information; wherein the first action information includes information of a scheduled target edge server; a data request processing module, configured to send the data request to the target edge server according to the first action information, so that the target edge server processes the data request and obtains a processing result; The processing result feedback module is used to receive the processing result and feed back the processing result to the terminal corresponding to the data request.

10. The device according to claim 9, characterized in that The target edge server is deployed with multiple types of services; the services are deployed by the cloud based on the second neural network model.

11. The device according to claim 9, characterized in that Also includes: Service deployment module, used to: Input the edge server information and the service information to be deployed into the second neural network model, and output second action information; wherein the service information includes the service type and the service quantity; The cloud deploys the service according to the second action information.

12. The device according to claim 9, characterized in that Also includes: A first neural network model training module, wherein the first neural network model training module comprises: A first intrinsic reward function determination unit, configured to determine a first intrinsic reward function of the first neural network model based on a set data request, edge server information, and set first action information; A sample set collection unit, used to collect data requests and edge server information sample sets; A first extrinsic reward function determining unit, configured to input the data request and the edge server information sample set into the first neural network model to obtain a first extrinsic reward function; A first neural network model training unit is used to train the first neural network model based on the first extrinsic reward function and the first intrinsic reward function.

13. The device according to claim 12, characterized in that The first intrinsic reward function determination unit is further configured to: Encoding the set data request and edge server information using a first neural network model to obtain first encoded information; Determine first predicted coding information based on the first coding information and the set first action information; A first intrinsic reward function is determined based on the first predicted encoding information and the first actual encoding information.

14. The device according to claim 12, characterized in that The first extrinsic reward function determination unit is further used for: Performing a preprocessing operation on the data request and the edge server information sample set to obtain a processed data request and the edge server information sample set; Inputting the processed data request and edge server information sample set into the first neural network model, and outputting time information and load information of the model; A first extrinsic reward function is determined based on the time information and the load information.

15. The device according to claim 9, characterized in that Also includes: The second neural network model training module comprises: A second intrinsic reward function determination unit, configured to determine a second intrinsic reward function of the second neural network model based on the set edge server information, the service information to be deployed, and the set second action information; A sample set collection unit, used to collect edge server information and service information sample sets to be deployed; A second extrinsic reward function determination unit, configured to input the edge server information and the sample set of service information to be deployed into the second neural network model to obtain a second extrinsic reward function; The second neural network model training unit is used to train the second neural network model based on the second extrinsic reward function and the second intrinsic reward function.

16. The device according to claim 15, characterized in that The second intrinsic reward function determination unit is further used for: Using a second neural network model to encode the set edge server information and the service information to be deployed to obtain second encoded information; Determine second prediction coding information based on the second coding information and the set second action information; A second intrinsic reward function is determined based on the second predicted encoding information and the second actual encoding information.

17. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the edge service-based data request processing method described in any one of claims 1 to 8.

18. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the edge service-based data request processing method according to any one of claims 1 to 8 when executed.