A monitoring method, device, electronic device and storage medium for water samples sent for inspection

By obtaining and analyzing the delivery time, location information and movement path of the sample bottle, the deep learning algorithm is used to determine the appropriate delivery path, monitor whether the water sample submitted for inspection meets the set conditions, and solve the problem of packet loss and leakage during the water sample delivery process. The problem of delayed submission for inspection has been solved, and the authenticity and effectiveness of the water samples submitted for inspection have been monitored.

CN118505095BActive Publication Date: 2024-10-25FOSHAN ZHIXIN DATA SERVICE CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410955595.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-17
Publication Date
2024-10-25
Estimated Expiration
2044-07-17

AI Technical Summary

Technical Problem

There is a risk that water samples may be dropped or deliberately delayed during the inspection process, affecting their authenticity and validity.

Method used

By obtaining the start and delivery time, location information and movement path of the sample bottles, GAN, LSTM and ADAM algorithms are used to calculate the weights of path selection factors, determine the appropriate movement path, and monitor the water samples for inspection through identification information and inspection time. Whether it meets the set conditions.

Benefits of technology

Accurately determine the authenticity and validity of water samples submitted for inspection, prevent packet swapping and delayed inspection, and ensure the transparency and reliability of the water sample submission process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118505095B_ABST
    Figure CN118505095B_ABST
Patent Text Reader

Abstract

The present application discloses a monitoring method, device, electronic device and storage medium for water samples to be inspected, and relates to the field of data processing technology. The method includes: obtaining the starting time of the sample bottle containing the water sample to be inspected; obtaining the position information of the sample bottle after the starting time; obtaining the time when the sample bottle moves to the target location as the delivery time; determining the moving path of the sample bottle within the inspection time according to the position information and various preset path selection factors; the inspection time is the time period between the starting time and the delivery time; scanning the identification code on the inspection box or the sample bottle by the user terminal to obtain the identification information of the sample bottle; the inspection box is used to store and lock the sample bottle; monitoring whether the water sample to be inspected meets the set conditions according to the identification information, inspection time and moving path. By obtaining the identification information of the sample bottle, the inspection time of the water sample to be inspected, and the moving path of the water sample to be inspected, the authenticity and validity of the water sample to be inspected can be monitored.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a monitoring method, device, electronic equipment and storage medium for water samples to be tested. Background Art

[0002] After water samples are collected, they usually need to be sent to a designated testing agency for professional testing. However, the water sample collection site is generally located near the water source, which is a certain distance away from the testing agency. During the water sample delivery process, there is a risk of water samples being swapped or deliberately delayed, which in turn affects the authenticity and validity of the water samples. Summary of the invention

[0003] The main purpose of the embodiments of the present application is to propose a monitoring method, device, electronic device and storage medium for water samples submitted for inspection, so as to improve the authenticity and effectiveness of the water samples submitted for inspection.

[0004] To achieve the above object, one aspect of an embodiment of the present application provides a method for monitoring water samples for inspection, the method comprising the following steps:

[0005] Obtain the starting time of sending the sample bottles containing the water samples for inspection;

[0006] Obtaining the location information of the sample bottle after the start-up time;

[0007] Obtaining the time when the sample bottle is moved to the target location as the delivery time;

[0008] Determine the moving path of the sample bottle within the inspection time according to the location information and various preset path selection factors; wherein the inspection time is the time period between the start time and the delivery time;

[0009] The identification code on the inspection box or the sample bottle is scanned by the user terminal to obtain the identification information of the sample bottle; wherein the inspection box is used to store and lock the sample bottle;

[0010] The inspection water sample is monitored to determine whether it meets the set conditions according to the identification information, the inspection time and the moving path.

[0011] In some embodiments, determining the moving path of the sample bottle within the inspection time according to the location information and various preset path selection factors includes the following steps:

[0012] Acquire each of the path selection factors corresponding to the location information within a target period after the start time;

[0013] The GAN algorithm, the LSTM algorithm and the ADAM algorithm are used to calculate the corresponding weights of each of the path selection factors;

[0014] The calculation formula of the GAN algorithm includes:

[0015] ;

[0016] in, H (·) represents the distribution probability of each of the path selection factors, and the distribution probability is used to calculate the weight, x i , x j respectively represent the factor values ​​of any two different path selection factors in each of the path selection factors, i , j Indicates the serial number, i and j Not equal, N represents the total number of the path selection factors, D represents a classification function, which is used to select factors according to the path x i , x j The factor value is assigned a corresponding classification value, and the value range of the classification value is (0, 1), D ( x i ) represents the path selection factor x i the corresponding classification value; Represents the factors that determine the path selection of the network x i , x j The discriminant value output after discrimination, Represents the path selection factor for the generated network x i , x j the generated noise compensation value;

[0017] The calculation formula of the LSTM algorithm includes:

[0018] Forget gate calculation formula:

[0019] ;

[0020] Input gate calculation formula:

[0021] ;

[0022] The long-term state calculation formula of the memory unit at time t is:

[0023] ;

[0024] Output gate calculation formula:

[0025] ;

[0026] in, f t represents the output value of the forget gate, , tanh represent different activation functions, i t represents the output value of the input gate, A new candidate cell state representing the input gate; b f , b i , b C , b o Represent different bias values. W f , W i , W C , W o Represents different function weights, h t-1 , h t Respectively represent the weights output by the memory unit at time t-1 and time t, x t represents the path selection factor; C t-1 , C t Respectively represent the number of long-term memory states at time t-1 and time t; o t represents the output bias function; X·[ h t-1 , x t ] indicates X h t-1 +X· x t , X includes W f , W i , W C or W o ;

[0027] The calculation formula of the ADAM algorithm includes:

[0028] m k = β 1·mk-1 + (1- β 1) ·gk;

[0029] v k = β 2.v k-1 + (1- β 2)·(gk·gk);

[0030] m k_hat = m k / (1 - β 1^k);

[0031] v k_hat = v k / (1- β 2^k);

[0032] θ i,k =θ i,k-1 -α·m k_hat / (sqrt(v k _hat )+ ε );

[0033] h i,k =θ i,k · x i ;

[0034] Where k represents the number of iterations, β 1 is the exponential decay rate of the first-order moment estimate, β 2 is the exponential decay rate of the second-order moment estimate, gk is the gradient of the kth iteration; m k 、v k are weighted averages of different gradient exponents; m k_hat 、v k _hat They represent the adjusted exponentially weighted average of the gradients; α is the learning rate, ε is a non-zero number, θ i,k represents the current weight parameter of the i-th path selection factor; θ i,k-1 represents the weight parameter obtained from the last iteration of the i-th path selection factor; sqrt represents square root; h i,k Represents the path selection factor after k iterations x i The corresponding weights;

[0035] respectively summing up the weights of the path selection factors to obtain a comprehensive weight of the path selection factors;

[0036] The path selection factor whose comprehensive weight reaches a preset threshold is used as a target path factor, and the moving path of the retained sample bottle within the inspection time is determined according to the location information and the target path factor.

[0037] In some embodiments, before acquiring each of the path selection factors corresponding to the location information within the target time period after the start time, the method further includes:

[0038] Using a mean processing algorithm to calculate the mean values ​​corresponding to the preset path selection factors in each time period after the start time;

[0039] Expanding the path selection factors whose mean values ​​are lower than a preset mean threshold value;

[0040] Determining the target time period within each of the time periods of the expanded path selection factors;

[0041] The calculation formula of the mean processing algorithm includes:

[0042] P i,j =(x i,j +x i,j-1 +…+x i,j+1-[0.8T] ) / [0.8T];

[0043] P i,n =(p i,j +p i,j-1 +…+p i,j+1-[0.8T] ) / [0.8T];

[0044] Among them, P i,j represents the mean value of the i-th path selection factor in the j-th period, x i,j represents the factor value of the i-th path selection factor in the j-th period, n represents the number of mean calculations, P i,n represents the mean value of the i-th path selection factor after calculating n times, T represents the total number of time periods, [0.8T] represents the smallest integer not less than 0.8T; j is a positive integer greater than or equal to 5, and j+1-[0.8T] is greater than or equal to 1.

[0045] In some embodiments, the step of obtaining the starting time of the sample bottle containing the water sample to be tested comprises the following steps:

[0046] Obtaining the time when the sample bottle is removed from the water quality sampler as the starting time;

[0047] Before obtaining the time when the sample bottle is removed from the water quality sampler as the start time, the method further includes the following steps:

[0048] When the preset sample retention condition is triggered, the water quality sampler is controlled to collect a water sample as the test water sample, and the test water sample is sent into the sample retention bottle;

[0049] Obtaining the identity information of the person submitting the inspection and verifying the identity information;

[0050] When the identity information is verified, the fixing lock of the water quality sampler on the sample bottle is released.

[0051] In some embodiments, when the preset sample retention condition is triggered, controlling the water quality sampler to collect a water sample as the test water sample, and sending the test water sample to the sample retention bottle includes the following steps:

[0052] When it is detected that one or more parameters in the water sample exceed the corresponding index value, the water quality sampler is controlled to collect the water sample as the inspection water sample, and the inspection water sample is sent to the sample retention bottle;

[0053] Alternatively, after receiving the sampling instruction, the water quality sampler is controlled to collect the water sample as the test water sample, and the test water sample is sent into the sample bottle.

[0054] In some embodiments, the monitoring of whether the submitted water sample meets the set conditions according to the identification information, the submission time and the moving path includes the following steps:

[0055] Monitor whether the identification information is consistent with the information of the sample bottle required for inspection, so as to determine whether the sample bottle is the sample bottle required for inspection;

[0056] Monitor whether the inspection time exceeds a preset time threshold to determine whether the inspection water sample meets the set conditions;

[0057] Monitor whether the moving path belongs to a preset candidate path to determine whether the water sample sent for inspection meets the set conditions.

[0058] In some embodiments, judging whether the water sample meets the set condition according to whether the moving path belongs to a preset candidate path includes the following steps:

[0059] If the overlap between the moving path and any one of the preset candidate paths reaches a set threshold, it is determined that the water sample to be tested meets the set condition;

[0060] If the overlap between the moving path and the preset multiple candidate paths does not reach the set threshold, it is determined that the water sample submitted for inspection does not meet the set conditions.

[0061] In some embodiments, before monitoring at least one of the inspection time or the moving path to determine whether the inspection water sample meets the set conditions, the method further includes the following steps:

[0062] The time threshold and the plurality of candidate paths are determined according to the position of the sample bottle before movement and the position of the destination point.

[0063] To achieve the above-mentioned purpose, another aspect of the embodiment of the present application provides a monitoring device for water samples to be inspected, the device comprising:

[0064] The first time acquisition unit is used to acquire the start time of sending the sample bottle containing the water sample to be tested;

[0065] A position information acquisition unit, used to acquire the position information of the sample bottle after the start-up time;

[0066] A second time acquisition unit is used to acquire the time when the sample bottle is moved to the target location as the delivery time;

[0067] A moving path determination unit, used to determine the moving path of the sample bottle within the inspection time according to the position information and various preset path selection factors; wherein the inspection time is the time period between the start time and the delivery time;

[0068] An identification information acquisition unit, used to obtain the identification information of the sample bottle by scanning the identification code on the inspection box or the sample bottle through a user terminal; wherein the inspection box is used to store and lock the sample bottle;

[0069] The inspection water sample monitoring unit is used to monitor whether the inspection water sample meets the set conditions according to the identification information, the inspection time and the moving path.

[0070] To achieve the above objective, another aspect of an embodiment of the present application provides an electronic device, the electronic device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the above method when executing the computer program.

[0071] To achieve the above objective, another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and the computer program implements the above method when executed by a processor.

[0072] The embodiments of the present application include at least the following beneficial effects:

[0073] The present application can obtain the starting time of the sample bottle containing the water sample for inspection; obtain the location information of the sample bottle after the starting time; obtain the time when the sample bottle moves to the target location as the delivery time; determine the moving path of the sample bottle within the inspection time according to the location information and various preset path selection factors; wherein the inspection time is the time period between the starting time and the delivery time; obtain the identification information of the sample bottle by scanning the identification code on the inspection box or the sample bottle through the user terminal; wherein the inspection box is used to store and lock the sample bottle; monitor whether the water sample for inspection meets the set conditions according to the identification information, inspection time and moving path. The present application can monitor the entire inspection process of the water sample for inspection by obtaining the identification information of the sample bottle, the inspection time of the water sample for inspection and the moving path of the water sample for inspection, and then accurately judge the authenticity and validity of the water sample for inspection. BRIEF DESCRIPTION OF THE DRAWINGS

[0074] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0075] Figure 1 A schematic diagram of a flow chart of a method for monitoring water samples for inspection provided in an embodiment of the present application;

[0076] Figure 2 A schematic diagram of the structure of a monitoring device for water samples sent for inspection provided in an embodiment of the present application;

[0077] Figure 3 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0078] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present application. They are only examples of devices and methods consistent with some aspects of the embodiments of the present application as detailed in the attached claims.

[0079] It is understood that the terms "first", "second", etc. used in this application can be used to describe various concepts in this article, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another concept. For example, without departing from the scope of the embodiment of the present application, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein can be interpreted as "at the time of" or "when" or "in response to determination".

[0080] The terms "at least one", "multiple", "each", "any", etc. used in this application, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.

[0081] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0082] The embodiments of the present application provide a method, device, electronic device and storage medium for monitoring water samples for inspection. The technical solution of the present application includes: obtaining the starting time of the sample bottle containing the water sample for inspection; obtaining the position information of the sample bottle after the starting time; obtaining the time when the sample bottle moves to the target location as the delivery time; determining the moving path of the sample bottle within the inspection time according to the position information and various preset path selection factors; wherein the inspection time is the time period between the starting time and the delivery time; obtaining the identification information of the sample bottle by scanning the identification code on the inspection box or the sample bottle through the user terminal; wherein the inspection box is used to store and lock the sample bottle; monitoring whether the water sample for inspection meets the set conditions according to the identification information, inspection time and moving path. By obtaining the identification information of the sample bottle, the inspection time and the moving path of the water sample for inspection, the present application can monitor the entire inspection process of the water sample for inspection, and then accurately judge the authenticity and validity of the water sample for inspection.

[0083] The embodiment of the present application provides a method for monitoring water samples for inspection, which relates to the field of data processing technology. The method for monitoring water samples for inspection provided in the embodiment of the present application can be applied to a terminal, can be applied to a server, or can be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or can be configured as a server cluster or distributed system composed of multiple physical servers, and can also be configured to provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms and other basic cloud computing services. The server can also be a node server in a blockchain network; the software can be an application that implements the monitoring method of water samples for inspection, etc., but is not limited to the above forms.

[0084] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0085] Reference Figure 1 The present application embodiment provides a method for monitoring water samples to be inspected, which may include but is not limited to S100 to S150, as follows:

[0086] S100: Obtain the starting time of sending the sample bottle containing the water sample to be tested.

[0087] It is understandable that when the water sample is sent for inspection, the sample bottle containing the water sample is sent to a professional testing agency, and the professional testing agency tests the water sample in the sample bottle. In the embodiment of the present application, the collected water sample is used as the water sample for inspection, and then the water sample for inspection is placed in the sample bottle. Then, when it is determined that the collected water sample needs to be sent for inspection, this moment is used as the inspection time.

[0088] It should be noted that the sample bottle can be any type of water storage device, for example, it can be a separate water storage device, or it can be a water storage device installed on various equipment.

[0089] Furthermore, S100 may include:

[0090] The time when the sample bottle is removed from the water quality sampler is obtained as the starting time.

[0091] Specifically, the sample bottle of this embodiment is set on the water quality sampler. The water quality sampler collects water samples and sends them into the sample bottle. After the inspection personnel arrive at the water quality sampler, they can take the sample bottle to be inspected from the water quality sampler. The water quality sampler can record the time when the sample bottle is taken off, and then this embodiment can obtain the time when the sample bottle is taken off as the starting time.

[0092] It can be understood that this embodiment uses the moment when the sample bottle is removed as the starting time. Compared with using the moment when the sample bottle starts to move as the starting time, this embodiment can monitor whether the sample bottle stays still for a long time after being removed, and then monitor whether the water sample in the sample bottle is replaced, so the authenticity and validity of the water sample can be monitored.

[0093] As a further implementation, before obtaining the time when the sample bottle is removed from the water quality sampler as the start time, the embodiment of the present application may further include S001 to S003:

[0094] S001: When the preset sample retention condition is triggered, the water quality sampler is controlled to collect a water sample as the test water sample, and the test water sample is sent into the sample retention bottle.

[0095] Exemplarily, the water quality sampler in this embodiment can detect one or more parameters in the water body, for example, whether one or more parameters being monitored appear in the water body during a certain period of time, or whether one or more parameters in the water body exceed the standard, etc., and then monitor whether sewage is discharged during this period, or whether the water body during this period is polluted, so as to monitor whether the discharged sewage has undergone qualified purification treatment. Therefore, this embodiment can pre-set a variety of sample retention conditions. When the water quality sampler detects that the sample retention condition is triggered, the water quality sampler is controlled to collect water samples immediately and send the collected water samples to the sample retention bottle.

[0096] Furthermore, S001 may include:

[0097] When it is detected that one or more parameters in the water sample exceed the corresponding index value, the water quality sampler is controlled to collect the water sample as the inspection water sample, and the inspection water sample is sent to the sample retention bottle;

[0098] Alternatively, after receiving the sampling instruction, the water quality sampler is controlled to collect the water sample as the test water sample, and the test water sample is sent into the sample bottle.

[0099] It is understandable that this embodiment can collect water samples as test samples after detecting that the parameters in the water samples exceed the standard, and can also receive sampling instructions to control the water quality sampler to perform sampling, thus realizing automatic sampling and sampling in response to instructions. In addition, this embodiment can also automatically sample according to a set period, and no matter whether the parameters in the water samples exceed the standard, the water quality sampler can be controlled to perform sampling after the set period has passed.

[0100] S002: Obtain the identity information of the person submitting the sample and verify the identity information.

[0101] After collecting the water sample for inspection, the person submitting the sample needs to remove the sample bottle and send the water sample in the sample bottle to a professional testing agency. In order to avoid the water sample being taken away at will and reduce the risk of substitution, this embodiment can first obtain the identity information of the person submitting the sample, such as account password, fingerprint, voiceprint and other identity information, and verify the identity information to confirm whether the person who removes the sample bottle is the designated person submitting the sample.

[0102] S003: When the identity information is verified, the water quality sampler releases the lock on the sample bottle.

[0103] Specifically, in order to prevent the sample bottle from being removed at will and to ensure the authenticity and validity of the water sample submitted for inspection, the sample bottle in this embodiment can be locked on the water quality sampler. When the identity information is verified, the fixed lock of the sample bottle by the water quality sampler is released so that the inspection personnel can remove the sample bottle.

[0104] S110: Obtain the location information of the sample bottle after the start-up time.

[0105] Exemplarily, a positioning sensor can be pre-set on the sample bottle of this embodiment, and the position information of the sample bottle can be determined by acquiring data from the positioning sensor. In order to monitor the water samples for inspection, this embodiment can obtain the position information of the water samples after the inspection begins, that is, the position information after the start of delivery.

[0106] The embodiment of the present application provides a monitoring method for water samples submitted for inspection. After triggering the sampling due to exceeding the standard or remote active triggering of sampling, the collected water sample is put into a sample bottle. After the inspection personnel arrive at the water quality sampler and pass the identity information authentication, they take down the sample bottle. Then, within the set time, the sample bottle is sent to a professional testing agency via a preset candidate path. In order to prevent the water sample in the sample bottle from being replaced, the removal and delivery time, moving path, etc. of the sample bottle can be recorded and monitored. Then, it is judged whether the inspection time exceeds the preset time threshold, or it is judged whether the inspection personnel have taken a detour based on the moving path, etc., to ensure that the water sample submitted for inspection is authentic and valid.

[0107] S120: Obtain the time when the sample bottle is moved to the target location as the delivery time.

[0108] Specifically, when it is detected that the position of the sample bottle moves into the range of the target location, it can be determined that the sample bottle reaches the target location, and then this embodiment obtains the time of arrival as the delivery time.

[0109] The target location may be a transfer station, an area of ​​a specified scope, or an area where a professional testing agency is located.

[0110] S130: Determine the moving path of the sample bottle within the inspection time according to the location information and various preset path selection factors; wherein the inspection time is the time period between the start time and the delivery time.

[0111] Specifically, this embodiment can obtain the real-time position information of the sample bottle, and draw the moving path of the sample bottle from the start time to the delivery time based on the real-time position information.

[0112] Further, S130 may include:

[0113] Acquire each of the path selection factors corresponding to the location information within a target time period after the start time; wherein the target time period corresponding to the start time is the current time period corresponding to the start time or a time period corresponding to the preset time limit of the start time;

[0114] The GAN algorithm, the LSTM algorithm and the ADAM algorithm are used to calculate the corresponding weights of each of the path selection factors;

[0115] The calculation formula of the GAN algorithm includes:

[0116] ;

[0117] in, H (·) represents the distribution probability of each of the path selection factors, and the distribution probability is used to calculate the weight, x i ,x j respectively represent the factor values ​​of any two different path selection factors in each of the path selection factors, i , j Indicates the serial number, i and j Not equal, N represents the total number of the path selection factors, D represents a classification function, which is used to select factors according to the path x i , x j The factor value is assigned a corresponding classification value, and the value range of the classification value is (0, 1), D ( x i ) represents the path selection factor x i the corresponding classification value; Represents the factors that determine the path selection of the network x i , x j The discriminant value output after discrimination, Represents the path selection factor for the generated network x i , x j the generated noise compensation value;

[0118] Exemplarily, the path selection factors of this embodiment may include: the current traffic volume of the must-pass road section, the number of traffic lights on each path and the expected waiting time, the number of turns or lane changes required on each path, or the expected congestion time of each path, etc.

[0119] Taking into account that the quantity units corresponding to the various path selection factors in this embodiment are inconsistent, for example, the unit of waiting time is time, while the unit of the number of traffic lights is number, in order to unify the standard and facilitate calculation, this embodiment can normalize the numerical values ​​corresponding to the various path selection factors, so that the numerical values ​​corresponding to the various path selection factors are unified to the same standard as the corresponding factor values, and then use the factor values ​​obtained by normalization for subsequent calculations.

[0120] Specifically, considering that different path selection factors have different degrees of influence on the inspection time, in order to calculate a more accurate weight of each path selection factor, this embodiment can use a classification function to classify any two path selection factors. x i , x jFor comparison, according to the actual situation, the path selection factors with smaller influence are assigned lower classification values, and the path selection factors with greater influence are assigned higher classification values.

[0121] It should be noted that the log function in the calculation formula of the above GAN algorithm can take any base according to actual needs, so the base is not marked in the log function. For example, the base of the log function in this embodiment can be 10 or a natural number. e wait.

[0122] The calculation formula of the LSTM algorithm includes:

[0123] Forget gate calculation formula:

[0124] ;

[0125] Input gate calculation formula:

[0126] ;

[0127] The long-term state calculation formula of the memory unit at time t is:

[0128] ;

[0129] Output gate calculation formula:

[0130] ;

[0131] in, f t represents the output value of the forget gate, , tanh represent different activation functions, i t represents the output value of the input gate, A new candidate cell state representing the input gate; b f , b i , b C , b o Represent different bias values. W f , W i , W C , W o Represents different function weights, h t-1 , h t Respectively represent the weights output by the memory unit at time t-1 and time t,x t represents the path selection factor; C t-1 , C t Respectively represent the number of long-term memory states at time t-1 and time t; o t represents the output bias function; X·[ h t-1 , x t ] indicates X h t-1 +X· x t , X includes W f , W i , W C or W o ;

[0132] The calculation formula of the ADAM algorithm includes:

[0133] m k = β 1·m k-1 + (1- β 1) ·gk;

[0134] v k = β 2.v k-1 + (1- β 2)·(gk·gk);

[0135] m k_hat = m k / (1 - β 1^k);

[0136] v k_hat = v k / (1- β 2^k);

[0137] θ i,k =θ i,k-1 -α·m k_hat / (sqrt(v k _hat )+ ε );

[0138] h i,k =θ i,k · x i ;

[0139] Where k represents the number of iterations,β 1 is the exponential decay rate of the first-order moment estimate, β 2 is the exponential decay rate of the second-order moment estimate, gk is the gradient of the kth iteration; m k 、v k are weighted averages of different gradient exponents; m k_hat 、v k _hat They represent the adjusted exponentially weighted average of the gradients; α is the learning rate, ε is a non-zero number, θ i,k represents the current weight parameter of the i-th path selection factor; θ i,k-1 represents the weight parameter obtained from the last iteration of the i-th path selection factor; sqrt represents square root; h i,k Represents the path selection factor after k iterations x i The corresponding weights;

[0140] It should be noted that the ADAM algorithm is a gradient descent algorithm, and each path selection factor of the present embodiment can be pre-set with a corresponding factor value and an initial weight parameter. The ADAM algorithm of the present embodiment uses the back propagation of the gradient to update the weight parameters of each path selection factor, and then determines the weight of each path selection factor based on the final weight parameters and the corresponding factor value.

[0141] respectively summing up the weights of the path selection factors to obtain a comprehensive weight of the path selection factors;

[0142] The path selection factor whose comprehensive weight reaches a preset threshold is used as a target path factor, and the moving path of the retained sample bottle within the inspection time is determined according to the location information and the target path factor.

[0143] It can be understood that this embodiment calculates the weights of each path selection factor through multiple algorithms, and obtains the corresponding comprehensive weights by integrating the weights obtained by different algorithms, so as to determine the importance of the corresponding path selection factors according to each comprehensive weight, and then obtain the appropriate path selection factors according to actual needs and comprehensive weights, and plan the inspection path in combination with the location information.

[0144] Furthermore, before acquiring each of the path selection factors corresponding to the location information within the target time period after the start time, the embodiment of the present application further includes:

[0145] Using a mean processing algorithm to calculate the mean values ​​corresponding to the preset path selection factors in each time period after the start time;

[0146] Expanding the path selection factors whose mean values ​​are lower than a preset mean threshold value;

[0147] Determining the target time period within each of the time periods of the expanded path selection factors;

[0148] The calculation formula of the mean processing algorithm includes:

[0149] P i,j =(x i,j +x i,j-1 +…+x i,j+1-[0.8T] ) / [0.8T];

[0150] P i,n =(p i,j +p i,j-1 +…+p i,j+1-[0.8T] ) / [0.8T];

[0151] Among them, P i,j represents the mean value of the i-th path selection factor in the j-th period, x i,j represents the factor value of the i-th path selection factor in the j-th period, n represents the number of mean calculations, P i,n represents the mean value of the i-th path selection factor after calculating n times, T represents the total number of time periods, [0.8T] represents the smallest integer not less than 0.8T; j is a positive integer greater than or equal to 5, and j+1-[0.8T] is greater than or equal to 1.

[0152] The ellipsis in the above two calculation formulas indicates that the subscript of the time period is reduced by 1, x i,j +x i,j-1 +…+x i,j+1-[0.8T] Represents x i The value from period j to period j+1-[0.8T], (p i,j +p i,j-1 +…+p i,j+1-[0.8T] Indicates p i The value from period j to period j+1-[0.8T].

[0153] Considering that there may be data omissions or a small amount of data when collecting each path selection factor, which may lead to a certain deviation between the calculated weights of each path selection factor and the actual importance, in order to solve the above problem, this embodiment can use the mean processing algorithm to calculate the corresponding mean of each path selection factor in each time period after the start of delivery, and then compare the mean of each time period with the preset mean threshold one by one. The path selection factor with a mean lower than the preset mean threshold can be considered to have a small amount of data. Then, this embodiment can expand the path selection factors with a small amount of data in each time period one by one, and the expansion method includes the difference method, the fitting method or the simulation generation method, etc. The data volume of each path selection factor after expansion is more consistent with the actual situation, and the calculated weight also accurately represents the corresponding importance. After expanding the path selection factors of each time period, one of the time periods can be selected as the target time period according to the actual situation of each time period, and then monitor whether the inspection personnel complete the inspection within the target time period.

[0154] S140: Scanning the identification code on the inspection box or the retained sample bottle through the user terminal to obtain the identification information of the retained sample bottle; wherein the inspection box is used to store and lock the retained sample bottle.

[0155] Specifically, in the process of submitting water samples for inspection, the inspectors can either lock the sample bottles in the inspection box for inspection, or submit the sample bottles separately. Therefore, the inspection box and the sample bottles in this embodiment can be pre-set with identification codes of the sample bottles, such as QR codes, bar codes, etc. The identification information of the sample bottles can be obtained by scanning the identification code through a user terminal, such as a mobile phone, tablet computer, etc., and the identification information is unique, that is, each sample bottle has its own identification information.

[0156] It should be noted that before placing the sample bottle into the inspection box, it is necessary to verify the identity information of the person submitting the sample (such as verifying biometric information such as fingerprints, irises, or account passwords, locations, etc.). The inspection box can be unlocked after the verification is passed. After the sample bottle is locked in the inspection box, in order to avoid being replaced, the person submitting the sample cannot unlock it again. Other personnel, such as the person who receives the water sample for inspection, need to verify before they can unlock and take out the sample bottle.

[0157] S150: monitoring whether the water sample submitted for inspection meets set conditions according to the identification information, the submission time and the moving path.

[0158] It can be understood that this embodiment can monitor the identification information, inspection time and movement path of the sample bottle to determine whether the water sample has been replaced during the inspection process, or whether the inspection personnel have taken a detour.

[0159] As a further implementation, S150 may include S151-S153:

[0160] S151: Monitor whether the identification information is consistent with the information of the sample bottle required for inspection, so as to determine whether the sample bottle is the sample bottle required for inspection.

[0161] Specifically, in order to monitor whether the sample bottle removed by the inspection personnel is the sample bottle required for inspection, this embodiment can monitor whether the identification information is consistent with the information of the sample bottle required for inspection. Since the identification information of each sample bottle is unique, it can be determined whether the sample bottle is removed correctly, thereby improving the effectiveness of the water sample submitted for inspection.

[0162] S152: Monitor whether the inspection time exceeds a preset time threshold to determine whether the inspection water sample meets the set conditions.

[0163] It can be understood that the present embodiment can pre-set a time threshold for the inspection time. When the inspection time of the retained sample bottle exceeds the time threshold, it is judged that the inspection water sample in the retained sample bottle does not meet the set conditions, that is, the inspection water sample has lost its authenticity or validity.

[0164] S153: Monitor whether the moving path belongs to a preset candidate path to determine whether the water sample to be tested meets the set conditions.

[0165] Specifically, this embodiment can pre-set candidate paths. When the sample bottle is sent for inspection, it monitors whether the moving path of the sample bottle matches the candidate path, and determines whether the person sending the sample for inspection has taken a detour. This can monitor potential risks such as whether the water sample in the sample bottle has been replaced or whether the water sample has become invalid due to the detour taking too long.

[0166] Furthermore, S153 may include:

[0167] If the overlap between the moving path and any one of the preset candidate paths reaches a set threshold, it is determined that the water sample to be tested meets the set condition;

[0168] If the overlap between the moving path and the preset multiple candidate paths does not reach the set threshold, it is determined that the water sample submitted for inspection does not meet the set conditions.

[0169] Specifically, in this embodiment, multiple candidate paths can be pre-set. When the monitored overlap degree of the moving path of the sample bottle with any candidate path reaches a set threshold, for example, the overlap degree reaches 80% or 90%, etc., it can be determined that the person submitting the sample for inspection follows the candidate path, and then it can be determined that the water sample in the sample bottle meets the set conditions, that is, the water sample is authentic and valid.

[0170] When it is monitored that the degree of overlap between the moving path of the sample bottle and any candidate path does not reach the set threshold, it can be determined that the person submitting the sample for inspection did not submit it for inspection according to the candidate path, and then it can be judged that the water sample in the sample bottle does not meet the set conditions, that is, the water sample for inspection is not authentic and valid.

[0171] In order to reasonably determine the authenticity and validity of the water sample submitted for inspection, before S140, the embodiment of the present application may further include:

[0172] The time threshold and the plurality of candidate paths are determined according to the position of the sample bottle before movement and the position of the destination point.

[0173] Specifically, after determining the sampling location and the location of the destination point, this embodiment can obtain the road network information and commuting time data between the two locations, and then set the time threshold and each candidate path accordingly according to the road network information and commuting time data.

[0174] Exemplarily, this embodiment can select one or more paths with the highest number of travel times within a certain period of time as candidate paths based on the road network information; for the time threshold, this embodiment can obtain the commuting time data of each candidate path, and then calculate the average or maximum value of the commuting time, and then set the specific value of the time threshold accordingly based on the average or maximum value.

[0175] Reference Figure 2 The embodiment of the present application further provides a monitoring device for water samples to be inspected, which can implement the above-mentioned monitoring method for water samples to be inspected, and the device includes:

[0176] The first time acquisition unit is used to acquire the start time of sending the sample bottle containing the water sample to be tested;

[0177] A position information acquisition unit, used to acquire the position information of the sample bottle after the start-up time;

[0178] A second time acquisition unit is used to acquire the time when the sample bottle is moved to the target location as the delivery time;

[0179] A moving path determination unit, used to determine the moving path of the sample bottle within the inspection time according to the position information and various preset path selection factors; wherein the inspection time is the time period between the start time and the delivery time;

[0180] An identification information acquisition unit, used to obtain the identification information of the sample bottle by scanning the identification code on the inspection box or the sample bottle through a user terminal; wherein the inspection box is used to store and lock the sample bottle;

[0181] The inspection water sample monitoring unit is used to monitor whether the inspection water sample meets the set conditions according to the identification information, the inspection time and the moving path.

[0182] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0183] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above-mentioned monitoring method of the water sample when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0184] It can be understood that the contents of the above method embodiments are all applicable to the present device embodiments, the functions specifically implemented by the present device embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0185] See also Figure 3 , Figure 3 The hardware structure of an electronic device of another embodiment is illustrated, and the electronic device includes:

[0186] The processor 301 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0187] The memory 302 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 302 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 302, and the processor 301 calls and executes the monitoring method of the water sample submitted for inspection in the embodiment of this application;

[0188] Input / output interface 303, used to implement information input and output;

[0189] Communication interface 304, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0190] A bus 305 , which transmits information between the various components of the device (e.g., the processor 301 , the memory 302 , the input / output interface 303 , and the communication interface 304 );

[0191] The processor 301 , the memory 302 , the input / output interface 303 and the communication interface 304 are connected to each other in communication within the device via the bus 305 .

[0192] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned monitoring method for water samples submitted for inspection is implemented.

[0193] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0194] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0195] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0196] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0197] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0198] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0199] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0200] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0201] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0202] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0203] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0204] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0205] The preferred embodiments of the present application are described above with reference to the accompanying drawings, but the scope of the rights of the present application is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present application should be within the scope of the rights of the present application.

Claims

1. A method for monitoring water samples, characterized in that: The method comprises the following steps: Obtain the starting time of sending the sample bottles containing the water samples for inspection; Obtaining the location information of the sample bottle after the start-up time; Obtaining the time when the sample bottle is moved to the target location as the delivery time; Determine the moving path of the sample bottle within the inspection time according to the location information and various preset path selection factors; wherein the inspection time is the time period between the start time and the delivery time; The identification code on the inspection box or the sample bottle is scanned by the user terminal to obtain the identification information of the sample bottle; wherein the inspection box is used to store and lock the sample bottle; Monitor whether the water sample submitted for inspection meets the set conditions according to the identification information, the submission time and the moving path; Determining the moving path of the sample bottle within the inspection time according to the position information and various preset path selection factors includes the following steps: Acquire each of the path selection factors corresponding to the location information within a target period after the start time; The GAN algorithm, the LSTM algorithm and the ADAM algorithm are used to calculate the corresponding weights of each of the path selection factors; The calculation formula of the GAN algorithm includes: ; in, H (·) represents the distribution probability of each of the path selection factors, and the distribution probability is used to calculate the weight, x i , x j respectively represent the factor values ​​of any two different path selection factors in each of the path selection factors, i , j Indicates the serial number, i and j Not equal, N represents the total number of the path selection factors, D represents a classification function, which is used to select factors according to the path x i , x j The factor value is assigned a corresponding classification value, and the value range of the classification value is (0, 1), D ( x i ) represents the path selection factor x i the corresponding classification value; Represents the factors that determine the path selection of the network x i , x j The discriminant value output after discrimination, Represents the path selection factor for the generated network x i , x j the generated noise compensation value; The calculation formula of the LSTM algorithm includes: Forget gate calculation formula: ; Input gate calculation formula: ; The long-term state calculation formula of the memory unit at time t is: ; Output gate calculation formula: ; in, f t represents the output value of the forget gate, , tanh represent different activation functions, i t represents the output value of the input gate, A new candidate cell state representing the input gate; b f , b i , b C , b o Represent different bias values, W f , W i , W C , W o Represents different function weights, h t-1 , h t Respectively represent the weights output by the memory unit at time t-1 and time t, x t represents the path selection factor; C t-1 , C t Respectively represent the number of long-term memory states at time t-1 and time t; o t represents the output bias function; X·[ h t-1 , x t ] indicates X h t-1 +X· x t , X includes W f , W i , W C or W o ; The calculation formula of the ADAM algorithm includes: m k = β 1·m k-1 + (1- β 1)·gk; iv k , β 2·v k-1 + (1- β 2) (gk gk); m k_hat = m k / (1 - β 1^k); v k_hat = v k / (1- β 2^k); i i,k =θ i,k-1 -a·m k_hat / (sqrt(v k _hat )+ ε ); h i,k =θ i,k · x i ; Where k represents the number of iterations, β 1 is the exponential decay rate of the first-order moment estimate, β 2 is the exponential decay rate of the second-order moment estimate, gk is the gradient of the kth iteration; m k 、v k are weighted averages of different gradient exponents; m k_hat 、v k _hat They represent the adjusted exponentially weighted average of the gradients; α is the learning rate, ε is a non-zero number, θ i,k represents the current weight parameter of the i-th path selection factor; θ i,k-1 represents the weight parameter obtained from the last iteration of the i-th path selection factor; sqrt represents square root; h i,k Represents the path selection factor after k iterations x i The corresponding weights; respectively summing up the weights of the path selection factors to obtain a comprehensive weight of the path selection factors; The path selection factor whose comprehensive weight reaches a preset threshold is used as a target path factor, and the moving path of the retained sample bottle within the inspection time is determined according to the location information and the target path factor.

2. A method for monitoring water samples according to claim 1, characterized in that: Before acquiring each of the path selection factors corresponding to the location information within the target time period after the start time, the method further includes: Using a mean processing algorithm to calculate the mean values ​​corresponding to the preset path selection factors in each time period after the start time; Expanding the path selection factors whose mean values ​​are lower than a preset mean threshold value; Determining the target time period within each of the time periods of the expanded path selection factors; The calculation formula of the mean processing algorithm includes: P i,j =(x i,j +x i,j-1 +…+x i,j+1-[0.8T] ) / [0.8T]; P i,n =(p i,j +p i,j-1 +…+p i,j+1-[0.8T] ) / [0.8T]; Among them, P i,j represents the mean value of the i-th path selection factor in the j-th period, x i,j represents the factor value of the i-th path selection factor in the j-th period, n represents the number of mean calculations, P i,n represents the mean value of the i-th path selection factor after calculating n times, T represents the total number of time periods, [0.8T] represents the smallest integer not less than 0.8T; j is a positive integer greater than or equal to 5, and j+1-[0.8T] is greater than or equal to 1.

3. The method for monitoring water samples according to claim 1, characterized in that: The method of obtaining the starting time of sending the sample bottle containing the water sample to be sent for inspection comprises the following steps: Obtaining the time when the sample bottle is removed from the water quality sampler as the starting time; Before obtaining the time when the sample bottle is removed from the water quality sampler as the start time, the method further includes the following steps: When the preset sample retention condition is triggered, the water quality sampler is controlled to collect a water sample as the test water sample, and the test water sample is sent into the sample retention bottle; Obtaining the identity information of the person submitting the inspection and verifying the identity information; When the identity information is verified, the fixing lock of the water quality sampler on the sample bottle is released.

4. A method for monitoring water samples according to claim 3, characterized in that: When the preset sample retention condition is triggered, the water quality sampler is controlled to collect a water sample as the test water sample, and the test water sample is sent to the sample retention bottle, including the following steps: When it is detected that one or more parameters in the water sample exceed the corresponding index value, the water quality sampler is controlled to collect the water sample as the inspection water sample, and the inspection water sample is sent to the sample retention bottle; Alternatively, after receiving the sampling instruction, the water quality sampler is controlled to collect the water sample as the test water sample, and the test water sample is sent into the sample bottle.

5. The method for monitoring water samples according to claim 1, characterized in that: The step of monitoring whether the water sample submitted for inspection meets the set conditions according to the identification information, the inspection time and the moving path includes the following steps: Monitor whether the identification information is consistent with the information of the sample bottle required for inspection, so as to determine whether the sample bottle is the sample bottle required for inspection; Monitor whether the inspection time exceeds a preset time threshold to determine whether the inspection water sample meets the set conditions; Monitor whether the moving path belongs to a preset candidate path to determine whether the water sample sent for inspection meets the set conditions.

6. A method for monitoring water samples according to claim 5, characterized in that: The step of judging whether the water sample meets the set condition according to whether the moving path belongs to a preset candidate path comprises the following steps: If the overlap between the moving path and any one of the preset candidate paths reaches a set threshold, it is determined that the water sample to be tested meets the set condition; If the overlap between the moving path and the preset multiple candidate paths does not reach the set threshold, it is determined that the water sample submitted for inspection does not meet the set conditions.

7. A monitoring device for water samples, characterized in that: The device comprises: The first time acquisition unit is used to acquire the start time of sending the sample bottle containing the water sample to be tested; A position information acquisition unit, used to acquire the position information of the sample bottle after the start-up time; A second time acquisition unit is used to acquire the time when the sample bottle is moved to the target location as the delivery time; A moving path determination unit, used to determine the moving path of the sample bottle within the inspection time according to the position information and various preset path selection factors; wherein the inspection time is the time period between the start time and the delivery time; An identification information acquisition unit, used to obtain the identification information of the sample bottle by scanning the identification code on the inspection box or the sample bottle through a user terminal; wherein the inspection box is used to store and lock the sample bottle; A water sample monitoring unit for testing, used to monitor whether the water sample for testing meets the set conditions according to the identification information, the testing time and the moving path; Determining the moving path of the sample bottle within the inspection time according to the position information and various preset path selection factors includes the following steps: Acquire each of the path selection factors corresponding to the location information within a target period after the start time; The GAN algorithm, the LSTM algorithm and the ADAM algorithm are used to calculate the corresponding weights of each of the path selection factors; The calculation formula of the GAN algorithm includes: ; in, H (·) represents the distribution probability of each of the path selection factors, and the distribution probability is used to calculate the weight, x i , x j respectively represent the factor values ​​of any two different path selection factors in each of the path selection factors, i , j Indicates the serial number, i and j Not equal, N represents the total number of the path selection factors, D represents a classification function, which is used to select factors according to the path x i , x j The factor value is assigned a corresponding classification value, and the value range of the classification value is (0, 1), D ( x i ) represents the path selection factor x i the corresponding classification value; Represents the factors that determine the path selection of the network x i , x j The discriminant value output after discrimination, Represents the path selection factor for the generated network x i , x j the generated noise compensation value; The calculation formula of the LSTM algorithm includes: Forget gate calculation formula: ; Input gate calculation formula: ; The long-term state calculation formula of the memory unit at time t is: ; Output gate calculation formula: ; in, f t represents the output value of the forget gate, , tanh represent different activation functions, i t represents the output value of the input gate, A new candidate cell state representing the input gate; b f , b i , b C , b o Represent different bias values. W f , W i , W C , W o Represents different function weights, h t-1 , h t Respectively represent the weights output by the memory unit at time t-1 and time t, x t represents the path selection factor; C t-1 , C t Respectively represent the number of long-term memory states at time t-1 and time t; o t represents the output bias function; X·[ h t-1 , x t ] indicates X h t-1 +X· x t , X includes W f , W i , W C or W o ; The calculation formula of the ADAM algorithm includes: m k = β 1·m k-1 + (1- β 1)·gk; iv k , β 2·v k-1 + (1- β 2) (gk gk); m k_hat = m k / (1 - β 1^k); v k_hat = v k / (1- β 2^k); i i,k =θ i,k-1 -a·m k_hat / (sqrt(v k _hat )+ ε ); h i,k =θ i,k · x i ; Where k represents the number of iterations, β 1 is the exponential decay rate of the first-order moment estimate, β 2 is the exponential decay rate of the second-order moment estimate, gk is the gradient of the kth iteration; m k 、v k are weighted averages of different gradient exponents; m k_hat 、v k _hat They represent the adjusted exponentially weighted average of the gradients; α is the learning rate, ε is a non-zero number, θ i,k represents the current weight parameter of the i-th path selection factor; θ i,k-1 represents the weight parameter obtained from the last iteration of the i-th path selection factor; sqrt represents square root; h i,k Represents the path selection factor after k iterations x i The corresponding weights; respectively summing up the weights of the path selection factors to obtain a comprehensive weight of the path selection factors; The path selection factor whose comprehensive weight reaches a preset threshold is used as a target path factor, and the moving path of the retained sample bottle within the inspection time is determined according to the location information and the target path factor.

8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Monitoring method and system of submitted sample

    CN108900803A

  • Grain quality multi-index prediction method and device

    CN111144552A

  • Sealing sample inspection method based on intelligent image identification and radio frequency identification

    CN113553976A

  • Sampling and Testing Process Fluids from a Lithium Recovery System and Associating Process Data and Test Data of the Process Fluid Samples

    US20230400390A1