A method of monitoring a print consumable level
By establishing a modified model based on polynomial regression and sine function in the monitoring of printing consumables remaining quantity, and combining environmental and wire characteristic parameters, the impact of environmental and material changes on monitoring accuracy and stability in existing technologies has been resolved, achieving higher accuracy and adaptability in monitoring.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN ELEGOO TECH CO LTD
- Filing Date
- 2024-11-15
- Publication Date
- 2026-05-05
AI Technical Summary
Existing printing consumables balance monitoring technologies lack accuracy and stability when facing complex and ever-changing working environments. They fail to fully consider the influence of environmental parameters and filament characteristics, resulting in poor adaptability and robustness.
By acquiring the pressure value and wire condition under preset environmental parameters, a simulated wire running program is executed to record the pressure value and length. A correction model based on polynomial regression and sine function is established, and the model is adjusted in combination with parameters such as temperature and humidity to calculate the current remaining wire length.
It improves the accuracy and robustness of printing consumable balance monitoring, enhances the system's adaptability in complex and changing environments, and ensures that monitoring results maintain high accuracy and stability under various conditions.
Smart Images

Figure CN119526759B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of consumables balance monitoring technology, specifically a method for monitoring the balance of printing consumables. Background Technology
[0002] Filament level monitoring technology is a crucial component of 3D printing, aiming to monitor the remaining filament amount in real time during the printing process to ensure its continuity and reliability. Early filament level monitoring methods relied primarily on simple mechanical sensors and weight measuring devices. While these methods provided basic monitoring capabilities, they had significant limitations in accuracy and adaptability. With the continuous development of 3D printing technology, the requirements for filament level monitoring have gradually increased. In recent years, pressure sensor-based monitoring methods have been widely applied, inferring the remaining filament amount by measuring pressure changes in the filament spool. This method offers high sensitivity and accuracy, meeting the needs of practical applications to a certain extent.
[0003] Despite significant advancements in existing printing filament level monitoring technologies, several shortcomings remain. First, most existing technologies focus on a single pressure value or a simple linear relationship, failing to adequately account for pressure variations from an empty to a full filament. This results in poor model adaptability under varying load conditions. Second, existing technologies typically neglect the impact of environmental parameters (such as temperature and humidity) and filament characteristics (such as material and diameter) on the monitoring results, limiting the robustness and accuracy of the monitoring system. For example, the physical properties of the filament change under different temperature and humidity conditions, affecting pressure sensor readings. Furthermore, the filament material and diameter also influence the pressure-length relationship, factors often overlooked in existing technologies. Consequently, current monitoring methods struggle to maintain high accuracy and stability in complex and variable working environments. Finally, most existing technologies employ simple linear models or static parameters, lacking dynamic response capabilities to environmental and material changes, thus limiting their applicability and reliability in practical applications. Summary of the Invention
[0004] In view of the problems existing in the prior art, the present invention is proposed.
[0005] To address the aforementioned technical problems, this invention provides a method for monitoring the remaining amount of printing consumables, which can solve the problems mentioned in the background art.
[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: a method for monitoring the remaining amount of printing consumables, comprising: acquiring a first pressure value in an empty disk state and a second pressure value in a full disk state under preset environmental parameters; executing a simulated filament running program based on a predetermined type of filament, and recording a third pressure value and the corresponding remaining filament length during the filament extraction process; establishing a correction model of pressure and remaining filament length based on the first pressure value, the second pressure value, the third pressure value, the remaining filament length, the preset environmental parameters, and the predetermined type of filament; collecting the current environmental parameters, the current pressure value, and the currently used filament type, and inputting them into the correction model to calculate the current remaining filament length.
[0007] As a preferred embodiment of the method for monitoring the remaining amount of printing consumables according to the present invention, obtaining a first pressure value in the empty spool state and a second pressure value in the full spool state under preset environmental parameters includes the following steps: installing an empty spool onto a spool holder, adjusting the ambient temperature and humidity to preset values, and collecting the first pressure value output by a pressure sensor; winding a predetermined weight of filament onto the empty spool to obtain a full spool; and collecting the second pressure value output by the pressure sensor.
[0008] The second pressure value corresponds to the wire reel in the full state.
[0009] As a preferred embodiment of the method for monitoring the remaining amount of printing consumables according to the present invention, the method includes the following steps: based on a predetermined type of filament, a simulated filament running program is executed under the preset environmental parameters to record the third pressure value and the corresponding remaining filament length during the filament extraction process. These steps include: starting the simulated filament running program under the preset environmental parameters and pulling the filament on a full filament reel at a preset rate; acquiring the third pressure value output by the pressure sensor during the pulling process and recording the acquisition time; calculating the extracted filament length based on the preset rate and the recorded acquisition time, and determining the remaining filament length based on the extracted filament length and the initial filament length; repeating the above steps until the remaining filament length reaches a preset threshold.
[0010] As a preferred embodiment of the method for monitoring the remaining amount of printing consumables according to the present invention, if the third pressure value is found to remain stable for more than two consecutive times during repeated execution, the simulated filament running program is stopped and the following situation is checked: if the third pressure value is equal to or less than the first pressure value, it is determined that the filament has been completely extracted.
[0011] If the third pressure value is greater than the second pressure value, check for wire tangling or jamming and remove it.
[0012] If the third pressure value is between the first and second pressure values but does not change over time, check whether the current environmental parameters are consistent with the preset environmental parameters. If they are inconsistent, adjust to the preset environmental parameters and restart the step "collect the third pressure value output by the pressure sensor during traction and record the collection time". If they are consistent, check whether the traction mechanism is faulty, repair it and restart the step "collect the third pressure value output by the pressure sensor during traction and record the collection time".
[0013] If the change in the third pressure value exceeds the first preset range, check the working status of the pressure sensor, confirm whether there is any damage or signal interference, repair or replace the pressure sensor, and then restart the step "collect the third pressure value output by the pressure sensor during traction and record the collection time"; if the pressure sensor is working normally, check whether the quality of the wire is consistent, eliminate the wire quality problem, and then restart the step "collect the third pressure value output by the pressure sensor during traction and record the collection time".
[0014] As a preferred embodiment of the method for monitoring the remaining amount of printing consumables according to the present invention, the following steps are included: establishing a correction model for pressure and remaining filament length based on the first pressure value, the second pressure value, the third pressure value, the remaining filament length, preset environmental parameters, and a predetermined type of filament: calculating the pressure change range of the filament reel from an empty reel state to a full reel state according to the first pressure value and the second pressure value; fitting a relationship curve between pressure and remaining filament length based on the dataset of the third pressure value and the corresponding remaining filament length, and the pressure change range; adjusting the relationship curve according to a first correction factor, and generating a correction model for pressure and remaining filament length; verifying the correction model by comparing the actual remaining filament length with the output value of the correction model, and if an error exists, adjusting the parameters of the correction model according to the error until the preset accuracy requirement is met.
[0015] As a preferred embodiment of the method for monitoring the remaining amount of printing consumables according to the present invention, the method includes the following steps: based on the dataset of the third pressure value and the corresponding remaining filament length, and the pressure variation range, fitting a relationship curve between pressure and remaining filament length.
[0016] Construct a fitting model, represented as:
[0017]
[0018] Where L is the remaining wire length; L total ΔP is the total length of the wire; P is the current pressure value; k is the correction coefficient; ΔP2 is the second pressure value when the reel is full; ΔP1 is the first pressure value when the reel is empty.
[0019] Data preparation: Extract the third pressure value P from the records. i With the corresponding remaining wire length L i dataset (P) i ,L i ), calculate the third pressure value P i Relative position P within the range of pressure variation relative The dataset (P) is obtained. relative ,L i ), the dataset (P) relative ,L i It is divided into training set and validation set.
[0020] Preliminary estimate L total Initialize k, fit L using the training set and nonlinear least squares method. total and k;
[0021] The performance of the fitted model is verified. After successful verification, the parameters of the fitted model are refitted to obtain the final L. total and the value of k.
[0022] Record the final determined relationship curve equation:
[0023]
[0024] The first correction factor includes preset environmental parameters and characteristic parameters of a predetermined type of wire; wherein the characteristic parameters of the preset environmental parameters include a temperature sensitivity coefficient C. T and humidity sensitivity coefficient C H The characteristic parameters of the predetermined type of wire include the elastic modulus E of the current wire and the elastic modulus E of the reference wire. ref The current wire density ρ, and the reference wire density ρ ref .
[0025] As a preferred embodiment of the method for monitoring the remaining amount of printing consumables according to the present invention, the following steps are included: adjusting the relationship curve according to a first correction factor and generating a correction model of pressure and remaining filament length:
[0026] Obtain the current ambient temperature T and current ambient humidity H, and compare them with the reference ambient temperature T. ref and reference ambient humidity H ref Compare.
[0027] Based on temperature sensitivity coefficient C T Humidity sensitivity coefficient C H Current ambient temperature T, current ambient humidity H, reference ambient temperature T ref and reference ambient humidity H ref The current pressure value P is corrected to obtain P.corrected :
[0028]
[0029] in, α is the rate of change of pressure with respect to temperature; α is the linear thermal expansion coefficient of the wire. β is the rate of change of pressure with respect to humidity; β is the moisture absorption coefficient of the wire.
[0030] Based on the current wire's elastic modulus E and the reference wire's elastic modulus E ref The current wire density ρ, and the reference wire density ρ ref Given the initial correction coefficient k0, the correction coefficient k is adjusted to obtain the corrected correction coefficient k′:
[0031]
[0032] P corrected Substituting the corrected coefficient k′ into the final determined relationship curve equation, we obtain the corrected model, expressed as:
[0033]
[0034]
[0035] To further address the aforementioned technical problems, the present invention provides the following technical solution: a system for monitoring the remaining amount of printing consumables, comprising: an acquisition module for acquiring a first pressure value in an empty disk state and a second pressure value in a full disk state under preset environmental parameters; an execution recording module for executing a simulated filament running program based on a predetermined type of filament, and recording a third pressure value and the corresponding remaining filament length during the filament extraction process; a model building module for establishing a correction model of pressure and remaining filament length based on the first pressure value, the second pressure value, the third pressure value, the remaining filament length, the preset environmental parameters, and the predetermined type of filament; and a calculation module for collecting the current environmental parameters, the current pressure value, and the currently used filament type, and inputting them into the correction model to calculate the current remaining filament length.
[0036] A computer device includes a memory and a processor, the memory storing a computer program, characterized in that the processor executes the computer program to implement the steps of the method for monitoring the remaining amount of printing consumables as described above.
[0037] A computer-readable storage medium having a computer program stored thereon, characterized in that, when the computer program is executed by a processor, it implements the steps of the method for monitoring the remaining amount of printing consumables as described above.
[0038] The beneficial effects of this invention are as follows: By introducing preset environmental parameters and characteristic parameters of a predetermined type of filament as correction factors, and combining polynomial regression, sine function, and logarithmic function to fit the relationship curve between pressure and remaining filament length, this invention not only significantly improves the accuracy and robustness of printing consumable balance monitoring but also enhances the system's adaptability to complex and variable working environments. By calculating the pressure change range of the filament reel from an empty to a full state and establishing a more accurate mathematical model based on this, this invention can more accurately reflect the relationship between pressure and remaining filament length under different load conditions. Furthermore, by introducing environmental parameters such as temperature and humidity, as well as characteristic parameters such as filament material and diameter, the model is further adjusted and optimized, ensuring that the monitoring results maintain high accuracy and stability under various practical application conditions. Attached Figure Description
[0039] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0040] Figure 1 The flowchart illustrates the overall process of a method for monitoring the remaining amount of printing consumables according to an embodiment of the present invention.
[0041] Figure 2 This is a computer device diagram of the method for monitoring the remaining amount of printing consumables according to the present invention. Detailed Implementation
[0042] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present invention, and not all of them. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the protection scope of the present invention.
[0043] Many specific details are set forth in the following description in order to provide a full understanding of the invention. However, the invention may also be practiced in other ways different from those described herein, and those skilled in the art can make similar extensions without departing from the spirit of the invention. Therefore, the invention is not limited to the specific embodiments disclosed below.
[0044] Example 1, referring to Figure 1 As an embodiment of the present invention, a method for monitoring the remaining amount of printing consumables is provided, comprising:
[0045] First, existing technologies focus only on a single pressure value or a simple linear relationship, failing to adequately consider the pressure variation range from empty to full, resulting in poor model adaptability under different load conditions. Second, existing technologies typically do not consider the impact of environmental parameters (such as temperature and humidity) and wire characteristic parameters (such as material and diameter) on the monitoring results, limiting the robustness and accuracy of the monitoring system. For example, the physical properties of the wire change under different temperature and humidity conditions, affecting the pressure sensor readings. Furthermore, the material and diameter of the wire also influence the relationship between pressure and length, factors often overlooked in existing technologies. Therefore, existing monitoring methods struggle to maintain high accuracy and stability in complex and variable working environments. Finally, most existing technologies employ simple linear models or static parameters, lacking dynamic response capabilities to environmental and material changes, which limits their applicability and reliability in practical applications.
[0046] This application provides a method that can effectively solve the problems mentioned above. The following will describe in detail how to implement the method for monitoring the remaining amount of printing consumables with multiple embodiments.
[0047] Figure 1 A flowchart illustrating an overall method for monitoring printing consumable balance is shown, including:
[0048] S1: Obtain the first pressure value in the empty disk state and the second pressure value in the full disk state under preset environmental parameters;
[0049] S2: Based on the predetermined type of wire, execute the simulated wire running program, and record the third pressure value and the corresponding remaining wire length during the wire extraction process;
[0050] S3: Based on the first pressure value, the second pressure value, the third pressure value, the remaining wire length, the preset environmental parameters, and the predetermined type of wire, establish a correction model for pressure and remaining wire length;
[0051] S4: Collect the current environmental parameters, current pressure value, and current cable type, and input them into the correction model to calculate the current remaining cable length.
[0052] This embodiment will describe S1 to S4 in detail one by one:
[0053] S1: Obtain the first pressure value for an empty disk and the second pressure value for a full disk under preset environmental parameters.
[0054] S1.1: Install the empty wire reel into the wire reel bracket, adjust the ambient temperature and humidity to the preset values, and collect the first pressure value output by the pressure sensor.
[0055] It should be noted that the installation process of the empty filament spool must ensure its stable placement on the filament spool holder so that the pressure sensor can accurately sense its weight. Since changes in temperature and humidity can cause slight expansion or contraction of the filament and equipment components, thus affecting the pressure reading, the ambient temperature and humidity must be adjusted during measurement to eliminate their influence. Typically, a constant temperature and humidity chamber or a sophisticated environmental control system can be used to achieve the preset temperature and humidity conditions. The selection of preset values should consider the common operating environment of the 3D printer; for example, the temperature might be set at 23±1℃ and the relative humidity at 50±5%. Furthermore, the first pressure value collected by the pressure sensor represents the initial state of the system.
[0056] In this embodiment, the first pressure value is the pressure value measured in the empty reel state, representing the pressure when there is no wire.
[0057] S1.2: Keep the ambient temperature and humidity constant, and wind a predetermined weight of wire onto the empty wire spool to obtain a full wire spool.
[0058] It should be noted that maintaining constant ambient temperature and humidity during wire winding ensures consistent measurement conditions. The predetermined weight of wire typically corresponds to the standard capacity of the wire reel for that model, such as 1 kg or 2 kg, depending on the printer and wire specifications. The winding process should be performed uniformly to ensure consistent wire distribution on the reel and avoid uneven weight distribution affecting pressure measurements. Furthermore, specialized wire winding equipment or trained operators can be used to perform this step to ensure consistent and repeatable winding. A full reel can be defined as wire wound to within 1-2 mm of the edge of the reel.
[0059] S1.3: Collect the second pressure value output by the pressure sensor, where the second pressure value corresponds to the wire reel in a full state.
[0060] The second pressure value is the pressure value under full load conditions, representing the pressure corresponding to the maximum weight of the wire.
[0061] It should be noted that this step obtains the second pressure value under full-reel conditions, comparing it with the empty-reel condition. The pressure sensor used in this invention has sufficient accuracy and range to accurately measure the entire weight range from empty to full, and the pressure sensor accuracy can reach ±0.1% of full scale or higher. The second pressure value should be collected when the wire reel is completely stationary to eliminate dynamic influences, and multiple measurements can be taken and averaged to improve data reliability. The second pressure value, together with the first pressure value, constitutes two key points in the relationship between wire weight and pressure, laying the foundation for establishing a more accurate wire balance estimation model.
[0062] S2: Based on the predetermined type of wire (specifically under preset environmental parameters), execute a simulated wire running program, and record the third pressure value and the corresponding remaining wire length during the wire extraction process.
[0063] S2.1: Keep the preset environmental parameters in S1 unchanged, start the simulated wire running program, and pull the wire on the full wire spool at the preset rate.
[0064] S2.2: During the traction process, the third pressure value output by the pressure sensor is collected and the collection time is recorded.
[0065] S2.3: Calculate the length of the extracted wire based on the preset rate and the recorded acquisition time, and determine the remaining wire length based on the extracted wire length and the initial wire length.
[0066] Specifically, the remaining wire length is obtained by subtracting the length of the pulled-out wire from the initial wire length.
[0067] S2.4: Repeat steps S2.2 and S2.3 until the remaining wire length reaches the preset threshold.
[0068] It should be noted that the preset threshold refers to a critical value set by the system for the remaining wire length. When the remaining wire in the wire spool reaches or falls below this critical value, the system will stop the simulated wire running program and may trigger corresponding alarms or prompts. In this invention, the preset threshold is a key parameter used to determine when to stop the simulated wire running program. This threshold represents a safe remaining wire length to ensure sufficient time for wire replacement or other maintenance operations before continuing operation. The specific value of the preset threshold depends on several factors, including but not limited to the frequency of wire use, the duration of the printing task, and the user's requirements for safety margin. By setting a reasonable preset threshold, the system can provide early warning of impending wire depletion, thereby avoiding production interruptions or equipment damage due to insufficient wire. The determination of the preset threshold is usually based on experimental data and the actual needs of the user to ensure its applicability and reliability in different application scenarios.
[0069] Furthermore, if the third pressure value remains stable for more than two consecutive times during repeated execution, stop the simulation thread running program and check the following:
[0070] If the third pressure value is equal to or less than the first pressure value, then the cable is considered completely withdrawn. It's important to note that after the cable is completely withdrawn, the cable reel should return to a near-empty state, at which point the pressure value should be equal to or very close to the first pressure value. Therefore, if the third pressure value is equal to or less than the first pressure value, it can be inferred that the cable has been completely withdrawn. This step ensures that the system can accurately identify situations where the cable is depleted, avoiding equipment damage or other problems caused by continuing operation due to insufficient cable.
[0071] If the third pressure value is greater than the second pressure value, check for wire tangling or jamming and take appropriate measures to remove it. It's important to note that under normal circumstances, the pressure should gradually decrease as the wire is gradually pulled out. If the pressure suddenly increases and exceeds the second pressure value after a certain point, this may be due to additional resistance caused by wire tangling, knotting, or jamming. This abnormality requires immediate inspection to avoid equipment damage or data distortion. This assessment allows for timely detection and resolution of wire tangling or jamming issues, ensuring the normal operation of the system.
[0072] If the third pressure value is between the first and second pressure values, but does not change over time, then:
[0073] Check if the current environmental parameters are consistent with the preset environmental parameters. If they are inconsistent, adjust them to the preset environmental parameters and restart S2.2. It is important to note that changes in environmental parameters (such as ambient temperature and humidity) may affect the pressure sensor readings. Even if preset environmental parameters have been set in S2.1, these parameters may change during actual operation. If the third pressure value does not change over time, first confirm whether the current environmental parameters still meet the preset conditions. If they are inconsistent, adjust them to the preset values and restart S2.2. This will eliminate the influence of environmental factors on the measurement results.
[0074] If consistent, check the traction mechanism for malfunctions (such as unstable traction force or stuck mechanical parts), repair them, and restart S2.2. Note that if the current environmental parameters remain unchanged, but the third pressure value remains constant, this may indicate a problem with the traction mechanism. For example, unstable traction force or stuck mechanical parts can prevent the cable from being pulled out properly. In this case, the traction mechanism needs to be inspected and any discovered faults repaired to ensure smooth cable extraction and restore normal data acquisition.
[0075] If the change in the third pressure value exceeds the first preset range, then:
[0076] Check the pressure sensor's operating status to confirm whether it is damaged or subject to signal interference. Repair or replace the pressure sensor before restarting step S2.2. It is important to note that the pressure sensor's operating status directly affects the accuracy of the pressure value. If the third pressure value changes beyond the first preset range, this may indicate a sensor malfunction or interference from external signals. By inspecting the pressure sensor and repairing or replacing any faulty sensors, data accuracy can be ensured, thereby improving the reliability of the entire monitoring system.
[0077] If the pressure sensor is working properly, check the consistency of the wire quality. After ruling out wire quality issues, restart step S2.2. It's important to note that wire quality (such as diameter and material consistency) can also affect pressure value changes. If the pressure sensor is working properly but the pressure value is still abnormal, check the consistency of the wire quality. For example, variations in wire diameter or uneven material can cause pressure fluctuations. Eliminating wire quality issues further ensures the reliability and consistency of the data.
[0078] It should be noted that the first preset range refers to the allowable fluctuation range of the third pressure value under normal operating conditions. This range is determined through experiments or theoretical calculations during system design and is used to determine whether the pressure value output by the pressure sensor is in normal working condition. Specifically, the first preset range defines that the change in the third pressure value should remain within a specific numerical range during two or more consecutive data acquisitions. For example, if the pressure change under normal operating conditions is ±0.5 Newtons, then the first preset range can be set to ±0.5 Newtons. In this invention, the first preset range is to ensure that the pressure value output by the pressure sensor during wire extraction remains within the expected range. By setting a specific numerical range, the system can monitor and identify abnormal pressure changes. If the change in the third pressure value exceeds this first preset range, it may indicate a pressure sensor malfunction, wire quality problems, or other external interference.
[0079] S3: Based on the first pressure value, the second pressure value, the third pressure value, the remaining wire length, the preset environmental parameters, and the predetermined type of wire, establish a correction model for pressure and remaining wire length.
[0080] S3.1: Calculate the pressure change range of the wire reel from an empty reel to a full reel based on the first pressure value and the second pressure value.
[0081] Existing technologies typically focus only on a single pressure value or a simple linear relationship, without explicitly considering the pressure variation range from an empty to a full reel. This leads to poor adaptability of the subsequently developed correction model under different load conditions. Therefore, by calculating the pressure variation range, this invention can more accurately describe the pressure change of the wire reel from empty to full, providing more comprehensive basic data for subsequent modeling. This step ensures the applicability and accuracy of the correction model under different load conditions.
[0082] Specifically, the formula for calculating the pressure variation range is:
[0083] ΔP = P2 - P1;
[0084] Where ΔP is the pressure variation range; P2 is the second pressure value under full pan conditions; and P1 is the first pressure value under empty pan conditions.
[0085] S3.2: Based on the dataset of the third pressure value and the corresponding remaining wire length, and the range of pressure variation, fit the relationship curve between pressure and remaining wire length.
[0086] Specifically, in practical applications of printing consumable monitoring, the weight distribution of the filament may be uneven, and the geometry of the filament reel can affect the relationship between pressure and length. Therefore, this invention proposes the following fitting model:
[0087]
[0088] Where L is the remaining wire length; L total is the total length of the wire; P is the current pressure value; k is the correction coefficient, which is related to the specific geometry of the wire reel (such as diameter, height ratio, etc.) and can be obtained by fitting experimental data.
[0089] It should be noted that the first item This calculation is based on the remaining length under ideal conditions. The square root term takes into account the effect of uneven wire weight distribution, since the wire weight is proportional to the square of its radius. The second term... This is a correction term that takes into account the influence of the wire reel geometry. The sine function simulates the nonlinear relationship caused by the shape of the wire reel, especially the changes when the reel is near empty and full.
[0090] Ideally, when P = P1, L = L total When P2 = P1, L = 0, which is consistent with the actual situation.
[0091] Further, data preparation is performed: a) Extract the dataset of the recorded third pressure value and the corresponding remaining wire length, represented as (P i ,L i The third pressure value is P. i L i b) Calculate the third pressure value P, corresponding to the remaining wire length. i Relative position within the range of pressure variation: Obtain the dataset (P) relative ,L i c) Transfer the dataset (P) relative ,l i The dataset is divided into a training set and a validation set, with a ratio of 8:2.
[0092] Then, initial parameter estimation is performed: a) Based on the wire specifications and experimental setup, a preliminary estimate of l is made. total b) Initialize k to a small positive number, such as 0.1.
[0093] Next, parameter fitting is performed, specifically by using the training set and a nonlinear least squares method (such as the Levenberg-Marquardt algorithm) to fit the parameters L. total The characters 'k' and 'k' are existing technologies, so they will not be discussed in detail here.
[0094] Model validation: a) Evaluate the performance of the fitted model using the validation set. b) Calculate the coefficient of determination R. 2 c) If the performance on the validation set is not ideal, return to the previous steps to adjust the initial parameters or modify the optimization strategy, and then re-perform parameter fitting.
[0095] Finally, after confirming that the performance of the fitted model on the validation set meets the requirements, the model parameters are refitted using the entire dataset to obtain the final L. total and the value of k.
[0096] Record the final determined relationship curve equation:
[0097]
[0098] It is important to note that all relevant parameter values (L) should be saved. total (k, P1, P2), for use in subsequent steps.
[0099] S3.3: Adjust the relationship curve according to the first correction factor and generate a corrected model of pressure and remaining wire length.
[0100] Obtain the current ambient temperature T and current ambient humidity H, and compare them with the reference ambient temperature T. ref and reference ambient humidity H ref Compare.
[0101] The first correction factor includes preset environmental parameters and characteristic parameters of a predetermined type of wire. The characteristic parameters of the preset environmental parameters include the temperature sensitivity coefficient C. T and humidity sensitivity coefficient C H The characteristic parameters of the predetermined type of wire include the elastic modulus E of the current wire and the elastic modulus E of the reference wire. ref The current wire density ρ, and the reference wire density ρ ref .
[0102] Temperature sensitivity coefficient C T :
[0103]
[0104] in, α is the rate of change of pressure with respect to temperature (obtained experimentally); α is the linear thermal expansion coefficient of the wire; E is the elastic modulus.
[0105] Humidity sensitivity coefficient C H :
[0106]
[0107] in, β is the rate of change of pressure with respect to humidity (obtained experimentally); β is the moisture absorption coefficient of the wire, representing the proportion of mass change caused by moisture absorption.
[0108] Based on temperature sensitivity coefficient C T Humidity sensitivity coefficient C H Current ambient temperature T, current ambient humidity H, reference ambient temperature T ref and reference ambient humidity H ref The current pressure value P is corrected to obtain P. corrected :
[0109]
[0110] Based on the current wire's elastic modulus E and the reference wire's elastic modulus E ref The current wire density ρ, and the reference wire density ρ ref Given the initial correction coefficient k0, the correction coefficient k is adjusted to obtain the corrected correction coefficient k′:
[0111]
[0112] P corrected Substituting the corrected coefficient k′ into the final determined relationship curve equation, we obtain the corrected model, expressed as:
[0113]
[0114] S3.4: Verify the correction model by comparing the actual remaining wire length with the output value of the correction model. If there is an error, adjust the parameters of the correction model according to the error until the preset accuracy requirement is met.
[0115] Specifically, the error between the remaining wire length output by the correction model and the actual value is calculated. If the error exceeds the second preset range, then k0 and T are optimized. ref or H ref The model is iteratively adjusted and corrected using parameters until the accuracy requirements are met.
[0116] Preferably, this invention improves the accuracy and adaptability of the printing consumable balance monitoring method by introducing a first correction factor, based on preset environmental parameters and characteristic parameters of a predetermined type of filament. Compared with existing technologies, it has the following advantages: First, traditional technologies often rely on a single pressure measurement value, failing to fully consider the influence of environmental factors such as temperature and humidity, leading to significant errors in the monitoring results. This invention, by comprehensively considering environmental parameters and filament characteristics, employs a correction model to dynamically adjust the relationship between pressure and remaining filament length, ensuring more accurate monitoring results under various environmental conditions. Second, it has strong adaptability. As the physical properties of materials and changes in environmental conditions increasingly affect the filament's usage status, this invention, by introducing temperature and humidity sensitivity coefficients, can adapt to the characteristics of different environments and materials, enabling the monitoring system to maintain high efficiency and stable performance even under varying working conditions. Finally, most existing technologies are limited to simple linear models or static parameters, lacking the ability to dynamically respond to changes in the environment and materials. The correction model of this invention not only possesses complex nonlinear characteristics but also can make feedback adjustments based on real-time measurement data during actual operation, thereby achieving more efficient monitoring in practical applications.
[0117] S4: Collect current environmental parameters, current pressure value, and current cable type, input them into the correction model, and calculate the current remaining cable length.
[0118] In summary, this invention, by introducing preset environmental parameters and characteristic parameters of a predetermined type of filament as correction factors, and combining polynomial regression, sine function, and logarithmic function fitting to fit the relationship curve between pressure and remaining filament length, not only significantly improves the accuracy and robustness of printing consumable balance monitoring but also enhances the system's adaptability to complex and variable working environments. By calculating the pressure change range of the filament reel from an empty to a full state and establishing a more accurate mathematical model based on this, this invention can more accurately reflect the relationship between pressure and remaining filament length under different load conditions. Furthermore, by introducing environmental parameters such as temperature and humidity, as well as characteristic parameters such as filament material and diameter, the model is further adjusted and optimized, ensuring that the monitoring results maintain high accuracy and stability under various practical application conditions.
[0119] Example 2, an embodiment of the present invention, provides a system for monitoring the remaining amount of printing consumables, comprising: an acquisition module for acquiring a first pressure value in an empty disk state and a second pressure value in a full disk state under preset environmental parameters; an execution recording module for executing a simulated filament running program based on a predetermined type of filament, and recording a third pressure value and the corresponding remaining filament length during the filament extraction process; a model building module for establishing a correction model of pressure and remaining filament length based on the first pressure value, the second pressure value, the third pressure value, the remaining filament length, the preset environmental parameters, and the predetermined type of filament; and a calculation module for collecting the current environmental parameters, the current pressure value, and the currently used filament type, inputting them into the correction model, and calculating the current remaining filament length.
[0120] Example 3, referring to Figure 2 This is one embodiment of the present invention, which differs from the previous embodiment in that: if the function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.
[0121] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a sequenced list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can fetch and execute instructions from, an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by, or in conjunction with, an instruction execution system, apparatus, or device.
[0122] More specific examples of computer-readable media (a non-exhaustive list) include: electrical connections (electronic devices) having one or more wires, portable computer disk drives (magnetic devices), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). Furthermore, computer-readable media can even be paper or other suitable media on which the program can be printed, because the program can be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, interpreting, or otherwise processing as necessary, and then stored in computer memory.
[0123] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0124] Example 4 is an embodiment of the present invention, which provides a method for monitoring the remaining amount of printing consumables. In order to verify the beneficial effects of the present invention, scientific demonstration is carried out through economic benefit calculation and simulation experiment.
[0125] First, this embodiment selected three commonly used 3D printing filaments: PLA, ABS, and PETG. Multiple identical full-spool samples were prepared for each filament. The experimental environment was set up with nine different temperature and humidity combinations: temperatures of 15°C, 25°C, and 35°C, paired with relative humidity of 30%, 50%, and 70%. Under each environmental condition, this embodiment used a precision pressure sensor and length measuring device to record the actual remaining filament length and corresponding pressure value at fixed intervals as the filament spool emptied. Simultaneously, this embodiment collected environmental parameters in real time, including temperature and humidity data. This data constituted the basic dataset for the experiment in this embodiment.
[0126] Subsequently, this embodiment applies both the present invention and existing technologies to predict the remaining wire length. For the present invention, an initial relationship curve based on pressure and remaining length is first established, and then dynamically corrected according to real-time environmental parameters and wire characteristics to obtain the final prediction result. For existing technologies, this embodiment uses a common linear model for prediction, which only considers a simple correspondence between pressure values and remaining length. During the experiment, this embodiment focuses on three performance indicators: prediction accuracy (evaluated by comparing the error between predicted and actual values), environmental adaptability (observing the prediction effect under different environmental conditions), and computational efficiency (recording the computation time required for each prediction). By comparing and analyzing these indicators, this embodiment comprehensively evaluates the advantages and improvements of the present invention compared to existing technologies.
[0127] Table 1 Comparison with Existing Technologies
[0128]
[0129] As shown in Table 1, the prediction error rate of this invention is significantly lower than that of the prior art under various conditions. The advantages of this invention are particularly evident under extreme environmental conditions (such as 15℃ / 30% humidity and 35℃ / 70% humidity). For example, for ABS wire at 35℃ / 70% humidity, the error rate of this invention is only 1.2%, while the error rate of the prior art is as high as 8.2%. This fully demonstrates the superiority of this invention in terms of environmental adaptability.
[0130] Furthermore, this invention demonstrates excellent adaptability to different types of wires (PLA, ABS, PETG), with an error rate generally maintained at around 1%, while existing technologies exhibit larger fluctuations in error rates across different wire types. This indicates that this invention can better adapt to the characteristics of different wires, improving the system's versatility and practicality.
[0131] It should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and are not intended to limit it. Although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention, and all such modifications or substitutions should be covered within the scope of the claims of the present invention.
Claims
1. A method for monitoring the remaining amount of printing consumables, characterized in that, include: Obtain the first pressure value for an empty disk and the second pressure value for a full disk under preset environmental parameters; Based on a predetermined type of wire, a simulated wire running program is executed to record the third pressure value and the corresponding remaining wire length during the wire extraction process. Based on the first pressure value, the second pressure value, the third pressure value, the remaining wire length, the preset environmental parameters, and the predetermined type of wire, a correction model for pressure and remaining wire length is established. Collect current environmental parameters, current pressure value, and current cable type, and input them into the correction model to calculate the current remaining cable length; Based on the first pressure value, the second pressure value, the third pressure value, the remaining wire length, preset environmental parameters, and the predetermined type of wire, a correction model for pressure and remaining wire length is established, including the following steps: Based on the first pressure value and the second pressure value, calculate the pressure change range of the wire reel from the empty reel state to the full reel state; Based on the dataset of the third pressure value and the corresponding remaining wire length, and the range of pressure variation, a curve relating pressure and remaining wire length is fitted. The relationship curve is adjusted according to the first correction factor, and a correction model of pressure and remaining wire length is generated. Verify the correction model by comparing the actual remaining wire length with the output value of the correction model. If there is an error, adjust the parameters of the correction model according to the error until the preset accuracy requirement is met. Based on the dataset of the third pressure value and the corresponding remaining wire length, and the pressure variation range, a curve relating pressure and remaining wire length is fitted, including the following steps: Construct a fitting model, represented as: ; in, This represents the remaining wire length. This refers to the total length of the wire. This is the current pressure value; This is a correction factor; This is the second pressure value when the plate is fully loaded; This is the first pressure value when the disk is empty; Data preparation: Extract the third stress value from the records. and corresponding remaining wire length dataset Calculate the third pressure value Relative position within the range of pressure variation , obtain dataset , the dataset Divided into training set and validation set; Preliminary estimate and initialization Fitting using the training set and nonlinear least squares method and ; The performance of the fitted model is verified. After successful verification, the parameters of the fitted model are refitted to obtain the final result. and value; Record the final determined relationship curve equation: ; The first correction factor includes preset environmental parameters and characteristic parameters of a predetermined type of wire; wherein the characteristic parameters of the preset environmental parameters include a temperature sensitivity coefficient. and humidity sensitivity coefficient The characteristic parameters of the predetermined type of wire include the elastic modulus of the current wire. E , reference wire elastic modulus E ref Current wire density ρ and the density of the reference wire. ρ ref .
2. The method for monitoring the remaining amount of printing consumables as described in claim 1, characterized in that: Obtaining the first pressure value for an empty disk and the second pressure value for a full disk under preset environmental parameters includes the following steps: Install the empty wire reel into the wire reel bracket, adjust the ambient temperature and humidity to the preset values, and collect the first pressure value output by the pressure sensor. A predetermined weight of wire is wound onto the empty wire spool to obtain a full wire spool. Acquire the second pressure value output by the pressure sensor; The second pressure value corresponds to the wire reel in the full state.
3. The method for monitoring the remaining amount of printing consumables as described in claim 2, characterized in that: Based on a predetermined type of wire, a simulated wire-running program is executed under the preset environmental parameters, recording the third pressure value and the corresponding remaining wire length during the wire extraction process, including the following steps: Under the preset environmental parameters, start the simulated wire running program to pull the wire on the full wire spool at a preset rate; Collect the third pressure value output by the pressure sensor during traction and record the collection time; The length of the extracted wire is calculated based on the preset rate and the recorded acquisition time, and the remaining wire length is determined based on the extracted wire length and the initial wire length. Repeat the above steps until the remaining wire length reaches the preset threshold.
4. The method for monitoring the remaining amount of printing consumables as described in claim 3, characterized in that: If the third pressure value remains stable for more than two consecutive times during repeated execution, stop the simulation wire running program and check for the following situations: If the third pressure value is equal to or less than the first pressure value, then the wire is determined to be completely pulled out. If the third pressure value is greater than the second pressure value, check for wire tangling or jamming and remove it. If the third pressure value is between the first pressure value and the second pressure value, but does not change over time, check whether the current environmental parameters are consistent with the preset environmental parameters. If they are inconsistent, adjust to the preset environmental parameters and restart the step "collect the third pressure value output by the pressure sensor during traction and record the collection time". If they match, check if there is a malfunction in the traction mechanism. After repairing it, restart the step "collect the third pressure value output by the pressure sensor during the traction process and record the collection time". If the change in the third pressure value exceeds the first preset range, check the working status of the pressure sensor, confirm whether there is any damage or signal interference, repair or replace the pressure sensor, and then restart the step "collect the third pressure value output by the pressure sensor during traction and record the collection time"; if the pressure sensor is working normally, check whether the quality of the wire is consistent, eliminate the wire quality problem, and then restart the step "collect the third pressure value output by the pressure sensor during traction and record the collection time".
5. The method for monitoring the remaining amount of printing consumables as described in claim 4, characterized in that: The relationship curve is adjusted according to the first correction factor, and a corrected model of pressure versus remaining wire length is generated, including the following steps: Get the current ambient temperature T and current ambient humidity H and with reference ambient temperature T ref and reference ambient humidity H ref Compare; Based on temperature sensitivity coefficient Humidity sensitivity coefficient Current ambient temperature T Current ambient humidity H Reference ambient temperature T ref and reference ambient humidity H ref Regarding the current pressure value Make corrections to obtain : ; ; ; in, The rate of change of pressure with respect to temperature; is the linear thermal expansion coefficient of the wire; This represents the rate of change of pressure with respect to humidity. The moisture absorption coefficient of the wire; Based on the current elastic modulus of wire E , reference wire elastic modulus E ref Current wire density ρ and the density of the reference wire. ρ ref and initial correction coefficient k 0, for the correction factor Make corrections to obtain the corrected correction coefficients. : ; Will and the corrected correction factor Substituting into the final determined relationship curve equation, we obtain the modified model, expressed as: 。 6. A system employing the method for monitoring the remaining amount of printing consumables as described in any one of claims 1 to 5, characterized in that, include: The acquisition module is used to acquire the first pressure value of the empty disk state and the second pressure value of the full disk state under preset environmental parameters; The execution recording module is used to execute a simulated wire running program based on a predetermined type of wire, and record the third pressure value and the corresponding remaining wire length during the wire extraction process; The model building module is used to build a correction model of pressure and remaining wire length based on the first pressure value, the second pressure value, the third pressure value, the remaining wire length, preset environmental parameters, and a predetermined type of wire. The calculation module is used to collect current environmental parameters, current pressure values, and the type of cable currently being used, and input them into the correction model to calculate the current remaining cable length; The model building module is used to calculate the pressure change range of the wire reel from an empty reel state to a full reel state based on the first pressure value and the second pressure value; fit a relationship curve between pressure and remaining wire length based on the dataset of the third pressure value and the corresponding remaining wire length, and the pressure change range; adjust the relationship curve according to the first correction factor and generate a correction model of pressure and remaining wire length; verify the correction model by comparing the actual remaining wire length with the output value of the correction model, and if there is an error, adjust the parameters of the correction model according to the error until the preset accuracy requirement is met; The model building module is used for: Construct a fitting model, represented as: ; in, This represents the remaining wire length. This refers to the total length of the wire. This is the current pressure value; This is a correction factor; This is the second pressure value when the plate is fully loaded; This is the first pressure value when the disk is empty; Data preparation: Extract the third stress value from the records. and corresponding remaining wire length dataset Calculate the third pressure value Relative position within the range of pressure variation , obtain dataset , the dataset Divided into training set and validation set; Preliminary estimate and initialization Fitting using the training set and nonlinear least squares method and ; The performance of the fitted model is verified. After successful verification, the parameters of the fitted model are refitted to obtain the final result. and value; Record the final determined relationship curve equation: ; The first correction factor includes preset environmental parameters and characteristic parameters of a predetermined type of wire; wherein the characteristic parameters of the preset environmental parameters include a temperature sensitivity coefficient. and humidity sensitivity coefficient The characteristic parameters of the predetermined type of wire include the elastic modulus of the current wire. E , reference wire elastic modulus E ref Current wire density ρ and the density of the reference wire. ρ ref .
7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method for monitoring the remaining amount of printing consumables as described in any one of claims 1 to 5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for monitoring the remaining amount of printing consumables as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Consumable monitoring method, image forming device, electronic equipment and storage medium
CN118082373A