Mixture component detection method, device, equipment, medium and program product

By using multiple lasers to detect the components of mixtures, the problems of large size and harsh operating environments of infrared spectroscopy analyzers have been solved, achieving higher accuracy and lower cost in the detection of mixture components, making it suitable for various scenarios.

CN120927609APending Publication Date: 2025-11-11SUPCON TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510996513.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-18
Publication Date
2025-11-11

AI Technical Summary

Technical Problem

Existing infrared spectroscopy analyzers are bulky and operate in harsh environments, making it difficult to perform real-time on-site detection conveniently. Furthermore, they cannot fully utilize their functions when only specific material components need to be measured, resulting in a waste of funds and equipment.

Method used

Multiple lasers are used, and the number and wavelength of the lasers are determined according to the types of components in the mixture. The lasers are controlled to pass through the mixture, and the laser signals are processed by photoelectric conversion to analyze the proportion of components in the mixture.

Benefits of technology

It achieves higher accuracy and lower cost in the detection of mixture components, is suitable for various scenarios, miniaturizes the laser to reduce equipment size, ensures all lasers are effective, and reduces operating costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120927609A_ABST
    Figure CN120927609A_ABST
Patent Text Reader

Abstract

The invention relates to a mixture component detection method and device, computer equipment, a computer readable storage medium and a computer program product. The method comprises the following steps: determining the number of lasers and the wavelength of each laser according to the types of components contained in a mixture, and respectively controlling each laser to emit laser with the corresponding wavelength, so that the laser penetrates through the mixture; collecting a laser signal passing through the mixture through a laser receiver; performing photoelectric conversion processing on the laser signals collected by the laser receiver to obtain electric signals corresponding to the laser signals with different wavelengths; and analyzing the component proportion of the mixture according to the electric signal. Therefore, the component proportion of the mixture can be accurately detected through the laser, an infrared spectrum analyzer is not needed, the cost of detection equipment is reduced, and the method is suitable for detecting the components of the mixture in various scenes and high in applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of chemical technology, and in particular to a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for detecting the components of a mixture. Background Technology

[0002] With the rapid development of infrared spectroscopy analysis technology, the techniques for various detections using infrared spectroscopy have also matured. Currently, many types of infrared spectroscopy equipment have been successfully used in scientific research, chemical engineering, and other fields (e.g., for distinguishing the composition of substances).

[0003] Although infrared spectrometers offer high accuracy, most are laboratory instruments requiring harsh operating environments and rigorous sample collection, and are also relatively large in size. Therefore, they are not suitable for real-time on-site testing; moreover, most on-site measurements only require the determination of specific substance components, failing to utilize the full capabilities of the infrared spectrometer, indirectly leading to a waste of funds and equipment. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for detecting mixture components that can reduce equipment usage costs and ensure detection accuracy, in order to address the aforementioned technical problems.

[0005] In a first aspect, this application provides a method for detecting components in a mixture, the method comprising:

[0006] The number of lasers and the wavelength of each laser are determined based on the types of components contained in the mixture.

[0007] Each laser is controlled to emit a laser of a corresponding wavelength so that the laser can pass through the mixture;

[0008] The laser signal after passing through the mixture is collected using a laser receiver;

[0009] The laser signal acquired by the laser receiver is subjected to photoelectric conversion processing to obtain electrical signals corresponding to laser signals of different wavelengths;

[0010] The composition ratio of the mixture is analyzed based on the electrical signal.

[0011] In one embodiment, determining the number of lasers and the wavelength of each laser based on the types of components contained in the mixture includes:

[0012] If the mixture contains n types of components, then the number of lasers is determined to be n-1, where n is a natural number greater than 1;

[0013] Based on the n-1 components contained in the mixture, determine the wavelengths of the corresponding n-1 lasers; wherein each wavelength is used to identify one component in the mixture.

[0014] In one embodiment, controlling each laser to emit laser light of a corresponding wavelength so that the laser light passes through the mixture includes:

[0015] Determine the emission sequence of the lasers corresponding to each wavelength;

[0016] Only one laser is activated at a time to emit a laser of a specific wavelength, so that the single wavelength laser can pass through the mixture.

[0017] In one embodiment, the step of performing photoelectric conversion processing on the laser signal acquired by the laser receiver to obtain electrical signals corresponding to different wavelength laser signals includes:

[0018] The laser signal acquired by the laser receiver is processed by photoelectric conversion using an analog-to-digital converter to obtain the voltage amplitude corresponding to different wavelength laser signals; wherein, different voltage amplitudes correspond to the proportions of different components in the mixture.

[0019] In one embodiment, analyzing the component ratio of the mixture based on the electrical signal includes:

[0020] The numerical value corresponding to the electrical signal is substituted into a pre-constructed objective function, and the component ratio corresponding to the electrical signal is calculated based on the objective function.

[0021] In one embodiment, before substituting the value corresponding to the electrical signal into a pre-constructed objective function, the method further includes:

[0022] Construct M samples of the mixture; wherein, in the M samples of the mixture, the proportion of each component in each sample is known; M is a natural number greater than 1;

[0023] If the mixture contains n types of components, then the number of lasers is determined to be n-1, where n is a natural number greater than 1;

[0024] Based on the n-1 components contained in the mixture, determine the wavelengths of the corresponding n-1 lasers;

[0025] M samples are detected by n-1 lasers respectively, and electrical signals corresponding to laser signals of different wavelengths are obtained;

[0026] An initial fitting function is constructed, and the electrical signals corresponding to different wavelength laser signals and the known cost ratio of the mixture are substituted into the initial fitting function to determine the coefficients of the initial fitting function, thereby obtaining the target function.

[0027] Secondly, this application also provides a mixture component detection device, the device comprising:

[0028] The determination module is used to determine the number of lasers and the wavelength of each laser based on the types of components contained in the mixture;

[0029] The laser emitting module is used to control each laser to emit laser light of a corresponding wavelength, so that the laser light can pass through the mixture;

[0030] The acquisition module is used to acquire the laser signal after passing through the mixture via a laser receiver;

[0031] The processing module is used to perform photoelectric conversion processing on the laser signal collected by the laser receiver to obtain electrical signals corresponding to different wavelength laser signals;

[0032] An analysis module is used to analyze the component ratio of the mixture based on the electrical signal.

[0033] Thirdly, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to perform the following steps:

[0034] The number of lasers and the wavelength of each laser are determined based on the types of components contained in the mixture.

[0035] Each laser is controlled to emit a laser of a corresponding wavelength so that the laser can pass through the mixture;

[0036] The laser signal after passing through the mixture is collected using a laser receiver;

[0037] The laser signal acquired by the laser receiver is subjected to photoelectric conversion processing to obtain electrical signals corresponding to laser signals of different wavelengths;

[0038] The composition ratio of the mixture is analyzed based on the electrical signal.

[0039] Fourthly, this application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, performs the following steps:

[0040] The number of lasers and the wavelength of each laser are determined based on the types of components contained in the mixture.

[0041] Each laser is controlled to emit a laser of a corresponding wavelength so that the laser can pass through the mixture;

[0042] The laser signal after passing through the mixture is collected using a laser receiver;

[0043] The laser signal acquired by the laser receiver is subjected to photoelectric conversion processing to obtain electrical signals corresponding to laser signals of different wavelengths;

[0044] The composition ratio of the mixture is analyzed based on the electrical signal.

[0045] Fifthly, this application also provides a computer program product, including a computer program that, when executed by a processor, performs the following steps:

[0046] The number of lasers and the wavelength of each laser are determined based on the types of components contained in the mixture.

[0047] Each laser is controlled to emit a laser of a corresponding wavelength so that the laser can pass through the mixture;

[0048] The laser signal after passing through the mixture is collected using a laser receiver;

[0049] The laser signal acquired by the laser receiver is subjected to photoelectric conversion processing to obtain electrical signals corresponding to laser signals of different wavelengths;

[0050] The composition ratio of the mixture is analyzed based on the electrical signal.

[0051] The aforementioned method, apparatus, computer equipment, computer-readable storage medium, and computer program product for detecting the components of a mixture determine the number of lasers and the wavelength of each laser based on the types of components contained in the mixture, controlling each laser to emit laser light of a corresponding wavelength so that the laser light passes through the mixture; a laser receiver collects the laser signal after it has passed through the mixture; the laser signal collected by the laser receiver is processed by photoelectric conversion to obtain electrical signals corresponding to different wavelength laser signals; and the component ratio of the mixture is analyzed based on the electrical signals. Therefore, the component ratio of a mixture can be accurately detected using lasers without the need for an infrared spectroscopy analyzer, reducing the cost of detection equipment and making it suitable for the detection of mixture components in various scenarios, demonstrating strong applicability. Attached Figure Description

[0052] To more clearly illustrate the technical solutions in the embodiments of this application or related technologies, the drawings used in the description of the embodiments of this application or related technologies will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.

[0053] Figure 1 This is a flowchart illustrating a method for detecting the components of a mixture in one embodiment;

[0054] Figure 2This is a schematic diagram of a mixture component detection device in one embodiment;

[0055] Figure 3 This is a flowchart illustrating a method for detecting the components of a mixture in another embodiment. Detailed Implementation

[0056] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0057] For example, such as Figure 1 As shown in the figure, this application provides a flowchart of a method for detecting components in a mixture, which may include the following steps:

[0058] Step S101: Determine the number of lasers and the wavelength of each laser based on the types of components contained in the mixture.

[0059] For example, in combination Figure 2 As shown, the device (or system) applying the above-described method for detecting the components of a mixture may include a laser emitter, a laser receiver, an analog-to-digital converter (ADC), and a microcontroller. The laser emitted by the laser emitter passes through the mixture and is received by the laser receiver. The ADC converts the laser signal collected by the laser receiver into an electrical signal, which is then transmitted to the microcontroller for further analysis and processing to obtain the component proportions of the mixture.

[0060] In this embodiment, after the laser passes through the liquid, some of its intensity is absorbed by the liquid, resulting in a decrease in the emitted light intensity. Different liquids have different abilities to absorb light intensity. The light intensity absorption capacity of a mixture composed of different liquids is the sum of the light intensity absorption capacities of each component in the mixture.

[0061] For example, if the mixture contains n types of components, then the number of lasers is determined to be n-1, where n is a natural number greater than 1; based on the n-1 components contained in the mixture, the wavelengths of the corresponding n-1 lasers are determined; wherein each wavelength is used to identify one component in the mixture.

[0062] In this embodiment, the mixture contains n types of components, and the detection target is the proportion of the n components in the mixture.

[0063] In step S102, each laser is controlled to emit laser light of the corresponding wavelength so that the laser light passes through the mixture.

[0064] Optionally, the laser can be a single or multiple independent lasers of a specific wavelength. The number of lasers is n-1. The selection criterion for the laser is: if a component of the mixture absorbs most of the light intensity of a laser of a certain wavelength, while other components of the mixture absorb almost no light intensity, then that wavelength of laser can be used to identify that component.

[0065] For example, the emission sequence of the lasers corresponding to each wavelength is determined; only one laser is turned on at a time to emit a laser of one wavelength, so that the laser of a single wavelength passes through the mixture. This allows different wavelengths of laser light to be controlled to irradiate the mixture separately, thus facilitating the subsequent acquisition of the laser signal after passing through the mixture by a laser receiver.

[0066] Step S103: Acquire the laser signal after passing through the mixture using a laser receiver.

[0067] In this embodiment, a specific combination of laser wavelengths can be selected to analyze a mixture of specific components. The components of the mixture exhibit significant differences in light intensity absorption across the different wavelengths included in the laser combination. By using a laser receiver to perform photo-to-electric conversion on the received laser signal, the non-voltage amplitude corresponding to the emitted laser intensity can be obtained, thereby acquiring different voltage amplitudes. Different wavelengths of laser light correspond to different voltage amplitudes, representing different substances. Based on this, the composition of the mixture can be analyzed.

[0068] Step S104: Perform photoelectric conversion processing on the laser signal collected by the laser receiver to obtain electrical signals corresponding to different wavelength laser signals.

[0069] For example, an analog-to-digital converter (ADC) performs photoelectric conversion processing on the laser signal acquired by the laser receiver to obtain the voltage amplitude corresponding to different wavelengths of laser signals; where different voltage amplitudes correspond to the proportions of different components in the mixture. The ADC can further convert analog signals (such as continuously changing signals like voltage and current) into digital signals.

[0070] Step S105: Analyze the component ratio of the mixture based on the electrical signal.

[0071] For example, the numerical value corresponding to the electrical signal is substituted into a pre-constructed objective function, and the component ratio corresponding to the electrical signal is calculated based on the objective function.

[0072] Optionally, before executing step S105, M samples of the mixture are first constructed; wherein, in the M samples of the mixture, the proportion of each component in each sample is known; M is a natural number greater than 1; if the mixture contains n types of components, then the number of lasers is determined to be n-1, where n is a natural number greater than 1; based on the n-1 components contained in the mixture, the wavelengths of the corresponding n-1 lasers are determined; the M samples are detected by the n-1 lasers respectively to obtain the electrical signals corresponding to the laser signals of different wavelengths; an initial fitting function is constructed, and the electrical signals corresponding to the laser signals of different wavelengths, as well as the known proportions of the mixture, are substituted into the initial fitting function to determine the coefficients of the initial fitting function, thus obtaining the target function.

[0073] For example, consider a mixture of benzene, ethanol, and isooctane. Ethanol has a strong absorption rate to 1550nm laser light. Benzene has a strong absorption rate to 1650nm laser light. Based on this characteristic, lasers with wavelengths of 1550nm and 1650nm can be selected to measure the ratio of ethanol and benzene in the mixture, and finally the ratio of isooctane can be determined.

[0074] Alternatively, the mixture composition detection process can be broadly divided into two stages: measurement and calibration. For details, please refer to [link to relevant documentation]. Figure 3 As shown. Wherein:

[0075] Step A, for measurement phase 1:

[0076] Step A1: Turn on the 1550nm laser and read the ADC reading, denoted as C1550-x. (x is a label indicating the proportion of a certain component)

[0077] Step A2: Turn off the 1550nm laser.

[0078] Step A3: Turn on the 1650nm laser to read the ADC reading, and record it as C1650-xx. (xx is a label indicating the ratio of two components)

[0079] Step A4: Turn off the 1650nm laser.

[0080] It should be understood that steps A3 and A4 above can also be performed before steps A1 and A2. The embodiments of this application do not limit the order in which different wavelength lasers are turned on.

[0081] Step B, for the calibration phase:

[0082] Step B1: Prepare 11 portions of a mixed solution of ethanol and isooctane, with volume ratios of ethanol:isooctane = 10:0, 9:1, 8:2, 7:3, 6:4, 5:5, 4:6, 3:7, 2:8, 1:9, and 0:10.

[0083] Step B2: Perform steps A1 to A2 of step A 11 times on each of the 11 solutions. Collect data as C. 1550-10 ~C 1550-0 .

[0084] Step B3, place C 1550-10 ~C 1550-0 These 11 data points were fitted using a second-order method:

[0085] y = ax 2 +bx+c Equation (1)

[0086] Where a, b, and c are coefficients, x is the proportion of ethanol, and y is the voltage ADC code value corresponding to the 1550nm laser.

[0087] Step B4: Find the inverse function of the function "y = ax² + bx + c" in step B3:

[0088]

[0089] Where a0, b0, c0, and d0 are coefficients, x is the proportion of ethanol, and y is the ADC reading of the voltage corresponding to the 1550nm laser.

[0090] Step B5: Prepare 66 aliquots of a mixed solution of ethanol, isooctane, and benzene, and divide them into 11 samples. The ethanol content in each sample remains constant, with ethanol percentages of 100%, 90%, ..., 0%. The volume proportions follow the guidelines in Table 1 below.

[0091] Table 1

[0092]

[0093]

[0094] Step B6 involves performing steps A1 to A4 (66 times in total) and step B3 on the above samples in 11 groups. The collected data is shown in Table 2.

[0095] Table 2

[0096]

[0097]

[0098] Step B7: Perform steps B3 to B4 on the data 1 to data 11 respectively to obtain the following relationship:

[0099]

[0100] The above 11 formulas represent the relationship between the voltage corresponding to the 1650nm laser and the benzene ratio when the ethanol ratio is 100%, 90%, ... 0%. Here, a1-a11, b1-b11, c1-c11, and d1-d11 are coefficients, x1-x11 is the benzene ratio, and y1-y11 is the ADC reading of the voltage corresponding to the 1650nm laser.

[0101] Step C, for measurement phase 2:

[0102] Step C1: Perform steps A1 to A4 to obtain data C. 1550 C 1650 .

[0103] Step C2, C 1550 Substituting y into equation (2), we can calculate x, which is the ethanol ratio.

[0104] Step C3: Select the ethanol from equations (3) to (13) that match the ethanol ratio, and then add C... 1650 Substituting y into the formula, we can calculate x, which is the benzene ratio.

[0105] Step C4, isooctane ratio = 100% - ethanol ratio - benzene ratio.

[0106] In this embodiment, a miniaturized laser is used, significantly reducing the size of the equipment. By selecting multiple laser sources with specific wavelengths for detecting specific mixtures, all lasers can be used, reducing operating costs.

[0107] It should be understood that the embodiments of this application do not limit the number of lasers used. For example, the number of lasers used can be determined based on the proportion of unknown components and the proportion of known components in the mixture.

[0108] It should be understood that although the steps in the flowcharts of the above embodiments are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0109] Based on the same inventive concept, this application also provides a mixture component detection device for implementing the mixture component detection method described above. The solution provided by this device is similar to the solution described in the above method; therefore, the specific limitations in one or more embodiments of the mixture component detection device provided below can be found in the limitations of the mixture component detection method described above, and will not be repeated here.

[0110] This application embodiment also provides a mixture component detection device, which may include: a determination module, a laser emission module, a data acquisition module, a processing module, and an analysis module, wherein: the determination module is used to determine the number of lasers and the wavelength of each laser based on the types of components contained in the mixture; the laser emission module is used to control each laser to emit laser light of a corresponding wavelength so that the laser light passes through the mixture; the data acquisition module is used to acquire the laser signal after passing through the mixture through a laser receiver; the processing module is used to perform photoelectric conversion processing on the laser signal acquired by the laser receiver to obtain electrical signals corresponding to different wavelength laser signals; and the analysis module is used to analyze the component ratio of the mixture based on the electrical signals.

[0111] For example, the determining module is specifically used to: if the mixture contains n types of components, determine the number of lasers to be n-1, where n is a natural number greater than 1; determine the wavelengths of the corresponding n-1 lasers based on the n-1 components contained in the mixture; wherein each wavelength is used to identify one component in the mixture.

[0112] For example, a laser emitting module is specifically used to determine the emission sequence of lasers corresponding to each wavelength; only one laser is turned on at a time to emit laser light corresponding to one wavelength, so that laser light of a single wavelength passes through the mixture.

[0113] For example, the processing module is specifically used to perform photoelectric conversion processing on the laser signal acquired by the laser receiver through an analog-to-digital converter to obtain the voltage amplitude corresponding to different wavelength laser signals; wherein, different voltage amplitudes correspond to the proportions of different components in the mixture.

[0114] For example, the analysis module is specifically used to substitute the numerical value corresponding to the electrical signal into a pre-constructed objective function, and calculate the component ratio corresponding to the electrical signal based on the objective function.

[0115] For example, the above apparatus may further include: a target function construction module for constructing M samples of the mixture; wherein, in the M samples of the mixture, the proportion of each component in each sample is known; M is a natural number greater than 1; if the mixture contains n types of components, then the number of lasers is determined to be n-1, where n is a natural number greater than 1; based on the n-1 components contained in the mixture, the wavelengths of the corresponding n-1 lasers are determined; the M samples are detected by the n-1 lasers respectively to obtain electrical signals corresponding to laser signals of different wavelengths; an initial fitting function is constructed, and the electrical signals corresponding to laser signals of different wavelengths and the known proportions of the mixture are substituted into the initial fitting function to determine the coefficients of the initial fitting function, thereby obtaining the target function.

[0116] Each module in the aforementioned mixture component detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.

[0117] In an exemplary embodiment, a computer device is provided, which may be a server. The computer device includes a processor, memory, input / output interfaces (I / O), and a communication interface. The processor, memory, and I / O interfaces are connected via a system bus, and the communication interface is connected to the system bus via the I / O interfaces. The processor of the computer device provides computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database of the computer device stores data. The I / O interfaces of the computer device are used for exchanging information between the processor and external devices. The communication interface of the computer device is used for communicating with external terminals via a network connection. When the computer program is executed by the processor, it implements a method for detecting the components of a mixture.

[0118] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.

[0119] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.

[0120] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.

[0121] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of the relevant data must comply with relevant regulations.

[0122] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, artificial intelligence (AI) processors, etc., and are not limited to these.

[0123] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0124] The above embodiments are merely illustrative of several implementation methods of this application, and their descriptions are relatively specific and detailed. However, they should not be construed as limiting the scope of this application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for detecting components in a mixture, characterized in that, The method includes: The number of lasers and the wavelength of each laser are determined based on the types of components contained in the mixture. Each laser is controlled to emit a laser of a corresponding wavelength so that the laser can pass through the mixture; The laser signal after passing through the mixture is collected using a laser receiver; The laser signal acquired by the laser receiver is subjected to photoelectric conversion processing to obtain electrical signals corresponding to laser signals of different wavelengths; The composition ratio of the mixture is analyzed based on the electrical signal.

2. The method according to claim 1, characterized in that, The determination of the number of lasers and the wavelength of each laser based on the types of components contained in the mixture includes: If the mixture contains n types of components, then the number of lasers is determined to be n-1, where n is a natural number greater than 1; Based on the n-1 components contained in the mixture, determine the wavelengths of the corresponding n-1 lasers; wherein each wavelength is used to identify one component in the mixture.

3. The method according to claim 1, characterized in that, The method of separately controlling each laser to emit laser light of a corresponding wavelength so that the laser light passes through the mixture includes: Determine the emission sequence of the lasers corresponding to each wavelength; Only one laser is activated at a time to emit a laser of a specific wavelength, so that the single wavelength laser can pass through the mixture.

4. The method according to claim 1, characterized in that, The process of photoelectric conversion processing of the laser signal acquired by the laser receiver to obtain electrical signals corresponding to different wavelength laser signals includes: The laser signal acquired by the laser receiver is processed by photoelectric conversion using an analog-to-digital converter to obtain the voltage amplitude corresponding to different wavelength laser signals; wherein, different voltage amplitudes correspond to the proportions of different components in the mixture.

5. The method according to any one of claims 1 to 4, characterized in that, The step of analyzing the component ratio of the mixture based on the electrical signal includes: The numerical value corresponding to the electrical signal is substituted into a pre-constructed objective function, and the component ratio corresponding to the electrical signal is calculated based on the objective function.

6. The method according to claim 5, characterized in that, Before substituting the numerical value corresponding to the electrical signal into the pre-constructed objective function, the method further includes: Construct M samples of the mixture; wherein, in the M samples of the mixture, the proportion of each component in each sample is known; M is a natural number greater than 1; If the mixture contains n types of components, then the number of lasers is determined to be n-1, where n is a natural number greater than 1; Based on the n-1 components contained in the mixture, determine the wavelengths of the corresponding n-1 lasers; M samples are detected by n-1 lasers respectively, and electrical signals corresponding to laser signals of different wavelengths are obtained; An initial fitting function is constructed, and the electrical signals corresponding to different wavelength laser signals and the known cost ratio of the mixture are substituted into the initial fitting function to determine the coefficients of the initial fitting function, thereby obtaining the target function.

7. A device for detecting the composition of a mixture, characterized in that, The device includes: The determination module is used to determine the number of lasers and the wavelength of each laser based on the types of components contained in the mixture; The laser emitting module is used to control each laser to emit laser light of a corresponding wavelength, so that the laser light can pass through the mixture; The acquisition module is used to acquire the laser signal after passing through the mixture via a laser receiver; The processing module is used to perform photoelectric conversion processing on the laser signal collected by the laser receiver to obtain electrical signals corresponding to different wavelength laser signals; An analysis module is used to analyze the component ratio of the mixture based on the electrical signal.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.