Titration detection method, device and system, storage medium and processor
By acquiring and comparing the color information of the samples to be tested during the titration process, the problem of inaccurate detection results caused by manual judgment of the titration end point is solved, and higher detection accuracy and consistency are achieved.
Patent Information
- Application Number
- CN202311344973.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-17
- Publication Date
- 2025-04-18
AI Technical Summary
In the prior art, the titration detection results are inaccurate, mainly due to the manual judgment of individual differences in the titration end point, resulting in inconsistent observation of color changes.
By obtaining the first color information of the sample to be tested during the titration process, taking and processing the image using an image sensor, determining whether the first color information is consistent with the target color information, and then calculating the titrator consumption to determine the content of the substance to be detected.
This avoids individual differences in manual judgment of titration endpoints, and improves the accuracy and consistency of the test results.
Smart Images

Figure CN119846139A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of chemical component detection, and in particular to a titration detection method, a titration detection device, a titration detection system, a machine-readable storage medium and a processor. Background Art
[0002] Titration is a commonly used quantitative analysis method. The color change of the indicator indicates the titration endpoint and then determines the content of a substance.
[0003] At present, titration is generally performed manually, with the experimenter observing the color change of the indicator with the naked eye and determining the titration endpoint based on the color change of the indicator. However, due to individual differences, different experimenters have different color perceptions, which makes the determined titration endpoint inconsistent, resulting in inaccurate test results. Summary of the invention
[0004] The purpose of the present invention is to overcome the problem in the prior art that manual judgment of the titration endpoint leads to inaccurate detection results, and to provide a titration detection method, a titration detection device, a titration detection system, a machine-readable storage medium and a processor.
[0005] In order to achieve the above object, the present invention provides a titration detection method on the one hand, the detection method comprising:
[0006] Acquire first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on a first image of the sample to be tested taken during the titration process;
[0007] Determining whether the first color information is consistent with target color information, wherein the target color information corresponds to the color of the titration endpoint;
[0008] In response to the first color information being consistent with the target color information, the content of the substance to be detected in the sample to be tested is calculated based on the titrant consumption corresponding to the first color information.
[0009] In the embodiment of the present application, the first color information is the RGB value of the color of the sample to be tested in the first image.
[0010] In the embodiment of the present application, the process of determining the target color information includes:
[0011] Photographing the color change of the target sample during the titration process, wherein the properties of the target sample are the same as those of the sample to be tested, the type of the substance to be detected in the target sample is the same as the type of the substance to be detected in the sample to be tested, and the type of the titration solvent used in the titration process of the target sample is the same as the type of the titration solvent used in the titration process of the sample to be tested;
[0012] Determine the color corresponding to the titration endpoint based on the color change obtained by shooting;
[0013] The color information corresponding to the color is determined as the target color information.
[0014] In the embodiment of the present application, the sample to be tested is a petroleum sample, the substance to be detected in the sample to be tested is basic nitrogen, the indicator used in the titration process is methyl violet, and the titrant used in the titration process is perchloric acid titrant.
[0015] A second aspect of the present application provides a titration detection device, the detection device comprising:
[0016] An acquisition module, used for acquiring first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on a first image of the sample to be tested taken during the titration process;
[0017] a determination module, used to determine whether the first color information is consistent with target color information, wherein the target color information corresponds to the color of the titration endpoint;
[0018] A calculation module is used to calculate the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information in response to the first color information being consistent with the target color information.
[0019] A third aspect of the present application provides a titration detection system, the detection system comprising an image sensor and a central processor connected to the image sensor;
[0020] The image sensor is used to determine the first color information of the sample to be tested during the titration process based on the first image captured by the sample to be tested during the titration process; and output the first color information to the central processor;
[0021] The central processing unit is used to obtain the first color information; determine whether the first color information is consistent with target color information, the target color information corresponds to the color of the titration endpoint; and in response to the first color information being consistent with the target color information, calculate the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information.
[0022] In an embodiment of the present application, the detection system further includes a robotic arm;
[0023] The mechanical arm is used to place the container containing the sample to be tested at the detection position, and perform titration and photography at the detection position.
[0024] In an embodiment of the present application, the detection system further comprises an indicator reagent bottle, a titrant reagent bottle, a titration solvent reagent bottle, a liquid pump and a liquid adding tube;
[0025] The outlet of the indicator reagent bottle, the outlet of the titrant reagent bottle and the outlet of the titration solvent reagent bottle are all connected to the inlet of the liquid pump;
[0026] The outlet of the liquid pump is communicated with the inlet of the liquid adding pipe.
[0027] A fourth aspect of the present application provides a processor configured to execute the above-mentioned titration detection method.
[0028] A fifth aspect of the present application provides a machine-readable storage medium, on which instructions are stored. When the instructions are executed by a processor, the processor is configured to perform the above-mentioned titration detection method.
[0029] Through the above technical scheme, the technical scheme includes: obtaining the first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on the first image of the sample to be tested taken during the titration process; determining whether the first color information is consistent with the target color information, the target color information corresponds to the color of the titration end point; in response to the first color information being consistent with the target color information, calculating the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information. Based on the titration detection method provided in the embodiment of the present application, when detecting the sample to be tested, manual determination of the titration end point can be avoided, and the influence of individual differences of different experimenters on the detection results can be avoided, thereby improving the accuracy of the detection results.
[0030] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The accompanying drawings are used to provide a further understanding of the embodiments of the present application and constitute a part of the specification. Together with the following specific implementations, they are used to explain the embodiments of the present application, but do not constitute a limitation on the embodiments of the present application. In the accompanying drawings:
[0032] Figure 1 A schematic diagram of a titration detection method according to an embodiment of the present application is shown;
[0033] Figure 2 Schematically showing an image captured during the titration process according to an embodiment of the present application;
[0034] Figure 3 A schematic diagram schematically shows a color signal change curve according to an embodiment of the present application;
[0035] Figure 4 The schematic diagram of the structure of a titration detection device according to an embodiment of the present application is shown;
[0036] Figure 5 The schematic diagram of the structure of a titration detection system according to an embodiment of the present application is shown;
[0037] Figure 6 A schematic diagram of an adjustment interface of a robotic arm according to an embodiment of the present application is schematically shown;
[0038] Figure 7 The internal structure diagram of a computer device according to an embodiment of the present application is schematically shown.
[0039] Description of Reference Numerals
[0040] 201 - acquisition module; 202 - determination module; 203 - calculation module; 301 - image sensor; 302 - central processing unit; A01 - processor; A02 - network interface; A03 - internal memory; A04 - display screen; A05 - input device; A06 - non-volatile storage medium; B01 - operating system; B02 - computer program. DETAILED DESCRIPTION
[0041] In order to make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the specific implementation methods described herein are only used to illustrate and explain the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0042] It should be noted that if the embodiments of the present application involve directional indications (such as up, down, left, right, front, back...), the directional indications are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0043] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0044] As described in the background technology, titration is a commonly used quantitative analysis method, which indicates the titration endpoint by the color change of the indicator, and then determines the content of a certain substance. For example, the basic nitrogen content of petroleum samples such as gasoline, jet fuel, diesel, and lubricating oil in refining enterprises can be detected by titration. At present, manual titration is generally used, and the experimenter observes the color change of the indicator with the naked eye, and determines the titration endpoint based on the color change of the indicator. However, due to individual differences, there are certain differences in the color perception of different experimenters, so that the determined titration endpoint is not consistent, resulting in inaccurate test results.
[0045] In view of this, in one embodiment of the present application, a titration detection method is provided, which can be executed by a processor, for example, by a central processing unit (CPU). Figure 1 As shown, the titration detection method may include the following steps:
[0046] Step 101: obtaining first color information of a sample to be tested during a titration process, wherein the first color information is obtained based on a first image of the sample to be tested that is photographed during the titration process.
[0047] The sample to be tested may include but is not limited to gasoline, jet fuel, diesel, lubricating oil, etc.; the substance to be detected in the sample to be tested may include basic nitrogen. Furthermore, the titration process in step 101 can be used to detect the basic nitrogen content in the sample to be tested.
[0048] It should be understood that the above titration process for detecting the basic nitrogen content in petroleum samples is only a specific example and does not represent an improper limitation on the titration detection method provided in the embodiments of the present application. In practical applications, the titration detection method provided in the embodiments of the present application can be applied to any titration analysis with color change.
[0049] In an embodiment of the present application, the color of the sample to be tested may be displayed in the first image. The first color information corresponds to the color of the sample to be tested in the first image. Specifically, the first color information may be numerical information after the color of the sample to be tested in the first image is quantified.
[0050] That is, the first color information can be used to quantitatively represent the color of the sample to be tested in the first image, which is more intuitive and objective. For example, the first color information can be the RGB value of the color of the sample to be tested in the first image. When the first color information is the RGB value of the color, the first color information can be obtained by the image sensor based on the first image.
[0051] In practical applications, when the sample to be tested is titrated, the sample to be tested can be photographed in real time to obtain multiple first images corresponding to the titration process in sequence, and then multiple first color information can be obtained, one first image corresponding to one first color information. The multiple first images can reflect the color change of the sample to be tested, and the multiple first color information can reflect the color change of the sample to be tested from a numerical perspective.
[0052] Step 102: Determine whether the first color information is consistent with the target color information.
[0053] The target color information corresponds to the color of the titration endpoint. The target color information may be numerical information of the color corresponding to the sample to be tested at the titration endpoint after being quantified. For example, the target color information may be the RGB value of the color corresponding to the sample to be tested at the titration endpoint.
[0054] In the embodiment of the present application, the target color information can be determined by the following process:
[0055] The color change of the target sample during the titration process is photographed, and the color corresponding to the titration endpoint is determined based on the photographed color change, and the color information corresponding to the color is determined as the target color information.
[0056] For example, the titration process of the target sample can be recorded, and the complete color change during the titration of the target sample can be recorded, that is, the color change of the solution caused by the chemical change of the solution during the titration process can be monitored, such as monitoring the acid-base titration. Observe the matching between the color of the manual titration endpoint solution and the color of the instrument video recording, and determine the color that best corresponds to the titration endpoint of the target sample in the video recording; determine the color information of the color corresponding to the titration endpoint of the target sample as the target color information. Determine the RGB value of the color corresponding to the titration endpoint as the target color information. In specific implementation, the image sensor can output the RGB value corresponding to the color corresponding to the titration endpoint in the video recording as the target color information.
[0057] For example, taking the detection of basic nitrogen content in petroleum samples as an example, the indicator is methyl violet, and the basic nitrogen in the petroleum sample is titrated with perchloric acid titrant. When the solution changes from purple to blue, it reaches the titration endpoint. Figure 2 The image shown in the figure is taken during the titration process when the target sample is a certain petroleum sample. That is, after the "10th drop" of perchloric acid titrant is added, the color of the above-mentioned certain petroleum sample changes to Figure 2 The color in the video is 243.805, and the corresponding signal value of the color is 243.805. Based on the color change and the corresponding RGB value in the video, and the matching of the color change endpoint of the manual titration, the experimenter can select the best RGB signal value as the titration endpoint to establish an automated analysis method.
[0058] like Figure 3 As shown, a color signal change curve can be drawn according to the volume of perchloric acid titrant added and the change in the color signal value. The horizontal axis is the number of drops of perchloric acid titrant, and the vertical axis is the signal value. Based on the video, the experimenter can also check whether the titration is effective by combining the color signal change curve, making the determined titration endpoint more reliable.
[0059] In practical applications, in order to make the target color information serve as a reference object for the first color information, the properties of the target sample are the same as those of the sample to be tested, specifically, the oil type can be the same. At the same time, the type of the substance to be detected in the target sample is the same as the type of the substance to be detected in the sample to be tested. In addition, when a titration solvent is used, the type of the titration solvent used in the titration process of the target sample is the same as the type of the titration solvent used in the titration process of the sample to be tested.
[0060] In the embodiment of the present application, step 102 determines whether the first color information is consistent with the target color information, which can be used to determine whether the sample to be tested has reached the titration endpoint. Specifically, when the first color information is consistent with the target color information for the first time, it can be determined that the titration endpoint has been reached.
[0061] In order to improve the detection efficiency, the titration can be stopped when it is determined that the titration endpoint is reached. Therefore, step 102 can determine in real time whether the first color information is consistent with the target color information. Specifically, for the first image obtained in real time, the RGB signal value of the first color information of the first image is judged in real time to determine whether it is consistent with the RGB signal value of the target color information. When the RGB signal values of the two are consistent, the titration process is ended.
[0062] Step 103: In response to the first color information being consistent with the target color information, the content of the substance to be detected in the sample to be tested is calculated based on the titrant consumption corresponding to the first color information.
[0063] In the embodiment of the present application, when the first color information is consistent with the target color information, it can be indicated that the titration endpoint has been reached. Therefore, the titrant consumption corresponding to the first color information can be used to calculate the content of the substance to be detected in the sample to be tested.
[0064] The titrant consumption corresponding to the first color information may be the cumulative titrant consumption corresponding to the titration time corresponding to the first color information. The cumulative titrant consumption is the titrant consumption accumulated from the titration start time to the titration time corresponding to the first color information.
[0065] It can be understood that the titration detection method provided in the embodiment of the present application includes: obtaining the first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on the first image of the sample to be tested taken during the titration process; determining whether the first color information is consistent with the target color information; in response to the first color information being consistent with the target color information, calculating the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information. Based on the titration detection method provided in the embodiment of the present application, when testing the sample to be tested, manual determination of the titration end point can be avoided, and the influence of individual differences of different experimenters on the test results can be avoided, thereby improving the accuracy of the test results.
[0066] In the prior art, since titration is performed manually and the titration endpoint is determined manually, in order to determine the titration endpoint as accurately as possible, the experimenter often finds it difficult to control the titration speed and the titration endpoint, which results in a large error in the titration. However, the titration detection method provided in the above embodiment of the present application can accurately determine the titration endpoint, greatly improving the accuracy of the analysis.
[0067] In order to apply the titration detection method provided in the above embodiments of the present application to the field of petroleum detection, in one embodiment, the sample to be tested is a petroleum sample, the substance to be detected in the sample to be tested is basic nitrogen, the indicator used in the titration process is methyl violet, and the titrant used in the titration process is a perchloric acid titrant.
[0068] In the embodiments of the present application, the petroleum sample may include but is not limited to gasoline, jet fuel, diesel, lubricating oil, etc.
[0069] The preparation process of the perchloric acid titrant may include: injecting acetic acid into perchloric acid under stirring, adding acetic anhydride dropwise, stirring until the solution is uniform; and diluting with acetic acid after cooling. The amount of perchloric acid, acetic acid and acetic anhydride used may be set according to the required concentration of the perchloric acid titrant.
[0070] The titration process of the sample to be tested is: add the methyl violet indicator to the sample to be tested, mix evenly; then titrate with a perchloric acid titrant. In practical applications, in order to make the sample to be tested develop color evenly and accurately during titration, before adding the methyl violet indicator to the sample to be tested, a titration solvent can also be added to the sample to be tested to dilute the sample to a certain extent. Thus, after the subsequent addition of the methyl violet indicator, the indicator can be evenly distributed.
[0071] For example, the "Color Indicator Method for Determination of Basic Nitrogen Content in Petroleum Fractions" (NB / SH / T0162-2021) can be used as the standard, and xylene can be used as the titration solvent.
[0072] Considering that when the titrant is added dropwise, the titration solvent will also consume a portion of the titrant. If the content of basic nitrogen in the sample to be tested is directly calculated based on the cumulative consumption of the titrant corresponding to the titration endpoint, it may cause a deviation between the calculated result and the actual content. Therefore, a blank control sample can be set for the sample to be tested. The same amount of titration solvent and indicator as in the sample to be tested is added to the blank control sample, and then the blank control sample is titrated, and the cumulative consumption of the titrant corresponding to the blank control sample is determined according to the titration endpoint. The cumulative consumption of the titrant corresponding to the blank control sample is the amount of titrant consumed by the titration solvent in the sample to be tested.
[0073] In practical applications, different samples may require different amounts of titration solvent. For example, in order to reduce the interference of the color of the sample itself on the color development during the titration process, a larger amount of titration solvent is added to the sample with a darker color (such as gasoline, diesel, lubricating oil, etc.) to dilute the color of the sample itself.
[0074] Then, in the specific implementation, different blank control samples can be set for different samples to be tested. In order to further improve the detection efficiency, in a more preferred embodiment, only one blank control sample can be set for different samples to be tested. When calculating the amount of titrant consumed by the titration solvent in the sample to be tested, the amount of titrant consumed by the titration solvent in the sample to be tested can be determined based on the ratio of the titration solvent added in the sample to be tested and the titration solvent added in the blank control sample, as well as the amount of titrant consumed by the titration solvent added in the blank control sample. Furthermore, the calculation formula for the basic nitrogen content in the sample to be tested can be as follows:
[0075]
[0076] Wherein, N is the content of basic nitrogen, in mg / kg; V1 is the amount of titrant consumed by the sample to be tested, in ml; V2 is the amount of titrant consumed by the blank control sample, in ml; c is the concentration of perchloric acid titrant, in mol / L; m is the mass of the sample to be tested, in g; f is the ratio of the amount of titration solvent added in the sample to be tested to the amount of titration solvent added in the blank control sample.
[0077] For example, the amount of titration solvent added to the blank control sample is 50 ml, and the volume of the sample to be tested after adding the titration solvent is 100. Then the calculation formula for f can be set as:
[0078]
[0079] The density of the petroleum sample is approximately equal to the density of water, so the mass value of the petroleum sample can be approximately used as the volume of the petroleum sample to calculate the ratio of the amount of titration solvent added to the sample to be tested to the amount of titration solvent added to the blank control sample.
[0080] Figure 1 FIG. 1 is a flow chart of a titration detection method. It should be understood that although Figure 1 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0081] The titration detection method provided in the embodiments of the present application is further described below in conjunction with specific examples, as shown in Table 1 and Table 2.
[0082] Table 1 shows the manual titration test results and the test results of the titration test method provided in the examples of the present application for various samples to be tested. Table 2 shows the repeatability results of the titration test method provided in the examples of the present application for certain samples to be tested.
[0083] Table 1 Manual titration test results and the test results of the titration test method of this application
[0084]
[0085] Among them, the test samples 1 and 2 are both aviation fuel raw materials for hydrogenation units, coming from different storage tanks. The test sample 3 is the aviation fuel after fine desulfurization of the hydrogenation unit. The test sample 4 is the aviation fuel mixed raw material of the hydrogenation unit. The test sample 5 is the stripper aviation fuel. The test sample 6 is the atmospheric vacuum first-line aviation fuel.
[0086] Table 2 Repeatability of the titration test method in this application
[0087]
[0088] As can be seen from Tables 1 and 2, the titration detection method provided in the embodiment of the present application has high accuracy and good repeatability. The test results meet the repeatability requirements in the analytical method "Color indicator method for determination of basic nitrogen content in petroleum fractions" (NB / SH / T 0162-2021).
[0089] Based on the titration detection method provided in the embodiment of the present application, the embodiment of the present application also provides a titration detection device 200, such as Figure 4 shown. Figure 4 The structural block diagram of a titration detection device 200 according to an embodiment of the present application is schematically shown. The titration detection device 200 comprises an acquisition module 201, a determination module 202 and a calculation module 203, wherein:
[0090] An acquisition module 201 is used to acquire first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on a first image of the sample to be tested taken during the titration process;
[0091] A determination module 202 is used to determine whether the first color information is consistent with target color information, wherein the target color information corresponds to the color of the titration endpoint;
[0092] The calculation module 203 is used to calculate the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information in response to the first color information being consistent with the target color information.
[0093] It can be understood that by adopting the titration detection device 200 provided in the embodiment of the present application, the titration detection device 200 includes an acquisition module 201, a determination module 202 and a calculation module 203; the acquisition module 201 is used to obtain the first color information of the sample to be tested during the titration process, and the first color information is obtained based on the first image of the sample to be tested taken during the titration process; the determination module 202 is used to determine whether the first color information is consistent with the target color information, and the target color information corresponds to the color of the titration end point; the calculation module 203 is used to calculate the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information in response to the first color information being consistent with the target color information. Based on the titration detection device 200 provided in the embodiment of the present application, when the sample to be tested is tested, it is possible to avoid manually determining the titration end point, and thus avoid the influence of individual differences of different experimenters on the test results, thereby improving the accuracy of the test results.
[0094] In one embodiment, the first color information is the RGB value of the color of the sample to be tested in the first image.
[0095] In one implementation, the process of determining the target color information includes:
[0096] Photographing the color change of the target sample during the titration process, wherein the properties of the target sample are the same as those of the sample to be tested, the type of the substance to be detected in the target sample is the same as the type of the substance to be detected in the sample to be tested, and the type of the titration solvent used in the titration process of the target sample is the same as the type of the titration solvent used in the titration process of the sample to be tested;
[0097] Determine the color corresponding to the titration endpoint based on the color change obtained by shooting;
[0098] The color information corresponding to the color is determined as the target color information.
[0099] In one embodiment, the sample to be tested is a petroleum sample, the substance to be detected in the sample to be tested is basic nitrogen, the indicator used in the titration process is methyl violet, and the titrant used in the titration process is perchloric acid titrant.
[0100] The titration detection device includes a processor and a memory. The acquisition module 201, the determination module 202 and the calculation module 203 are all stored in the memory as program units. The processor executes the program modules stored in the memory to implement corresponding functions.
[0101] The processor includes a kernel, which calls the corresponding program unit from the memory. One or more kernels can be set, and the kernel parameters can be adjusted to achieve fast and efficient prediction of sand body distribution at the full chip scale.
[0102] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0103] Based on the titration detection method provided in the embodiment of the present application, the embodiment of the present application also provides a titration detection system 300, such as Figure 5 The detection system 300 includes an image sensor 301 and a central processing unit 302 connected to the image sensor 301; wherein:
[0104] The image sensor 301 is used to determine the first color information of the sample to be tested during the titration process based on the first image captured by the sample to be tested during the titration process; and output the first color information to the central processor;
[0105] The central processing unit 302 is used to obtain the first color information; determine whether the first color information is consistent with the target color information, the target color information corresponds to the color of the titration endpoint; and in response to the first color information being consistent with the target color information, calculate the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information.
[0106] It can be understood that by adopting the titration detection system 300 provided in the embodiment of the present application, the titration detection system 300 includes an image sensor 301 and a central processor 302 connected to the image sensor 301; the image sensor 301 is used to determine the first color information of the sample to be tested during the titration process based on the first image captured by the sample to be tested during the titration process; and output the first color information to the central processor; the central processor 302 is used to obtain the first color information; determine whether the first color information is consistent with the target color information, the target color information corresponds to the color of the titration end point; and in response to the first color information being consistent with the target color information, the content of the substance to be detected in the sample to be tested is calculated based on the titrant consumption corresponding to the first color information. Based on the titration detection system 300 provided in the embodiment of the present application, when the sample to be tested is tested, the manual determination of the titration end point can be avoided, and the influence of individual differences of different experimenters on the test results can be avoided, thereby improving the accuracy of the test results.
[0107] To further improve the automation level of the titration detection system, in one embodiment, the detection system 300 further includes a robotic arm; the robotic arm is used to place the container containing the sample to be tested at the detection position, and perform titration and photography at the detection position.
[0108] Among them, the container for holding the sample to be tested can be a sample cup. The sample cup can also be called a titration cup, and its shape can be specifically cylindrical for easy grasping. Compared with the conical flask used for manual titration, the liquid in the titration cup is concentrated cylindrical, non-thin layer and large-area dispersed, and the solution color is concentrated. After the sample to be tested is loaded into the sample cup, the sample cup can be grabbed by a robotic arm and moved to the detection position. At the detection position, the titration solvent and indicator are added to the sample cup, and titration and image capture are performed at the detection position.
[0109] In the specific implementation, multiple samples to be tested can be pre-configured and placed in different sample cups. The robot arm can grab the sample cups in turn, and then test the different samples to be tested in turn. In order to achieve accurate and stable grabbing, the specific position of the sample cup, the adjustment axis position of the robot arm, the grabbing force and other related parameters can be adjusted. The adjustment interface can be as follows Figure 6 shown.
[0110] Furthermore, the detection system 300 may also include an indicator reagent bottle, a titrant reagent bottle, a titration solvent reagent bottle, a liquid pump and a liquid adding tube; the outlet of the indicator reagent bottle, the outlet of the titrant reagent bottle and the outlet of the titration solvent reagent bottle are all connected to the inlet of the liquid pump; the outlet of the liquid pump is connected to the inlet of the liquid adding tube.
[0111] In specific implementation, the liquid flow rate and time can be controlled by using a liquid pump, thereby controlling the liquid addition volume, realizing automatic addition of the indicator and titration solvent, and realizing automatic titration of the titrant, and the minimum liquid addition amount can reach 0.02ml (i.e., the volume of one drop).
[0112] In practical applications, in order to avoid contamination between reagents due to the shared liquid adding tube, the liquid adding tube may include an indicator liquid adding tube, a titrant liquid adding tube and a titration solvent liquid adding tube. Each reagent has its own corresponding liquid adding tube, with an independent flow path, and does not interfere with each other. Before the sample to be tested is tested, each liquid adding pipe can also be rinsed with the reagent corresponding to each liquid adding tube.
[0113] There is no need to set a liquid level gauge on the indicator reagent bottle, titrant reagent bottle and titration solvent reagent bottle to display the liquid level in real time; instead, the total amount of liquid added to each reagent bottle is set in the software operation, and the consumption of each reagent is deducted. The calculated remainder can be displayed in real time through a bar graph, which can realize the visualization of the remaining amount of reagent in each reagent bottle, realize the remaining amount reminder function, and facilitate the timely preparation of added reagents.
[0114] It can be understood that by adopting the titration detection system 300 provided in the above embodiment of the present application, the entire titration analysis process is fully automated, which greatly improves the automation level of titration detection.
[0115] The embodiment of the present application also provides a processor configured to execute the titration detection method in the above embodiment.
[0116] The embodiment of the present application further provides a machine-readable storage medium on which a program is stored. When the program is executed by a processor, the titration detection method in the above embodiment is implemented.
[0117] In one embodiment, the present application further provides a computer device, which may be a terminal, and its internal structure diagram may be as follows: Figure 7 As shown. The computer device includes a processor A01, a network interface A02, a display screen A04, an input device A05 and a memory (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A06. The non-volatile storage medium A06 stores an operating system B01 and a computer program B02. The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A06. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor A01, a titration detection method is implemented. The display screen A04 of the computer device can be a liquid crystal display or an electronic ink display, and the input device A05 of the computer device can be a touch layer covered on the display screen, or a key, trackball or touchpad set on the computer device housing, or an external keyboard, touchpad or mouse, etc.
[0118] Those skilled in the art will understand that Figure 7 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0119] In one embodiment, the titration detection device provided in the present application can be implemented in the form of a computer program. The computer program can be Figure 7 The computer device shown in the figure is run on the computer device. The memory of the computer device can store various program modules that constitute the construction task intelligent scheduling device, such as: Figure 4The acquisition module 201, the determination module 202 and the calculation module 203 are shown. The computer program composed of various program modules enables the processor to execute the steps of the titration detection method of each embodiment of the present application described in this specification.
[0120] Figure 7 The computer device shown can be Figure 4 The acquisition module 201, determination module 202 and calculation module 203 in the titration detection device shown execute the method.
[0121] The embodiment of the present application provides a device, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, the following steps are implemented:
[0122] Acquire first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on a first image of the sample to be tested taken during the titration process;
[0123] Determining whether the first color information is consistent with target color information, wherein the target color information corresponds to the color of the titration endpoint;
[0124] In response to the first color information being consistent with the target color information, the content of the substance to be detected in the sample to be tested is calculated based on the titrant consumption corresponding to the first color information.
[0125] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0126] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0129] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0130] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0131] Computer readable media include permanent and non-permanent, removable and non-removable media, and can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0132] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0133] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A titration detection method, characterized in that, The detection method comprises: Acquire first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on a first image of the sample to be tested taken during the titration process; Determining whether the first color information is consistent with target color information, wherein the target color information corresponds to the color of the titration endpoint; In response to the first color information being consistent with the target color information, the content of the substance to be detected in the sample to be tested is calculated based on the titrant consumption corresponding to the first color information.
2. The titration detection method according to claim 1, characterized in that: The first color information is the RGB value of the color of the sample to be tested in the first image.
3. The titration detection method according to claim 1, characterized in that: The process of determining the target color information includes: Photographing the color change of the target sample during the titration process, wherein the properties of the target sample are the same as those of the sample to be tested, the type of the substance to be detected in the target sample is the same as the type of the substance to be detected in the sample to be tested, and the type of the titration solvent used in the titration process of the target sample is the same as the type of the titration solvent used in the titration process of the sample to be tested; Determine the color corresponding to the titration endpoint based on the color change obtained by shooting; The color information corresponding to the color is determined as the target color information.
4. The titration detection method according to claim 1, characterized in that: The sample to be tested is a petroleum sample, the substance to be detected in the sample to be tested is basic nitrogen, the indicator used in the titration process is methyl violet, and the titrant used in the titration process is a perchloric acid titrant.
5. A titration detection device, characterized in that: The detection device comprises: An acquisition module, used for acquiring first color information of the sample to be tested during the titration process, wherein the first color information is obtained based on a first image of the sample to be tested taken during the titration process; a determination module, used to determine whether the first color information is consistent with target color information, wherein the target color information corresponds to the color of the titration endpoint; A calculation module is used to calculate the content of the substance to be detected in the sample to be tested based on the titrant consumption corresponding to the first color information in response to the first color information being consistent with the target color information.
6. A titration detection system, characterized in that: The detection system includes an image sensor and a central processing unit connected to the image sensor; The image sensor is used to determine the first color information of the sample to be tested during the titration process based on a first image captured by the sample to be tested during the titration process; and outputting the first color information to the central processing unit; The central processor is used to obtain the first color information; determine whether the first color information is consistent with target color information, and the target color information corresponds to the color of the titration endpoint; And in response to the first color information being consistent with the target color information, the content of the substance to be detected in the sample to be tested is calculated based on the titrant consumption corresponding to the first color information.
7. The titration detection system according to claim 6, characterized in that: The detection system also includes a mechanical arm; The mechanical arm is used to place the container containing the sample to be tested at the detection position, and perform titration and photography at the detection position.
8. The titration detection system according to claim 7, characterized in that: The detection system also includes an indicator reagent bottle, a titrant reagent bottle, a titration solvent reagent bottle, a liquid pump and a liquid adding tube; The outlet of the indicator reagent bottle, the outlet of the titrant reagent bottle and the outlet of the titration solvent reagent bottle are all connected to the inlet of the liquid pump; The outlet of the liquid pump is communicated with the inlet of the liquid adding pipe.
9. A processor, characterized in that: The method is configured to perform the titration detection method according to any one of claims 1 to 4.
10. A machine-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by a processor, the processor is configured to perform the titration detection method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method for determining titration color and color titration device
CN115656417A
Oil alkalinity nitrogen assay method
CN1448714A