CN107995948B - Substance detection method, substance detection device, storage medium, and electronic apparatus - Google Patents

Substance detection method, substance detection device, storage medium, and electronic apparatus Download PDF

Info

Publication number
CN107995948B
CN107995948B CN201780002475.6A CN201780002475A CN107995948B CN 107995948 B CN107995948 B CN 107995948B CN 201780002475 A CN201780002475 A CN 201780002475A CN 107995948 B CN107995948 B CN 107995948B
Authority
CN
China
Prior art keywords
data
substance
timing
sensor data
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201780002475.6A
Other languages
Chinese (zh)
Other versions
CN107995948A (en
Inventor
骆磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Cloudoptek Technology Co ltd
Original Assignee
Shenzhen Qianhaida Yunyun Intelligent Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Qianhaida Yunyun Intelligent Technology Co ltd filed Critical Shenzhen Qianhaida Yunyun Intelligent Technology Co ltd
Publication of CN107995948A publication Critical patent/CN107995948A/en
Application granted granted Critical
Publication of CN107995948B publication Critical patent/CN107995948B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N21/00Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
    • G01N21/62Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light
    • G01N21/63Systems in which the material investigated is excited whereby it emits light or causes a change in wavelength of the incident light optically excited
    • G01N21/65Raman scattering

Landscapes

  • Health & Medical Sciences (AREA)
  • Nuclear Medicine, Radiotherapy & Molecular Imaging (AREA)
  • Physics & Mathematics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Chemical & Material Sciences (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • General Physics & Mathematics (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Investigating, Analyzing Materials By Fluorescence Or Luminescence (AREA)

Abstract

The disclosure provides a substance detection method, a substance detection device, a storage medium and an electronic device, and relates to the field of substance detection, wherein the method comprises the following steps: and when the Raman detection equipment starts to emit laser to the substance to be detected and moves according to the preset route, timing is started. And when the timing reaches a preset time interval, recording the current sensor data of the spectrometer sensor, resetting the spectrometer sensor and continuing timing. And determining whether a preset data condition is met according to the n sensor data recorded currently. And when the data condition is met, performing substance identification according to the n sensor data. And outputting a substance identification result. And recording the current sensor data of the spectrometer sensor to output a substance identification result when the timing is detected to meet the preset time interval. The accuracy and output efficiency of substance detection can be improved.

Description

Substance detection method, substance detection device, storage medium, and electronic apparatus
Technical Field
The present disclosure relates to the field of substance detection, and in particular, to a method and an apparatus for detecting a substance, a storage medium, and an electronic device.
Background
Raman detection devices utilize raman scattering to detect the components of substances, and are currently used in a variety of fields, including professional oil exploration, drug detection, and scenes such as common safety inspection and drug enforcement in life.
The existing detection method of the Raman detection equipment aims at the material detection of one point, namely, data collected on the point is detected at the position focused by laser emitted by the Raman detection equipment, and the existing method can obtain an effective detection result aiming at a single-component material.
Disclosure of Invention
The disclosure provides a substance detection method, a substance detection device, a storage medium and electronic equipment, which are used for solving the problems of inaccurate measurement results and inapplicable partial scenes caused by fixed-point acquisition.
In order to achieve the above object, according to a first aspect of embodiments of the present disclosure, there is provided a substance detection method including:
when the Raman detection equipment starts to emit laser to the substance to be detected and moves according to a preset route, timing is started;
when the timing reaches a preset time interval, recording the current sensor data of the spectrometer sensor, resetting the spectrometer sensor, and continuing timing;
determining whether a preset data condition is met according to n sensor data recorded currently;
when the data condition is met, performing substance identification according to the n sensor data;
outputting a substance identification result; and the number of the first and second groups,
and the step of recording the current sensor data of the spectrometer sensor to the output substance identification result when the timing is detected to meet the preset time interval is executed again.
According to a second aspect of embodiments of the present disclosure, there is provided a substance detection apparatus, the apparatus comprising:
the timing module is used for starting timing when the Raman detection equipment starts to emit laser to the substance to be detected and moves according to a preset route;
the recording module is used for recording the current sensor data of the spectrometer sensor when the timing reaches a preset time interval, resetting the spectrometer sensor and continuing timing by the timing module;
the judging module is used for determining whether a preset data condition is met according to the currently recorded n sensor data;
the identification module is used for identifying substances according to the n sensor data when the data condition is met;
the output module is used for outputting a substance identification result;
and the step of recording the current sensor data of the spectrometer sensor to the output substance identification result when the timing is detected to meet the preset time interval is executed again.
According to a third aspect of embodiments of the present disclosure, there is provided a computer readable storage medium having one or more programs embodied therein for performing the method of the first aspect of embodiments of the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a substance detection device including: the computer-readable storage medium of the third aspect of the embodiments of the present disclosure; and
one or more processors to execute the program in the computer-readable storage medium.
According to the technical scheme, when the Raman detection equipment moves and emits laser according to a specified route, timing is started, data collected by the spectrometer sensor is recorded according to a preset time interval, the collected data are linearly superposed, the superposed data are judged under the condition of integral duration or signal-to-noise ratio detection results, a substance to be detected is detected when the conditions are met, and a substance identification result is output. Meanwhile, the timing is not interrupted, timing and collection of the next time interval are continued, and a continuous substance identification result on the specified route can be output. The problems of missing measurement and inaccurate measurement which possibly occur in a fixed-point detection method can be avoided, and the method has the effect of improving the accuracy and the output efficiency of substance detection.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
FIG. 1 is a flow chart of a method of substance detection provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 2 is a flow chart of another method of substance detection provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 3 is a flow chart of another method of substance detection provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 4 is a flow chart of another method of substance detection provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 5 is a flow chart of yet another method of substance detection provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 6 is a flow chart of yet another method of substance detection provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 7 is a block diagram of a substance detection device provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 8 is a block diagram of another substance detection device provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 9 is a block diagram of yet another substance detection device provided in accordance with an exemplary embodiment of the present disclosure;
FIG. 10 is a block diagram illustrating an electronic device in accordance with an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Before introducing the substance detection method, apparatus, and storage medium provided by the present disclosure, an application scenario related to various embodiments of the present disclosure will be described first. The application scenario is that the Raman detection equipment is utilized to detect the substance to be detected according to a certain route. The Raman detection equipment is provided with a laser transmitter and a spectrometer sensor.
Fig. 1 is a flowchart of a substance detection method provided according to an exemplary embodiment of the present disclosure, as shown in fig. 1, the method including:
step 101, when the raman detection device starts to emit laser to the substance to be detected and the raman detection device moves according to a preset route, timing is started.
In the example, the detection is performed on the substance to be detected, and the laser emitter of the raman detection device is turned on, and the laser emitter continuously emits light. And then the Raman detection equipment is held by a user in a hand mode, or the Raman detection equipment is carried by mechanical devices such as an unmanned aerial vehicle and a robot to move according to a preset route, and timing is started at the moment. The preset route can be set according to the characteristics of the substance to be detected, such as shape, volume and the like, or can be set by a user according to specific needs, if the information of the substance to be detected is less, the route cannot be determined, and a pre-stored default route can be selected for detection.
And 102, recording current sensor data of the spectrometer sensor when the timing reaches a preset time interval, resetting the spectrometer sensor, and continuing timing.
For example, the data collected in the spectrometer sensor needs to be emptied after each collection is completed, that is, the current sensor data of the spectrometer sensor is stored and then the data in the spectrometer sensor is emptied each time a preset time interval is reached. The preset time interval may be smaller than a general detection duration of the existing detection method, and the general detection duration is 2-3s, so that the preset time interval may be set to 0.5 s. For example, each 0.5s sensor data and corresponding time may be stored as a record In a table, as shown In table 1, or the sensor data may be stored In a LIFO (english: Last In First Out, chinese: Last In First Out) table according to the sequence of the recording time.
TABLE 1
Time of day Sensor data
0.5s Sensor data between 0-0.5s
1s Sensor data between 0.5s-1s
1.5s Sensor data between 1s-1.5s
2s Sensor data between 1.5s-2s
…… ……
And 103, determining whether a preset data condition is met according to the currently recorded n sensor data.
For example, the preset data conditions can be divided into two categories, namely integration with fixed integration duration and automatic signal-to-noise ratio detection decision according to the raman detection device. If the integration mode with fixed integration duration is adopted, the sensor data in the fixed integration duration can be selected to be superposed, the signal-to-noise ratio detection is carried out on the superposed data, and the preset data condition is met through the signal-to-noise ratio detection. If the automatic signal-to-noise ratio detection and judgment mode is adopted, the latest sensor data can be gradually superposed, the signal-to-noise ratio detection is carried out on the data after each superposition, and the preset data condition is met through the signal-to-noise ratio detection.
And 104, when the data condition is met, identifying the substance according to the n sensor data.
And 105, outputting a substance identification result.
And, performing steps 102 to 105 again.
For example, in step 102, the timing is continued while the sensor data is recorded, and by continuously looping step 102 to step 105, the substance identification result on the preset route can be continuously output, so that compared with a case where the substance identification result in the fixed point detection method is a discrete numerical value, the method in this embodiment can display the substance identification result in the form of a trend curve, a state diagram, a data table, or the like.
It should be noted that, in this embodiment, after the end condition is met or a closing instruction of the user is received, the raman detection device may be controlled to close the laser transmitter, and terminate the detection. Wherein the end condition may be that the preset route has been moved over or that a detected turn-off time is set, based on which it is determined whether to turn off the laser transmitter. And a user can issue a closing instruction to actively close the laser transmitter.
In summary, the present disclosure starts timing when the raman detection device moves and emits laser light according to a prescribed route, records data collected by the spectrometer sensor according to a preset time interval, linearly superimposes the collected data, judges the superimposed data under the condition of an integral duration or a signal-to-noise ratio detection result, detects a substance to be detected when the condition is satisfied, and outputs a substance identification result. Meanwhile, the timing is not interrupted, timing and collection of the next time interval are continued, and a continuous substance identification result on the specified route can be output. The problems of missing measurement and inaccurate measurement which possibly occur in a fixed-point detection method can be avoided, and the method has the effect of improving the accuracy and the output efficiency of substance detection.
Fig. 2 is a flowchart of another substance detecting method according to an exemplary embodiment of the disclosure, where as shown in fig. 2, step 103 includes:
and step 1031, judging whether the number of the n sensor data reaches p. The Raman detection device comprises a Raman detection device, a storage unit and a storage unit, wherein n and p are positive integers, n is the total number of the sensor data recorded currently, p is the number of designated data, the number of the designated data is determined according to the ratio of the fixed integration duration of the Raman detection device to the time interval, and the time interval is smaller than the fixed integration duration.
Step 1032a, when n < p, determines that the data condition is not satisfied.
And step 1032b, acquiring the overlay data of the latest acquired p sensor data when n is larger than or equal to p.
Step 1033, perform snr detection on the superimposed data.
Step 1034, when the superimposed data passes the signal-to-noise ratio detection, it is determined that the data condition is satisfied. And when the superposed data does not pass the signal-to-noise ratio detection, determining that the data condition is not met.
For example, when the raman detection device is a detection device with a fixed integration duration, p may be determined according to a ratio of the fixed integration duration to the time interval, for example, p may be the fixed integration duration divided by the time interval and rounded up, where it is noted that the time interval is smaller than the fixed integration duration. Taking the fixed integration time length as 2s and the time interval as 0.5s as an example, then p is 4, i.e. it is determined whether n reaches 4. And when n is less than 4, determining that the data condition is not met, namely the time range corresponding to the n sensor data does not reach the fixed integration duration, and the Raman detection equipment cannot detect the data. And when n is larger than or equal to 4, linearly overlapping the latest acquired p sensor data to obtain overlapped data. And then, carrying out signal-to-noise ratio detection on the superposed data, wherein the superposed data greatly meets the data condition through the signal-to-noise ratio detection, and the superposed data does not meet the data condition if the superposed data does not pass the signal-to-noise ratio detection. The p sensor data which are collected latest are the p sensor data with the smallest time difference between the recording time and the current time in the n sensor data.
For example, when the current time is 5s, n is 10, the sensor data acquired at 0.5s is the first one, the sensor data acquired at 1s is the second one, and so on to the tenth one, and n ≧ p is satisfied at this time, then the superimposed data is the result of superimposing the latest 4 sensor data (tenth, ninth, eighth, and seventh) of the 10 data. When the next time interval of 5.5s is reached, n is 11, n ≧ p is satisfied, and the superimposed data is the superposition of the eleventh, tenth, ninth, and eighth sensor data.
Fig. 3 is a flowchart of another substance detecting method according to an exemplary embodiment of the disclosure, where as shown in fig. 3, step 103 includes:
and 1035, superposing the m data acquired latest to obtain superposed data. Wherein m and n are positive integers, n is the total number of the sensor data which are recorded currently, and in each time interval, the initial value of m is 1, and m is less than or equal to n.
Step 1036, performing snr detection on the superimposed data.
1037a, when the superimposed data is detected by the signal-to-noise ratio, it is determined that the data condition is satisfied.
1037b, when the superimposed data fails to pass the snr detection, let m be m +1, and determine whether m is greater than n.
1038a, when m > n, determining that the data condition is not satisfied.
1038b, when m is less than or equal to n, judging whether m is greater than mmax,mmaxFor a preset maximum number of allowable stacks, mmaxIs a positive integer.
1039 when m is not more than mmaxThen, step 1035 to step 1036 are executed again, and when m is larger than mmaxWhen the data condition is not satisfied, it is determined.
For example, when the raman detection device is a signal-to-noise ratio detection decision detection device, the newly acquired m data may be selected for superposition. And m is set to be 1, namely, for the first time, the latest one of the n sensor data is taken as the superposed data, namely the sensor data which is just recorded at present, and the signal to noise ratio detection is carried out. If the signal-to-noise ratio detection is passed, determining that the data condition is met, if the signal-to-noise ratio detection is not passed, making m equal to m +1, namely m equal to 2, and if m is less than or equal to n and m is less than or equal to mmaxAnd then the latest two of the n sensor data are superposed to be used as the superposition numberAnd performing signal-to-noise ratio detection according to the nth sensor data and the (n-1) th sensor data. And so on until the detection is carried out by the signal to noise ratio, or m is not satisfied to be less than or equal to n and m is less than or equal to mmaxThe loop is ended. Wherein m ismaxIt may be set by dividing the maximum integration time duration by the time interval and rounding up, or it may be set by the user.
Fig. 4 is a flowchart of another substance detecting method according to an exemplary embodiment of the disclosure, where, as shown in fig. 4, step 104 includes:
step 1041, preprocessing the superimposed data, the preprocessing including: denoising, substrate subtraction and normalization processing.
And 1042, performing substance identification on the preprocessed superposition data by using a Raman identification algorithm.
For example, the preprocessed superimposed data is a raman spectrum that can reflect the characteristics of the substance, and since the raman spectrum information of different substances is fixed and unique, the substance can be identified by analyzing the raman spectrum.
Fig. 5 is a flowchart of yet another substance detection method provided according to an exemplary embodiment of the present disclosure, as shown in fig. 5, the method further includes:
and 106, outputting first prompt information when the variation between the substance identification result and the last output substance detection result exceeds a preset threshold, wherein the first prompt information is used for prompting a user that the variation between the substance detection results of the substance to be detected is abnormal. And/or outputting second prompt information, wherein the second prompt information is used for prompting a user to control the moving speed of the Raman detection device.
For example, if the variation between the substance identification result at the current time and the last output substance detection result is too large, it indicates that the component of the substance to be detected has changed, where the variation may be a change of different substances or a change of the concentration of the same substance, and at this time, a first prompt message may be output to display the change of the substance to be detected to the user. Meanwhile, second prompt information can be output to prompt a user to reduce the speed of moving the Raman detection equipment (or reduce the moving speed of mechanical devices such as an unmanned aerial vehicle or a robot). Since the density of the output substance recognition results becomes large when the moving speed is reduced, the amount of change between the substance detection results output two adjacent times is correspondingly reduced. The preset threshold may be set by a user or may be a default value.
Fig. 6 is a flowchart of yet another substance detection method provided according to an exemplary embodiment of the present disclosure, as shown in fig. 6, the method further includes:
and 107, outputting third prompt information when the data condition is not met, wherein the third prompt information is used for prompting that the sensor data currently acquired by the user does not meet the data condition.
Illustratively, when the data condition is not satisfied, i.e., n is in the method of FIG. 2<p or overlay data not detected by signal-to-noise ratio, or m in the method of FIG. 3>n or m>mmaxUnder the condition, the user can be prompted that the sensor data collected at present cannot obtain an accurate detection result.
In summary, the present disclosure starts timing when the raman detection device moves and emits laser light according to a prescribed route, records data collected by the spectrometer sensor according to a preset time interval, linearly superimposes the collected data, judges the superimposed data under the condition of an integral duration or a signal-to-noise ratio detection result, detects a substance to be detected when the condition is satisfied, and outputs a substance identification result. Meanwhile, the timing is not interrupted, timing and collection of the next time interval are continued, and a continuous substance identification result on the specified route can be output. The problems of missing measurement and inaccurate measurement which possibly occur in a fixed-point detection method can be avoided, and the method has the effect of improving the accuracy and the output efficiency of substance detection.
Fig. 7 is a block diagram of a substance detecting device according to an exemplary embodiment of the present disclosure, and as shown in fig. 7, the device 200 includes:
the timing module 201 is configured to start timing when the raman detection apparatus starts to emit laser to the substance to be detected and the raman detection apparatus moves according to a preset route.
The recording module 202 is configured to record current sensor data of the spectrometer sensor when it is detected that the timing reaches a preset time interval, clear the spectrometer sensor, and continue timing by the timing module.
The judging module 203 is configured to determine whether a preset data condition is met according to the currently recorded n sensor data.
And the identification module 204 is used for identifying substances according to the n sensor data when the data condition is met.
And the output module 205 is used for outputting the substance identification result.
And when the timing is detected to meet the preset time interval, recording the current sensor data of the spectrometer sensor to output a substance identification result.
Optionally, the determining module 203 is configured to:
and judging whether the number of the n sensor data reaches p. The Raman detection device comprises a Raman detection device, a storage unit and a storage unit, wherein n and p are positive integers, n is the total number of the sensor data recorded currently, p is the number of designated data, the number of the designated data is determined according to the ratio of the fixed integration duration of the Raman detection device to the time interval, and the time interval is smaller than the fixed integration duration.
When n < p, it is determined that the data condition is not satisfied.
And when n is larger than or equal to p, acquiring the superposition data of the latest acquired p sensor data.
And carrying out the signal-to-noise ratio detection on the superposed data.
When the superimposed data is detected by the signal-to-noise ratio, it is determined that the data condition is satisfied. And when the superposed data does not pass the signal-to-noise ratio detection, determining that the data condition is not met.
Optionally, the determining module 203 is configured to:
and overlapping the m data which are collected latest to obtain overlapped data. Wherein m and n are positive integers, n is the total number of the sensor data which are recorded currently, and in each time interval, the initial value of m is 1, and m is less than or equal to n.
And carrying out signal-to-noise ratio detection on the superposed data.
When the superimposed data is detected by the signal-to-noise ratio, it is determined that the data condition is satisfied.
And when the superposed data does not pass the signal-to-noise ratio detection, making m equal to m +1, and judging whether m is larger than n.
When m > n, it is determined that the data condition is not satisfied.
When m is less than or equal to n, judging whether m is greater than mmax,mmaxFor a preset maximum number of allowable stacks, mmaxIs a positive integer.
When m is less than or equal to mmaxThen, the step of superposing the m newly acquired data to the step of carrying out signal-to-noise ratio detection on the superposed data is carried out again, and when m is larger than mmaxWhen the data condition is not satisfied, it is determined.
Fig. 8 is a block diagram of another substance detection device provided according to an exemplary embodiment of the present disclosure, and as shown in fig. 8, the identification module 204 includes:
the preprocessing submodule 2041 is configured to perform preprocessing on the superimposed data, where the preprocessing includes: denoising, substrate subtraction and normalization processing.
And the substance identification submodule 2042 is used for identifying the substance from the preprocessed superposition data by using a raman identification algorithm.
Fig. 9 is a block diagram of still another substance detecting device provided according to an exemplary embodiment of the present disclosure, and as shown in fig. 9, the device 200 further includes:
and the prompting module 206 is configured to output first prompting information when a variation between the substance identification result and the last output substance detection result exceeds a preset threshold, where the first prompting information is used to prompt a user that the variation between the substance detection results of the substance to be detected is abnormal. And/or the presence of a gas in the gas,
the prompting module 206 is further configured to output second prompting information, where the second prompting information is used to prompt a user to control a moving speed of the raman detection apparatus.
Optionally, the prompt module 206 is configured to output third prompt information when the data condition is not satisfied, where the third prompt information is used to prompt the user that the sensor data currently acquired does not satisfy the data condition.
The specific description of the functions implemented by the modules has been described in detail in the above method embodiments, and is not repeated here.
In summary, the present disclosure starts timing when the raman detection device moves and emits laser light according to a prescribed route, records data collected by the spectrometer sensor according to a preset time interval, linearly superimposes the collected data, judges the superimposed data under the condition of an integral duration or a signal-to-noise ratio detection result, detects a substance to be detected when the condition is satisfied, and outputs a substance identification result. Meanwhile, the timing is not interrupted, timing and collection of the next time interval are continued, and a continuous substance identification result on the specified route can be output. The problems of missing measurement and inaccurate measurement which possibly occur in a fixed-point detection method can be avoided, and the method has the effect of improving the accuracy and the output efficiency of substance detection.
Fig. 10 is a block diagram illustrating an electronic device 300 in accordance with an example embodiment. As shown in fig. 10, the electronic device 300 may include: a processor 301, a memory 302, a multimedia component 303, an input/output (I/O) interface 304, and a communication component 305.
The processor 301 is configured to control the overall operation of the electronic device 300, so as to complete all or part of the steps in the above-mentioned substance detection method. The memory 302 is used to store various types of data to support operation at the electronic device 300, such as instructions for any application or method operating on the electronic device 300 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 302 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The multimedia components 303 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 302 or transmitted through the communication component 305. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 304 provides an interface between the processor 301 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 305 is used for wired or wireless communication between the electronic device 300 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding Communication component 305 may include: Wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the electronic Device 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the above-described substance detection method.
In another exemplary embodiment, a computer readable storage medium comprising program instructions, such as the memory 302 comprising program instructions, executable by the processor 301 of the electronic device 300 to perform the above-described substance detection method is also provided.
In summary, the present disclosure starts timing when the raman detection device moves and emits laser light according to a prescribed route, records data collected by the spectrometer sensor according to a preset time interval, linearly superimposes the collected data, judges the superimposed data under the condition of an integral duration or a signal-to-noise ratio detection result, detects a substance to be detected when the condition is satisfied, and outputs a substance identification result. Meanwhile, the timing is not interrupted, timing and collection of the next time interval are continued, and a continuous substance identification result on the specified route can be output. The problems of missing measurement and inaccurate measurement which possibly occur in a fixed-point detection method can be avoided, and the method has the effect of improving the accuracy and the output efficiency of substance detection.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that, in the foregoing embodiments, various features described in the above embodiments may be combined in any suitable manner, and in order to avoid unnecessary repetition, various combinations that are possible in the present disclosure are not described again.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (8)

1. A method of detecting a substance, the method comprising:
when the Raman detection equipment starts to emit laser to the substance to be detected and moves according to a preset route, timing is started;
when the timing reaches a preset time interval, recording the current sensor data of the spectrometer sensor, resetting the spectrometer sensor, and continuing timing;
determining whether a preset data condition is met according to n sensor data recorded currently;
when the data condition is met, performing substance identification according to the n sensor data;
outputting a substance identification result; and the number of the first and second groups,
the step of recording the current sensor data of the spectrometer sensor to the output substance identification result when the timing is detected to reach the preset time interval is executed again;
the method further comprises the following steps:
when the variation between the substance identification result and the last output substance identification result exceeds a preset threshold, outputting first prompt information, wherein the first prompt information is used for prompting a user that the variation between the substance identification results of the substance to be detected is abnormal; and/or;
outputting second prompt information, wherein the second prompt information is used for prompting a user to control the moving speed of the Raman detection equipment;
the method further comprises the following steps:
determining the preset route according to the form and the volume of the substance to be detected;
the determining whether a preset data condition is met according to the currently recorded n sensor data includes:
judging whether the number of the n sensor data reaches p; wherein n and p are positive integers, n is the total number of the sensor data which are recorded currently, and p is the number of designated data, the number of the designated data is determined according to the ratio of the fixed integration duration of the Raman detection equipment to the time interval, and the time interval is smaller than the fixed integration duration;
determining that the data condition is not satisfied when the n < p;
when n is larger than or equal to p, acquiring the superposition data of the latest acquired p sensor data;
performing signal-to-noise ratio detection on the superposed data;
determining that the data condition is satisfied when the superimposed data passes the signal-to-noise ratio detection; determining that the data condition is not satisfied when the superimposed data fails the signal-to-noise ratio detection;
when the data condition is satisfied, performing substance identification according to the n sensor data, including:
preprocessing the superposition data, wherein the preprocessing comprises: denoising, substrate deduction and normalization processing;
and carrying out substance identification on the preprocessed superposition data by using a Raman identification algorithm.
2. A method of detecting a substance, the method comprising:
when the Raman detection equipment starts to emit laser to the substance to be detected and moves according to a preset route, timing is started;
when the timing reaches a preset time interval, recording the current sensor data of the spectrometer sensor, resetting the spectrometer sensor, and continuing timing;
determining whether a preset data condition is met according to n sensor data recorded currently;
when the data condition is met, performing substance identification according to the n sensor data;
outputting a substance identification result; and the number of the first and second groups,
the step of recording the current sensor data of the spectrometer sensor to the output substance identification result when the timing is detected to reach the preset time interval is executed again;
the method further comprises the following steps:
when the variation between the substance identification result and the last output substance identification result exceeds a preset threshold, outputting first prompt information, wherein the first prompt information is used for prompting a user that the variation between the substance identification results of the substance to be detected is abnormal; and/or;
outputting second prompt information, wherein the second prompt information is used for prompting a user to control the moving speed of the Raman detection equipment;
the method further comprises the following steps:
determining the preset route according to the form and the volume of the substance to be detected;
the determining whether a preset data condition is met according to the currently recorded n sensor data includes:
overlapping the m newly acquired data to obtain overlapped data; wherein m and n are positive integers, n is the total number of the currently recorded sensor data, the initial value of m is 1, and m is less than or equal to n;
performing signal-to-noise ratio detection on the superposed data;
determining that the data condition is satisfied when the superimposed data passes the signal-to-noise ratio detection;
when the superposed data does not pass the signal-to-noise ratio detection, enabling m = m +1, and judging whether m is larger than n;
when m > n, determining that the data condition is not satisfied;
when m is less than or equal to n, judging whether m is greater than mmax,mmaxFor a preset maximum number of allowable stacks, mmaxIs a positive integer;
when m is less than or equal to mmaxThen, the step of superposing the m data which are collected latest to the step of carrying out the signal-to-noise ratio detection on the superposed data is carried out again, and when m is larger than mmaxDetermining that the data condition is not satisfied;
when the data condition is satisfied, performing substance identification according to the n sensor data, including:
preprocessing the superposition data, wherein the preprocessing comprises: denoising, substrate deduction and normalization processing;
and carrying out substance identification on the preprocessed superposition data by using a Raman identification algorithm.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
and outputting third prompt information when the data condition is not met, wherein the third prompt information is used for prompting a user that the currently acquired sensor data does not meet the data condition.
4. A substance detection device, the device comprising:
the timing module is used for starting timing when the Raman detection equipment starts to emit laser to the substance to be detected and moves according to a preset route;
the recording module is used for recording the current sensor data of the spectrometer sensor when the timing reaches a preset time interval, resetting the spectrometer sensor and continuing timing by the timing module;
the judging module is used for determining whether a preset data condition is met according to the currently recorded n sensor data;
the identification module is used for identifying substances according to the n sensor data when the data condition is met;
the output module is used for outputting a substance identification result;
after the device outputs the substance identification result, the step of recording the current sensor data of the spectrometer sensor to the output substance identification result when the timing is detected to reach the preset time interval is executed again;
the device further comprises:
the prompting module is used for outputting first prompting information when the variation between the substance identification result and the last output substance identification result exceeds a preset threshold, and the first prompting information is used for prompting a user that the variation between the substance identification results of the substance to be detected is abnormal; and/or outputting second prompt information, wherein the second prompt information is used for prompting a user to control the moving speed of the Raman detection equipment;
the apparatus is for:
determining the preset route according to the form and the volume of the substance to be detected;
the judging module is used for:
judging whether the number of the n sensor data reaches p; wherein n and p are positive integers, n is the total number of the sensor data which are recorded currently, and p is the number of designated data, the number of the designated data is determined according to the ratio of the fixed integration duration of the Raman detection equipment to the time interval, and the time interval is smaller than the fixed integration duration;
determining that the data condition is not satisfied when the n < p;
when n is larger than or equal to p, acquiring the superposition data of the latest acquired p sensor data;
performing signal-to-noise ratio detection on the superposed data;
determining that the data condition is satisfied when the superimposed data passes the signal-to-noise ratio detection; determining that the data condition is not satisfied when the superimposed data fails the signal-to-noise ratio detection;
the identification module comprises:
a preprocessing submodule, configured to preprocess the overlay data, where the preprocessing includes: denoising, substrate deduction and normalization processing;
and the substance identification submodule is used for identifying the substance of the preprocessed superposition data by using a Raman identification algorithm.
5. A substance detection device, the device comprising:
the timing module is used for starting timing when the Raman detection equipment starts to emit laser to the substance to be detected and moves according to a preset route;
the recording module is used for recording the current sensor data of the spectrometer sensor when the timing reaches a preset time interval, resetting the spectrometer sensor and continuing timing by the timing module;
the judging module is used for determining whether a preset data condition is met according to the currently recorded n sensor data;
the identification module is used for identifying substances according to the n sensor data when the data condition is met;
the output module is used for outputting a substance identification result;
after the device outputs the substance identification result, the step of recording the current sensor data of the spectrometer sensor to the output substance identification result when the timing is detected to reach the preset time interval is executed again;
the device further comprises:
the prompting module is used for outputting first prompting information when the variation between the substance identification result and the last output substance identification result exceeds a preset threshold, and the first prompting information is used for prompting a user that the variation between the substance identification results of the substance to be detected is abnormal; and/or outputting second prompt information, wherein the second prompt information is used for prompting a user to control the moving speed of the Raman detection equipment;
the apparatus is for:
determining the preset route according to the form and the volume of the substance to be detected;
the judging module is used for:
overlapping the m newly acquired data to obtain overlapped data; wherein m and n are positive integers, n is the total number of the currently recorded sensor data, the initial value of m is 1, and m is less than or equal to n;
performing signal-to-noise ratio detection on the superposed data;
determining that the data condition is satisfied when the superimposed data passes the signal-to-noise ratio detection;
when the superposed data does not pass the signal-to-noise ratio detection, enabling m = m +1, and judging whether m is larger than n;
when m > n, determining that the data condition is not satisfied;
when m is less than or equal to n, judging whether m is greater than mmax,mmaxFor a preset maximum number of allowable stacks, mmaxIs a positive integer;
when m is less than or equal to mmaxThen, the step of superposing the m data which are collected latest to the step of carrying out the signal-to-noise ratio detection on the superposed data is carried out again, and when m is larger than mmaxDetermining that the data condition is not satisfied;
the identification module comprises:
a preprocessing submodule, configured to preprocess the overlay data, where the preprocessing includes: denoising, substrate deduction and normalization processing;
and the substance identification submodule is used for identifying the substance of the preprocessed superposition data by using a Raman identification algorithm.
6. The device according to claim 4 or 5, wherein the prompting module is further configured to output a third prompting message when the data condition is not satisfied, and the third prompting message is used for prompting a user that the currently acquired sensor data does not satisfy the data condition.
7. A computer-readable storage medium, characterized in that the computer-readable storage medium includes one or more programs for performing the method of any one of claims 1 to 3.
8. An electronic device, comprising:
the computer-readable storage medium recited in claim 7; and
one or more processors to execute the program in the computer-readable storage medium.
CN201780002475.6A 2017-08-23 2017-08-23 Substance detection method, substance detection device, storage medium, and electronic apparatus Active CN107995948B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/098682 WO2019036941A1 (en) 2017-08-23 2017-08-23 Substance detection method and apparatus, storage medium, and electronic device

Publications (2)

Publication Number Publication Date
CN107995948A CN107995948A (en) 2018-05-04
CN107995948B true CN107995948B (en) 2021-01-15

Family

ID=62040419

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201780002475.6A Active CN107995948B (en) 2017-08-23 2017-08-23 Substance detection method, substance detection device, storage medium, and electronic apparatus

Country Status (2)

Country Link
CN (1) CN107995948B (en)
WO (1) WO2019036941A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019036941A1 (en) * 2017-08-23 2019-02-28 深圳前海达闼云端智能科技有限公司 Substance detection method and apparatus, storage medium, and electronic device
WO2019222959A1 (en) * 2018-05-24 2019-11-28 深圳达闼科技控股有限公司 Substance detection method and apparatus, and electronic device
CN110174391B (en) * 2019-05-29 2022-03-29 深圳前海达闼云端智能科技有限公司 Position deviation correction method, device, storage medium and electronic equipment

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB0803798D0 (en) * 2008-02-29 2008-04-09 Renishaw Plc Spectroscopic apparatus and methods
US7760352B2 (en) * 2008-03-18 2010-07-20 Itt Manufacturing Enterprises, Inc. Dual pulse single event Raman spectroscopy
JP5712342B2 (en) * 2008-11-27 2015-05-07 ナノフォトン株式会社 Optical microscope and spectrum measuring method
CN104749156B (en) * 2013-12-27 2017-08-29 同方威视技术股份有限公司 Raman spectra detection process
CN103760146B (en) * 2014-01-03 2016-09-07 中国农业大学 A kind of noncontact composition detection system and method for powder
CN104076023B (en) * 2014-07-22 2017-01-18 中国人民解放军第三军医大学第一附属医院 Body fluid Raman spectrum testing device
JP5905140B1 (en) * 2015-03-25 2016-04-20 日本分光株式会社 Microspectroscope
CN106770151B (en) * 2016-11-01 2019-10-25 北京华泰诺安技术有限公司 A kind of method and device of quick detection raman spectral signal
CN206270250U (en) * 2016-11-22 2017-06-20 山东格物光电科技有限公司 Use the Handheld Raman detector of single-mode laser
WO2019036941A1 (en) * 2017-08-23 2019-02-28 深圳前海达闼云端智能科技有限公司 Substance detection method and apparatus, storage medium, and electronic device

Also Published As

Publication number Publication date
CN107995948A (en) 2018-05-04
WO2019036941A1 (en) 2019-02-28

Similar Documents

Publication Publication Date Title
CN107995948B (en) Substance detection method, substance detection device, storage medium, and electronic apparatus
CN108629354B (en) Target detection method and device
CN108885699A (en) Character identifying method, device, storage medium and electronic equipment
CN113252582B (en) Pollution detection method and device, electronic equipment and storage medium
CN107995949B (en) Transmission power control method, device, storage medium and electronic equipment
US9450554B2 (en) Electronic device and method for adjusting volume
KR20210054551A (en) Video processing methods and devices, electronic devices and storage media
CN108918427B (en) Method, apparatus, storage medium, and electronic device for detecting substance
EP3882787A1 (en) Method and device for evaluating quality of content, electronic equipment, and storage medium
CN106228158A (en) The method and apparatus of picture detection
CN113676671B (en) Video editing method, device, electronic equipment and storage medium
EP2919043A3 (en) Multiple-optical-axis photoelectric sensor system, multiple-opticle-axis photoelectric sensor system control method, program, and recording medium
CN108872780B (en) Live working detection and system for live exploration and terminal equipment
CN111507498B (en) Bird migration early warning method and device
CN109376674B (en) Face detection method, device and storage medium
CN106924932A (en) For the speed regulating method and device of treadmill
CN113077019B (en) Pollution type identification method and device and storage medium
CN108076655B (en) Focus detection method, apparatus, storage medium, and device for substance detection
WO2019080013A1 (en) Raman detection method and apparatus, storage medium, and electronic device
CN108064340B (en) Focus deviation determination method, device, storage medium and electronic apparatus
CN110361374A (en) Substance detecting method, device, storage medium and electronic equipment
CN117994687A (en) Picture desensitization processing method, device, system and storage medium
CN113269106A (en) Method and device for detecting state of conveyor belt of conveying tool
CN107526683B (en) Method and device for detecting functional redundancy of application program and storage medium
CN114358097A (en) Intrusion detection method and device based on deep neural network DNN and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: A1302, building 10, Shenzhen Bay science and technology ecological park, No. 10, Gaoxin South 9th Road, Gaoxin community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen Da Yun Duan Intelligent Technology Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20220607

Address after: 1904-010, 20th floor, building 4, No. 11, Changchun Bridge Road, Haidian District, Beijing 100089

Patentee after: BEIJING CLOUDOPTEK TECHNOLOGY Co.,Ltd.

Address before: A1302, building 10, Shenzhen Bay science and technology ecological park, No. 10, Gaoxin South 9th Road, Gaoxin community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee before: Shenzhen Da Yun Duan Intelligent Technology Co.,Ltd.

TR01 Transfer of patent right