Rendering method and device based on WEB security isolation system and medium
By using the AI model to dynamically select the rendering mode on the server side, the problem in the existing technology of being unable to switch the rendering mode according to the image size and client resource conditions is solved, achieving more efficient rendering performance and user experience.
Patent Information
- Application Number
- CN202410780767.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-01
AI Technical Summary
The existing WEB security isolation system can only choose between command rendering and pixel rendering, and cannot dynamically switch based on image size or client resource conditions, affecting network data transmission efficiency and user experience.
Add an AI model on the server side, collect data from the original website and client, preprocess and use the AI model to determine the appropriate rendering method, and dynamically switch command rendering or pixel rendering to achieve the best rendering performance and user experience.
By intelligently selecting the rendering method, the browser's rendering performance and data transmission efficiency are improved, the user experience is improved, and it adapts to image size and client capabilities.
Smart Images

Figure CN118733918A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a rendering method, device and medium based on a WEB security isolation system. Background Art
[0002] Rendering can be understood as the process by which the browser completes the page layout and drawing based on certain rules for the page resources returned by the request; that is, rendering is the process of generating Hypertext Markup Language (HTML) tags to display the web page in the browser. Most importantly, how and where the rendering process occurs will have some significant impacts on user experience, website performance, and search engine optimization (SEO). In the Web security isolation system, command rendering and pixel rendering are two different rendering methods, which are usually used to run untrusted code or content in a restricted environment. Command rendering usually refers to the use of virtual machines or sandbox technology to execute code. It does not directly render the output to the screen, but ensures security by monitoring the instructions executed by the code. This method is common in JavaScript virtual machines such as JavaScriptCore (Safari) and V8 (Chrome). In other words, command rendering is equivalent to transmitting graphics operation instructions from the server to the client browser, and then the graphics processing unit of the client browser executes these instructions to render graphics on the screen. Pixel rendering refers to drawing pixels directly on a restricted canvas, which is usually achieved through a C++ rendering engine or WebGL. This method is common in the security isolation of games or complex graphics rendering. In short, pixel rendering is equivalent to the server rendering the graphics into pixel images, and then transmitting the pixel images to the client browser for display. Summary of the invention
[0003] The present invention provides a rendering method, equipment and medium based on a WEB security isolation system.
[0004] According to a first aspect of the present invention, a rendering method based on a WEB security isolation system is provided, the method comprising:
[0005] Collecting first data from an original website and collecting second data from a client;
[0006] After preprocessing the first data and the second data, output them to a decision module to obtain target data, where the target data is used as training data or test data for an AI model;
[0007] The method of rendering the target data in the browser of the client is determined according to the current state of the AI model and preset rules.
[0008] According to a second aspect of the present invention, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor implements a rendering method based on a WEB security isolation system as described in any embodiment of the present invention.
[0009] According to a third aspect of the present invention, a computer-readable storage medium is provided, wherein the computer instructions are used to enable the computer to execute the rendering method based on the WEB security isolation system as described in any embodiment of the present invention.
[0010] In order to make the features and advantages of the present application more obvious and understandable, some embodiments are given below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments. The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solutions of the present application. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope. For ordinary technicians in this field, other relevant drawings can also be obtained based on these drawings without creative work.
[0012] Figure 1 This is an application scenario diagram of a rendering method based on a WEB security isolation system provided in an embodiment of the present application;
[0013] Figure 2 It is a flowchart of a rendering method based on a WEB security isolation system provided in an embodiment of the present application;
[0014] Figure 3 It is a block diagram of an electronic device used to implement the rendering method based on the WEB security isolation system of an embodiment of the present application. DETAILED DESCRIPTION
[0015] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0016] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.
[0017] The term "and / or" herein only describes an association relationship, indicating that three relationships may exist. For example, A and / or B may represent the following three situations: A exists alone, A and B exist at the same time, and B exists alone. In addition, the term "at least one" herein represents any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C may represent including any one or more elements selected from the set consisting of A, B, and C.
[0018] According to research, for WEB security isolation systems, the two commonly used rendering methods include command rendering and pixel rendering. Taking Skia drawing instructions as an example, Skia is a 2D graphics library used for text layout, image rendering, and graphics drawing. It can convert drawing operations into graphics instructions, such as drawing paths, filling colors, etc.; the fonts, coordinate conversions, and bitmaps it contains are all efficient and concise. Not only can it be used in Google Chrome browsers, the emerging Android open mobile phone platform also uses Skia as a drawing processor, combined with OpenGL / ES and specific hardware features to enhance the display effect.
[0019] For command rendering, the client only needs to execute the command, and the server does not need to transmit the entire image to the client, which can reduce the amount of network data transmission. At the same time, since the graphics operation is performed on the client, the rendering efficiency and response speed can also be improved. However, command rendering requires the client to support Skia or a similar graphics library, and requires sufficient computing resources to execute the command.
[0020] For pixel rendering, Skia or similar graphics libraries on the server side convert drawing operations into pixels, and then transmit pixel images to the client. The client only displays the pixel images without performing additional graphics operations. Therefore, the client does not need to support Skia or other graphics libraries. Since the server performs all graphics operations, the client's computing resource consumption can be reduced. Correspondingly, this increases the amount of network data transmission, especially for complex graphics operations or large images, which is prone to network delays and increased bandwidth consumption.
[0021] However, the rendering method of the WEB security isolation system can only be used in one of the command rendering and pixel rendering methods. The rendering method cannot be switched dynamically, and a reasonable rendering method cannot be selected according to the image size or client resource conditions, thus affecting the network data transmission efficiency and user experience.
[0022] Based on the above research, the present disclosure provides a rendering method based on a WEB security isolation system. An AI model can be added on the server side to realize the selection of rendering method. According to the client's capabilities, graphics complexity, network transmission costs, historical data, etc., the applicable instruction rendering or pixel rendering method is determined, and the rendering method is dynamically switched to achieve the best rendering performance and ensure a good user experience.
[0023] The defects existing in the above solutions are the results obtained by the applicant after practice and careful research. Therefore, the process of discovering the above problems and the solutions proposed by this application for the above problems below should be the contributions made by the applicant to this application during the application process.
[0024] Figure 1 FIG. 1 is a schematic diagram 100 of an application scenario of a rendering method based on a WEB security isolation system provided in an embodiment of the present application. Figure 1 As shown, according to the AI model 140 set in the server 130, it is determined whether to use instruction rendering 141 or pixel rendering 142 to render to the screen of the client browser 120. By collecting the first data 101 of the original website 110 and the second data 102 of the client browser 120, they are input into the AI model 140 and used as the decision basis of the AI model 140. If the graphics are simple and do not require too many graphics operations, it is more efficient to use instruction rendering 141; if the graphics are complex, it is more efficient to use pixel rendering 142. Therefore, collecting data from the original website 110 and the client browser 120 facilitates the AI model 140 to understand the graphics complexity of the page and the graphics processing capabilities and performance of the client, which is conducive to the decision of the rendering method.
[0025] Those skilled in the art will appreciate that the above Figure 1What is shown is only an example based on the application scenario of the present application and is not limiting.
[0026] Embodiment 1
[0027] According to an embodiment of the present application, a rendering method based on a WEB security isolation system is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that here. Figure 2 As shown, the rendering method based on the WEB security isolation system includes the following steps: S210, S220 and S230.
[0028] S210: Collect first data from the original website and collect second data from the client.
[0029] The collecting of the first data from the original website and the collecting of the second data from the client include: obtaining the page graphics complexity of the original website and reading the page content of the original website to generate the first data; requesting to test the performance parameters of the client to obtain the second data returned by the client, wherein the performance parameters include GPU performance, CPU performance, network bandwidth, and network delay.
[0030] The page graphics complexity of the original website can be used as a reference factor for determining the rendering method in the decision module of the AI model; the first data can be the data of the Hypertext Markup Language Document Object Model (HTML DOM) of the page in the website after necessary parsing, for example: the proportion and layout of each element such as text, pictures, videos, etc. in the page. When the graphics are relatively simple and do not require too many graphics operations, the efficiency of using instruction rendering is higher than pixel rendering; when the graphics complexity is high, the pixel rendering method is more efficient. In addition, based on the performance returned by the client, the AI model evaluates the client's ability to process graphics, which is conducive to the decision of the subsequent rendering method. By sending test requests to the client at regular intervals, the client returns some performance indicators, such as: the CPU of the client robot, memory usage, whether the GPU is supported, the network bandwidth and delay parameters between the client and the server, etc.
[0031] Optionally, after collecting the first data from the original website and collecting the second data from the client, the method further includes data preprocessing: cleaning the first data and the second data, and filtering out abnormal data values; performing feature extraction and feature conversion on the first data and the second data; and dividing the first data and the second data into a training set, a test set, and a validation set.
[0032] By cleaning the first data and the second data, the abnormal data values are removed to ensure the quality and reliability of the data. The first data and the second data are subjected to feature extraction and feature conversion, so that the AI model is convenient for training and prediction according to the neural network model, specifically including: feature scaling, feature normalization, standardization and other operations to ensure the consistency of feature distribution and scale. It is worth noting that: the feature scaling is the process of adjusting the feature range by moving and changing the scaling of the data; in order to better train the machine learning model, when using methods such as support vector machines and neural networks, the values of all variables should be in the same range to make the data set uniform. Since normalization is sensitive to outliers, feature normalization can be performed after removing abnormal data values. When the distribution of the data is unknown, normalization is used to scale the numerical variables within the range of 0-1; since standardization is relatively insensitive to outliers and depends on the mean and standard deviation of the data, standardization can only be used when the data is normally distributed. Finally, the model is trained, optimized and evaluated according to the divided training set, test set and validation set, and cross-validation technology is used in this process to make full use of limited data resources to improve the model. It should be noted that cross-validation is a key method to evaluate the performance of machine learning models, prevent overfitting, and improve generalization capabilities.
[0033] S220: Pre-process the first data and the second data and output them to a decision module to obtain target data, which is used as training data or test data for an AI model.
[0034] Optionally, the decision module calls the inference interface of the AI model to determine the rendering method with the best performance relative to the target data, wherein the rendering method includes instruction rendering and pixel rendering. The AI model can be various general types of machine learning models, such as decision trees, neural networks, etc.
[0035] S230. Determine a method for rendering the target data in the browser of the client according to the current state of the AI model and preset rules.
[0036] The decision module receives the target data after preprocessing. If the AI model is not started or has not been trained, the decision module can combine some preset rules and strategies to decide whether to choose instruction rendering or pixel rendering, and send the target data to the AI model for training; if the AI model has been trained, the decision module calls the inference interface of the AI model to judge the target data and decide whether to choose instruction rendering or pixel rendering.
[0037] Optionally, the method of determining the way to render the target data in the browser of the client according to the current state of the AI model and preset rules includes: when the current state of the AI model is not started or the training is not completed, the decision module determines the rendering method according to the preset rules, and inputs the target data into the AI model to participate in training; when the current state of the AI model is started or the training is completed, the decision module calls the inference interface of the AI model to determine the corresponding rendering method according to the output result of the target data in the AI model.
[0038] Furthermore, the method of determining the way to render the target data in the browser of the client according to the current state of the AI model and preset rules also includes: corresponding to the instruction rendering method output by the decision module, controlling the WEB security isolation system to transmit the graphics operation instructions from the server to the client browser, so that the graphics processing unit of the client browser executes the graphics operation instructions to render the graphics on the client screen; corresponding to the pixel rendering method output by the decision module, controlling the WEB security isolation system to transmit the pixel image obtained by server rendering to the client browser for display.
[0039] Exemplarily, a WEB security isolation system is used to isolate the rendering environment of a network application to prevent malicious code and malicious websites from infringing on user devices and data. The rendering method of the present application is described with an electronic device including a data acquisition module, a data preprocessing module, a decision module and an AI model as carriers. The data acquisition module is configured to collect first data from the original website and second data from the client; the data preprocessing module is configured to perform data preprocessing on the first data and the second data, and the data preprocessing includes data cleaning, feature extraction and data classification; the AI model is configured to be added to the server side for an intelligent selection model for rendering methods; the decision module is configured to determine the method of rendering the target data in the browser of the client according to the current state of the AI model and preset rules. The data preprocessing module performs data cleaning, feature engineering processing, data set division and other operations on the first data and the second data received from the data acquisition module and then sends them to the decision module. The decision module determines whether the AI model is started: if the AI model is not started, that is, when the AI selection engine on the electronic device is run for the first time, the AI model is started, and the target data received from the data preprocessing module is sent to the AI model for training. When the electronic device just starts running and the AI model has not yet been trained, the decision module will make decisions based on preset rules or default values; the preset rules and default values can be derived from past experience or specified according to industry standards or best practices. Finally, a result is selected from instruction rendering or pixel rendering.
[0040] As an optional embodiment, the decision module determines that the AI model has not been trained yet, and sends the target data received from the data preprocessing module to the AI model for further training.
[0041] As another optional embodiment, if the decision module determines that the AI model training has been completed, it calls the inference interface of the AI model, passes the new target data to the AI model, and waits to receive the output result of the AI model. The AI model sends the output result to the decision module, where the result can be a probability distribution representing instruction rendering or pixel rendering, or directly a decision result. Based on the output result of the AI model, the decision module can make an appropriate rendering choice and decide whether to use instruction rendering or pixel rendering.
[0042] Optionally, the AI model is trained under the framework of a decision tree or a neural network, compatible with the influencing factors of client capabilities, network transmission costs, hardware performance, graphics complexity, and historical data, so that a single rendering mode is automatically switched in the WEB security isolation system.
[0043] Furthermore, according to the time period for updating the AI model set by the decision module, the target data is input as a training set into the trained AI model to obtain an updated AI model.
[0044] It is understandable that the first data is collected from the original website and the second data is collected from the client, and the first data and the second data are sent to the decision module after data cleaning, feature engineering processing, data set division and other operations. If the AI model training has been completed and the time for regularly updating the AI model maintained in the decision module has arrived, the decision module will send the target data generated by the data preprocessing module to the AI model for continued training, so as to achieve regular updates of the AI model.
[0045] The rendering method based on the WEB security isolation system disclosed in the embodiment of the present application dynamically selects the rendering method during the operation of the WEB security isolation system by adding an AI model on the server side, thereby realizing free switching between instruction rendering and pixel rendering. Using the AI model, the most appropriate rendering method can be intelligently selected based on factors such as current network conditions, hardware performance, and graphics complexity, thereby improving the rendering performance and data transmission efficiency of the browser and improving the user experience. In addition, the embodiment of the present application can select the rendering method with the best performance based on the image size or client capabilities, presenting a good rendering effect for the client browser.
[0046] Embodiment 2
[0047] Reference below Figure 3 , which shows a structural diagram of an electronic device 300 suitable for implementing a rendering method based on a WEB security isolation system of an embodiment of the present application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, 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, 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 application described and / or required herein.
[0048] like Figure 3As shown, the electronic device 300 may include a processing device 310, which may perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 320 or a program loaded from a storage device 380 into a random access memory (RAM) 330. The processing device 310 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processing device 310 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processing device 310 performs the various methods and processes described above.
[0049] In the RAM 330, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 310, the ROM 320, and the RAM 330 are connected to each other through a bus 340. An input / output (I / O) interface 350 is also connected to the bus 340.
[0050] Typically, the following devices may be connected to the I / O interface 350: an input device 360 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 370 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 380 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 390. The communication device 390 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0051] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through a communication device 390, or installed from a storage device 380, or installed from a ROM 320. When the computer program is executed by the processing device 310, the above functions defined in the method of the embodiment of the present application are executed. Alternatively, in other embodiments, the processing device 310 can be configured to execute the method by any other appropriate means (for example, by means of firmware): collecting first data from the original website and collecting second data from the client; pre-processing the first data and the second data and then outputting them to the decision module to obtain target data, which is used for training data or test data of the AI model; determining the way to render the target data in the browser of the client according to the current state of the AI model and the preset rules.
[0052] Embodiment 3
[0053] The computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, 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 above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0054] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (HyperText Transfer Protocol), and may be interconnected with 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"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0055] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0056] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device: collects first data from the original website and second data from the client; pre-processes the first data and the second data and outputs them to a decision module to obtain target data, which is used as training data or test data for the AI model; determines the method of rendering the target data in the browser of the client according to the current state of the AI model and preset rules.
[0057] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0058] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0059] The modules involved in the embodiments described in this application may be implemented by software or hardware, wherein the name of a module does not, in some cases, constitute a limitation on the module itself.
[0060] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip systems (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof, etc.
[0061] The program code for implementing the method of the present application can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code can 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.
[0062] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. 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.
[0063] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer 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 pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0064] 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.
[0065] A computer 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 relationship between the client and the server 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 a 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. The server may also be a server of a distributed system, or a server combined with a blockchain.
[0066] Artificial intelligence is a discipline that studies how to use computers to simulate certain human thought processes and intelligent behaviors (such as learning, reasoning, thinking, planning, etc.). It includes both hardware-level and software-level technologies. Artificial intelligence hardware technologies generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, and big data processing; artificial intelligence software technologies mainly include computer vision technology, speech recognition technology, natural language processing technology, machine learning / deep learning technology, big data processing technology, knowledge graph technology, and other major directions.
[0067] Cloud computing refers to a technology system that uses network access to elastically scalable shared physical or virtual resource pools. Resources can include servers, operating systems, networks, software, applications, and storage devices, and can be deployed and managed on demand and in a self-service manner. Cloud computing technology can provide efficient and powerful data processing capabilities for technical applications such as artificial intelligence and blockchain, as well as model training.
[0068] The embodiments described above are part of the embodiments of the present application, but not all of them. Based on the embodiments in the embodiments of the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the embodiments of the present application.
[0069] In the description of the embodiments of the present application, it should be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc. indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, or are the positions or positional relationships in which the product of the application is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the electric vehicle or component referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0070] In the description of the embodiments of the present application, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set", "install", "connect", and "connect" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0071] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-described embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-described embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A rendering method based on a WEB security isolation system, characterized in that: The method comprises: Collecting first data from the original website and collecting second data from the client; Preprocessing the first data and the second data and outputting them to a decision module to obtain target data, which is used as training data or test data for an AI model; The method of rendering the target data in the browser of the client is determined according to the current state of the AI model and preset rules.
2. The method according to claim 1, characterized in that The collecting of the first data from the original website and the collecting of the second data from the client include: Obtaining the page graphic complexity of the original website and reading the page content of the original website to generate the first data; Requesting to test the performance parameters of the client and obtaining the second data returned by the client, wherein the performance parameters include GPU performance, CPU performance, network bandwidth, and network latency.
3. The method according to claim 1, characterized in that After collecting the first data from the original website and the second data from the client, the process further includes data preprocessing: Cleaning the first data and the second data to remove abnormal data values; performing feature extraction and feature conversion on the first data and the second data; The first data and the second data are divided into a training set, a test set, and a validation set.
4. The method according to claim 1, wherein The decision module calls the inference interface of the AI model to determine the rendering method with the best performance relative to the target data, and the rendering method includes instruction rendering and pixel rendering.
5. The method according to claim 1, wherein The method of determining, based on the current state of the AI model and preset rules, how to render the target data in the browser of the client includes: When the current state of the AI model is not started or the training is not completed, the decision module determines the rendering method according to the preset rules, and inputs the target data into the AI model for training; When the current state of the AI model is started or training is completed, the decision module calls the inference interface of the AI model and determines the corresponding rendering method according to the output result of the target data in the AI model.
6. The method according to claim 5, characterized in that The method of determining a method for rendering the target data in the browser of the client according to the current state of the AI model and preset rules further includes: Corresponding to the instruction rendering mode output by the decision module, controlling the WEB security isolation system to transmit the graphics operation instruction from the server to the client browser, so that the graphics processing unit of the client browser executes the graphics operation instruction and renders the graphics on the client screen; Corresponding to the pixel rendering mode output by the decision module, the WEB security isolation system is controlled to transmit the pixel image obtained by server rendering to the client browser for display.
7. The method according to claim 1, characterized in that The AI model is trained under the framework of a decision tree or neural network, taking into account factors such as client capabilities, network transmission costs, hardware performance, graphics complexity, and historical data, so that a single rendering mode is automatically switched in the WEB security isolation system.
8. The method according to claim 7, characterized in that The method further comprises: According to the time period for updating the AI model set by the decision module, the target data is input as a training set into the trained AI model to obtain an updated AI model.
9. An electronic device based on a rendering method of a WEB security isolation system, characterized in that: include: Data acquisition module, data preprocessing module, AI model and decision-making module; at least one processor; and a memory communicatively coupled to the at least one processor; Wherein, the data collection module is configured to collect first data from the original website and second data from the client; The data preprocessing module is configured to perform data preprocessing on the first data and the second data, wherein the data preprocessing includes data cleaning, feature extraction and data classification; The AI model is configured to be added to the server side as an intelligent selection model for rendering mode; The decision module is configured to determine a method for rendering the target data in the browser of the client according to the current state of the AI model and preset rules; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to implement the method according to any one of claims 1 to 8.
10. A computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
Citation Information
Patent Citations
Page rendering method and device, electronic equipment and storage medium
CN112749358A
Image rendering method and device, equipment and medium
CN115454637A
Information display method and device, equipment and storage medium
CN117591217A
Web browser remoting using network vector rendering
US10452868B1
Web browser remoting across a network using draw commands
US20200250254A1
Cited By
Image rendering method and device, equipment and storage medium
CN119762650A
High-concurrency AI teaching-assistant digital human interaction system
CN120219583A
