A batch parallel printing method based on fault prediction and load balancing

Through the batch parallel printing method based on fault prediction and load balancing, the problems of printer system load imbalance and fault monitoring lag are solved, efficient, stable and reliable distribution of printing tasks is achieved, extending the service life of the equipment and reducing maintenance cost.

CN118377449BActive Publication Date: 2024-09-24XIAMEN LUJIANG TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410812034.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-24
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The load imbalance and fault monitoring lag of the printer system in the prior art lead to a decrease in production efficiency, which may cause economic losses, especially when instant document production, certificate production, and product printing are required.

Method used

Adopting a batch parallel printing method based on fault prediction and load balancing, by obtaining monitoring and work data of printing tasks, using a pre-trained fault prediction model to predict printer failure probability, classifying and sorting based on printer performance data, and dynamically polling to allocate printing tasks , ensuring efficient printer load balancing and task distribution.

Benefits of technology

By predicting printer failures in advance, we can reduce the risk of task interruption, improve system stability and reliability, avoid printer overload or idleness, extend the service life of equipment, reduce maintenance costs, and ensure efficient and high-quality distribution of printing tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118377449B
    Figure CN118377449B
Patent Text Reader

Abstract

The present invention discloses a batch parallel printing method based on fault prediction and load balancing, comprising: obtaining a number of tasks to be printed, dividing each task to be printed into a number of subtasks to be printed according to the printing type; obtaining monitoring data and working data of each printer, inputting the monitoring data and working data into a pre-trained fault prediction model to obtain the failure probability of the printer; classifying and sorting the printers according to the failure probability and performance data of each printer to form a printer recommendation sequence of different printing types; selecting the corresponding printer recommendation sequence according to the printing type of the subtask to be printed, and dynamically polling and allocating the subtask to be printed in the printer recommendation sequence according to the real-time load situation of the printer.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of batch parallel printing, and in particular to a batch parallel printing method based on fault prediction and load balancing. Background Art

[0002] Modern enterprises or factories rely on efficient and reliable printer systems to meet their daily work document processing needs or product printing needs. However, with the widespread use of these devices, their management and maintenance have become more complex and important. Unbalanced load and failure of printer systems can lead to reduced production efficiency and business interruption, especially in situations where instant document and certificate production and timely delivery of printed products are required, and even economic losses.

[0003] In the prior art, sensors are generally used to monitor abnormal sounds or temperature of printer hardware in real time, but these abnormalities are detected after the printer fails, so this type of fault monitoring has a lag. In order to ensure the timely and batch parallel printing of some important documents, labels, and printed products in enterprises or factories, multiple printers are usually used to work together. In the prior art, idle printers are manually selected for task allocation. Due to the risk of possible printer failure and the lag of sensor monitoring, printing failures often occur during printing, and maintenance personnel can often only repair the printer after it fails, resulting in work interruptions and reduced efficiency, which seriously affects the work and production efficiency of the enterprise or factory.

[0004] At the same time, after a failure occurs, large-scale printing requires re-allocation of printing resources. Generally, idle and fault-free printers are allocated by the server or manually according to the number of copies to improve efficiency. The existing technology generally finds the optimal printer based on the performance and idleness of the printer. The optimal printer calculated by this static allocation decision may have multiple optimal printers for one printing task. This allocation decision may only find one optimal printer. At the same time, in actual situations, using this allocation decision may result in the optimal printer corresponding to multiple printing tasks being the same. This decision-making method will increase the load of the optimal printer, thereby affecting the overall work efficiency.

[0005] The purpose of the present invention is to design a batch parallel printing method based on fault prediction and load balancing in view of the above-mentioned problems in the prior art. Summary of the invention

[0006] In view of this, the purpose of the present invention is to propose a batch parallel printing method based on fault prediction and load balancing to solve the above problems.

[0007] The present invention provides a batch parallel printing method based on fault prediction and load balancing, comprising:

[0008] Obtain a number of tasks to be printed, and divide each task to be printed into a number of subtasks to be printed according to the printing type;

[0009] Acquire monitoring data and working data of each printer, input the monitoring data and working data into a pre-trained fault prediction model, and obtain the fault probability of the printer;

[0010] Classify and sort the printers based on the failure probability and performance data of each printer to form a recommended sequence of printers for different printing types;

[0011] The corresponding printer recommendation sequence is selected according to the printing type of the subtask to be printed, and the subtask to be printed is dynamically polled and allocated in the printer recommendation sequence according to the real-time load of the printer.

[0012] Further, dividing each task to be printed into a plurality of subtasks to be printed according to the printing type includes:

[0013] Obtaining the number of text pages and image pages of the task to be printed, and determining whether the text and image of the task to be printed can be segmented;

[0014] If the text and image of the task to be printed can be divided, dividing the task to be printed into a text subtask and an image subtask;

[0015] If the text and image of the task to be printed cannot be separated, the task to be printed is marked as a mixed text and image task.

[0016] Further, the monitoring data and working data are obtained by the following steps:

[0017] Acquiring temperature data and audio data of each of the printers via networking;

[0018] The working data of each printer is obtained through networking, and the working data includes: printer temperature, printing speed, printing image parameters, consumables usage, error log, and cumulative equipment usage time.

[0019] Furthermore, the fault prediction model is obtained through the following pre-training steps:

[0020] Collect monitoring data and working data of several printers, divide the monitoring data and working data into several time series samples, calibrate the fault condition of each time series sample, extract the time characteristics and frequency domain characteristics of the time series samples, and form a time series sample training set;

[0021] The fault prediction model is constructed by a random forest model, and the fault prediction model is trained by a time series sample training set to obtain parameters of the fault prediction model.

[0022] Furthermore, the printers are classified and sorted according to the failure probability and performance data of each printer to form a recommended sequence of printers of different printing types, including:

[0023] The printing quality of each printer is scored based on the failure probability and text quality parameters of each printer, and a recommended sequence of text-type printers is formed according to the printing quality scores;

[0024] The printing quality of each printer is scored based on the failure probability and image quality parameters of each printer, and a recommended sequence of image printers is formed according to the printing quality scores.

[0025] Furthermore, the step of scoring the print quality of each printer according to the failure probability and text quality parameters of each printer and forming a recommended sequence of text-type printers according to the scores includes:

[0026] Obtaining text quality parameters of each printer, wherein the text quality parameters include: one or more of resolution, printing speed, and ink drop size;

[0027] Calculating a text quality score of the printer according to the text quality parameter and the maximum text quality parameter of all corresponding printers;

[0028] The text quality score of the printer is combined with the failure probability of the printer to calculate the comprehensive text score of the printer, and the text comprehensive scores are sorted to form the text class printer recommendation sequence.

[0029] Furthermore, the printing quality of each printer is scored according to the failure probability and image quality parameters of each printer, and a recommended sequence of image-type printers is formed according to the scores, including:

[0030] Obtaining image quality parameters of each of the printers, the image quality parameters including: one or more of resolution, color depth, ink drop size, grayscale level, and printing speed;

[0031] Calculating an image quality score of the printer according to the image quality parameter and the maximum image quality parameter of all corresponding printers;

[0032] The image quality score of the printer is combined with the failure probability of the printer to calculate the comprehensive image score of the printer, and the image comprehensive scores are sorted to form the image type printer recommendation sequence.

[0033] Further, the selecting a corresponding printer recommendation sequence according to the print type of the subtask to be printed includes:

[0034] Allocating the text subtask and the image subtask to the printer recommendation sequence of corresponding types respectively;

[0035] Compare the number of image pages and the number of text pages in the image-text mixed task. If the number of image pages and the number of text pages are different, assign the image-text mixed task to the printer recommended sequence of the printing type with more pages; if the number of image pages and the number of text pages are the same, assign the image-text mixed task to the printer recommended sequence with more idle load.

[0036] Furthermore, the dynamically polling and allocating the subtasks to be printed in the printer recommendation sequence according to the real-time load of the printer includes:

[0037] Collecting load information of each printer in the printer recommendation sequence in real time, wherein the load information includes one or more of: print queue length, response time, and task completion time;

[0038] Dynamically calculating the real-time load weight of each of the printers according to the load information of the printers;

[0039] Sorting the real-time load weights of the printers in combination with the print quality scores of the printers to obtain an idle load recommendation sequence;

[0040] In the idle load recommendation sequence, dynamic polling is performed according to the arrangement order to allocate the subtasks to be printed.

[0041] Furthermore, the calculation formula for dynamically calculating the weight of each printer is as follows:

[0042] ,

[0043] Among them, a, b, and c are adjustment coefficients.

[0044] Beneficial effects of the present invention:

[0045] First, by dividing the print task into text subtasks and image subtasks, these subtasks can be assigned to different performance printing devices, making full use of the resources of each printer and improving printing efficiency. After the task is divided, if the printing device where a subtask is located fails, only the subtask needs to be reassigned without affecting the printing of the entire task. This reduces the risk of interruption of printing tasks and improves the stability and reliability of the system.

[0046] Second, the monitoring data and working data are combined to judge the abnormality of the printer, which can predict the possible failure of the printer in advance. With the help of machine learning algorithms, possible failures can be predicted in advance to avoid production interruptions caused by sudden failures. The health score reflects the maintenance status and hardware health of the printer.

[0047] Third, by calculating the text quality score and image quality score, combined with the failure probability of the printer, a comprehensive score can be formed. This scoring method takes into account multiple dimensions, including print quality and printer reliability, making the recommended ranking results of each printer in different sequences more comprehensive and reliable. Several printers are formed into a recommendation list to avoid the situation where only one optimal printer is selected.

[0048] Fourth, by combining the real-time load weight with the print quality score, the ranking takes into account both the load of the printer and the print quality, ensuring that the task allocation is both efficient and high-quality. Dynamic polling is performed in the order of arrangement in the idle load recommendation sequence to achieve a balanced distribution of printing tasks. This dynamic polling mechanism ensures that each printer can receive tasks evenly, avoiding overuse of some devices while others are idle, which helps to extend the service life of the equipment and reduce maintenance costs. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0050] Figure 1 It is a flow chart of the method of this embodiment. DETAILED DESCRIPTION

[0051] To facilitate understanding by those skilled in the art, the structure of the present invention is now further described in detail with reference to the embodiments and the accompanying drawings. It should be understood that the steps mentioned in the present embodiment, unless otherwise specified in their order, can be adjusted in order according to actual needs, and can even be executed simultaneously or partially simultaneously.

[0052] like Figure 1 As shown, an embodiment of the present invention provides a batch parallel printing method based on fault prediction and load balancing, which is used to allocate a number of tasks to be printed to a number of printers;

[0053] Specifically, several printers are connected to a single server or a server cluster, and the method is configured on the single server or the server cluster.

[0054] The method comprises:

[0055] S1 obtains a number of tasks to be printed, and divides each task to be printed into a number of subtasks to be printed according to the printing type;

[0056] S101 obtains the number of text pages and image pages of the task to be printed, and determines whether the text and image of the task to be printed can be segmented;

[0057] S102: if the text and the image of the task to be printed can be divided, dividing the task to be printed into a text subtask and an image subtask;

[0058] S103: If the text and image of the task to be printed cannot be separated, the task to be printed is marked as a mixed text and image task.

[0059] In this step, by dividing the task to be printed into text subtasks and image subtasks, these subtasks can be assigned to different performance printing devices, making full use of the resources of each printer and improving printing efficiency. After the task is divided, if the printing device where a subtask is located fails, only the subtask needs to be reallocated without affecting the printing of the entire task. This reduces the risk of interruption of the printing task and improves the stability and reliability of the system. If text and images exist on the same page at the same time, they are marked with the image page number.

[0060] S2: acquiring monitoring data and working data of each printer, inputting the monitoring data and working data into a pre-trained fault prediction model, and obtaining the fault probability of the printer;

[0061] The monitoring data and working data are obtained by the following steps:

[0062] S201 obtains temperature data and audio data of each printer via networking;

[0063] S202 obtains the working data of each printer through networking, wherein the working data includes: printer temperature, printing speed, printing image parameters, consumables usage, error log, and cumulative device usage time.

[0064] In this step, a temperature sensor and a sound sensor are installed on each printer. Specifically, the temperature sensor is installed near the key components inside the printer, such as the motor, roller, etc., to monitor the temperature changes of the printer during operation; the sound sensor is installed on the printer shell, especially near the mechanical operation part, such as the paper conveying device, to monitor the sound changes of the printer during operation. The collected data are mainly audio data signals (amplitude, frequency, etc.). By analyzing these data, the operating volume and sound quality changes of the equipment can be understood. If the possible failure of the printer is judged only by the monitoring data of the printer, the printer may already have a failure problem, which may affect the printing efficiency at any time. Therefore, the working data of the printer must be combined. The working data is directly obtained by obtaining the printer equipment parameters and the data of daily records. For example, the error log records that the printer often jams. Combined with the audio data signal of the printer, it can be predicted in advance that the mechanical operation part of the printer may have a fault. By combining the monitoring data and the working data to judge the abnormality of the printer, the possible failure of the printer can be predicted in advance.

[0065] The fault prediction model is obtained through the following pre-training steps:

[0066] Collect monitoring data and working data of several printers, divide the monitoring data and working data into several time series samples, calibrate the fault condition of each time series sample, extract the time characteristics and frequency domain characteristics of the time series samples, and form a time series sample training set;

[0067] The fault prediction model is constructed by a random forest model, and the fault prediction model is trained by a time series sample training set to obtain parameters of the fault prediction model.

[0068] In this step, the fault condition of each time series sample is calibrated (0 is normal, 1 is fault), so that a value between 0 and 1 can be output when the model is output, indicating the probability that the printer may fail. The monitoring data and working data are divided into time series samples, for example, the data during each printing task is used as a sample. The time characteristics and frequency domain characteristics of the sample are extracted. Specifically, the time characteristic is the specific time when this sample occurs; the frequency domain characteristics can be extracted by fast Fourier transforming the audio data. With the help of machine learning algorithms, possible faults can be predicted in advance to avoid production interruptions caused by sudden faults. The maintenance status and hardware health of the printer are reflected through the health score.

[0069] Furthermore, the failure probability is converted into a health score through the health score formula. The health score formula is as follows: health score = 100 − (failure probability × 100). Maintenance warning is performed based on the health score:

[0070] If the health score is between 80 and 100, the printer is in good condition;

[0071] If the health score is in the range of 60-79, the printer status needs attention;

[0072] If the health score is in the range of 40-59, the printer status is high risk;

[0073] If the health score is in the range of 0-39, the printer status requires immediate maintenance.

[0074] Based on the maintenance warning of the health score, the operation and maintenance personnel are notified in time to carry out early inspection and maintenance of the printer, which improves system reliability and production efficiency and can effectively avoid printer failure during the printing process.

[0075] S3 classifies and sorts the printers based on the failure probability and performance data of each printer, forming a recommended sequence of printers for different printing types;

[0076] S301: scoring the print quality of each printer based on the failure probability and text quality parameters of each printer, and forming a recommended sequence of text-type printers according to the print quality scores;

[0077] S3011: obtaining text quality parameters of each printer, wherein the text quality parameters include: one or more of resolution, printing speed, and ink drop size;

[0078] S3012 calculating the text quality score of the printer according to the text quality parameter and the maximum text quality parameter among all corresponding printers;

[0079] S3013 combines the text quality score of the printer with the failure probability of the printer to calculate the comprehensive text score of the printer, and sorts the comprehensive text scores to form a recommended sequence of text-type printers.

[0080] S302: Score the print quality of each printer based on the failure probability and image quality parameters of each printer, and form a recommended sequence of image-type printers according to the print quality scores.

[0081] S3021: obtaining image quality parameters of each printer, wherein the image quality parameters include one or more of resolution, color depth, ink drop size, grayscale level, and printing speed;

[0082] S3022 calculates the image quality score of the printer according to the image quality parameter and the maximum image quality parameter of all corresponding printers;

[0083] S3023 combines the image quality score of the printer with the failure probability of the printer to calculate the comprehensive image score of the printer, and sorts the comprehensive image scores to form a recommended sequence of image-type printers.

[0084] In this step, all printers are ranked by scores. The calculation method of the comprehensive text score and the comprehensive image score of the printer is the same, but the selected parameters are different. Each printer is ranked according to the corresponding score in the printer recommendation sequence.

[0085] The resolution of a printer is usually expressed in DPI (Dots Per Inch). The higher the DPI value, the clearer the details of the printed output. Common resolutions include 300 DPI, 600 DPI, 1200 DPI, etc.

[0086] Color depth refers to the number of bits per pixel, usually expressed in bits. Common color depths include 24 bits, 30 bits, 36 bits, etc. Higher color depth can provide more color details, especially when printing photos;

[0087] Some high-end inkjet printers allow the droplet size to be adjusted. Smaller droplets can provide higher image details. Common droplet sizes are 1-2 pL, 3-5 pL, 6-9 pL, 10 pL and above.

[0088] The grayscale level of a printer indicates the number of gray levels that can be expressed. More grayscale levels can provide smoother gradient effects. Common grayscale levels include 2 grayscale levels, 4 grayscale levels, 16 grayscale levels, 256 grayscale levels, and 4096 grayscale levels.

[0089] Taking the comprehensive image score as an example, the image quality parameters of each printer are obtained, and the maximum value of the image quality parameters of all printers is used as a comparison reference. For example, printer A (resolution is 300, color depth is 30 bits, grayscale level is 256, printing speed is 20PPM, and failure probability is 0.7), printer B (resolution is 600, color depth is 36 bits, grayscale level is 256, printing speed is 20PPM, and failure probability is 0.3), and printer C (resolution is 1200, color depth is 30 bits, grayscale level is 256, printing speed is 15PPM, and failure probability is 0.2). When the image quality parameters and failure probability are equally important, the image quality score is calculated as follows:

[0090] The comprehensive image score of printer A = 0.5 (0.25 (300 / 1200) + 0.25 (30 / 36) + 0.25 (256 / 256) + 0.25 (20 / 20)) + 0.5 (1-0.7) = 0.5354;

[0091] The comprehensive image score of printer B = 0.5 (0.25 (600 / 1200) + 0.25 (36 / 36) + 0.25 (256 / 256) + 0.25 (20 / 20)) + 0.5 (1-0.3) = 0.7875;

[0092] The comprehensive image score of Printer C = 0.5 (0.25 (1200 / 1200) + 0.25 (30 / 36) + 0.25 (256 / 256) + 0.25 (15 / 20)) + 0.5 (1-0.2) = 0.8479.

[0093] By calculating the text quality score and image quality score and combining them with the failure probability of the printer, a comprehensive score can be formed. This scoring method takes into account multiple dimensions, including print quality and printer reliability, making the recommended ranking results of each printer in different sequences more comprehensive and reliable. Several printers are formed into a recommendation list to avoid the situation where only one optimal printer is selected. Task allocation can be implemented subsequently in a dynamic polling manner.

[0094] S4 selects a corresponding printer recommendation sequence according to the printing type of the subtask to be printed, and dynamically polls and allocates the subtask to be printed in the printer recommendation sequence according to the real-time load of the printer.

[0095] S401 assigning the text subtask and the image subtask to the printer recommendation sequence of corresponding types respectively;

[0096] S402 compares the number of image pages and the number of text pages in the image-text mixed task. If the number of image pages and the number of text pages are different, the image-text mixed task is assigned to the printer recommended sequence of the printing type with more pages. If the number of image pages and the number of text pages are the same, the image-text mixed task is assigned to the printer recommended sequence with more idle load.

[0097] In this step, different types of tasks (text and images) can be assigned to printers that are good at handling these tasks according to their characteristics. For example, some printers are faster and have higher quality when processing text, while some printers are more suitable for image printing, ensuring that each content can be output with the highest quality. For mixed text and image tasks, assigning them to the corresponding printers according to the task type with a large number of pages can avoid assigning a large number of image subtasks to printers that are good at text printing, and vice versa. This optimizes the load distribution of printers, reduces task waiting time, and improves overall printing speed and efficiency. When the number of image pages and text pages is the same, the system chooses to assign the task to the printer with less load, which can avoid overloading some printers while other printers are idle.

[0098] S403 collects load information of each printer in the printer recommendation sequence in real time, wherein the load information includes one or more of: print queue length, response time, and task completion time;

[0099] S404 dynamically calculates the real-time load weight of each of the printers according to the load information of the printers;

[0100] Specifically, the calculation formula for dynamically calculating the weight of each printer is as follows:

[0101] ,

[0102] Among them, a, b, and c are adjustment coefficients.

[0103] S405: Sort the real-time load weights of the printers in combination with the print quality scores of the printers to obtain an idle load recommendation sequence;

[0104] S406: Dynamically polling in the idle load recommendation sequence according to the arrangement order to allocate the subtasks to be printed.

[0105] In this step, the print queue length indicates the number of tasks currently waiting in the print queue. The longer the queue length is, the higher the printer load is. The response time indicates the time from receiving a task to starting to process the task. The longer the response time is, the lower the efficiency of the printer in processing the task is. The task completion time indicates the time required to print a task. It can include the average task completion time and the estimated completion time of the current task.

[0106] By collecting printer load information in real time, the working status of each printer can be understood in a timely manner, providing accurate data support. The dynamically calculated load weight reflects the current workload of the printer, ensuring that the load of each printer can be balanced during the task allocation process to avoid overload or idleness. Combining the real-time load weight with the print quality score for sorting, both the load of the printer and the print quality are taken into account, ensuring that the task allocation is both efficient and high-quality. Dynamic polling is performed in the order of arrangement in the idle load recommendation sequence to achieve a balanced distribution of printing tasks. This dynamic polling mechanism ensures that each printer can receive tasks evenly, avoiding overuse of some devices while others are idle, which helps to extend the service life of the equipment and reduce maintenance costs.

[0107] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0108] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0109] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0110] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0111] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claim. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The invention may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0112] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0113] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

[0114] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like 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 an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between 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.

[0115] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms should not be understood as necessarily being directed to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.

Claims

1. A batch parallel printing method based on fault prediction and load balancing, characterized in that: Used to assign several print jobs to several printers, including: Get several tasks to be printed, and divide each task to be printed into several subtasks to be printed according to the printing type. Specifically, Obtaining the number of text pages and image pages of the task to be printed, and determining whether the text and image of the task to be printed can be segmented; If the text and image of the task to be printed can be divided, dividing the task to be printed into a text subtask and an image subtask; If the text and image of the task to be printed cannot be separated, the task to be printed is marked as a mixed text and image task; Acquire monitoring data and working data of each printer, input the monitoring data and working data into a pre-trained fault prediction model, and obtain the fault probability of the printer; The printers are classified and sorted according to the failure probability and performance data of each printer to form a recommended sequence of printers for different printing types. Specifically, The printing quality of each printer is scored based on the failure probability and text quality parameters of each printer, and a recommended sequence of text-type printers is formed according to the printing quality scores; The printing quality of each printer is scored based on the failure probability and image quality parameters of each printer, and a recommended sequence of image-based printers is formed according to the printing quality scores; According to the printing type of the subtask to be printed, a corresponding printer recommendation sequence is selected, and the subtask to be printed is dynamically polled and allocated in the printer recommendation sequence according to the real-time load of the printer. Specifically, Collecting load information of each printer in the printer recommendation sequence in real time, wherein the load information includes one or more of: print queue length, response time, and task completion time; Dynamically calculating the real-time load weight of each of the printers according to the load information of the printers; Sorting the real-time load weights of the printers in combination with the print quality scores of the printers to obtain an idle load recommendation sequence; In the idle load recommendation sequence, dynamic polling is performed according to the arrangement order to allocate the subtasks to be printed.

2. A batch parallel printing method based on fault prediction and load balancing according to claim 1, characterized in that: The monitoring data and working data are obtained by the following steps: Acquiring temperature data and audio data of each of the printers via networking; The working data of each printer is obtained through networking, and the working data includes: printer temperature, printing speed, printing image parameters, consumables usage, error log, and cumulative equipment usage time.

3. The batch parallel printing method based on fault prediction and load balancing according to claim 1, characterized in that: The fault prediction model is obtained through the following pre-training steps: Collect monitoring data and working data of several printers, divide the monitoring data and working data into several time series samples, calibrate the fault condition of each time series sample, extract the time characteristics and frequency domain characteristics of the time series samples, and form a time series sample training set; The fault prediction model is constructed by a random forest model, and the fault prediction model is trained by a time series sample training set to obtain parameters of the fault prediction model.

4. The batch parallel printing method based on fault prediction and load balancing according to claim 1, characterized in that: The step of scoring the print quality of each printer based on the failure probability and text quality parameters of each printer and forming a recommended sequence of text-type printers according to the scores includes: Obtaining text quality parameters of each printer, wherein the text quality parameters include: one or more of resolution, printing speed, and ink drop size; Calculating a text quality score of the printer according to the text quality parameter and the maximum text quality parameter of all corresponding printers; The text quality score of the printer is combined with the failure probability of the printer to calculate the comprehensive text score of the printer, and the text comprehensive scores are sorted to form the text class printer recommendation sequence.

5. The batch parallel printing method based on fault prediction and load balancing according to claim 1, characterized in that: The step of scoring the print quality of each printer based on the failure probability and image quality parameters of each printer and forming a recommended sequence of image-based printers according to the scores includes: Obtaining image quality parameters of each of the printers, the image quality parameters including: one or more of resolution, color depth, ink drop size, grayscale level, and printing speed; Calculating an image quality score of the printer according to the image quality parameter and the maximum image quality parameter of all corresponding printers; The image quality score of the printer is combined with the failure probability of the printer to calculate the comprehensive image score of the printer, and the image comprehensive scores are sorted to form the image type printer recommendation sequence.

6. The batch parallel printing method based on fault prediction and load balancing according to claim 1, characterized in that: The selecting a corresponding printer recommendation sequence according to the print type of the subtask to be printed includes: Allocating the text subtask and the image subtask to the printer recommendation sequence of corresponding types respectively; Compare the number of image pages and the number of text pages in the image-text mixed task. If the number of image pages and the number of text pages are different, assign the image-text mixed task to the printer recommended sequence of the printing type with more pages; if the number of image pages and the number of text pages are the same, assign the image-text mixed task to the printer recommended sequence with more idle load.

7. The batch parallel printing method based on fault prediction and load balancing according to claim 1, characterized in that: The calculation formula for dynamically calculating the weight of each printer is as follows: , where a, b, and c are adjustment coefficients.