Summary of the invention
In view of this, being improved the purpose of the present invention is to provide a kind of animal swimming with a load attached to the body experiment monitoring method and system
The reliability of experimental data simultaneously reduces the cost of labor in experimentation.Its concrete scheme is as follows:
A kind of animal swimming with a load attached to the body experiment monitoring method, comprising:
The experiment termination condition tested for the swimming with a load attached to the body of animal to be monitored is obtained in advance;
Real-time monitoring is carried out to the swimming with a load attached to the body behavior of the animal to be monitored, obtains corresponding real-time monitoring index;
Using real-time monitoring index, whether the experiment termination condition is met to the experiment progress of current swimming with a load attached to the body experiment
Carry out real-time judge;
If it is determined that the experiment progress of current swimming with a load attached to the body experiment meets the experiment termination condition, then stop this swimming with a load attached to the body
Swimming experiment.
Preferably, the swimming with a load attached to the body behavior to the animal to be monitored carries out real-time monitoring, obtains corresponding real-time
The process of monitoring index, comprising:
Real-time monitoring is carried out to the horizontal motion information of the animal to be monitored, obtains horizontal direction real time kinematics letter
Breath;
Real-time monitoring is carried out to the sinking direction motion information of the animal to be monitored, obtains sinking direction real time kinematics letter
Breath.
Preferably, the horizontal motion information to the animal to be monitored carries out real-time monitoring, obtains level side
To the process of real time kinematics information, comprising:
Real-time pictures acquisition is carried out to the top view for the test bucket for placing the animal to be monitored, obtains overlooking picture in real time
Face information;
The real-time top view image information is handled, the real-time vertical view wheel of the animal to be monitored is correspondingly made available
Wide information;
The real-time vertical view profile information is analyzed, the horizontal direction real time kinematics information is obtained.
Preferably, the sinking direction motion information to the animal to be monitored carries out real-time monitoring, obtains sinking side
To the process of real time kinematics information, comprising:
Real-time pictures acquisition is carried out to the front view for the test bucket for placing the animal to be monitored, is faced in real time
Figure image information;
The real-time front view image information is handled, be correspondingly made available the animal to be monitored faces wheel in real time
Wide information;
It faces profile information in real time to described and analyzes, obtain the sinking direction real time kinematics information.
Preferably, process target real-time pictures information handled, comprising:
It carries out the target real-time pictures information and background visual information to subtract each other processing, obtains corresponding difference picture;
ROI setting is carried out to the difference picture, obtains corresponding target picture region;
Binary conversion treatment, morphology operations, mask processing and contours extract are successively carried out to the target picture region
Processing, obtains corresponding real time profile information;
Wherein, the target real-time pictures information is the real-time top view image information or the real-time front view picture
Information.
Preferably, it is described by the target real-time pictures information and background visual information subtract each other processing process it
Before, further includes:
The target real-time pictures information and the background visual information are successively carried out at even row image zooming-out respectively
Reason and picture smooth treatment.
Preferably, the horizontal direction real time kinematics information includes horizontal motion distance, horizontal direction real time kinematics
Speed and horizontal motion total time;
The sinking direction real time kinematics information includes that sinking time, power are had a rest time, for the first time within a preset period of time for the first time
There is the time of sinking event, sinking total degree at least twice and sinks total time;Wherein, the power has a rest the time to open from experiment
Begin moment to the animal to be monitored first appear sinking duration greater than power have a rest threshold value when corresponding period.
Preferably, the experiment termination condition is the first termination condition or the second termination condition;Wherein,
First termination condition is that ought collect the power that this swimming with a load attached to the body is tested to have a rest the time, then stops this swimming with a load attached to the body
Swimming experiment;
Second termination condition is to reach the first preset time threshold when the sinking total time, then stops this weight bearing
Swimming test.
Preferably, the swimming with a load attached to the body behavior to the animal to be monitored carries out real-time monitoring, obtains corresponding real-time
The process of monitoring index, further includes:
Real-time monitoring is carried out to the duration of experiment of the swimming with a load attached to the body behavior of the animal to be monitored, is obtained corresponding total
Continue experimental period.
Preferably, the experiment termination condition is third termination condition;Wherein,
The third termination condition then stops this to reach the second preset time threshold when the experimental period that always continues
Swimming with a load attached to the body experiment.
Preferably, the process for stopping this swimming with a load attached to the body experiment, comprising:
Stop the monitoring of the swimming with a load attached to the body behavior to the animal to be monitored, and issues corresponding prompt information.
The invention also discloses a kind of animal swimming with a load attached to the body experiment monitor systems, comprising:
Termination condition obtains module, and the experiment that the swimming with a load attached to the body for being obtained in advance for animal to be monitored is tested terminates item
Part;
Behavior real-time monitoring module carries out real-time monitoring for the swimming with a load attached to the body behavior to the animal to be monitored, obtains
Corresponding real-time monitoring index;
Real-time judge module, it is whether full to the experiment progress of current swimming with a load attached to the body experiment for utilizing real-time monitoring index
The foot experiment termination condition carries out real-time judge;
Stopping modular is tested, for determining that the experiment progress of current swimming with a load attached to the body experiment meets when the real-time judge module
The experiment termination condition then stops this swimming with a load attached to the body experiment.
In the present invention, animal swimming with a load attached to the body experiment monitoring method, comprising: obtain the swimming with a load attached to the body for being directed to animal to be monitored in advance
The experiment termination condition of swimming experiment;Real-time monitoring is carried out to the swimming with a load attached to the body behavior of animal to be monitored, obtains corresponding prison in real time
Survey index;Using real-time monitoring index, carried out to whether the experiment progress of current swimming with a load attached to the body experiment meets experiment termination condition
Real-time judge;If it is determined that the experiment progress of current swimming with a load attached to the body experiment meets experiment termination condition, then stop this swimming with a load attached to the body
Experiment.As it can be seen that the present invention obtains experiment termination condition in advance, real-time monitoring then is carried out to the swimming with a load attached to the body behavior of animal,
And judge whether current experiment progress meets above-mentioned experiment termination condition using current real-time monitoring index, if so,
This swimming with a load attached to the body experiment can then be stopped, that is, the present invention can be based on real-time monitoring index come whether full to current experiment progress
The preset experiment termination condition of foot carries out real-time judge, thereby determines whether to need to stop experiment, if it is, can stop reality
It tests, since the above process is without manually being interfered, it is possible thereby to improve the reliability of experimental data and reduce in experimentation
Cost of labor.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of animal swimming with a load attached to the body experiment monitoring method, shown in Figure 1, this method packets
It includes:
Step S11: the experiment termination condition tested for the swimming with a load attached to the body of animal to be monitored is obtained in advance.
That is, the present embodiment before this swimming with a load attached to the body experiment starts, first obtains corresponding with this swimming with a load attached to the body experiment
Experiment termination condition.Specifically, experiment termination condition input by user can be obtained in such a way that user inputs,
The termination condition that can be tested by transferring pre-stored experiment termination condition as this swimming with a load attached to the body.
In the present embodiment, animal to be monitored preferentially selects mouse.
Step S12: real-time monitoring is carried out to the swimming with a load attached to the body behavior of animal to be monitored, corresponding real-time monitoring is obtained and refers to
Mark.
The present embodiment is after getting experiment termination condition, it will carries out to the swimming with a load attached to the body behavior of animal to be monitored real
When monitor, it is to be understood that the present embodiment is the swimming with a load attached to the body behavior by preset monitoring device to animal to be monitored
Automatically real-time monitoring is carried out, without carrying out personal monitoring.
It is understood that the present embodiment is during the swimming with a load attached to the body behavior to animal to be monitored carries out real-time monitoring
Correspondingly obtained real-time monitoring index can be automatically saved, for example, can be by Excel file format, to what is obtained
Real-time monitoring index is automatically saved.
Step S13: utilizing real-time monitoring index, terminates to whether the experiment progress of current swimming with a load attached to the body experiment meets experiment
Condition carries out real-time judge.
That is, the present embodiment is while the swimming with a load attached to the body behavior to animal to be monitored carries out real-time monitoring, it will utilize
Whether currently available real-time monitoring index meets institute in above-mentioned steps S11 come the experiment progress for judging that current swimming with a load attached to the body is tested
The experiment termination condition got.It is understood that current obtained real-time monitoring index itself can be in the present embodiment
Reflect the experiment progress of current swimming with a load attached to the body experiment.In addition, it is necessary to which, it is noted that above-mentioned real-time judge process specifically can be by
Corresponding program module is completed, and is judged without manually, so that the real-time and reduction of deterministic process can be improved
Cost of labor.
Step S14: if it is determined that the experiment progress of current swimming with a load attached to the body experiment meets experiment termination condition, then it is negative to stop this
Weight swimming test.
In the present embodiment, terminate item when the experiment progress for determining current swimming with a load attached to the body experiment in step S13 meets experiment
Part can then be stopped this swimming with a load attached to the body experiment by corresponding program module, wherein be treated in above-mentioned steps S12 including stopping
Monitor the real-time monitoring of the swimming with a load attached to the body behavior of animal.
It is understood that determining in the step S13, the experiment progress of current swimming with a load attached to the body experiment is also less than full to be tested
Termination condition, then will continue to through the above steps S12 to the real-time monitoring of the swimming with a load attached to the body behavior of animal to be monitored.
In the embodiment of the present invention, animal swimming with a load attached to the body experiment monitoring method, comprising: obtained in advance for animal to be monitored
The experiment termination condition of swimming with a load attached to the body experiment;Real-time monitoring is carried out to the swimming with a load attached to the body behavior of animal to be monitored, is obtained corresponding
Real-time monitoring index;Using real-time monitoring index, terminate item to whether the experiment progress of current swimming with a load attached to the body experiment meets experiment
Part carries out real-time judge;If it is determined that the experiment progress of current swimming with a load attached to the body experiment meets experiment termination condition, then it is negative to stop this
Weight swimming test.As it can be seen that the embodiment of the present invention obtains experiment termination condition in advance, then to the swimming with a load attached to the body behavior of animal into
Row real-time monitoring, and judge whether current experiment progress meets above-mentioned experiment and terminate item using current real-time monitoring index
Part, if it is, this swimming with a load attached to the body experiment can be stopped, that is, the embodiment of the present invention can be based on real-time monitoring index come to working as
Whether preceding experiment progress, which meets preset experiment termination condition, carries out real-time judge, thereby determines whether to need to stop experiment, such as
Fruit is can then to stop testing, since the above process is without manually being interfered, it is possible thereby to improve the reliability of experimental data simultaneously
Reduce the cost of labor in experimentation.
The embodiment of the invention discloses a kind of specific animal swimming with a load attached to the body experiment monitoring methods, implement relative to upper one
Example, the present embodiment have made further instruction and optimization to technical solution.It is specific:
In upper embodiment step S12, the swimming with a load attached to the body behavior to animal to be monitored is needed to carry out real-time monitoring, to obtain
Corresponding real-time monitoring index.
Wherein, the above-mentioned swimming with a load attached to the body behavior to animal to be monitored carries out real-time monitoring, obtains corresponding real-time monitoring and refers to
Target process specifically includes below step S121 and S122:
Step S121: real-time monitoring is carried out to the horizontal motion information of animal to be monitored, it is real-time to obtain horizontal direction
Motion information;
Step S122: real-time monitoring is carried out to the sinking direction motion information of animal to be monitored, it is real-time to obtain sinking direction
Motion information.
That is, including horizontal direction real time kinematics information and sinking in real-time monitoring index obtained in above-mentioned steps S12
Direction real time kinematics information.
Wherein, in above-mentioned steps S121, real-time monitoring is carried out to the horizontal motion information of animal to be monitored, obtains water
Square below step S1211 to S1213 is specifically included to the process of real time kinematics information:
Step S1211: real-time pictures acquisition is carried out to the top view for the test bucket for placing animal to be monitored, is bowed in real time
View picture information;
Step S1212: handling real-time top view image information, is correspondingly made available the real-time vertical view of animal to be monitored
Profile information;
Step S1213: real-time profile information of overlooking is analyzed, horizontal direction real time kinematics information is obtained.
Wherein, in above-mentioned steps S1213, it specifically can use and overlook profile information in real time, extract current to be monitored
The centroid of profile corresponding to animal can get above-mentioned horizontal direction and transport in real time then by the real-time centroid of tracking profile
Dynamic information.
In addition, carrying out real-time monitoring in above-mentioned steps S122 to the sinking direction motion information of animal to be monitored, obtaining down
The process of heavy direction real time kinematics information, specifically includes below step S1221 to S1223:
Step S1221: real-time pictures acquisition is carried out to the front view for the test bucket for placing animal to be monitored, is obtained in real time just
View picture information;
Step S1222: handling real-time front view image information, is correspondingly made available facing in real time for animal to be monitored
Profile information;
Step S1223: it analyzes profile information is faced in real time, obtains sinking direction real time kinematics information.
Wherein, in above-mentioned steps S1223, it specifically can use and face profile information in real time, extract current to be monitored
The location of nose of animal can get above-mentioned sinking direction then by the real-time nose position on tracking profile
Real time kinematics information.
It should be further noted that the mistake handled real-time top view image information in above-mentioned steps S1212
Journey is substantially identical with the process handled real-time front view image information in above-mentioned steps S1222.Specifically,
If target real-time pictures information is real-time top view image information or real-time front view image information, then step in the present embodiment
The detailed process of S1212 or step S1222, including below step S1201 to S1203:
Step S1201: it carries out target real-time pictures information and background visual information to subtract each other processing, obtains corresponding difference
Picture;Wherein, target real-time pictures information is real-time top view image information or real-time front view image information.
Step S1202: carrying out ROI setting (ROI, i.e. Region Of Interest, area-of-interest) to difference picture,
Obtain corresponding target picture region;
Step S1203: binary conversion treatment, morphology operations, mask processing and wheel are successively carried out to target picture region
Wide extraction process obtains corresponding real time profile information.
Wherein, the empty Jing Bingke that carrying out the processes of morphology operations can eliminate in image fills up the cavity in image.It covers
Code processing can reduce subsequent calculation amount.
It is understood that in the present embodiment, if above-mentioned target real-time pictures information is real-time top view image information,
Above-mentioned corresponding target picture area preference is to test picture area corresponding to the top view of bucket, is column in the shape of test bucket
In the case where shape, which is the region of ellipse.
Similarly, if above-mentioned target real-time pictures information is real-time front view image information, above-mentioned corresponding target picture
Area preference is to test picture area corresponding to the front view of bucket, is the picture in cylindrical situation in the shape of test bucket
Region is the region of rectangle.
Certainly, before above-mentioned steps S1201, first target real-time pictures information and background visual information can also be carried out
Pretreatment, specifically includes: successively carrying out at even row image zooming-out to target real-time pictures information and background visual information respectively
Reason and picture smooth treatment.That is, the present embodiment can pass through respectively in target real-time pictures information and background visual information
After even row image zooming-out processing and picture smooth treatment, target real-time pictures information and background visual information are subtracted each other by side
Processing.Wherein, above-mentioned even row image zooming-out processing refers to the even row information extracted in respective image picture, above-mentioned image smoothing
Processing specifically can be the smoothing processing carried out using Gaussian convolution.
In the present embodiment, horizontal direction real time kinematics information includes horizontal motion distance, horizontal direction real time kinematics
Speed and horizontal motion total time.And sinking direction real time kinematics information then may include for the first time sinking time, power have a rest the time,
Occur sinking at least twice within a preset period of time for the first time time of event, sinking total degree and sinking total time;Wherein, power is had a rest
Time be first appeared from experiment start time to animal to be monitored sinking duration greater than power have a rest threshold value when it is corresponding when
Between section.
It is understood that above-mentioned sinking time for the first time refers to that animal to be monitored first appears sinking during the experiment and holds
Experimental period corresponding when being more than default sinking threshold value of continuous time, power time of having a rest refer to that animal to be monitored is first during the experiment
It is secondary occur the duration be more than pre set force have a rest threshold value when corresponding experimental period.It should be noted that in the present embodiment
Experimental period refer to from experiment start time to the period being separated by current time.Wherein, above-mentioned default sinking threshold value
It is preset time value, such as is set as 0.5 second, certain sinks to underwater duration and is more than when animal to be monitored
0.5 second, then determine occur primary sinking event in this experimentation.Above-mentioned pre set force threshold value of having a rest is the preset time
Value, such as is set as 7 seconds, and it is more than 7 seconds that when animal to be monitored, certain, which sinks to underwater duration, then determines this time mistake
Occur a power in journey to have a rest event, and above-mentioned power is had a rest time namely refer to first appeared in this experimentation power have a rest event when
Corresponding experimental period.In addition, the time of the above-mentioned event that occurs sinking at least twice for the first time within a preset period of time refers to head
It is secondary to occur experimental period corresponding when sinking time at least twice within a preset period of time, for example, it is assumed that above-mentioned preset time
Section is 2 seconds, then when occurring then opening experiment twice or when sinking event more than twice in 2 seconds for the first time in this experimentation
Moment of beginning so-called occurs at least twice to interval time section between current time as above-mentioned within a preset period of time for the first time
The time of sinking event.Secondly, above-mentioned sinking total degree refers to from experiment start time to occurring sinking thing current time
The total degree of part.Then refer to above-mentioned sinking total time and sinks to the water surface from experiment start time to animal to be monitored current time
Under total time.
In addition, it may also be noted that in the present embodiment, when the nose of animal to be monitored is located under water surface curve, and
It is not less than pre-determined distance value apart from water surface curve, then determines that animal to be monitored has sunk to underwater.Wherein, above-mentioned pre-determined distance value
It can be set accordingly according to specific circumstances.For example, above-mentioned pre-determined distance value can be with when animal to be monitored is mouse
It is set as 5 millimeters.
In upper embodiment step S11, need to obtain experiment termination condition in advance.In the present embodiment, termination condition is tested
It can be the first termination condition or the second termination condition;Wherein,
First termination condition is that ought collect the power that this swimming with a load attached to the body is tested to have a rest the time, then stops this swimming with a load attached to the body reality
It tests;
Second termination condition is then to stop this swimming with a load attached to the body reality when sinking to reaching the first preset time threshold total time
It tests.
In addition, carrying out real-time monitoring to the swimming with a load attached to the body behavior of animal to be monitored in the present embodiment, obtain corresponding real-time
The process of monitoring index, can further include: carry out to the duration of experiment of the swimming with a load attached to the body behavior of animal to be monitored
Real-time monitoring obtains corresponding total persistently experimental period.
Further, the experiment termination condition in the present embodiment can also be third termination condition;Wherein,
Third termination condition is that ought always continue experimental period to reach the second preset time threshold, then stops this swimming with a load attached to the body
Experiment.
It needs further exist for illustrating, in the present embodiment, stops the process of this swimming with a load attached to the body experiment, specifically can wrap
It includes: stopping the monitoring of the swimming with a load attached to the body behavior to animal to be monitored, and issue corresponding prompt information, namely stop to be monitored
The real-time monitoring of the swimming with a load attached to the body behavior of animal, and issue corresponding prompt information, wherein the prompt information is for reminding people
Experiment is over.Specifically, above-mentioned prompt information can be auditory tone cues information, naturally it is also possible to be short message prompt etc..
Correspondingly, the embodiment of the invention also discloses a kind of animal swimming with a load attached to the body experiment monitor system, it is shown in Figure 2,
The system includes:
Termination condition obtains module 21, and the experiment that the swimming with a load attached to the body for being obtained in advance for animal to be monitored is tested terminates
Condition;
Behavior real-time monitoring module 22 carries out real-time monitoring for the swimming with a load attached to the body behavior to animal to be monitored, obtains phase
The real-time monitoring index answered;
Real-time judge module 23, for utilize real-time monitoring index, to current swimming with a load attached to the body experiment experiment progress whether
Meet experiment termination condition and carries out real-time judge;
Stopping modular 24 is tested, for determining that it is real that the experiment progress of current swimming with a load attached to the body experiment meets when real-time judge module
Termination condition is tested, then stops this swimming with a load attached to the body experiment.
As it can be seen that the embodiment of the present invention obtains experiment termination condition in advance, then the swimming with a load attached to the body behavior of animal is carried out
Real-time monitoring, and judge whether current experiment progress meets above-mentioned experiment and terminate item using current real-time monitoring index
Part, if it is, this swimming with a load attached to the body experiment can be stopped, that is, the embodiment of the present invention can be based on real-time monitoring index come to working as
Whether preceding experiment progress, which meets preset experiment termination condition, carries out real-time judge, thereby determines whether to need to stop experiment, such as
Fruit is can then to stop testing, since the above process is without manually being interfered, it is possible thereby to improve the reliability of experimental data simultaneously
Reduce the cost of labor in experimentation.
Specifically, above-mentioned behavior real-time monitoring module may include the first real-time monitoring submodule and the second real-time monitoring
Module;Wherein,
First real-time monitoring submodule carries out real-time monitoring for the horizontal motion information to animal to be monitored, obtains
To horizontal direction real time kinematics information;
Second real-time monitoring submodule carries out real-time monitoring for the sinking direction motion information to animal to be monitored, obtains
To sinking direction real time kinematics information.
Wherein, above-mentioned first real-time monitoring submodule include the first picture acquisition device, first information processing unit and
First information analytical unit;Wherein,
First picture acquisition device carries out real-time pictures for the top view to the test bucket for placing animal to be monitored and adopts
Collection, obtains real-time top view image information;
First information processing unit is correspondingly made available to be monitored dynamic for handling real-time top view image information
The real-time vertical view profile information of object;
First information analytical unit obtains horizontal direction real time kinematics for analyzing real-time profile information of overlooking
Information.
In addition, above-mentioned second real-time monitoring submodule include the second picture acquisition device, the second information process unit and
Second storage unit;Wherein,
Second picture acquisition device carries out real-time pictures for the front view to the test bucket for placing animal to be monitored and adopts
Collection, obtains real-time front view image information;
Second information process unit is correspondingly made available to be monitored dynamic for handling real-time front view image information
Object faces profile information in real time;
Second storage unit, for obtaining sinking direction real time kinematics to facing profile information in real time and analyzing
Information.
In the present embodiment, above-mentioned first picture acquisition device and the second picture acquisition device all can be industrial digital phases
Machine.
It should be further noted that above-mentioned first information analytical unit handled real-time top view image information
Process is substantially identical with the process that above-mentioned second storage unit handles real-time front view image information.Tool
Body, if target real-time pictures information is real-time top view image information or real-time front view image information, then in the present embodiment
The specific work process of first information analytical unit or the second storage unit, including by target real-time pictures information and background
Image information carries out subtracting each other processing, obtains corresponding difference picture;Wherein, target real-time pictures information is real-time top view picture
Then information or real-time front view image information carry out ROI setting to difference picture, obtain corresponding target picture region;It connects
Target picture region is successively carried out binary conversion treatment, morphology operations, mask processing and contour extraction processing, obtain phase
The real time profile information answered.
Certainly, before carrying out target real-time pictures information and background visual information to subtract each other processing, in the present embodiment
One storage unit or the second storage unit can also first carry out target real-time pictures information and background visual information
Pretreatment, specifically includes: successively carrying out at even row image zooming-out to target real-time pictures information and background visual information respectively
Reason and picture smooth treatment.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that
A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or
The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged
Except there is also other identical elements in the process, method, article or apparatus that includes the element.
A kind of animal swimming with a load attached to the body experiment monitoring method and system provided by the present invention are described in detail above,
Used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only used
In facilitating the understanding of the method and its core concept of the invention;At the same time, for those skilled in the art, according to the present invention
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as
Limitation of the present invention.