Method and system for screening e-liquid components, and electronic device and readable storage medium
Automatically screen the e-liquid components of the electronic cigarette atomization liquid through electronic equipment, solving the problems of low efficiency, low accuracy and high cost in the prior art, and achieving efficient and accurate screening of prohibited substances.
Patent Information
- Application Number
- PCT/CN2023/138825
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-10-31
- Filing Date
- 2023-12-14
- Publication Date
- 2025-05-08
AI Technical Summary
Incumbent companies rely on manual labor in screening e-liquid components of electronic cigarette atomization liquid, resulting in low screening efficiency, low accuracy and high cost, especially when product development volume and complex e-liquid components.
Provide a method and system for screening e-liquid components, obtain and read files to be screened through electronic devices, compare the components of the e-liquid in the document with specific substances in the preset database, determine whether they contain prohibited substances, and output screening results.
It improves the efficiency and accuracy of banned ingredient screening, reduces the cost of manual screening, and is suitable for large-scale product development and the detection of complex e-liquid components.
Smart Images

Figure CN2023138825_08052025_PF_FP_ABST
Abstract
Description
A method and system for screening e-liquid components, electronic equipment, and readable storage medium
[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on October 31, 2023, with application number 202311439185.1 and application name “A method and system for screening e-liquid components, electronic device, and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field
[0002] The present application belongs to the field of computer technology, and specifically relates to a method and system for screening e-liquid components, an electronic device, and a readable storage medium. Background Art
[0003] At present, existing companies often rely on e-liquid developers to manually screen and process the e-liquid components of electronic cigarette atomizers for banned ingredients. However, with the large amount of product development and the complexity of e-liquid components, manual screening has low efficiency and accuracy, and the cost of manual screening is too high.
[0004] Summary of the Invention
[0005] The embodiments of the present application provide a method and system for screening e-liquid components, an electronic device, and a readable storage medium, which can screen the e-liquid components in the electronic cigarette atomizer for prohibited substances, thereby improving the efficiency and accuracy of screening for prohibited components.
[0006] In a first aspect, embodiments of the present application provide a method for screening e-liquid components, which is applied to electronic devices, and the method includes:
[0007] Obtain documents to be screened;
[0008] Reading the file to be screened to obtain a plurality of e-liquid components to be screened;
[0009] Comparing the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substances;
[0010] Based on the determination result of the specific substance, a screening result is output.
[0011] In one embodiment, comparing the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance includes the following steps:
[0012] The following operations are performed on each of the smoke oil components to be screened to determine whether the multiple smoke oil components to be screened contain the specific substance:
[0013] Determine the first substance identification number of the e-liquid component to be screened in the row where the current data pointer is located;
[0014] Querying the preset database using the first substance identification number to obtain a target query result;
[0015] When the target query result is that the preset database includes the first substance identification number, the to-be-screened e-liquid component in the row where the current data pointer is located is used as the specific substance.
[0016] In one embodiment, the preset database includes a common data portion and a non-common data portion, the common data portion includes a first specific substance commonly included in multiple preset prohibited standards, the non-common data portion includes multiple sub-data portions, each preset prohibited standard corresponds to a sub-data portion, the sub-data portion includes a second specific substance other than the first specific substance in the preset prohibited standard corresponding to the sub-data portion, and the multiple specific substances include the first specific substance and the second specific substance.
[0017] In one embodiment, querying the preset database using the first substance identification number to obtain a target query result includes:
[0018] querying the shared data portion using the first substance identification number to obtain a first query result;
[0019] If it is detected that the first query result is that the shared data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number;
[0020] If it is detected that the first query result is that the shared data portion does not include the first substance identification number, querying the sub-data portions in the non-shared data portion one by one using the first substance identification number to obtain a second query result;
[0021] If it is detected that the second query result is that the non-shared data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number;
[0022] If the second query result is that the non-shared data portion does not include the first substance identification number, then the target query result is determined to be that the preset database does not include the first substance identification number.
[0023] In one embodiment, after determining the to-be-screened e-liquid component in the row where the current data pointer is located as the specific substance, the method further includes:
[0024] Determine whether the row where the current data pointer is located is the last row of the table to be screened;
[0025] If it is determined that the row where the current data pointer is located is not the last row of the to-be-screened table, the data pointer is moved to the row next to the row where the current data pointer is located;
[0026] If it is determined that the row where the current data pointer is located is the last row of the table to be screened, the query of the preset database is stopped.
[0027] In one embodiment, before reading the file to be screened to obtain a plurality of e-liquid components to be screened, the process includes:
[0028] Determining whether a file format of the to-be-screened file is a preset file format, wherein the to-be-screened file includes a to-be-screened table;
[0029] If it is determined that the file format of the to-be-screened file is not the preset file format, the following operations are performed on each column of data in the to-be-screened table:
[0030] Determine the first header string;
[0031] Determine whether the header string of the current column is the first header string;
[0032] If it is determined that the header string of the current column is the first header string, the header string of the current column is adjusted to the second header string.
[0033] In one embodiment, when there are multiple files to be screened, after outputting the screening results based on the determination results of the specific substance, the method further includes:
[0034] determining, upon receiving a completion determination request from a terminal device, a target number of the files to be screened that have completed screening and a total number of the files to be screened, wherein the completion determination request is used to request determination of a current completion degree of the screening of the files to be screened;
[0035] determining a ratio between the target quantity and the total quantity;
[0036] The completion levels of the current plurality of files to be screened are determined according to the ratio.
[0037] In a second aspect, an embodiment of the present application provides a smoke oil component screening system, which is applied to electronic devices. The smoke oil component screening system includes: an acquisition unit, a reading unit, a processing unit, and a generation unit, wherein:
[0038] The acquisition unit is used to acquire the file to be screened;
[0039] The reading unit is used to read the file to be screened to obtain a plurality of e-liquid components to be screened;
[0040] The processing unit is configured to compare the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance; and output a screening result based on the determination result of the specific substance.
[0041] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the program comprises instructions for executing the steps in the first aspect of the embodiment of the present application.
[0042] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program / instruction stored thereon, which implements the steps in the first aspect of the embodiment of the present application when the computer program / instruction is executed by a processor.
[0043] In a fifth aspect, an embodiment of the present application provides a computer program product, wherein the computer program product includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to enable a computer to execute some or all of the steps described in the first aspect of the embodiment of the present application.
[0044] As can be seen, in the embodiment of the present application, the electronic device can first obtain a file to be screened, then read the file to be screened to obtain multiple e-liquid components to be screened, and finally compare the multiple e-liquid components to be screened with multiple specific substances in a preset database, and output a screening result based on the comparison result to determine whether the multiple e-liquid components to be screened contain the specific substance. In this way, the e-liquid components in the electronic cigarette atomizer can be screened for prohibited substances, which is conducive to improving the efficiency and accuracy of the screening of prohibited components. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0046] FIG1A is a schematic diagram of the architecture of a smoke oil component screening system provided in an embodiment of the present application;
[0047] FIG1B is a schematic diagram of the architecture of a banned substance database provided in an embodiment of the present application;
[0048] FIG1C is a schematic diagram of the structure of a search result table provided in an embodiment of the present application;
[0049] FIG2 is a schematic flow chart of a method for screening e-liquid components provided in an embodiment of the present application;
[0050] FIG3 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
[0051] FIG4 is a block diagram of the functional units of a smoke oil component screening system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0052] In order to enable those skilled in the art to better understand the present invention, the following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0053] The terms "first," "second," and the like in the specification and claims of this application and the accompanying drawings are used to distinguish between different objects, not to describe a particular order. Furthermore, the terms "including," "having," and any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or apparatus comprising a series of steps or elements is not limited to the listed steps or elements but may optionally include steps or elements not listed, or may optionally include other steps or elements inherent to the process, method, product, or apparatus.
[0054] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0055] In the embodiments of this application, "and / or" describes the relationship between associated objects and indicates that three relationships can exist. For example, "A and / or B" can represent the following three situations: A exists alone; A and B exist simultaneously; and B exists alone. A and B can be singular or plural.
[0056] In the embodiments of the present application, the symbol " / " can indicate that the preceding and following objects are in an "or" relationship. In addition, the symbol " / " can also represent a division sign, that is, performing a division operation. For example, A / B can mean A divided by B.
[0057] In the embodiments of the present application, "at least one item" or similar expressions refers to any combination of these items, including any combination of single items or plural items, and refers to one or more, and multiple refers to two or more. For example, at least one item (item) of a, b, or c can represent the following seven situations: a, b, c, a and b, a and c, b and c, a, b, and c. Among them, each of a, b, and c can be an element or a set containing one or more elements.
[0058] In the embodiments of this application, "equal to" can be used in conjunction with "greater than" and is applicable to the technical solution adopted when "greater than" is used, and can also be used in conjunction with "less than" and is applicable to the technical solution adopted when "less than" is used. When "equal to" is used in conjunction with "greater than", it should not be used in conjunction with "less than"; when "equal to" is used in conjunction with "less than", it should not be used in conjunction with "greater than".
[0059] In order to better understand the solutions of the embodiments of the present application, the electronic devices that may be involved in the embodiments of the present application are first introduced below.
[0060] The electronic devices involved in the embodiments of the present application may include various handheld devices with wireless communication functions, vehicle-mounted devices, wearable devices, computing devices, or other processing devices connected to a wireless modem, as well as various forms of user equipment (UE), mobile stations (MS), electronic devices (terminal devices), etc. For the convenience of description, the devices mentioned above are collectively referred to as electronic devices.
[0061] Please refer to Figure 1A, which is a schematic diagram of the architecture of a smoke oil component screening system provided in an embodiment of the present application. As shown in Figure 1A, the system includes an electronic device 101, a smoke oil component detection device 102, and a terminal device 103. Electronic device 101 is connected to smoke oil component detection device 102, and electronic device 101 is connected to terminal device 103.
[0062] Among them, the smoke oil component detection device 102 includes but is not limited to a gas chromatograph-mass spectrometer GC-MS device. The smoke oil component detection device 102 is used to perform qualitative and semi-quantitative analysis of the smoke oil components of the electronic cigarette atomizer, and can output a smoke oil component detection report and send the smoke oil component detection report to the electronic device. The electronic device 101 uses the received smoke oil component detection report as a file to be screened.
[0063] Among them, the terminal device 103 can send a completion determination request to the electronic device, and the completion determination request is used to request determination of the current completion of the screening of multiple files to be screened. When the electronic device 101 receives the completion determination request from the terminal device, it determines the target number of the files to be screened that have completed the screening and the total number of the multiple files to be screened. Further, the electronic device 101 determines the ratio between the target number and the total number. Then, the electronic device determines the completion of the current multiple files to be screened based on the ratio, and sends interactive information including the target number of files to be screened that have completed the screening, the total number of multiple files to be screened, and the current completion of the multiple files to be screened to the terminal device; at the same time, the electronic device can also send a retrieval result table in the screening result finally generated by the screening of multiple files to be screened to the terminal device 103.
[0064] Among them, the electronic device 101 can read the file to be screened and the preset database respectively. The specific substances included in the preset data are banned substances in the e-liquid, and the preset database is a banned substance database, as shown in Figure 1B. Figure 1B is a schematic diagram of the architecture of a banned substance database provided in an embodiment of the present application. The banned substance database architecture is the CAS number, banned substance name, banned substance mark and banned substance classification of the banned substance. The banned substance mark includes the hazard classification codes of CARC, REPR, Muta and STOT RE1, among which the health hazard represented by CRC is carcinogenicity, the health hazard represented by REPR is reproductive toxicity, the health hazard represented by Muta is germ cell mutagenicity (may cause genetic defects), and the health hazard represented by STOT RE1 is specific target organ system toxicity; the file to be screened includes the serial number, retention time, CAS number, e-liquid component name, percentage of e-liquid component content, etc. of the e-liquid component. The e-liquid component name includes the Chinese name of the e-liquid component and the English name of the e-liquid component. The CAS number is a unique identification code for a substance in biology and chemistry, that is, a substance identification number.
[0065] Among them, as shown in Figure 1C, Figure 1C is a schematic diagram of the structure of a search result table provided in an embodiment of the present application. The structure of the search result table is serial number, search file name, prohibited substance CAS number, prohibited substance type and prohibited substance name. The prohibited substance type includes hazard classification codes such as CARC, REPR, Muta and STOT RE1.
[0066] In one possible example, electronic device 101 may first obtain a file to be screened from e-liquid component detection device 102. Electronic device 101 then reads the file to be screened to obtain multiple e-liquid components to be screened. Finally, electronic device 101 compares the multiple e-liquid components to be screened with multiple specific substances in a preset database and outputs a screening result based on the comparison result to determine whether the multiple e-liquid components to be screened contain the specific substances. In this way, e-liquid components in electronic cigarette atomizers can be screened for prohibited substances, which is beneficial to improving the efficiency and accuracy of prohibited component screening.
[0067] Please refer to FIG2 , which is a flow chart of a method for screening e-liquid components provided in an embodiment of the present application, which is applied to an electronic device. The method includes:
[0068] Step S201: Obtain the file to be screened.
[0069] The electronic device is communicatively connected with the smoke oil component detection device, and the smoke oil component detection device can send a smoke oil component detection report, i.e., a file to be screened, to the electronic device.
[0070] Among them, the files to be screened include a list to be screened, which includes the serial number, retention time, CAS number, name of the e-liquid component, percentage of the e-liquid component content, etc. The name of the e-liquid component includes the Chinese name of the e-liquid component and the English name of the e-liquid component.
[0071] Step S202: read the file to be screened to obtain a plurality of e-liquid components to be screened.
[0072] Among them, the files to be screened include the list to be screened.
[0073] As shown in Table 1 below:
[0074] Among them, Table 1 is an example of a table to be screened. The smoke oil components included in Table 1 are acetic acid, ethyl acetate, propionic acid, ethyl propionate, propylene glycol and butyric acid. The serial number of acetic acid is 1, the retention time is 4.894s, the percentage is 0.028, the English name is Acetic acid, the Chinese name is Acetic acid and the CAS number is 64-19-7; the serial number of ethyl acetate is 2, the retention time is 5.165s, the percentage is 0.462, the English name is Acetic acid ethyl ester, the Chinese name is Ethyl acetate and the CAS number is 141-78-6; the serial number of propionic acid is 3, the retention time is 6.034s, the percentage is 0.057, the English name is Propanoic acid, the Chinese name is Propanoic acid and the CAS number is 79-09-4; the serial number of ethyl propionate is 4, the retention time is 7.934s, the percentage is 0.738, the English name is Propanoic acid ethyl The test results show that the components of the e-liquid to be screened are acetic acid, ethyl acetate, propionic acid, ethyl propionate, propylene glycol, and butyric acid. The test results show that the components of the e-liquid to be screened are acetic acid, ethyl acetate, propionic acid, ethyl propionate, propylene glycol, and butyric acid.
[0075] Step S203, comparing the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance;
[0076] Step S204: outputting a screening result based on the determination result of the specific substance.
[0077] Among them, the preset database includes multiple pre-set specific substances, and the specific substances are banned substances. The preset database can be a database of banned substances built based on enterprise needs. Banned substances are substances that are harmful to the human body and are prohibited by relevant laws and regulations from being included in electronic cigarette aerosol liquids.
[0078] The screening results include a search results table, which includes the serial number of the specific substance, the file name of the file to be screened, the CAS number of the specific substance, the prohibited substance type of the specific substance, and the prohibited substance name of the specific substance; the prohibited substance type of the specific substance includes the hazard classification codes CARC, REPR, Muta, and STOT RE1. If the result is that the specific substance is not included in multiple e-liquid components to be screened, the data in the search results table of the screening results will be 0.
[0079] The preset database includes a shared data portion and a non-shared data portion. The shared data portion includes a first specific substance commonly included in multiple preset prohibited standards. The non-shared data portion includes multiple sub-data portions, one for each preset prohibited standard, and each sub-data portion includes a second specific substance other than the first specific substance in the preset prohibited standard corresponding to the sub-data portion. The multiple specific substances include the first specific substance and the second specific substance.
[0080] Among them, the preset ban standards can be the standards of countries, regional organizations, etc. for the banned substances in e-cigarette aerosols. Different countries and regional organizations have different ban standards for the banned substances in e-cigarette aerosols. There are multiple different preset ban standards that have commonly banned substances, and there are also single preset ban standards that independently ban substances.
[0081] Optionally, generating a retrieval result table in the screening results includes the following steps: creating an initial retrieval result table; obtaining the file name of the file to be screened and the target e-liquid serial number; determining the second substance identification number, prohibited substance type and prohibited substance name of each of the specific substances; generating a file name header, e-liquid serial number header, substance identification number header, prohibited substance type header and prohibited substance name header of the initial retrieval result table; writing the file name of the file to be screened, the target e-liquid serial number, the second substance identification number of each of the specific substances, the prohibited substance type of each of the specific substances and the prohibited substance name of each of the specific substances into the corresponding position of the header of the initial retrieval result table to obtain the retrieval result table of the screening results.
[0082] Among them, the names of banned substances include the Chinese names of banned substances and the English names of banned substances.
[0083] Among them, the second substance identification number is different from the first substance identification number. The first substance identification number refers to the CAS number of the e-liquid component to be screened, and the second substance identification number refers to the CAS number of the specific substance.
[0084] Among them, steps S201 to S204 are implemented based on Python language.
[0085] As can be seen, in the embodiment of the present application, the electronic device can first obtain a file to be screened, then read the file to be screened to obtain multiple e-liquid components to be screened, and finally compare the multiple e-liquid components to be screened with multiple specific substances in a preset database, and output a screening result based on the comparison result to determine whether the multiple e-liquid components to be screened contain the specific substance. In this way, the e-liquid components in the electronic cigarette atomizer can be screened for prohibited substances, which is conducive to improving the efficiency and accuracy of the screening of prohibited components.
[0086] In one possible example, comparing and determining the determination result of whether the multiple e-liquid components to be screened contain the specific substance includes the following steps: performing the following operations on each of the e-liquid components to be screened to determine whether the multiple e-liquid components to be screened contain the specific substance: determining the first substance identification number of the e-liquid component to be screened in the row where the current data pointer is located; querying the preset database with the first substance identification number to obtain a target query result; when the target query result is that the preset database includes the first substance identification number, the e-liquid component to be screened in the row where the current data pointer is located is used as the specific substance.
[0087] Among them, the first substance identification number is the CAS number of the e-liquid component to be screened, and the CAS number is the unique identification code for substances in biology and chemistry.
[0088] Taking Table 1 as an example, if the row where the current data pointer is located is ethyl acetate with sequence number 2, the CAS number 141-78-6 is used to traverse the preset database to query whether the CAS number 141-78-6 is included, and obtain the query result. If the query result is that the preset database query does not include the CAS number 141-78-6, ethyl acetate is not used as a specific substance. If the query result is that the preset database query includes the CAS number 141-78-6, ethyl acetate is used as a specific substance.
[0089] It can be seen that in this example, the electronic device traverses and queries the preset database through the first substance identification number to determine the specific substance in the file to be screened, which is conducive to improving the screening efficiency and accuracy of banned substances.
[0090] In one possible example, in terms of querying the preset database with the first substance identification number to obtain a target query result, the above method may include the following steps: querying the common data part with the first substance identification number to obtain a first query result; if it is detected that the first query result is that the common data part includes the first substance identification number, then determining that the target query result is that the preset database includes the first substance identification number; if it is detected that the first query result is that the common data part does not include the first substance identification number, then querying the sub-data parts in the non-common data part one by one with the first substance identification number to obtain a second query result; if it is detected that the second query result is that the non-common data part includes the first substance identification number, then determining that the target query result is that the preset database includes the first substance identification number; if the second query result is that the non-common data part does not include the first substance identification number, then determining that the target query result is that the preset database does not include the first substance identification number.
[0091] Wherein, when the first query result is that the shared data portion includes the first substance identification number, it is determined that the target query result is that the preset database includes the first substance identification number, and the query of the preset database is terminated.
[0092] It can be seen that in this example, the electronic device can prioritize searching the shared data portion of the preset database. When the first search result shows that the shared data portion does not include the first substance identification number, the electronic device can then search the non-shared data portion of the preset database, which is beneficial to improving query efficiency.
[0093] In one possible example, after the to-be-screened e-liquid component in the row where the current data pointer is located is taken as the specific substance, the above method may include the following steps: determining whether the row where the current data pointer is located is the last row of the table to be screened; if it is determined that the row where the current data pointer is located is not the last row of the table to be screened, moving the data pointer to the row next to the row where the current data pointer is located; if it is determined that the row where the current data pointer is located is the last row of the table to be screened, stopping querying the preset database.
[0094] Among them, if it is determined that the current data pointer is located at the last row of the table to be screened, the query of the preset database is stopped, indicating that all the e-liquid components in the current file to be screened have been screened. When there are multiple files to be screened, the screening of the next file to be screened is started.
[0095] Taking Table 1 as an example, if the row where the current data pointer is located is propylene glycol with sequence number 5, and it is determined that the row where the current data pointer is located is not the last row of the table to be screened, the data pointer is moved to the row next to the row where the current data pointer is located, that is, the row where butyric acid with sequence number 6 is located. If the row where the current data pointer is located is butyric acid with sequence number 6, it is determined that the row where the current data pointer is located is the last row of the table to be screened, and the query of the preset database for the e-liquid components in the table to be screened is stopped.
[0096] Optionally, if it is determined that the row where the current data pointer is located is not the last row of the table to be screened, the data pointer is moved to the row next to the row where the current data pointer is located. After receiving a retrieval progress determination request from the terminal device, the target number of rows of the e-liquid components that have completed the screening and the total number of rows of the e-liquid components to be screened in the table to be screened are determined. The retrieval progress determination request is used to request determination of the current retrieval progress of the screening of the table to be screened; determine a second ratio between the target number of rows and the total number of rows; and determine the current retrieval progress of the table to be screened based on the second ratio.
[0097] Optionally, when there are multiple files to be screened, after stopping querying the preset database, the target number of files to be screened and the total number of the multiple files to be screened are determined, and it is judged whether the target number of files is equal to the total number. If it is judged that the target number of files is equal to the total number, it is determined that the multiple files to be screened have completed the screening retrieval, and the time when the multiple files to be screened have completed the screening retrieval is recorded, the time is written into the retrieval result table, and the retrieval result table is sent to the terminal device.
[0098] For example, the e-liquid components to be screened in Table 1 include acetic acid, ethyl acetate, propionic acid, ethyl propionate, propylene glycol, and butyric acid. The total number of rows of e-liquid components to be screened is 6 rows. If the e-liquid components that have been screened include acetic acid, ethyl acetate, and propionic acid, then the current target number of rows that have been screened is 3 rows. The second ratio is determined to be 0.5, and the current retrieval progress of the table to be screened is 50%.
[0099] It can be seen that in this example, the electronic device can determine whether the row where the current data pointer is located is the last row to adjust the data pointer, which is conducive to improving the intelligence of information processing of the electronic device.
[0100] In a possible example, before reading the file to be screened and obtaining multiple e-liquid components to be screened, the above method may include the following steps: determining whether the file format of the file to be screened is a preset file format; if it is determined that the file format of the file to be screened is not the preset file format, performing the following operations on each column of data in the table to be screened: determining a first header string; determining whether the header string of the current column is the first header string; if it is determined that the header string of the current column is the first header string, adjusting the header string of the current column to a second header string.
[0101] Among them, the preset file format can be set manually or by system default, and is not limited here; the electronic cigarette aerosol liquid composition report output by the smoke oil composition detection equipment is of multiple types, and different types of electronic cigarette aerosol liquid composition reports have differences in file formats. It is necessary to standardize the file formats of different types of electronic cigarette aerosol liquid composition reports to facilitate electronic devices to read the smoke oil composition data in the electronic cigarette aerosol liquid composition report.
[0102] Among them, the second header string is a standardized header string that can be read by the electronic device, and the first header string is different from the second header string and is a pre-defined header string. When the header string of the file to be screened is not the standardized second header string, the electronic device cannot read the e-liquid components to be screened in the table to be screened.
[0103] Among them, after the header is standardized, the electronic device stores the documents to be screened in the target folder.
[0104] In the specific implementation, the string comparison and judgment is performed column by column on the row where the current data pointer is located to determine whether the current header string is the first header string. If so, the header string of the current column is adjusted to the second header string. If not, the string comparison and judgment of the next column and the string adjustment are performed. After completing the string comparison and judgment of each column of the row where the current data pointer is located, the current data pointer is moved to the next row where the current data pointer is located, and the string comparison and judgment of the next row is performed column by column.
[0105] It can be seen that in this example, the electronic device can standardize the format of the file to be screened before reading the list to be screened in the screening file, which is beneficial to improving the efficiency of the electronic device in screening banned substances.
[0106] In one possible example, when there are multiple documents to be screened, in step S204, after outputting the screening result based on the determination result of the specific substance, the above method may include the following steps: upon receiving a completion determination request from the terminal device, determining the target number of the documents to be screened that have currently completed screening and the total number of the multiple documents to be screened, the completion determination request being used to request determination of the current completion of the screening of the multiple documents to be screened; determining a ratio between the target number and the total number; and determining the current completion of the multiple documents to be screened based on the ratio.
[0107] The electronic device is communicatively connected to the terminal device, and the electronic device can receive a completion determination request sent by the terminal device.
[0108] The electronic device may send interactive information including the target number of files to be screened that have completed screening, the total number of multiple files to be screened, and the completion degree of the multiple files to be screened to the terminal device.
[0109] It can be seen that in this example, the electronic device can determine the completion degree of screening of multiple files to be screened in real time, which is convenient for users to view, helps to improve user experience, and helps to improve the intelligence of information processing of electronic devices.
[0110] In one possible example, if it is determined that the header string of the current column is the first header string, then after adjusting the header string of the current column to the second header string, the above method may also include the following steps: determining the target style that needs to be adjusted for the table to be screened; and adjusting the table style of the table to be screened according to the target style.
[0111] Among them, the target style includes at least one of the following: target font format, target alignment, target border format, and target background color style. The target font format includes at least one of the following: font type, font size, bold font, underline, and italic font; the target alignment is the cell alignment, which may include left alignment and right alignment; the target border format includes at least one of the following: thin solid line, small thick solid line, thin dashed line, medium thin dashed line, large thick solid line, double line, thin dotted line, large thick dashed line, thin dotted line, thick dotted line, thin double dotted line, thick double dotted line, and oblique dotted line; the background color style includes background color and background color pattern.
[0112] It can be seen that in this example, the electronic device can standardize the format of the to-be-screened table, which facilitates reading multiple to-be-screened e-liquid components in the to-be-screened table in the to-be-screened file, and is beneficial to improving the screening efficiency of the electronic device for prohibited substances.
[0113] Please refer to FIG3 , which is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in FIG3 , the electronic device includes a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs are configured to cause the processor to execute the following steps:
[0114] Obtain documents to be screened;
[0115] Reading the file to be screened to obtain a plurality of e-liquid components to be screened;
[0116] Compare the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substances; and output a screening result based on the determination result.
[0117] As can be seen, in the embodiment of the present application, the electronic device can first obtain a file to be screened, then read the file to be screened to obtain multiple e-liquid components to be screened, and finally compare the multiple e-liquid components to be screened with multiple specific substances in a preset database, and output a screening result based on the comparison result to determine whether the multiple e-liquid components to be screened contain the specific substance. In this way, the e-liquid components in the electronic cigarette atomizer can be screened for prohibited substances, which is conducive to improving the efficiency and accuracy of the screening of prohibited components.
[0118] In one possible example, comparing the determination results of whether the multiple e-liquid components to be screened contain the specific substance includes the following steps:
[0119] The following operations are performed on each of the smoke oil components to be screened to determine whether the multiple smoke oil components to be screened contain the specific substance:
[0120] Determine the first substance identification number of the e-liquid component to be screened in the row where the current data pointer is located;
[0121] Querying the preset database using the first substance identification number to obtain a target query result;
[0122] When the target query result is that the preset database includes the first substance identification number, the to-be-screened e-liquid component in the row where the current data pointer is located is used as the specific substance.
[0123] In one possible example, in terms of querying the preset database using the first substance identification number to obtain a target query result, the program further includes instructions for executing the following steps:
[0124] querying the shared data portion using the first substance identification number to obtain a first query result;
[0125] If it is detected that the first query result is that the shared data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number;
[0126] If it is detected that the first query result is that the shared data portion does not include the first substance identification number, querying the sub-data portions in the non-shared data portion one by one using the first substance identification number to obtain a second query result;
[0127] If it is detected that the second query result is that the non-shared data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number;
[0128] If the second query result is that the non-shared data portion does not include the first substance identification number, then the target query result is determined to be that the preset database does not include the first substance identification number.
[0129] In a possible example, after the to-be-screened e-liquid component in the row where the current data pointer is located is used as the specific substance, the program further includes instructions for executing the following steps:
[0130] Determine whether the row where the current data pointer is located is the last row of the table to be screened;
[0131] If it is determined that the row where the current data pointer is located is not the last row of the to-be-screened table, the data pointer is moved to the row next to the row where the current data pointer is located;
[0132] If it is determined that the row where the current data pointer is located is the last row of the table to be screened, the query of the preset database is stopped.
[0133] In one possible example, before reading the file to be screened to obtain the plurality of e-liquid components to be screened, the program further includes instructions for executing the following steps:
[0134] Determining whether a file format of the to-be-screened file is a preset file format, wherein the to-be-screened file includes a to-be-screened table;
[0135] If it is determined that the file format of the to-be-screened file is not the preset file format, the following operations are performed on each column of data in the to-be-screened table:
[0136] Determine the first header string;
[0137] Determine whether the header string of the current column is the first header string;
[0138] If it is determined that the header string of the current column is the first header string, the header string of the current column is adjusted to the second header string.
[0139] In one possible example, when there are multiple files to be screened, after comparing the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance; and outputting a screening result based on the determination result of the specific substance, the program further includes instructions for performing the following steps:
[0140] determining, upon receiving a completion determination request from a terminal device, a target number of the files to be screened that have completed screening and a total number of the files to be screened, wherein the completion determination request is used to request determination of a current completion degree of the screening of the files to be screened;
[0141] determining a ratio between the target quantity and the total quantity;
[0142] The completion levels of the current plurality of files to be screened are determined according to the ratio.
[0143] In a possible example, if it is determined that the header string of the current column is the first header string, then after adjusting the header string of the current column to the second header string, the program further includes instructions for performing the following steps:
[0144] Determining the target pattern that needs to be adjusted for the table to be screened;
[0145] According to the target style, the table style of the table to be screened is adjusted.
[0146] The above mainly introduces the solution of the embodiment of the present application from the perspective of the execution process on the method side. It is understandable that, in order to realize the above functions, the electronic device includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiment provided in this article, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0147] The embodiment of the present application can divide the functional units of the electronic device according to the above method example. For example, each functional unit can be divided according to each function, or two or more functions can be integrated into one processing unit. The above integrated unit can be implemented in the form of hardware or in the form of software functional units. It should be noted that the division of units in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0148] In the case of dividing each functional module according to each function, FIG4 shows a functional unit composition block diagram of a smoke oil component screening system 400. As shown in FIG4 , the smoke oil component screening system 400 is applied to an electronic device and includes: an acquisition unit 401, a reading unit 402, a processing unit 403, a generation unit 404, a judgment unit 405, and an adjustment unit 406, wherein:
[0149] The acquisition unit 401 is used to acquire the file to be screened;
[0150] The reading unit 402 is used to read the file to be screened and obtain multiple e-liquid components to be screened;
[0151] The processing unit 403 is configured to compare the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance; and output a screening result based on the determination result of the specific substance.
[0152] As can be seen, the e-liquid component screening system described in the embodiment of the present application can first obtain a file to be screened, then read the file to be screened to obtain multiple e-liquid components to be screened, and finally compare the multiple e-liquid components to be screened with multiple specific substances in a preset database, and output a screening result based on the comparison result to determine whether the multiple e-liquid components to be screened contain specific substances. In this way, the e-liquid components in the electronic cigarette atomizer can be screened for banned substances, which is conducive to improving the efficiency and accuracy of banned component screening.
[0153] In one possible example, in terms of comparing the determination results of whether the multiple e-liquid components to be screened contain the specific substance, the processing unit 403 is further specifically configured to:
[0154] The following operations are performed on each of the smoke oil components to be screened to determine whether the multiple smoke oil components to be screened contain the specific substance:
[0155] Determine the first substance identification number of the e-liquid component to be screened in the row where the current data pointer is located;
[0156] Querying the preset database using the first substance identification number to obtain a target query result;
[0157] When the target query result is that the preset database includes the first substance identification number, the to-be-screened e-liquid component in the row where the current data pointer is located is used as the specific substance.
[0158] In a possible example, in terms of querying the preset database using the first substance identification number to obtain a target query result, the processing unit 403 is further specifically configured to:
[0159] querying the shared data portion using the first substance identification number to obtain a first query result;
[0160] If it is detected that the first query result is that the shared data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number;
[0161] If it is detected that the first query result is that the shared data portion does not include the first substance identification number, querying the sub-data portions in the non-shared data portion one by one using the first substance identification number to obtain a second query result;
[0162] If it is detected that the second query result is that the non-shared data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number;
[0163] If the second query result is that the non-shared data portion does not include the first substance identification number, then the target query result is determined to be that the preset database does not include the first substance identification number.
[0164] In a possible example, after the to-be-screened e-liquid component in the row where the current data pointer is located is used as the specific substance, the judgment unit 405 is further specifically configured to:
[0165] Determine whether the row where the current data pointer is located is the last row of the table to be screened;
[0166] If it is determined that the row where the current data pointer is located is not the last row of the to-be-screened table, the data pointer is moved to the row next to the row where the current data pointer is located;
[0167] If it is determined that the row where the current data pointer is located is the last row of the table to be screened, the query of the preset database is stopped.
[0168] In a possible example, before reading the file to be screened to obtain the plurality of e-liquid components to be screened, the judgment unit 405 is specifically configured to:
[0169] Determining whether the file format of the file to be screened is a preset file format;
[0170] If it is determined that the file format of the to-be-screened file is not the preset file format, the following operations are performed on each column of data in the to-be-screened table:
[0171] Determine the first header string;
[0172] Determine whether the header string of the current column is the first header string;
[0173] If it is determined that the header string of the current column is the first header string, the header string of the current column is adjusted to the second header string.
[0174] In one possible example, when there are multiple files to be screened, after comparing the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance; and outputting the screening result based on the determination result of the specific substance, the processing unit 403 is specifically configured to:
[0175] determining, upon receiving a completion determination request from a terminal device, a target number of the files to be screened that have completed screening and a total number of the files to be screened, wherein the completion determination request is used to request determination of a current completion degree of the screening of the files to be screened;
[0176] determining a ratio between the target quantity and the total quantity;
[0177] The completion levels of the current plurality of files to be screened are determined according to the ratio.
[0178] In a possible example, if it is determined that the header string of the current column is the first header string, then after adjusting the header string of the current column to the second header string, the adjusting unit 406 is specifically configured to:
[0179] Determining the target pattern that needs to be adjusted for the table to be screened;
[0180] According to the target style, the table style of the table to be screened is adjusted.
[0181] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0182] The electronic device provided in this embodiment is used to execute the above-mentioned e-liquid component screening method, and thus can achieve the same effect as the above-mentioned implementation method.
[0183] When integrated units are used, the electronic device may include a processing module, a storage module, and a communication module. The processing module may be used to control and manage the operation of the electronic device. For example, it may be used to support the electronic device in executing the steps performed by the acquisition unit 401, reading unit 402, processing unit 403, generation unit 404, determination unit 405, and adjustment unit 406. The storage module may be used to support the electronic device in executing and storing program code and data. The communication module may be used to support communication between the electronic device and other devices.
[0184] The processing module may be a processor or a controller. It may implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, and so on. The storage module may be a memory. The communication module may specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, or a Wi-Fi chip.
[0185] An embodiment of the present application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program enables a computer to execute part or all of the steps of any method described in the above method embodiments, and the above computer includes an electronic device.
[0186] The present application also provides a computer program product comprising a non-transitory computer-readable storage medium storing a computer program, wherein the computer program is operable to cause a computer to perform some or all of the steps of any of the methods described in the above method embodiments. The computer program product may be a software installation package, and the computer includes a control platform.
[0187] It should be noted that for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that this application is not limited by the order of the actions described, because according to this application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
[0188] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0189] In the several embodiments provided in this application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the above-mentioned units is only a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0190] The units described above as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0191] In addition, the functional units in the various embodiments of the present application may be integrated into a single processing unit, or each unit may exist physically separately, or two or more units may be integrated into a single unit. The aforementioned integrated units may be implemented in the form of hardware or software functional units.
[0192] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a memory and includes a number of instructions for enabling a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the above-mentioned methods of each embodiment of the present application. The aforementioned memory includes: various media that can store program codes, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.
[0193] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, which may include: a flash drive, a read-only memory, a random access memory, a magnetic disk or an optical disk, etc.
[0194] The above is a detailed introduction to the embodiments of the present application. Specific examples are used herein to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and core idea of the present application. At the same time, for those skilled in the art, according to the idea of the present application, there may be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A method for screening e-liquid components, characterized in that: Used in electronic equipment, including: Obtain documents to be screened; Read the file to be screened to obtain multiple e-liquid components to be screened; Comparing the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance; Based on the determination result of the specific substance, a screening result is output.
2. The method according to claim 1, characterized in that Comparing the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance includes the following steps: The following operations are performed on each of the e-liquid components to be screened to determine whether the multiple e-liquid components to be screened contain the specific substance: Determine the first substance identification number of the to-be-screened e-liquid component of the row where the current data pointer is located; Querying the preset database with the first substance identification number to obtain a target query result; When the target query result is that the preset database includes the first substance identification number, the to-be-screened e-liquid component in the row where the current data pointer is located is used as the specific substance.
3. The method according to claim 1, characterized in that: The preset database includes a common data part and a non-common data part, the common data part includes a first specific substance commonly included in multiple preset prohibited standards, the non-common data part includes multiple sub-data parts, each preset prohibited standard corresponds to a sub-data part, the sub-data part includes the second specific substance in the preset prohibited standard corresponding to the sub-data part except the first specific substance, and the multiple specific substances include the first specific substance and the second specific substance.
4. The method according to claim 3, characterized in that The step of querying the preset database with the first substance identification number to obtain a target query result includes: querying the shared data portion using the first substance identification number to obtain a first query result; If it is detected that the first query result is that the common data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number; If it is detected that the first query result is that the common data part does not include the first substance identification number, query the sub-data parts in the non-common data part one by one with the first substance identification number to obtain a second query result; If it is detected that the second query result is that the non-shared data portion includes the first substance identification number, determining that the target query result is that the preset database includes the first substance identification number; If the second query result is that the non-shared data portion does not include the first substance identification number, then the target query result is determined to be that the preset database does not include the first substance identification number.
5. The method according to claim 2, characterized in that: After taking the to-be-screened e-liquid component in the row where the current data pointer is located as the specific substance, the method further includes: Determine whether the row where the current data pointer is located is the last row of the table to be screened; If it is determined that the row where the current data pointer is located is not the last row of the to-be-screened table, the data pointer is moved to the next row where the current data pointer is located; If it is determined that the row where the current data pointer is located is the last row of the table to be screened, the query of the preset database is stopped.
6. The method according to claim 1, characterized in that Before reading the file to be screened to obtain a plurality of e-liquid components to be screened, the method includes: Determining whether the file format of the to-be-screened file is a preset file format, wherein the to-be-screened file includes a to-be-screened table; If it is determined that the file format of the to-be-screened file is not the preset file format, the following operations are performed on each column of data in the to-be-screened table: Determine the first header string; Determine whether the header string of the current column is the first header string; If it is determined that the header string of the current column is the first header string, the header string of the current column is adjusted to the second header string.
7. The method according to claim 1, characterized in that When there are multiple files to be screened, after outputting the screening result based on the determination result of the specific substance, the method further includes: After receiving a completion determination request from a terminal device, determining the target number of the to-be-screened files that have completed screening and the total number of the multiple to-be-screened files, the completion determination request is used to request determination of the current completion degree of the screening of the multiple to-be-screened files; determining a ratio between the target quantity and the total quantity; The completion degree of the current plurality of files to be screened is determined according to the ratio.
8. A smoke oil component screening system, characterized in that: Applied to electronic devices, the smoke oil component screening system includes: an acquisition unit, a reading unit, a processing unit and a generation unit, wherein: The acquisition unit is used to acquire the file to be screened; The reading unit is used to read the file to be screened to obtain a plurality of e-liquid components to be screened; The processing unit is used to compare the multiple e-liquid components to be screened with multiple specific substances in a preset database to determine whether the multiple e-liquid components to be screened contain the specific substance; and output a screening result based on the determination result of the specific substance.
9. An electronic device, characterized in that: The method comprises a processor, a memory, a communication interface, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the processor, and the programs include instructions for executing the steps in the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: A computer program for electronic data exchange is stored, wherein the computer program enables a computer to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Screening method of volatile organic compound in cigarette filter tip blasting-bead
CN106770707A
Method for screening chemical risk substances such as nitroimidazole antibiotics in toiletries
CN107543874A
High-throughput screening method for 200 chemical risk substances in toy
CN110715999A
Tobacco tar component identification method and system based on electronic smoke detection
CN114299688A
Method for detecting tobacco tar components of electronic cigarette
CN114441679A