Liquid separation surface position determination method, device, equipment and storage medium
By installing ultrasonic sensors in the reactor to acquire liquid characteristic data, and using weighted averaging and weighting coefficient adjustments, the problem of liquid medium changes affecting the determination of the liquid separation surface was solved, achieving more accurate control of the liquid separation surface position and improving the stability of chemical production.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- BEIJING EDTEK INTELLIGENT TECH CO LTD
- Filing Date
- 2024-06-27
- Publication Date
- 2026-08-04
AI Technical Summary
Existing technologies cannot accurately determine the location of the liquid separation surface when the turbidity, color, flow state, and conductivity of the liquid medium change, which affects the efficiency and safety of chemical production.
By setting at least two ultrasonic sensors at different depths in the reactor, liquid characteristic data are acquired, and the relative position between the liquid separation surface and the sensors is determined by weighted averaging and weighting coefficient adjustment.
It improves the accuracy of determining the location of the liquid separation surface, reduces the impact on changes in the turbidity, color, flow pattern and conductivity of the liquid medium, and ensures the stable operation of chemical production.
Smart Images

Figure CN118706225B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of data processing technology, and in particular to a method, apparatus, device, and storage medium for determining the position of a liquid level. Background Technology
[0002] Liquid level control is a crucial component of chemical equipment, impacting production efficiency, quality, and safety. The purpose of liquid level control is to maintain the interface between different liquids within a defined range to ensure normal equipment operation. Liquid level control requires first determining the position of the interface, and then adjusting the feed and discharge accordingly to keep the interface within a specified range.
[0003] Currently, methods such as float-based, inductive, and image processing are mainly used to determine the position of the liquid separation surface. However, these methods cannot accurately determine the position of the liquid separation surface when the turbidity, color, flow state, and conductivity of the liquid medium change. Therefore, improving the accuracy of liquid separation surface position determination is a technical problem that urgently needs to be solved by those skilled in the art. Summary of the Invention
[0004] In view of this, the present disclosure proposes a method, apparatus, device and storage medium for determining the position of the liquid separation surface, which can improve the accuracy of determining the position of the liquid separation surface.
[0005] According to a first aspect of this disclosure, a method for determining the position of the liquid separation surface is provided, comprising:
[0006] By using at least two ultrasonic sensors positioned at different depths in the reactor, liquid characteristic data corresponding to each ultrasonic sensor are acquired.
[0007] Based on the liquid characteristic value data corresponding to each of the ultrasonic sensors, the relative position between the liquid separation surface and each of the ultrasonic sensors is determined.
[0008] In one possible implementation, acquiring the liquid characteristic value data corresponding to the ultrasonic sensor includes:
[0009] The ultrasonic sensor continuously acquires a first number of initial bodily fluid characteristic value data.
[0010] The first liquid characteristic value data corresponding to the ultrasonic sensor is calculated by weighted averaging of each of the initial liquid characteristic value data.
[0011] The first liquid feature value data is added to the stack corresponding to the ultrasonic sensor, wherein the stack is used to store the second number of first liquid feature values calculated for the ultrasonic sensor.
[0012] Based on the first liquid characteristic value data stored in the stack, the liquid characteristic value corresponding to the ultrasonic sensor is calculated.
[0013] In one possible implementation, calculating the liquid characteristic value corresponding to the ultrasonic sensor based on each of the first liquid characteristic value data stored in the stack includes:
[0014] The weight coefficients corresponding to each first liquid feature value data are determined according to the order in which each first liquid feature value data enters the stack.
[0015] Based on the weighting coefficients corresponding to each of the first liquid feature value data, a weighted average is performed on each of the first liquid feature value data to obtain the liquid feature value corresponding to the ultrasonic sensor.
[0016] In one possible implementation, the weight coefficients corresponding to each of the first liquid feature values are increased sequentially in the order they enter the stack.
[0017] In one possible implementation, when determining the weight coefficients corresponding to each of the first liquid feature value data, the method further includes:
[0018] Extract the first liquid feature value that was recently added to the stack;
[0019] Determine whether the first liquid feature value recently added to the stack exceeds a preset value range;
[0020] If the value exceeds the specified range, the weight coefficient corresponding to the first liquid feature value newly added to the stack is reduced and adjusted.
[0021] Based on the weighting coefficients corresponding to the adjusted first liquid feature value data, a weighted average is performed on each first liquid feature value data to obtain the liquid feature value corresponding to the ultrasonic sensor.
[0022] In one possible implementation, determining the relative position between the liquid distribution surface and each of the ultrasonic sensors based on the liquid characteristic value data corresponding to each of the ultrasonic sensors includes:
[0023] Based on the liquid characteristic value data corresponding to each ultrasonic sensor, the liquid composition identifier at the depth position of each ultrasonic sensor is determined, wherein the liquid composition identifier includes a lower liquid composition identifier and an upper liquid composition identifier.
[0024] The liquid component markers at the depth locations of each ultrasonic sensor are sorted in descending order of depth to obtain the sorting result of the liquid component markers.
[0025] Based on the sorting results of the liquid component identifiers, the relative positions between the liquid distribution surface and each of the ultrasonic sensors are determined.
[0026] In one possible implementation, after acquiring the liquid characteristic value data corresponding to each of the ultrasonic sensors, the method further includes:
[0027] Determine whether the liquid characteristic value data corresponding to each of the ultrasonic sensors is valid;
[0028] If the liquid characteristic data corresponding to each ultrasonic sensor is determined to be valid, then the operation of determining the relative position between the liquid distribution surface and each ultrasonic sensor is performed based on the liquid characteristic data corresponding to each ultrasonic sensor.
[0029] According to a second aspect of this disclosure, a device for determining the position of a liquid separation surface is provided, comprising:
[0030] The liquid characteristic value data acquisition module is used to acquire liquid characteristic value data corresponding to each ultrasonic sensor by using at least two ultrasonic sensors set at different depth positions in the reactor.
[0031] The liquid separation surface position determination module is used to determine the relative position between the liquid separation surface and each of the ultrasonic sensors based on the liquid characteristic value data corresponding to each of the ultrasonic sensors.
[0032] According to a third aspect of this disclosure, a device for determining the position of a liquid level is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the method described in the first aspect of this disclosure.
[0033] According to a fourth aspect of this disclosure, a non-volatile computer-readable storage medium is provided that stores computer program instructions thereon, wherein the computer program instructions, when executed by a processor, implement the method described in the first aspect of this disclosure.
[0034] This disclosure provides a method, apparatus, device, and storage medium for determining the position of a liquid separation surface. The method includes: acquiring liquid characteristic value data corresponding to each ultrasonic sensor by using at least two ultrasonic sensors positioned at different depths in a reaction vessel; and determining the relative position between the liquid separation surface and each ultrasonic sensor based on the liquid characteristic value data corresponding to each ultrasonic sensor. In this disclosure, the relative position between the liquid separation surface and each ultrasonic sensor is determined based on the liquid characteristic value data detected by at least two ultrasonic sensors. Since the measurement results of the liquid characteristic value data are not affected by factors such as the turbidity, color, flow state, and conductivity of the liquid medium, the accuracy of liquid separation surface determination can be improved.
[0035] Other features and aspects of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description
[0036] The accompanying drawings, which are included in and form part of this specification, illustrate exemplary embodiments, features, and aspects of this disclosure together with the specification and serve to explain the principles of this disclosure.
[0037] Figure 1 A flowchart illustrating a method for determining the position of the liquid separation surface according to an embodiment of the present disclosure is shown;
[0038] Figure 2 A schematic diagram of the installation of a liquid level detection instrument according to an embodiment of the present disclosure is shown;
[0039] Figure 3 A schematic block diagram of a device for determining the position of the liquid separation surface according to an embodiment of the present disclosure is shown.
[0040] Figure 4 A schematic block diagram of a device for determining the position of the liquid separation surface according to an embodiment of the present disclosure is shown. Detailed Implementation
[0041] Various exemplary embodiments, features, and aspects of this disclosure will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.
[0042] The term “exemplary” as used herein means “serving as an example, embodiment, or illustration.” Any embodiment illustrated herein as “exemplary” is not necessarily to be construed as superior to or better than other embodiments.
[0043] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.
[0044] <Method Implementation>
[0045] Figure 1 A flowchart illustrating a method for determining the position of the liquid separation surface according to an embodiment of the present disclosure is shown. Figure 1 As shown, the method includes steps S1100-S1200.
[0046] S1100 uses at least two ultrasonic sensors positioned at different depths in the reactor to acquire liquid characteristic data corresponding to each ultrasonic sensor.
[0047] It should be noted that if there is only one liquid separation surface in the reaction vessel, at least two ultrasonic sensors are required. The specific number of ultrasonic sensors can be determined based on the control requirements of the liquid separation surface.
[0048] In one possible implementation, the liquid level needs to be controlled between a preset minimum liquid level height A and a preset maximum liquid level height C. In this implementation, two ultrasonic sensors, labeled as the first ultrasonic sensor and the second ultrasonic sensor, can be installed on the same vertical line of the reactor. The installation depth of the first ultrasonic sensor is determined based on the minimum liquid level height A and a preset low-level adjustment value a. Specifically, the sum of the minimum liquid level height A and the low-level adjustment value a is calculated, and this sum is used as the installation depth of the first ultrasonic sensor. The low-level adjustment value a can range from 0 to 100 mm, and preferably, it can be set to 50 mm. The installation depth of the second ultrasonic sensor is determined based on the maximum liquid level height C and a preset high-level adjustment value c. Specifically, the difference between the maximum liquid level height C and the high-level adjustment value c is calculated, and this difference is used as the installation depth of the second ultrasonic sensor. The high-level adjustment value c can range from 0 to 100 mm, and preferably, it can be set to 30 mm.
[0049] In this embodiment, the relative position between the output liquid distribution surface and each of the ultrasonic sensors can include one of Low (characterizing the liquid distribution surface is below the first ultrasonic sensor), Mid (characterizing the liquid distribution surface is between the first and second ultrasonic sensors), and High (characterizing the liquid distribution surface is above the second ultrasonic sensor). Thus, the relative position between the liquid distribution surface and each of the ultrasonic sensors is:
[0050] If the level is Low, the feed rate needs to be increased and the discharge rate reduced until the liquid level is restored to Mid, which allows the reactor to operate normally. Then, the feed and discharge rates should be restored to normal operating conditions.
[0051] In the case of Mid, maintain the feed and discharge rates as during normal operation;
[0052] If the level is High, the feed rate needs to be reduced and the discharge rate increased until the liquid level is restored to Mid, which allows the reactor to operate normally. Then, the feed and discharge rates should be restored to normal operating conditions.
[0053] In another possible implementation, a minimum liquid level height A, a lower limit of the preferred range F, an upper limit of the preferred range G, and a maximum liquid level height C are preset. During the control process, if the liquid level is lower than the minimum liquid level height A, a low liquid level alarm is required; when the liquid level is between the minimum liquid level height A and the lower limit of the preferred range F, the feed rate needs to be increased and the discharge rate decreased to restore the liquid level to between the upper limit of the preferred range G and the lower limit of the preferred range F; when the liquid level is between the upper limit of the preferred range G and the maximum liquid level height C, the feed rate needs to be decreased and the discharge rate increased to restore the liquid level to between the upper limit of the preferred range G and the lower limit of the preferred range F; when the liquid level is higher than the maximum liquid level height C, a high liquid level alarm is required.
[0054] To meet the liquid level control requirements of this feasible method, four ultrasonic sensors can be installed on the same vertical line of the reactor, labeled as the first ultrasonic sensor, the second ultrasonic sensor, the third ultrasonic sensor, and the fourth ultrasonic sensor. The installation depth of the first ultrasonic sensor is determined based on the lowest liquid level height A and a preset low-level adjustment value a. See the method for determining the depth of the first ultrasonic sensor in the previous embodiment for details, which will not be repeated here. The installation depth of the second ultrasonic sensor is determined based on the lower limit F of the preferred range; specifically, the lower limit F of the preferred range can be directly used as the installation depth of the second ultrasonic sensor. The installation depth of the third ultrasonic sensor is determined based on the upper limit G of the preferred range; specifically, the upper limit G of the preferred range can be directly used as the installation depth of the third ultrasonic sensor. The installation depth of the fourth ultrasonic sensor is determined based on the highest liquid level height C and a preset high-level adjustment value c. See the method for determining the depth of the second ultrasonic sensor in the previous embodiment for details, which will not be repeated here.
[0055] In this possible implementation, the relative position between the output liquid distribution surface and each of the ultrasonic sensors can include one of L Alm (characterizing the liquid distribution surface below the first ultrasonic sensor), Low (characterizing the liquid distribution surface between the first and second ultrasonic sensors), Mid (characterizing the liquid distribution surface between the second and third ultrasonic sensors), High (characterizing the liquid distribution surface between the third and fourth ultrasonic sensors), and H Alm (characterizing the liquid distribution surface above the fourth ultrasonic sensor). Thus, the relative position between the liquid distribution surface and each of the ultrasonic sensors is:
[0056] In the case of L Alm, a low liquid level alarm will be triggered;
[0057] If the level is Low, the feed rate needs to be increased and the discharge rate reduced until the liquid level is restored to Mid, which allows the reactor to operate normally. Then, the feed and discharge rates should be restored to normal operating conditions.
[0058] In the case of Mid, maintain the feed and discharge rates as during normal operation;
[0059] If the level is High, the feed rate needs to be reduced and the discharge rate increased until the liquid level is restored to Mid, which allows the reactor to operate normally. Then, the feed and discharge rates should be restored to normal operating conditions.
[0060] In the case of H Alm, a high liquid level alarm will be triggered.
[0061] In other possible implementations, more than 34 ultrasonic sensors can be set according to specific liquid level control requirements. The ultrasonic sensors can also be expanded to 1*8 (i.e., 1 column, a total of 8), 2*2 (i.e., 2 columns, 2 in each column), 2*4 (i.e., 2 columns, 4 in each column), 2*8 (i.e., 2 columns, 8 in each column), 4*4 (i.e., 4 columns, 4 in each column), 8*8 (i.e., 8 columns, 8 in each column), etc., which will not be elaborated here.
[0062] In one possible implementation, it can be achieved through, for example... Figure 2 The liquid level detection instrument shown uses at least two ultrasonic sensors positioned at corresponding depths within the reaction vessel. Specifically, as... Figure 2 As shown, the liquid level detection instrument includes a metering display, a flange, and a probe. The metering display is fixedly mounted on the upper end of the flange, and the probe is fixedly mounted on the lower end of the flange. At least two ultrasonic sensors are mounted on the probe. The length of the probe and the installation positions of the at least two ultrasonic sensors on the probe are determined based on the depth of each ultrasonic sensor in the reaction vessel calculated above. Thus, the liquid level detection instrument is mounted on the flange according to the following... Figure 2 Once the reactor is set up as shown, at least two ultrasonic sensors can be positioned at corresponding depths within the reactor via the probe end. Each ultrasonic sensor is communicatively connected to a metering display, allowing the display to acquire the liquid characteristic data corresponding to each ultrasonic sensor.
[0063] After the ultrasonic sensors are set at a predetermined depth in the reactor, the metering display can obtain liquid characteristic data at each depth through the ultrasonic sensors.
[0064] It should be noted here that before acquiring liquid characteristic data at each depth using individual ultrasonic sensors, the operating parameters of each ultrasonic sensor need to be uniformly set. Specifically, when acquiring liquid characteristic data at each depth using ultrasonic sensors, the operating parameters of each ultrasonic sensor need to be uniformly set. Figure 2In the embodiment where the liquid level detection instrument is used to determine the position of the liquid level, the operating parameters of each ultrasonic sensor can be uniformly set through the human-machine interface provided by the instrument's metering display. These operating parameters include at least one of the following: frequency division coefficient, number of excitation pulses, received signal gain, and received window length. The frequency division coefficient controls the transmission frequency of the ultrasonic sensor's excitation signal. This coefficient can include multiple levels, each corresponding to a different excitation signal transmission frequency. After selecting a frequency division coefficient level, the excitation signal will be transmitted according to the selected level's corresponding transmission frequency. For example, the frequency division information can be set to eight levels from 0 to 7, with corresponding excitation signal transmission frequencies of 8Hz, 4Hz, 2Hz, 1Hz, 500K, 250K, 125K, and 62.5K respectively. The default level is 2, meaning the excitation signal will be transmitted at a frequency of 2Hz when using the default level. The number of excitation pulses controls the number of pulses in the excitation signal. The range of the number of excitation pulses can be set according to the specific application scenario. For example, the number of excitation pulses can be set from 0 to 31. The default number of excitation pulses is 5, meaning each transmitted excitation pulse signal will contain 5 pulses. The received signal gain controls the amplification factor of the reflected wave generated by the excitation pulse signal. This received signal gain setting range can be configured according to the specific application scenario. The received signal gain can include multiple levels, each corresponding to a different amplification factor. After selecting the received signal gain level, the reflected wave will be amplified according to the selected level's amplification factor. For example, the received signal gain can be set to 8 levels from 0 to 7, with amplification factors of 0bB, 3bB, 6bB, 9bB, 12bB, 15bB, 18bB, and 21bB respectively. The default is level 0, meaning the reflected wave is amplified by 0, i.e., no amplification is applied. The received window length is used to remove the tailwave of the excitation wave signal, thus ensuring a clean echo (without frequency interference). The length of the receiving window can be set from 0 to 1023 µs. The default receiving window length is 0, and when the receiving window length is 0, the tailwave of the excitation signal is not removed.
[0065] When setting the operating parameters of an ultrasonic sensor, the parameters can be set to default values, or they can be adjusted within a range based on the accuracy of the calculated liquid characteristic values. For example, the intensity of the reflected wave can be enhanced by increasing the frequency division coefficient and / or the number of excitation pulses, thereby obtaining more accurate liquid characteristic values.
[0066] After setting the above operating parameters, each ultrasonic sensor will simultaneously acquire liquid characteristic value data at its respective depth according to the pre-set unified operating parameters. It should be noted that the process of acquiring liquid level characteristic value data at the depth of each ultrasonic sensor is the same; therefore, the following detailed explanation will use one ultrasonic sensor as an example.
[0067] In one possible implementation, acquiring the liquid characteristic value data corresponding to the ultrasonic sensor may include steps S1110-S1140.
[0068] S1110, the ultrasonic sensor continuously acquires a first number of initial body fluid characteristic value data. Specifically, after the test begins, the ultrasonic sensor emits an excitation signal according to the excitation signal transmission frequency corresponding to the selected frequency division coefficient. Each time an excitation signal is emitted, a start pulse signal is sent to the main control circuit in the metering display. After receiving the start pulse signal, the main control circuit starts a timer for the ultrasonic sensor. When the excitation signal encounters the metal reflective surface on the ultrasonic sensor, it generates a corresponding reflected wave signal. Each time a reflected wave signal is generated, an end pulse signal is sent to the main control circuit. After receiving the end pulse signal, the main control circuit stops the timer for the ultrasonic sensor. At this time, the timing result generated by the timer is the TOF value in the liquid at the depth of the ultrasonic sensor, and this TOF value is used as an initial liquid level characteristic value data at the depth of the ultrasonic sensor. In other words, each time the ultrasonic sensor emits an excitation signal, it generates an initial liquid level characteristic value data. In this way, while the ultrasonic sensor is emitting excitation signals at the set transmission frequency, the main control circuit can continuously acquire the initial liquid level characteristic value data at the depth of the ultrasonic sensor. After the main control circuit continuously acquires the first number of initial body fluid characteristic value data, it can execute step S1120. The first number can be in the range of 10-30. Preferably, the first number can be set to 25, that is, after acquiring 25 initial body fluid characteristic value data, step S1120 can be executed.
[0069] S1120, perform a weighted average of the initial liquid characteristic value data to calculate the first liquid characteristic value data corresponding to the ultrasonic sensor. Specifically, perform a weighted average of the first number of initial body fluid characteristic value data, and use the result of the weighted average as the first liquid characteristic value data corresponding to the ultrasonic sensor.
[0070] S1130, the first liquid characteristic value data is added to the stack corresponding to the ultrasonic sensor. The stack stores the second number of the first liquid characteristic values recently calculated for the ultrasonic sensor. This second number can range from 1 to 10, and preferably, it can be set to 4.
[0071] Specifically, each time a first liquid characteristic value is calculated for the ultrasonic sensor, the newly calculated first liquid characteristic value is added to the corresponding stack of the ultrasonic sensor. It should be noted that if the number of first liquid characteristic values stored in the stack corresponding to the ultrasonic sensor is less than the second number, newly calculated first liquid characteristic values can be directly stored sequentially in the stack until the number of first liquid characteristic values stored in the stack reaches the second number, at which point step S1140 is executed. If the number of first liquid characteristic values stored in the stack corresponding to the ultrasonic sensor is equal to the second number, the earliest calculated first liquid characteristic value needs to be removed from the stack, and then newly calculated first liquid characteristic values are stored sequentially in the stack, after which step S1140 can be executed.
[0072] S1140, Based on the first liquid characteristic value data stored in the stack, calculate the liquid characteristic value corresponding to the ultrasonic sensor. The specific calculation steps are as follows:
[0073] First, the weight coefficients corresponding to each first liquid feature value are determined according to the order in which they enter the stack. Specifically, each first liquid feature value is matched with a preset weight coefficient according to its order of entry into the stack. The earlier the first liquid feature value enters the stack, the smaller the weight coefficient it is matched with; the later it enters the stack, the larger the weight coefficient it is matched with. For example, when the second quantity is 4, four weight coefficients are preset: 0.4, 0.3, 0.2, and 0.1. When matching the weight coefficients, the corresponding weight coefficients are matched to 0.4, 0.3, 0.2, and 0.1 in the order in which the first liquid feature value enters the stack from earliest to latest.
[0074] Second, based on the weighting coefficients corresponding to each first liquid characteristic value data, a weighted average is performed on each first liquid characteristic value data to obtain the liquid characteristic value corresponding to the ultrasonic sensor.
[0075] To mitigate the impact of abnormal fluctuations in the first liquid characteristic value data on the accuracy of the final liquid characteristic value calculation, the following steps will be included when determining the weighting coefficients corresponding to each first liquid characteristic value data:
[0076] First, extract the first liquid feature value that was recently added to the stack.
[0077] Second, determine whether the first liquid feature value newly added to the stack exceeds the preset value range.
[0078] In one possible implementation, the preset value range may include a first preset value range and a second preset value range, wherein the first preset value range may be ±20% of the liquid characteristic value corresponding to the ultrasonic sensor calculated in the previous step, and the second preset value range may be ±10% of the liquid characteristic value corresponding to the ultrasonic sensor calculated in the previous step.
[0079] Third, if the value exceeds the specified range, the weight coefficient corresponding to the first liquid feature value newly added to the stack is reduced. For example, if the first liquid feature value newly added to the stack exceeds the first preset value range, the weight coefficient of the first liquid feature value newly added to the stack can be reduced to 0 to remove the first liquid feature value; if the first liquid feature value newly added to the stack exceeds the second preset value range, the weight coefficient of the first liquid feature value newly added to the stack can be reduced by 50%; otherwise, the weight coefficient of the first liquid feature value newly added to the stack is not adjusted.
[0080] Fourth, based on the weighting coefficients corresponding to the adjusted first liquid feature value data, a weighted average is performed on the first liquid feature value data to obtain the liquid feature value corresponding to the ultrasonic sensor.
[0081] By following the steps above, the liquid characteristic value data corresponding to each ultrasonic sensor can be obtained, and step S1200 can be executed. Based on the liquid characteristic value data corresponding to each ultrasonic sensor, the relative position between the liquid separation surface and each ultrasonic sensor can be determined.
[0082] In one possible implementation, when determining the relative position between the liquid distribution surface and each ultrasonic sensor based on the liquid characteristic value data corresponding to each ultrasonic sensor, steps S1210-S1230 may be included.
[0083] S1210, Based on the liquid characteristic value data corresponding to each ultrasonic sensor, determine the liquid composition identifier at the depth position of each ultrasonic sensor, wherein the liquid composition identifier includes the lower liquid composition identifier and the upper liquid composition identifier.
[0084] It should be noted that when uniformly setting the operating parameters of each ultrasonic sensor, it is also necessary to simultaneously set the upper liquid characteristic value, the lower liquid characteristic value, and the upper and lower limits of the liquid characteristic value. This allows the effective range of the upper liquid characteristic value to be calculated based on the upper liquid characteristic value and its upper and lower limits, and the effective range of the lower liquid characteristic value to be calculated based on the lower liquid characteristic value and its upper and lower limits.
[0085] Having calculated the effective ranges of the upper and lower liquid characteristic values, we can combine the liquid characteristic value data corresponding to each ultrasonic sensor to determine the liquid composition at the depth location of each ultrasonic sensor. The following explanation uses an ultrasonic sensor as an example.
[0086] Specifically, after obtaining the liquid characteristic value data corresponding to the ultrasonic sensor, it is determined whether the liquid characteristic value data is within the effective range of the upper liquid characteristic value or the lower liquid characteristic value: if it is within the effective range of the upper liquid characteristic value, the liquid composition identifier at the depth position of the ultrasonic sensor is set as the upper liquid composition identifier (e.g., T); if it is within the effective range of the lower liquid characteristic value, the liquid composition identifier at the depth position of the ultrasonic sensor is set as the lower liquid composition identifier (e.g., B).
[0087] S1220: Sort the liquid component markers at the depth positions of each ultrasonic sensor in descending order of depth to obtain the sorting result of the liquid component markers.
[0088] S1230, based on the sorting results of the liquid component identification, determines the relative position between the liquid distribution surface and each ultrasonic sensor.
[0089] It should be noted that the main control circuit stores a mapping table between various sorting results and their relative positions. Thus, after obtaining the sorting results of the liquid component identifiers, the relative positions between the liquid distribution surface and each ultrasonic sensor can be determined by querying the mapping table.
[0090] In an embodiment where four ultrasonic sensors are installed on the same vertical line of the reactor and labeled as the first ultrasonic sensor, the second ultrasonic sensor, the third ultrasonic sensor, and the fourth ultrasonic sensor, and the upper liquid component is labeled as T and the lower liquid component is labeled as B, the mapping relationship table can be as shown in the table below.
[0091]
[0092] Wherein, H Alm indicates that the liquid level is above the fourth ultrasonic sensor, meaning the liquid level is close to the maximum liquid level; High indicates that the liquid level is between the third and fourth ultrasonic sensors, meaning the liquid level is between the upper limit of the preferred range and the maximum liquid level; Mid indicates that the liquid level is between the second and third ultrasonic sensors, meaning the liquid level is between the upper limit and the lower limit of the preferred range; Low indicates that the liquid level is between the first and second ultrasonic sensors, meaning the liquid level is between the lower limit of the preferred range and the minimum liquid level; L Alm indicates that the liquid level is below the first ultrasonic sensor, meaning the liquid level is below the minimum liquid level.
[0093] After determining the relative positions of the liquid distribution surface and each ultrasonic sensor, the discharge process can be adjusted based on these relative positions to keep the liquid distribution surface within a preset range. Specific control methods are detailed above and will not be repeated here.
[0094] It should be noted that the determination of the liquid distribution surface position is performed continuously using the method described above. During continuous operation, invalid liquid characteristic value data (i.e., liquid characteristic value data of 0) may be present in the liquid characteristic value data corresponding to each ultrasonic sensor. In this case, to improve the accuracy of the liquid distribution surface position determination, after obtaining the liquid characteristic value data corresponding to each ultrasonic sensor, the following steps are also included: determining whether the liquid characteristic value data corresponding to each ultrasonic sensor is valid, that is, determining whether the liquid characteristic value data corresponding to each ultrasonic sensor contains a zero value. If it is not zero, the liquid characteristic value data corresponding to the ultrasonic sensor is considered valid; otherwise, it is considered invalid. If the liquid characteristic value data corresponding to each ultrasonic sensor is determined to be valid, then the operation of determining the relative position between the liquid distribution surface and each ultrasonic sensor is performed based on the liquid characteristic value data corresponding to each ultrasonic sensor.
[0095] If there is only one invalid data (i.e. only one zero value) in the liquid characteristic value data corresponding to each ultrasonic sensor, the relative position between the liquid distribution surface and each ultrasonic sensor will be determined based on the previously acquired set of valid liquid characteristic value data.
[0096] If at least two invalid data points (i.e., at least two zero values) exist in the liquid characteristic value data corresponding to each ultrasonic sensor, the time during which at least two invalid data points appear consecutively will be calculated, which is the abnormal time. If this abnormal time is less than or equal to a preset time threshold, the relative position between the liquid distribution surface and each ultrasonic sensor will be determined based on the latest set of valid liquid characteristic value data after recovery. If this abnormal time is greater than the preset time threshold, it will continue to be judged whether it is a regular zero jump, that is, the liquid characteristic value data corresponding to a certain ultrasonic sensor is continuously 0: if it is judged to be a regular zero jump, a system error will be output, indicating that the ultrasonic sensor with continuous zero jump has a equipment failure; if it is judged to be an irregular zero jump, an environmental error will be output. The environmental error includes, but is not limited to, empty pipes, excessively thick emulsion layer (i.e., the upper liquid and the lower liquid are mixed, and the mixing area exceeds 50mm), bubbles, excessive precipitation of solid particles, and other environments that are unfavorable to production.
[0097] In one possible implementation, the time threshold can be based on the following mean fuzzy algorithm. Specifically, it includes the following steps:
[0098] First, acquire a third set of liquid characteristic value data. Specifically, a liquid characteristic value data set is a combination of liquid characteristic value data corresponding to each ultrasonic sensor obtained in one calculation. This third set is the number of liquid characteristic value data sets that can be acquired within one second.
[0099] Second, the third number of liquid feature value data groups are combined in an n*m manner to obtain the target matrix. Here, n is the number of ultrasonic sensors in the reactor, and m is the number of liquid feature value data groups received within a set time. Specifically, when n is 4 and m is 500, the first row of the matrix represents a row of data formed by sequentially combining the 500 liquid feature value data groups collected by the first ultrasonic sensor within 1 second. The second row of the matrix represents a row of data formed by sequentially combining the 500 liquid feature value data groups collected by the second ultrasonic sensor within 1 second. The third row of the matrix represents a row of data formed by sequentially combining the 500 liquid feature value data groups collected by the second ultrasonic sensor within 1 second. The fourth row of the matrix represents a row of data formed by sequentially combining the 500 liquid feature value data groups collected by the fourth ultrasonic sensor within 1 second.
[0100] Third, the target matrix is processed as follows to obtain the time threshold K.
[0101]
[0102] In the formula, each 1 in the matrix corresponds to a liquid characteristic value data set, and Ksize.width is set according to the number of ultrasonic sensors. For example, with 4 ultrasonic sensors, Ksize.width is set to 4. Ksize.height is determined based on the number of liquid characteristic value data sets received within the set reception duration. For example, if the set reception duration is 1 second, and 500 liquid characteristic value data sets can be received within 1 second, then Ksize.height is set to 500.
[0103] In one possible implementation, to ensure the accuracy of the output results during the continuous output of the relative positions between the liquid distribution surface and each ultrasonic sensor, a historical continuity verification is performed. Specifically, after determining the relative positions between the liquid distribution surface and each ultrasonic sensor, it is determined whether the relative positions are continuous with the previously calculated relative positions. For example, given that the relative positions include Low, Mid, and High, the relative positions can change sequentially from Low to Mid and then to High, or vice versa. Such changes are continuous. However, if the output result changes directly from Low to High or directly from High to Low, it indicates that the current output relative position is not continuous with the previously calculated relative position. If continuity is determined, the determined relative positions between the liquid distribution surface and each ultrasonic sensor are then output. If discontinuity is determined, the current output result is filtered out, thereby improving the reliability of the output results.
[0104] This disclosure provides a method, apparatus, device, and storage medium for determining the position of a liquid separation surface. The method includes: acquiring liquid characteristic value data corresponding to each ultrasonic sensor by using at least two ultrasonic sensors positioned at different depths in a reaction vessel; and determining the relative position between the liquid separation surface and each ultrasonic sensor based on the liquid characteristic value data corresponding to each ultrasonic sensor. In this disclosure, the relative position between the liquid separation surface and each ultrasonic sensor is determined based on the liquid characteristic value data detected by at least two ultrasonic sensors. Since the measurement results of the liquid characteristic value data are not affected by factors such as the turbidity, color, flow state, and conductivity of the liquid medium, the accuracy of liquid separation surface determination can be improved.
[0105] <Device Embodiment>
[0106] Figure 3 A schematic block diagram of a device for determining the position of the liquid separation surface according to an embodiment of the present disclosure is shown.
[0107] like Figure 3 As shown, the device 100 includes:
[0108] The liquid characteristic value data acquisition module 110 is used to acquire liquid characteristic value data corresponding to each ultrasonic sensor by using at least two ultrasonic sensors set at different depth positions in the reactor.
[0109] The liquid separation surface position determination module 120 is used to determine the relative position between the liquid separation surface and each ultrasonic sensor based on the liquid characteristic value data corresponding to each ultrasonic sensor.
[0110] <Equipment Example>
[0111] Figure 4 A schematic block diagram of a device for determining the position of a liquid separation surface according to an embodiment of the present disclosure is shown. Figure 4 As shown, the liquid level determination device 200 includes a processor 210 and a memory 220 for storing executable instructions of the processor 210. The processor 210 is configured to implement any of the aforementioned liquid level determination methods when executing the executable instructions.
[0112] It should be noted here that the number of processors 210 can be one or more. Furthermore, the liquid level determination device 200 in this embodiment may also include an input device 230 and an output device 240. The processors 210, memory 220, input device 230, and output device 240 can be connected via a bus or other means, without specific limitations here.
[0113] The memory 220, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and various modules, such as the program or module corresponding to the liquid level position determination method of this embodiment. The processor 210 executes various functional applications and data processing of the liquid level position determination device 200 by running the software program or module stored in the memory 220.
[0114] Input device 230 can be used to receive input digital numbers or signals. These signals may include key signals related to user settings and function control of the device / terminal / server. Output device 240 may include a display device such as a screen.
[0115] <Storage Medium Examples>
[0116] According to a fourth aspect of this disclosure, a non-volatile computer-readable storage medium is also provided, on which computer program instructions are stored, which, when executed by processor 210, implement the method for determining the position of the liquid separation surface described above.
[0117] The various embodiments of this disclosure have been described above. These descriptions are exemplary and not exhaustive, and are not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is chosen to best explain the principles, practical applications, or technical improvements to the technology in the market, or to enable others skilled in the art to understand the embodiments disclosed herein.
Claims
1. A method for determining the position of a liquid separation surface, characterized in that, include: By using at least two ultrasonic sensors positioned at different depths in the reactor, liquid characteristic data corresponding to each ultrasonic sensor are acquired. Based on the liquid characteristic value data corresponding to each of the ultrasonic sensors, the relative position between the liquid separation surface and each of the ultrasonic sensors is determined. When acquiring the liquid characteristic value data corresponding to the ultrasonic sensor, the following are included: The ultrasonic sensor continuously acquires a first number of initial liquid characteristic value data. The first liquid characteristic value data corresponding to the ultrasonic sensor is calculated by weighted averaging of each of the initial liquid characteristic value data. The first liquid feature value data is added to the stack corresponding to the ultrasonic sensor, wherein the stack is used to store the second number of first liquid feature values calculated for the ultrasonic sensor. When calculating the liquid characteristic value corresponding to the ultrasonic sensor based on the first liquid characteristic value data stored in the stack, the calculation includes: The weight coefficients corresponding to each first liquid feature value data are determined according to the order in which they enter the stack. The earlier the first liquid feature value data enters the stack, the smaller the weight coefficient it is matched with; the later the first liquid feature value data enters the stack, the larger the weight coefficient it is matched with. Extract the feature value of the first liquid recently added to the stack; Determine whether the first liquid characteristic value newly added to the stack exceeds the preset value range, wherein the preset value range includes a first preset value range and a second preset value range. The first preset value range is ±20% of the liquid characteristic value corresponding to the ultrasonic sensor calculated in the previous step, and the second preset value range is ±10% of the liquid characteristic value corresponding to the ultrasonic sensor calculated in the previous step. When the first liquid feature value newly added to the stack exceeds the first preset value range, the weight coefficient of the first liquid feature value newly added to the stack is reduced to 0 to remove the first liquid feature value; when the first liquid feature value newly added to the stack exceeds the second preset value range, the weight coefficient of the first liquid feature value newly added to the stack is reduced by 50%; otherwise, the weight coefficient of the first liquid feature value newly added to the stack is not adjusted. Based on the weighting coefficients corresponding to the adjusted first liquid feature values, a weighted average is performed on the first liquid feature value data to obtain the liquid feature value corresponding to the ultrasonic sensor.
2. The method according to claim 1, characterized in that, When determining the relative position between the liquid distribution surface and each ultrasonic sensor based on the liquid characteristic value data corresponding to each of the ultrasonic sensors, the process includes: Based on the liquid characteristic value data corresponding to each ultrasonic sensor, the liquid composition identifier at the depth position of each ultrasonic sensor is determined, wherein the liquid composition identifier includes a lower liquid composition identifier and an upper liquid composition identifier. The liquid component markers at the depth locations of each ultrasonic sensor are sorted in descending order of depth to obtain the sorting result of the liquid component markers. Based on the sorting results of the liquid component identifiers, the relative positions between the liquid distribution surface and each of the ultrasonic sensors are determined.
3. The method according to claim 1, characterized in that, After obtaining the liquid characteristic value data corresponding to each of the ultrasonic sensors, the method further includes: Determine whether the liquid characteristic value data corresponding to each of the ultrasonic sensors is valid; If the liquid characteristic data corresponding to each ultrasonic sensor is determined to be valid, then the operation of determining the relative position between the liquid distribution surface and each ultrasonic sensor is performed based on the liquid characteristic data corresponding to each ultrasonic sensor.
4. A device for determining the position of a liquid separation surface, characterized in that, include: The liquid characteristic value data acquisition module is used to acquire liquid characteristic value data corresponding to each ultrasonic sensor by using at least two ultrasonic sensors set at different depth positions in the reactor. The liquid separation surface position determination module is used to determine the relative position between the liquid separation surface and each of the ultrasonic sensors based on the liquid characteristic value data corresponding to each of the ultrasonic sensors. When acquiring the liquid characteristic value data corresponding to the ultrasonic sensor, the following are included: The ultrasonic sensor continuously acquires a first number of initial liquid characteristic value data. The first liquid characteristic value data corresponding to the ultrasonic sensor is calculated by weighted averaging of each of the initial liquid characteristic value data. The first liquid feature value data is added to the stack corresponding to the ultrasonic sensor, wherein the stack is used to store the second number of first liquid feature values calculated for the ultrasonic sensor. When calculating the liquid characteristic value corresponding to the ultrasonic sensor based on the first liquid characteristic value data stored in the stack, the calculation includes: The weight coefficients corresponding to each first liquid feature value data are determined according to the order in which they enter the stack. The earlier the first liquid feature value data enters the stack, the smaller the weight coefficient it is matched with; the later the first liquid feature value data enters the stack, the larger the weight coefficient it is matched with. Extract the feature value of the first liquid recently added to the stack; Determine whether the first liquid characteristic value newly added to the stack exceeds the preset value range, wherein the preset value range includes a first preset value range and a second preset value range. The first preset value range is ±20% of the liquid characteristic value corresponding to the ultrasonic sensor calculated in the previous step, and the second preset value range is ±10% of the liquid characteristic value corresponding to the ultrasonic sensor calculated in the previous step. When the first liquid feature value newly added to the stack exceeds the first preset value range, the weight coefficient of the first liquid feature value newly added to the stack is reduced to 0 to remove the first liquid feature value; when the first liquid feature value newly added to the stack exceeds the second preset value range, the weight coefficient of the first liquid feature value newly added to the stack is reduced by 50%; otherwise, the weight coefficient of the first liquid feature value newly added to the stack is not adjusted. Based on the weighting coefficients corresponding to the adjusted first liquid feature values, a weighted average is performed on the first liquid feature value data to obtain the liquid feature value corresponding to the ultrasonic sensor.
5. A device for determining the position of a liquid separation surface, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to implement the method of any one of claims 1 to 3 when executing the executable instructions.
6. A non-volatile computer-readable storage medium storing computer program instructions thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the method described in any one of claims 1 to 3.