Disclosure of Invention
The invention mainly aims to provide a portable electronic atomizer based on a regional signal transceiver and a using method thereof, and aims to solve the problem that the traditional mode cannot inhibit the tendency of teenagers to inhale electronic cigarettes.
The application provides a use method of a portable electronic atomizer based on a regional signal transceiver, wherein the portable electronic atomizer is provided with a control unit, and a regional signal transceiver, a GPS (global positioning system) positioning unit and an electronic atomizer body which are connected with the control unit, the electronic atomizer body is in data connection with the GPS positioning unit, the GPS positioning unit is in data connection with the regional signal transceiver, the GPS positioning unit is used for sending a positioning signal to the control unit after the electronic atomizer body generates smoking behavior, and the regional signal transceiver is in data connection with an external system, wherein when the control unit receives the smoking right granted by the external system, the control unit controls the electronic atomizer body to work, otherwise, the electronic atomizer body cannot work; the using method comprises the following steps:
the control unit receives n pieces of positioning information sent by the GPS positioning unit and positioning time corresponding to the positioning information; wherein, the positioning time is in a time division representation mode;
forming three-dimensional data of each smoking according to the positioning information and the positioning time; wherein three dimensions of the three-dimensional data are respectively longitude and latitude of the positioning information and time dimension of the positioning time;
carrying out data clustering on the three-dimensional data through a preset k-means clustering algorithm to obtain a plurality of clustering centers of the three-dimensional data;
calculating the reciprocal Z of the distance from each three-dimensional data to the corresponding clustering center plus 1;
according to the formula m- σ (W)2δ(W1Z))=[m1,m2,...,ml,...,mc]Calculating to obtain an attention vector; where m denotes the attention vector, mlDenotes the attention weight value, W, of the ith channel2And W1Representing preset parameters, wherein sigma represents an activation function of the ReLU, and sigma represents a Sigmoid activation function;
weighting each three-dimensional data through the attention vector to obtain weighted target three-dimensional data;
performing weighted calculation on at least two target three-dimensional data according to a preset one-dimensional weighted column vector to obtain a plurality of corresponding target characteristic vectors; wherein the weighting calculation mode is
Where n represents the number of three-dimensional data of the object, M
nRepresenting the nth target three-dimensional data, P being the one-dimensional weighted column vector,
representing the Hadamard product operation of the characteristic graphs A and B, and D representing a target characteristic vector;
acquiring school position information closest to the positioning information and a corresponding work and rest schedule;
inputting the target feature vectors, the school position information and the corresponding work and rest schedule into a preset judgmental model for minor smoking to obtain a judgment result of whether the smoker is a minor; the judgments model for the minor smoking is formed by training according to a plurality of training target feature vectors, corresponding school position information and corresponding work and rest time;
and interacting the judgment result with an external system through the area signal transceiver to confirm whether the smoking authority is received.
Further, before the step of forming three-dimensional data for each smoking according to the positioning information and the positioning time, the method further comprises:
calculating the distance average value of each three-dimensional data and other three-dimensional data;
according to the formula
Calculating a discrete value of each three-dimensional data; wherein L is
iRepresents the discrete value of the ith three-dimensional data, μ represents an average value of the n three-dimensional data, and
σ represents a standard deviation of n three-dimensional data, and
x
irepresenting the ith three-dimensional data;
will | Li|>ZthrRemoving corresponding three-dimensional data; wherein Z isthrIs a preset parameter value.
Further, before the step of inputting the target feature vectors, the school location information, and the corresponding work and rest schedule into a preset judgmental model for minor smoking, the method further includes:
judging whether the clustering center is located in a school corresponding to the school position information;
if yes, judging whether the clustering center is positioned at a smoke spot easy for students;
and if so, directly judging that the user of the portable electronic atomizer is a minor.
Furthermore, the portable electronic atomizer is also provided with an identity information acquisition unit, and the identity information acquisition unit is in data connection with the control unit;
after the step of interacting the judgment result with an external system through the area signal transceiver to confirm whether the smoking right is received, the method further comprises the following steps:
receiving a smoker-initiated identity determination when the smoker is determined to be a minor;
controlling the identity information acquisition unit to acquire identity information of a smoker;
uploading the identity information to an external system through the area signal transceiver for identity verification;
when receiving the external system to verify as an adult, the receiving of the smoking authority is confirmed at the same time.
Further, the step of obtaining the school location information closest to the location information and the corresponding work and rest schedule based on the location information includes:
acquiring average positioning information of the n positioning information according to the n positioning information;
obtaining a target area by taking the average positioning information as a circle center and taking a preset distance as a radius;
acquiring school position information in the target area;
calculating the sum of the distances to each clustering center based on the school position information of each school to obtain the target distance of each school from the n positioning information;
and acquiring school position information closest to the target distance and a corresponding work and rest schedule according to the target distance.
The application also provides a portable electronic atomizer which is provided with a control unit, and an area signal transceiver, a GPS positioning unit and an electronic atomizer body which are connected with the control unit, wherein the electronic atomizer body is in data connection with the GPS positioning unit, the GPS positioning unit is in data connection with the area signal transceiver, the GPS positioning unit is used for sending a positioning signal to the control unit after the electronic atomizer body generates smoking behavior, and the area signal transceiver is in data connection with an external system, wherein when the control unit receives the smoking right granted by the external system, the control unit controls the electronic atomizer body to work, otherwise, the electronic atomizer body cannot work; the control unit further includes:
the receiving module is used for receiving n pieces of positioning information sent by the GPS positioning unit and positioning time corresponding to the positioning information; wherein, the positioning time is in a time division representation mode;
the composition module is used for composing three-dimensional data of each smoking according to the positioning information and the positioning time; wherein three dimensions of the three-dimensional data are respectively longitude and latitude of the positioning information and time dimension of the positioning time;
the clustering module is used for carrying out data clustering on the three-dimensional data through a preset k-means clustering algorithm to obtain a plurality of clustering centers of the three-dimensional data;
the first calculation module is used for calculating the reciprocal Z of the distance between each three-dimensional data and the corresponding clustering center after adding 1;
a second calculation module for calculating σ (W) according to the formula2δ(W1Z))=[m1,m2,...,ml,...,mc]Calculating to obtain an attention vector; where m denotes the attention vector, mlDenotes the attention weight value, W, of the ith channel2And W1Representing preset parameters, wherein sigma represents an activation function of the ReLU, and sigma represents a Sigmoid activation function;
the weighting module is used for weighting each three-dimensional data through the attention vector to obtain weighted target three-dimensional data;
the third calculation module is used for performing weighted calculation on at least two target three-dimensional data according to a preset one-dimensional weighted column vector to obtain a plurality of corresponding target characteristic vectors; wherein the weighting calculation mode is
Where n represents the number of three-dimensional data of the object, M
nRepresenting the nth target three-dimensional data, P being the one-dimensional weighted column vector,
representing the Hadamard product operation of the characteristic graphs A and B, and D representing a target characteristic vector;
the acquisition module is used for acquiring school position information closest to the positioning information and a corresponding work and rest schedule;
the input module is used for inputting the target feature vectors, the school position information and the corresponding work and rest timetables into a preset judgmental model for the minor smoking to obtain a judgment result of whether the smoker is a minor; the judgments model for the minor smoking is formed by training according to a plurality of training target feature vectors, corresponding school position information and corresponding work and rest time;
and the interaction module is used for interacting the judgment result with an external system through the area signal transceiver so as to confirm whether the smoking authority is received.
Further, the control unit further includes:
the distance average value calculating module is used for calculating the distance average value of each three-dimensional data and other three-dimensional data;
a discrete value calculation module for calculating a discrete value according to a formula
Calculating a discrete value of each three-dimensional data; wherein L is
iRepresents the discrete value of the ith three-dimensional data, μ represents an average value of the n three-dimensional data, and
σ represents a standard deviation of n three-dimensional data, and
x
irepresenting the ith three-dimensional data;
rejecting moduleFor mixing | Li|>ZthrRemoving corresponding three-dimensional data; wherein Z isthrIs a preset parameter value.
Further, the control unit further includes:
the first judgment module is used for judging whether the clustering center is positioned in a school corresponding to the school position information;
the second judgment module is used for judging whether the clustering center is positioned at a smoke spot easy for students if the clustering center is positioned at the smoke spot easy for the students;
and the judging module is used for directly judging that the user of the portable electronic atomizer is a minor.
Furthermore, the portable electronic atomizer is also provided with an identity information acquisition unit, and the identity information acquisition unit is in data connection with the control unit;
the control unit further includes:
a first receiving module for receiving an identity determination initiated by a smoker when the smoker is determined to be a minor;
the control module is used for controlling the identity information acquisition unit to acquire identity information of smokers;
the identity authentication module is used for uploading the identity information to an external system through the area signal transceiver for identity authentication;
and the second receiving module is used for simultaneously confirming that the smoking authority is received when the external system is received and verified as an adult.
Further, the obtaining module includes:
the average positioning information acquisition submodule is used for acquiring the average positioning information of the n positioning information according to the n positioning information;
the target area acquisition submodule is used for acquiring a target area by taking the average positioning information as a circle center and taking a preset distance as a radius;
the position information acquisition submodule is used for acquiring the position information of the school in the target area;
the target distance calculation module is used for calculating the sum of the distances to each clustering center based on school position information of each school to obtain the target distance of each school from the n positioning information;
and the acquisition submodule is used for acquiring the school position information closest to the target distance and the corresponding work and rest timetable according to the target distance.
The invention has the beneficial effects that: the regional signal transceiver and the GPS positioning unit are arranged on the electronic atomizer, and whether the electronic atomizer has smoking authority or not is judged according to the positioning information and the positioning time in a clustering mode, so that a two-stage attention weighting mechanism is realized, the accuracy of an immature smoking judgment model is improved, and the tendency of smoking electronic cigarettes by teenagers can be restrained.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that all directional indicators (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship between the components, the motion situation, etc. in a specific posture (as shown in the drawings), and if the specific posture is changed, the directional indicator is changed accordingly, and the connection may be a direct connection or an indirect connection.
The term "and/or" herein is merely an association describing an associated object, meaning that three relationships may exist, e.g., a and B, may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In addition, descriptions such as "first", "second", etc. in the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present invention.
Referring to fig. 1, the invention provides a use method of a portable electronic atomizer based on an area signal transceiver, wherein the portable electronic atomizer is provided with a control unit, and an area signal transceiver, a GPS positioning unit and an electronic atomizer body which are connected with the control unit, the electronic atomizer body is in data connection with the GPS positioning unit, the GPS positioning unit is in data connection with the area signal transceiver, the GPS positioning unit is used for sending a positioning signal to the control unit after the electronic atomizer body smokes, and the area signal transceiver is in data connection with an external system, wherein when the control unit receives a smoking right granted by the external system, the control unit controls the electronic atomizer body to work, otherwise, the electronic atomizer body does not work; the using method comprises the following steps:
s1: the control unit receives n pieces of positioning information sent by the GPS positioning unit and positioning time corresponding to the positioning information; wherein, the positioning time is in a time division representation mode;
s2: forming three-dimensional data of each smoking according to the positioning information and the positioning time; wherein three dimensions of the three-dimensional data are respectively longitude and latitude of the positioning information and time dimension of the positioning time;
s3: carrying out data clustering on the three-dimensional data through a preset k-means clustering algorithm to obtain a plurality of clustering centers of the three-dimensional data;
s4: calculating the distance from each three-dimensional data to the corresponding clustering center and adding 1 reciprocal Z;
s5: according to the formula m- σ (W)2δ(W1Z))=[m1,m2,...,ml,...,mc]Calculating to obtain an attention vector; where m denotes the attention vector, mlDenotes the attention weight value, W, of the ith channel2And W1Representing preset parameters, wherein sigma represents an activation function of the ReLU, and sigma represents a Sigmoid activation function;
s6: weighting each three-dimensional data through the attention vector to obtain weighted target three-dimensional data;
s7: performing weighted calculation on at least two target three-dimensional data according to a preset one-dimensional weighted column vector to obtain a plurality of corresponding target characteristic vectors; wherein the weighting calculation mode is
Where n represents the number of three-dimensional data of the object, M
nRepresenting the nth target three-dimensional data, P being the one-dimensional weighted column vector,
representing the Hadamard product operation of the characteristic graphs A and B, and D representing a target characteristic vector;
s8: acquiring school position information closest to the positioning information and a corresponding work and rest schedule;
s9: inputting the target feature vectors, the school position information and the corresponding work and rest schedule into a preset judgmental model for minor smoking to obtain a judgment result of whether the smoker is a minor; the judgments model for the minor smoking is formed by training according to a plurality of training target feature vectors, corresponding school position information and corresponding work and rest time;
s10: and interacting the judgment result with an external system through the area signal transceiver to confirm whether the smoking authority is received.
As described in the above steps S1-S2, the control unit receives n pieces of positioning information sent by the GPS positioning unit and the positioning time corresponding to the positioning information; the positioning time is a time division representation mode, and three-dimensional data of each smoking is formed according to the positioning information and the positioning time; wherein three dimensions of the three-dimensional data are respectively longitude and latitude of the positioning information and time dimension of the positioning time. The n pieces of positioning information are data generated during electronic cigarette smoking, namely after each smoking behavior, a positioning signal is sent to the control unit, at the moment, the controller can remember corresponding time information, and the longitude and latitude can be obtained according to the data of the GPS positioning unit, so that corresponding three-dimensional data is obtained.
As described in the above steps S3-S6, the three-dimensional data is subjected to data clustering by a preset k-means clustering algorithm to obtain a plurality of clustering centers of the three-dimensional data, a distance between each three-dimensional data and the corresponding clustering center is calculated, and a reciprocal Z of 1 is added, according to a formula m ═ σ (W6)2δ(W1Z))=[m1,m2,...,ml,...,mc]Calculating to obtain an attention vector; where m denotes the attention vector, mlDenotes the attention weight value, W, of the ith channel2And W1Representing preset parameters, sigma representing an activation function of ReLU, sigma representing a Sigmoid activation function, and adding each three-dimensional data by the attention vectorAnd weighting to obtain weighted target three-dimensional data. The determination of the clustering centers is to determine a plurality of clustering centers in advance, randomly designate a plurality of initial clustering centers, and then obtain a plurality of clustering centers after continuous iteration, which is the principle of a k-means clustering algorithm and is not repeated herein, and then each three-dimensional data has a corresponding clustering center, so that the distance from the three-dimensional data to the corresponding clustering center is added with 1 reciprocal, since the closer the distance is, the more information the three-dimensional data contains, the reciprocal is needed to be described, since some data close enough or even 0 greatly affects the final data, 1 needs to be added and then the reciprocal is obtained, and then the data is weighted according to a formula, since the three-dimensional data with higher matching degree is endowed with higher weight, the data can be more concentrated in the calculation process, so that the data can tend to the clustering centers, the obtained result is more accurate.
As described in the above step S7, where n represents the number of three-dimensional data of the object and is also the number of three-dimensional data, M
nRepresenting the nth target three-dimensional data, P being the one-dimensional weighted column vector,
representing the Hadamard product operation of the characteristic graphs A and B, and D representing a target characteristic vector; the target three-dimensional data is weighted, namely the characteristics of pairwise combination of the three-dimensional data are combined, the influence of data which are smoked in other places can be effectively reduced, wherein Hadamard product operation is specifically two matrixes with the same scale, if elements in corresponding positions can be multiplied, Hadamard products exist, and the scale of a new matrix is consistent with that of an original matrix. Therefore, a two-stage attention weighting mechanism is realized, and the accuracy of the immature smoking judgment model is improved.
As described in the above steps S8-S10, based on the positioning information, school location information closest to the positioning information and a corresponding work and rest schedule are obtained, and the target feature vectors, the school location information and the corresponding work and rest schedule are input into a preset judgmental model for judgmental smoking, so as to obtain a judgment result of whether the smoker is a minor; the judgments model for smoking of the juveniles is formed by training according to a plurality of training target feature vectors, corresponding school position information and corresponding work and rest time, and the judgments are interacted with an external system through the area signal transceiver to confirm whether smoking authority is received or not. The judgments model of the judgments of minors is a neural network model, and training data of the judgments model are trained by a plurality of target feature vectors, school position information, corresponding work and rest schedules and data of whether corresponding smokers are judgments or not. Therefore, whether the atomizer body has the smoking authority or not can be obtained, and the atomizer body is controlled to work.
In one embodiment, before the step S2 of composing three-dimensional data for each smoking according to the positioning information and the positioning time, the method further includes:
s101: calculating the distance average value of each three-dimensional data and other three-dimensional data;
s102: according to the formula
Calculating a discrete value of each three-dimensional data; wherein L is
iRepresents the discrete value of the ith three-dimensional data, μ represents an average value of the n three-dimensional data, and
σ represents a standard deviation of n three-dimensional data, and
x
irepresenting the ith three-dimensional data;
s103: will | Li|>ZthrRemoving corresponding three-dimensional data; wherein Z isthrIs a preset parameter value.
As described in steps S101 to S103, the three-dimensional data of the smoking in the infrequent places are removed, the determination accuracy of the subsequent model is improved, for example, the average distance between each three-dimensional data and other three-dimensional data can be calculated, and the average distance is calculated according to a formula
Calculating a discrete value of each three-dimensional data; wherein L is
iRepresents the discrete value of the ith three-dimensional data, μ represents an average value of the n three-dimensional data, and
σ represents a standard deviation of n three-dimensional data, and
x
irepresents the ith three-dimensional data, will | L
i|>Z
thrRemoving corresponding three-dimensional data; wherein Z is
thrIs a preset parameter value. The average distance value can represent the distance between each datum and other data, namely the distance deviates from the size of the overall datum, then the discrete value is calculated according to a formula, so that the discrete value of each datum is represented, when all the discrete values are larger, the smoking place is not fixed, smoking can be carried out at will, but teenagers cannot generally do the same, therefore, a smoker can be regarded as an adult, generally, the smoking place of both adults and minors is fixed, therefore, three-dimensional data deviating from the general situation are only removed, and when the discrete value exceeds the set parameter value, the three-dimensional data can be regarded as needing to be removed.
In one embodiment, before the step S9 of inputting the target feature vectors, the school location information, and the corresponding work and rest schedule into a preset judgments model for minor smoking, the method further includes:
s801: judging whether the clustering center is located in a school corresponding to the school position information;
s802: if yes, judging whether the clustering center is positioned at a smoke spot easy for students;
s803: and if so, directly judging that the user of the portable electronic atomizer is a minor.
As described in the foregoing steps S801 to S803, the user of the portable electronic atomizer is directly determined according to the cluster center, that is, whether the cluster center is located inside the school corresponding to the school location information is determined, if yes, the smoker is necessarily a teacher or a family member of the school, or a student, and then determines whether the cluster center is an easy smoking point of the student, where the easy smoking point is a previously counted easy smoking point, such as an enclosing wall edge, a toilet, a student dormitory, or the like, so that the smoker can be determined to be a minor, and the start of the atomizer is prohibited, thereby effectively prohibiting the student from smoking.
In one embodiment, the portable electronic atomizer is further provided with an identity information acquisition unit, and the identity information acquisition unit is in data connection with the control unit;
after the step S10 of interacting the determination result with an external system through the area signal transceiver to determine whether the smoking right is received, the method further includes:
s1101: receiving a smoker-initiated identity determination when the smoker is determined to be a minor;
s1102: controlling the identity information acquisition unit to acquire identity information of a smoker;
s1103: uploading the identity information to an external system through the area signal transceiver for identity verification;
s1104: when receiving the external system to verify as an adult, the receiving of the smoking authority is confirmed at the same time.
As described in the foregoing steps S1101-S1104, in an actual situation, there may be some misjudgments, and therefore, the identity judgment may be initiated for the smoker, that is, the identity information of the smoker is collected by the identity information collecting unit, the collection may be performed by collecting the identity information through a camera or in a form of a telephone verification code, and then the collection of the identity information is performed in this manner.
In one embodiment, the step S8 of obtaining location information of the school closest to the location information and a corresponding work and rest schedule based on the location information includes:
s811: acquiring average positioning information of the n positioning information according to the n positioning information;
s812: obtaining a target area by taking the average positioning information as a circle center and taking a preset distance as a radius;
s813: acquiring school position information in the target area;
s814: calculating the sum of the distances to each clustering center based on the school position information of each school to obtain the target distance of each school from the n positioning information;
s815: and acquiring school position information closest to the target distance and a corresponding work and rest schedule according to the target distance.
As described in the foregoing steps S811-S815, obtaining school location information and corresponding work and rest schedules, that is, obtaining average location information, by calculating an average value of each location information, that is, an average value of longitude and an average value of latitude, taking the average value as a center of a circle, taking a preset distance as a radius, and setting the preset distance to be a distance that does not exceed a distance of an administrative area in advance, so as to obtain a corresponding target area, then calculating a sum of distances from each cluster center to obtain a target distance from each school to the n location information, and then obtaining corresponding school location information according to the size of the target distance, where the work and rest schedules can be obtained from corresponding schools, or can be obtained from general student work and rest times, which is not limited in the present application.
The invention has the beneficial effects that: the regional signal transceiver and the GPS positioning unit are arranged on the electronic atomizer, and whether the electronic atomizer has smoking authority or not is judged according to the positioning information and the positioning time in a clustering mode, so that a two-stage attention weighting mechanism is realized, the accuracy of an immature smoking judgment model is improved, and the tendency of smoking electronic cigarettes by teenagers can be restrained.
Referring to fig. 2, an embodiment of the present application further provides a portable electronic atomizer, where the portable electronic atomizer is provided with a control unit, and an area signal transceiver, a GPS positioning unit, and an electronic atomizer body connected to the control unit, the electronic atomizer body is in data connection with the GPS positioning unit, the GPS positioning unit is in data connection with the area signal transceiver, the GPS positioning unit is configured to send a positioning signal to the control unit after the electronic atomizer body has a smoking behavior, and the area signal transceiver is in data connection with an external system, where when the control unit receives a smoking right granted by the external system, the control unit controls the electronic atomizer body to operate, and otherwise, the electronic atomizer body does not operate; the control unit further includes:
the receiving module is used for receiving n pieces of positioning information sent by the GPS positioning unit and positioning time corresponding to the positioning information; wherein, the positioning time is in a time division representation mode;
the composition module is used for composing three-dimensional data of each smoking according to the positioning information and the positioning time; wherein three dimensions of the three-dimensional data are respectively longitude and latitude of the positioning information and time dimension of the positioning time;
the clustering module is used for carrying out data clustering on the three-dimensional data through a preset k-means clustering algorithm to obtain a plurality of clustering centers of the three-dimensional data;
the first calculation module is used for calculating the distance between each three-dimensional data and the corresponding clustering center and adding 1 reciprocal Z;
a second calculation module for calculating σ (W) according to the formula2δ(W1Z))=[m1,m2,...,ml,...,mc]Calculating to obtain an attention vector; where m denotes the attention vector, mlDenotes the attention weight value, W, of the ith channel2And W1Expressing preset parameters, sigma expressing an activation function of ReLU, and sigma expressing a Sigmoid activation function;
the weighting module is used for weighting each three-dimensional data through the attention vector to obtain weighted target three-dimensional data;
the third calculation module is used for performing weighted calculation on at least two target three-dimensional data according to a preset one-dimensional weighted column vector to obtain a plurality of corresponding target characteristic vectors; wherein the weighting calculation mode is
Where n represents the number of three-dimensional data of the object, M
nRepresenting the nth target three-dimensional data, P being the one-dimensional weighted column vector,
representing the Hadamard product operation of the characteristic graphs A and B, and D representing a target characteristic vector;
the acquisition module is used for acquiring school position information closest to the positioning information and a corresponding work and rest schedule;
the input module is used for inputting the target feature vectors, the school position information and the corresponding work and rest timetables into a preset judgmental model for the minor smoking to obtain a judgment result of whether the smoker is a minor; the judgments model for the minor smoking is formed by training according to a plurality of training target feature vectors, corresponding school position information and corresponding work and rest time;
and the interaction module is used for interacting the judgment result with an external system through the area signal transceiver so as to confirm whether the smoking authority is received.
In one embodiment, the control unit further comprises:
the distance average value calculating module is used for calculating the distance average value of each three-dimensional data and other three-dimensional data;
a discrete value calculation module for calculating a discrete value according to a formula
Calculating a discrete value of each three-dimensional data; wherein L is
iRepresents the discrete value of the ith three-dimensional data, μ represents an average value of the n three-dimensional data, and
σ represents a standard deviation of n three-dimensional data, and
x
irepresenting the ith three-dimensional data;
a culling module to cull | Li|>ZthrRemoving corresponding three-dimensional data; wherein Z isthrIs a preset parameter value.
In an embodiment, the control unit further includes:
the first judgment module is used for judging whether the clustering center is positioned in a school corresponding to the school position information;
the second judgment module is used for judging whether the clustering center is positioned at a smoke spot easy for students if the clustering center is positioned at the smoke spot easy for the students;
and the judging module is used for directly judging that the user of the portable electronic atomizer is a minor.
In one embodiment, the portable electronic atomizer is further provided with an identity information acquisition unit, and the identity information acquisition unit is in data connection with the control unit;
the control unit further includes:
a first receiving module for receiving an identity determination initiated by a smoker when the smoker is determined to be a minor;
the control module is used for controlling the identity information acquisition unit to acquire identity information of smokers;
the identity authentication module is used for uploading the identity information to an external system through the area signal transceiver for identity authentication;
and the second receiving module is used for simultaneously confirming that the smoking authority is received when the external system is received and verified as an adult.
In one embodiment, the obtaining module includes:
the average positioning information acquisition submodule is used for acquiring the average positioning information of the n positioning information according to the n positioning information;
the target area acquisition submodule is used for acquiring a target area by taking the average positioning information as a circle center and taking a preset distance as a radius;
the position information acquisition submodule is used for acquiring the position information of the school in the target area;
the target distance calculation module is used for calculating the sum of the distances to each clustering center based on school position information of each school to obtain the target distance of each school from the n positioning information;
and the acquisition submodule is used for acquiring the school position information closest to the target distance and the corresponding work and rest timetable according to the target distance.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by hardware associated with instructions of a computer program, which may be stored on a non-volatile computer-readable storage medium, and when executed, may include processes of the above embodiments of the methods. Any reference to memory, storage, database, or other medium provided herein and used in the examples may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double-rate SDRAM (SSRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and bus dynamic RAM (RDRAM).
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, apparatus, article, or method that includes the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.