[go: up one dir, main page]

CN115116097A - Drug rehabilitation person relapse risk prediction method and device and readable storage medium - Google Patents

Drug rehabilitation person relapse risk prediction method and device and readable storage medium Download PDF

Info

Publication number
CN115116097A
CN115116097A CN202211036901.7A CN202211036901A CN115116097A CN 115116097 A CN115116097 A CN 115116097A CN 202211036901 A CN202211036901 A CN 202211036901A CN 115116097 A CN115116097 A CN 115116097A
Authority
CN
China
Prior art keywords
knuckle
drug
preset
movement
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211036901.7A
Other languages
Chinese (zh)
Inventor
李雪
韦洪雷
万辉
朱志成
高瞻乐
梁鑫
徐基盛
黄秋月
郑甜珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Drug Rehabilitation Administration
Southwest Jiaotong University
Chengdu Sport University
Original Assignee
Sichuan Drug Rehabilitation Administration
Southwest Jiaotong University
Chengdu Sport University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Drug Rehabilitation Administration, Southwest Jiaotong University, Chengdu Sport University filed Critical Sichuan Drug Rehabilitation Administration
Priority to CN202211036901.7A priority Critical patent/CN115116097A/en
Publication of CN115116097A publication Critical patent/CN115116097A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/107Static hand or arm
    • G06V40/11Hand-related biometrics; Hand pose recognition
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/70Arrangements for image or video recognition or understanding using pattern recognition or machine learning
    • G06V10/74Image or video pattern matching; Proximity measures in feature spaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Multimedia (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Software Systems (AREA)
  • Evolutionary Computation (AREA)
  • Databases & Information Systems (AREA)
  • Artificial Intelligence (AREA)
  • Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Medical Treatment And Welfare Office Work (AREA)

Abstract

本发明公开了一种戒毒人员复吸风险预测方法、装置及可读存储介质,涉及信息处理技术领域。其中,方法包括:识别戒毒人员的指关节在预设区域内的指节边缘,并获取指节边缘在预设区域内滑动的第一信息;其中,第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息;根据第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据;通过移动状态数据与预设状态数据进行的比对生成比对结果,根据比对结果对戒毒人员进行复吸风险预测。解决了现有技术中对系统内登记的吸毒人员,采取尿检的过程复杂,监管人员覆盖范围小和涉及隐私的问题。

Figure 202211036901

The invention discloses a relapse risk prediction method, device and readable storage medium for drug addicts, and relates to the technical field of information processing. Wherein, the method includes: identifying the knuckle edge of the drug addict's knuckle in a preset area, and acquiring first information of the knuckle edge sliding in the preset area; wherein, the first information is that the knuckle edge is in the preset area When moving inside, the first space information collected at the first moment of movement and the second space information collected at the second moment; according to the first space information collected at the first moment and the second space collected at the second moment The comparison of the information confirms the movement state data of the phalangeal edge in the preset area; the comparison result is generated by the comparison between the movement state data and the preset state data, and the relapse risk is predicted for the drug addicts according to the comparison result. It solves the problems in the prior art that the process of taking a urine test for drug addicts registered in the system is complicated, the coverage of supervisors is small, and the problems of privacy are involved.

Figure 202211036901

Description

戒毒人员复吸风险预测方法、装置及可读存储介质Method, device and readable storage medium for predicting relapse risk of drug addicts

技术领域technical field

本发明涉及信息处理技术领域,尤其涉及一种戒毒人员复吸风险预测方法、装置及可读存储介质。The invention relates to the technical field of information processing, and in particular, to a method, device and readable storage medium for predicting relapse risk of drug addicts.

背景技术Background technique

吸毒人员在戒除毒瘾以后需要接受“吸毒人员网上动态管控预警系统”的动态管控,以根据动态管控的检测数据预测戒毒人员的复吸的风险。动态管控预警系统内登记的吸毒人员在外地出差办理住宿、乘机或乘坐高铁时,当地动态管控预警系统会根据身份证信息立即报警,提示当地禁毒警对这些人员进行动态监管;目前,动态监管通常是对这些人员进行尿检。针对吸毒人员复吸状态的检测,目前主要采用尿检的方法进行;尿检方法虽然准确,但检测过程复杂,监管人员覆盖范围小,并涉及个人隐私等问题。因此,需要对现有技术进行改进,提出更合理的技术方案。After drug addicts get rid of drug addiction, they need to accept the dynamic control of the "Drug Addicts Online Dynamic Control Early Warning System" to predict the risk of relapse of drug addicts based on the detection data of dynamic control. When drug addicts registered in the dynamic control and early warning system travel to other places to check in for accommodation, take flights or take high-speed trains, the local dynamic control and early warning system will immediately call the police based on the ID card information, prompting the local anti-drug police to dynamically supervise these people; at present, dynamic supervision usually Urine tests are performed on these individuals. For the detection of drug addicts' relapse status, the method of urine test is mainly used at present. Although the urine test method is accurate, the detection process is complicated, the coverage of supervisors is small, and issues such as personal privacy are involved. Therefore, it is necessary to improve the existing technology and propose a more reasonable technical solution.

发明内容SUMMARY OF THE INVENTION

为了解决现有技术中对系统内登记的吸毒人员,采取尿检的过程复杂,监管人员覆盖范围小和涉及隐私的问题。In order to solve the problems in the prior art, the process of taking a urine test for drug addicts registered in the system is complicated, the coverage of supervisors is small, and privacy is involved.

第一方面,本发明实施例提出了一种戒毒人员复吸风险预测方法,包括:In the first aspect, an embodiment of the present invention proposes a method for predicting relapse risk for drug addicts, including:

识别戒毒人员的指关节在预设区域内的指节边缘,并获取指节边缘在预设区域内滑动的第一信息;其中,第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息;Identifying the knuckle edge of the drug addict's knuckle in the preset area, and acquiring first information about the knuckle edge sliding in the preset area; wherein, the first information is that when the knuckle edge moves in the preset area, the movement the first spatial information collected at the first moment and the second spatial information collected at the second moment;

根据第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据;According to the comparison between the first spatial information collected at the first moment and the second spatial information collected at the second moment, confirm the movement state data of the phalangeal edge within the preset area;

通过移动状态数据与预设状态数据进行的比对生成比对结果,根据比对结果对戒毒人员进行复吸风险预测。The comparison result is generated by comparing the mobile state data with the preset state data, and the relapse risk is predicted for the drug addicts according to the comparison result.

在一个可能的设计中,确认指节边缘在预设区域内的移动状态数据的步骤,包括:确认指节边缘在预设区域内的水平位移和竖直位移,并根据水平位移和竖直位移生成指节边缘的移动轨迹及速度轨迹。In a possible design, the step of confirming the movement state data of the phalangeal edge in the preset area includes: confirming the horizontal displacement and vertical displacement of the phalangeal edge in the preset area, and determining the horizontal displacement and vertical displacement according to the horizontal displacement and vertical displacement. Generate the movement trajectory and velocity trajectory of the knuckle edge.

在一个可能的设计中,预设状态数据包括预设动作轨迹及预设速度轨迹,步骤通过移动状态数据与预设状态数据进行的比对生成比对结果,预设状态数据包括:In a possible design, the preset state data includes a preset motion track and a preset speed track, and the step generates a comparison result by comparing the movement state data with the preset state data, and the preset state data includes:

根据指节边缘的移动轨迹及移动数据分别与预设动作轨迹及预设速度轨迹的比对,获得移动轨迹与预设动作轨迹之间的移动关联度及移动数据与预设速度轨迹之间的速度关联度。According to the comparison of the movement trajectory and movement data of the knuckle edge with the preset motion trajectory and the preset speed trajectory, respectively, the degree of movement correlation between the movement trajectory and the preset motion trajectory and the correlation between the movement data and the preset speed trajectory are obtained. Speed correlation.

在一个可能的设计中,步骤根据比对结果对戒毒人员进行复吸风险预测,包括:In one possible design, the steps to predict relapse risk for drug addicts based on the comparison results include:

判断移动关联度和速度关联度是否分别处于移动关联度阈值范围和速度关联度阈值范围内,在移动关联度处于移动关联度阈值范围和速度关联度处于速度关联度阈值范围内时,判断戒毒人员未处于复吸风险状态;Determine whether the mobility relatedness and speed relatedness are within the range of the mobile relatedness threshold and the speed relatedness threshold, respectively. When the mobile relatedness is within the mobile relatedness threshold and the speed relatedness is within the speed related threshold, judge the drug addicts. not at risk of relapse;

在移动关联度不处于移动关联度阈值范围和/或速度关联度不处于速度关联度阈值范围内时,判断戒毒人员处于复吸风险状态。When the mobility correlation degree is not within the mobility correlation degree threshold range and/or the speed correlation degree is not within the speed correlation degree threshold value range, it is determined that the drug addict is in a state of relapse risk.

在一个可能的设计中,在识别戒毒人员的指关节在预设区域内的指节边缘步骤之前,还包括:In one possible design, prior to the step of identifying the knuckle margins of the drug addict's knuckles within the preset area, it also includes:

获取吸毒人员的历史测试数据,根据历史测试数据获取预设状态数据,预设状态数据包括指关节参考点动态运行轨迹。Obtain historical test data of drug addicts, obtain preset state data according to the historical test data, and the preset state data includes the dynamic running trajectory of the knuckle reference point.

在一个可能的设计中,在识别戒毒人员的指关节在预设区域内的指节边缘步骤之前,还包括:In one possible design, prior to the step of identifying the knuckle margins of the drug addict's knuckles within the preset area, it also includes:

在检测到戒毒人员的指关节处于预设区域时,展示指关节参考点动态运行轨迹,用于戒毒人员按照指关节参考点动态运行轨迹调节指节边缘的运动状态。When it is detected that the knuckles of the drug addicts are in the preset area, the dynamic running track of the reference point of the knuckle is displayed, which is used for the drug addict to adjust the motion state of the edge of the knuckle according to the dynamic running track of the reference point of the knuckle.

第二方面,本发明实施例提出了一种戒毒人员复吸风险预测装置,装置包括:In the second aspect, the embodiment of the present invention provides a device for predicting the risk of relapse of drug addicts, the device includes:

指节边缘数据获取模块,用于识别戒毒人员的指关节在预设区域内的指节边缘,并获取指节边缘在预设区域内滑动的第一信息;其中,第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息;A knuckle edge data acquisition module, used for identifying the knuckle edge of a drug addict's knuckle in a preset area, and acquiring first information about the knuckle edge sliding in the preset area; wherein the first information is the knuckle edge When moving within the preset area, the first spatial information collected at the first moment of movement and the second spatial information collected at the second moment;

指节边缘状态模块,用于根据第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据;The phalangeal edge state module is used to confirm the movement state data of the phalangeal edge within the preset area according to the comparison between the first spatial information collected at the first moment and the second spatial information collected at the second moment;

结果比对模块,用于通过移动状态数据与预设状态数据进行的比对生成比对结果,根据比对结果对戒毒人员进行复吸风险预测。The result comparison module is used for generating a comparison result by comparing the mobile state data with the preset state data, and predicting the relapse risk of the drug addicts according to the comparison result.

在一个可能的设计中,装置还包括:In one possible design, the device also includes:

测试数据调用模块,用于获取复吸人员的历史测试数据,根据历史测试数据获取预设状态数据,预设状态数据包括指关节参考点动态运行轨迹。The test data calling module is used to obtain historical test data of the relapsed person, and obtain preset state data according to the historical test data, and the preset state data includes the dynamic running track of the reference point of the knuckle.

在一个可能的设计中,装置还包括:In one possible design, the device also includes:

展示控制模块,用于在检测到戒毒人员的指关节处于预设区域时,展示指关节参考点动态运行轨迹,用于戒毒人员按照指关节参考点动态运行轨迹调节指节边缘的运动状态。The display control module is used to display the dynamic running track of the reference point of the knuckle when the knuckle of the drug addict is detected to be in the preset area, so that the drug addict can adjust the motion state of the edge of the knuckle according to the dynamic running track of the knuckle reference point.

第三方面,本发明实施例提出了一种计算机可读存储介质,计算机可读存储介质上存储有指令,当指令在计算机上运行时,执行如上述实施例所提出的戒毒人员复吸风险预测方法。In a third aspect, embodiments of the present invention provide a computer-readable storage medium, where instructions are stored on the computer-readable storage medium, and when the instructions are run on a computer, the relapse risk prediction for drug addicts as proposed in the above embodiments is performed. method.

有益效果:通过识别戒毒人员的指关节在预设区域内的指节边缘,并获取指节边缘在预设区域内滑动的第一信息;其中,第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息;根据第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据;通过移动状态数据与预设状态数据进行的比对生成比对结果,根据比对结果对戒毒人员进行复吸风险预测。解决了现有技术中对系统内登记的吸毒人员,采取尿检的过程复杂,监管人员覆盖范围小和涉及隐私的问题。Beneficial effect: by identifying the knuckle edge of the drug addict's knuckle in the preset area, and obtaining the first information of the knuckle edge sliding in the preset area; wherein, the first information is that the knuckle edge is in the preset area When moving, the first spatial information collected at the first moment of movement and the second spatial information collected at the second moment; according to the first spatial information collected at the first moment and the second spatial information collected at the second moment The comparison of the phalangeal edge in the preset area is used to confirm the movement state data of the phalanx; the comparison result is generated by the comparison between the movement state data and the preset state data, and the relapse risk is predicted for the drug addicts according to the comparison result. It solves the problems in the prior art that the process of taking a urine test for drug addicts registered in the system is complicated, the coverage of supervisors is small, and privacy is involved.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其它的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1为本发明实施例提出的戒毒人员复吸风险预测方法流程图;Fig. 1 is the flow chart of the method for predicting the risk of relapse of drug addicts proposed by the embodiment of the present invention;

图2为本发明实施例提出的一种戒毒人员复吸风险预测装置的功能模块示意图;2 is a schematic diagram of functional modules of a device for predicting relapse risk for drug addicts proposed by an embodiment of the present invention;

图3为本发明实施例提出的另一种戒毒人员复吸风险预测装置的功能模块示意图。FIG. 3 is a schematic diagram of functional modules of another device for predicting relapse risk for drug addicts according to an embodiment of the present invention.

具体实施方式Detailed ways

为了更清楚地说明发明实施例或现有技术中的技术方案,下面将结合附图和实施例或现有技术的描述对发明作简单地介绍,显而易见地,下面关于附图结构的描述仅仅是发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。在此需要说明的是,对于这些实施例方式的说明用于帮助理解发明,但并不构成对发明的限定。In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the invention will be briefly introduced below with reference to the accompanying drawings and descriptions of the embodiments or the prior art. Obviously, the following descriptions of the structures of the drawings are only For some embodiments of the invention, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without any creative effort. It should be noted here that the descriptions of these embodiments are used to help the understanding of the invention, but do not constitute a limitation on the invention.

第一方面,请参阅图1至图3,为本发明实施例提出的一种戒毒人员复吸风险预测方法,应用于戒毒人员复吸风险预测装置100,该戒毒人员复吸风险预测装置100包括但不限于由具有一定计算资源的计算机设备执行,例如由个人计算机(Personal Computer,PC,指一种大小、价格和性能适用于个人使用的多用途计算机;台式机、笔记本电脑到小型笔记本电脑和平板电脑以及超级本等都属于个人计算机)、智能手机、个人数字助理(Personaldigital assistant,PAD)、可穿戴设备或平台服务器等电子设备执行,以便于在识别到戒毒人员的指关节后,检测戒毒人员指关节的移动动态数据,并将移动动态数据与预设状态数据进行比对,根据移动动态数据与预设状态数据之间的关联度,通过判断戒毒人员的指关节动作与预设状态数据对应的指关节动作之间的关联度获取吸毒人员的当前精神状态,进而对吸毒人员进行复吸风险预测。以此解决了现有技术中对系统内登记的吸毒人员,采取尿检的过程复杂,监管人员覆盖范围小和涉及隐私的问题。In the first aspect, please refer to FIG. 1 to FIG. 3 , which are a method for predicting the relapse risk of drug addicts proposed in the embodiment of the present invention, which is applied to the relapse risk prediction device 100 for drug addicts. The device 100 for predicting relapse risk for drug addicts includes: But not limited to being executed by computer equipment with certain computing resources, such as personal computer (Personal Computer, PC, refers to a multi-purpose computer whose size, price and performance are suitable for personal use; desktop computers, notebook computers to small notebook computers and Tablets and ultrabooks belong to personal computers), smart phones, personal digital assistants (PADs), wearable devices or platform servers and other electronic devices to facilitate the detection of drug addicts after recognizing the knuckles of drug addicts. The movement dynamic data of the person's knuckles, and the movement dynamic data is compared with the preset state data. According to the correlation between the movement dynamic data and the preset state data, the knuckle movements of the drug addicts and the preset state data are judged. The correlation between the corresponding knuckle movements can obtain the current mental state of the drug addict, and then predict the relapse risk of the drug addict. This solves the problems in the prior art that the process of taking a urine test for drug addicts registered in the system is complicated, the coverage of supervisors is small, and privacy is involved.

其中,在动态管控预警系统检测到登记在册的毒品人员在出差地办理住宿、乘机或乘坐高铁时,身份证信息报警会提示当地戒毒人员对该人员进行动态监管,戒毒人员通常会对该人员进行尿检;虽然尿检方法较为准确,但存在检测过程复杂,监管人员覆盖范围小等问题。本实施例中,基于戒毒人员在毒瘾发作时,躁动不安、惊恐及无法精准控制自己的指关节这一特征,提出一款戒毒人员复吸风险预测装置100,可以对戒毒人员进行不定时的抽检,进而对戒毒人员复吸进行风险预测。其中,该戒毒人员复吸风险预测方法应用于复吸风险预测装置100,可以但不限于步骤S1~步骤S3:Among them, when the dynamic control and early warning system detects that a registered drug person is checking in for accommodation, boarding a plane or taking a high-speed train in a business trip, the ID card information alarm will prompt the local drug addicts to dynamically supervise the person, and the drug addict will usually carry out Urine test: Although the urine test method is relatively accurate, there are problems such as complicated testing process and limited coverage of supervisors. In this embodiment, based on the characteristics of agitation, panic, and inability to precisely control their own knuckles when drug addiction occurs, a device 100 for predicting relapse risk for drug addicts is proposed, which can perform irregular relapse to drug addicts. Sampling, and then risk prediction for relapse of drug addicts. Wherein, the relapse risk prediction method for drug addicts is applied to the relapse risk prediction device 100, which may be but not limited to steps S1 to S3:

步骤S1,识别戒毒人员的指关节在预设区域内的指节边缘,并获取指节边缘在预设区域内滑动的第一信息;其中,第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息。Step S1, identifying the knuckle edge of the drug addict's knuckle in the preset area, and acquiring first information about the knuckle edge sliding in the preset area; wherein, the first information is that the knuckle edge moves in the preset area , the first spatial information collected at the first moment of movement and the second spatial information collected at the second moment.

本实施例中,该方法应用于戒毒人员复吸风险预测装置100,该复吸风险预测装置100用于在预设区域内识别指节边缘,并获取指节边缘在预设区域内滑动的第一信息;该第一信息为指节边缘在预设区域内时,移动的第一时刻采集到的第一空间信息和第二时刻采集到的第二空间信息。具体实施时,戒毒人员可以根据提示视频展示的指节或手部动作,在预设区域内进行模仿展示,复吸风险预测装置100检测到指关节在预设区域内时,通过图像处理识别或距离感应器检测戒毒人员指关节的指节边缘;其中,指节边缘可以是指尖或者是指节的关节处。戒毒人员根据提示视频展示的指节或手部动作改变手势,以便于复吸风险预测装置100采集不同时刻指节边缘对应的不同位置。In this embodiment, the method is applied to the device 100 for predicting relapse risk for drug addicts, and the device 100 for predicting relapse risk is used to identify the phalanx edge in a preset area, and obtain the first position of the phalangeal edge sliding in the preset area. 1 information; the first information is the first spatial information collected at the first moment of movement and the second spatial information collected at the second moment when the phalangeal edge is within the preset area. During the specific implementation, the drug addict can imitate and display the knuckles or hand movements displayed in the prompt video in a preset area. When the relapse risk prediction device 100 detects that the knuckles are in the preset area, it can identify or display it through image processing. The distance sensor detects the knuckle edge of the drug addict's knuckle; wherein, the knuckle edge can be the fingertip or the joint of the knuckle. The drug addicts change their gestures according to the knuckles or hand movements shown in the prompt video, so that the relapse risk prediction device 100 can collect different positions corresponding to the knuckle edges at different times.

步骤S2,根据第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据。Step S2, according to the comparison between the first spatial information collected at the first moment and the second spatial information collected at the second moment, confirm the movement state data of the phalangeal edge within the preset area.

在采集到第一时刻的空间信息及第二时刻采集到的第二空间信息后,通过戒毒人员的指节边缘可以得到戒毒人员在预设区域内指节的移动方向和速度,以便于获取戒毒人员在预设区域内手指的动作状态,进而确定指节边缘在预设区域内的移动状态数据;该移动状态数据对应的是:通过每相邻的两时刻之间指节边缘的位置得到的每一时刻指节边缘的移动距离和移动方向。After collecting the spatial information at the first moment and the second spatial information collected at the second moment, the moving direction and speed of the phalanx of the drug addict in the preset area can be obtained through the edge of the drug addict's knuckle, so as to obtain the drug addict's knuckles. The movement state of the person's finger in the preset area, and then determine the movement state data of the knuckle edge in the preset area; the movement state data corresponds to: obtained by the position of the knuckle edge between each adjacent two moments The distance and direction of movement of the knuckle edge at each moment.

步骤S3,通过移动状态数据与预设状态数据进行的比对生成比对结果,根据比对结果对戒毒人员进行复吸风险预测。In step S3, a comparison result is generated by comparing the mobile state data with the preset state data, and a relapse risk prediction is performed on the drug addicts according to the comparison result.

预设状态数据为提示视频展示的指节或手部动作对应的指节边缘每一时刻匹配的移动距离和移动方向,将移动状态数据的指节或手部动作对应的指节边缘每一时刻匹配的指节边缘的移动距离和移动方向与预设状态数据的指节或手部动作对应的指节边缘的移动距离和移动方向进行比对,获取预设状态数据与移动状态数据的关联度,根据关联度对戒毒人员进行复吸风险预测。例如,在检测到移动状态数据与预设状态数据的关联度未处于预设阈值时,判断戒毒人员存在复吸风险;在检测到移动状态数据与预设状态数据的关联度处于预设阈值时,判断戒毒人员当前不存在复吸风险。通过对戒毒人员不定时的检测,以规范戒毒人员的行为,并且可以通过复吸风险预测装置100快速地对戒毒人员的状态进行检测,以此对进行戒毒人员进行复吸风险预测。The preset state data is the matching movement distance and movement direction of the knuckle edge corresponding to the knuckles or hand movements shown in the video display at each moment, and the knuckles or the knuckle edges corresponding to the hand movements of the movement status data are matched at each moment. The moving distance and moving direction of the matched knuckle edge are compared with the moving distance and moving direction of the knuckle edge corresponding to the knuckle or hand motion of the preset state data, and the correlation degree between the preset state data and the moving state data is obtained. , to predict the relapse risk of drug addicts according to the correlation degree. For example, when it is detected that the degree of association between the movement state data and the preset state data is not at the preset threshold, it is determined that the drug addict has a risk of relapse; when it is detected that the degree of association between the movement state data and the preset state data is at the preset threshold , it is judged that there is currently no risk of relapse in drug addicts. The behavior of the drug addicts can be regulated by irregular detection of the drug addicts, and the state of the drug addicts can be quickly detected by the relapse risk prediction device 100, so as to predict the relapse risk of the drug addicts.

在一个可能的设计中,确认指节边缘在预设区域内的移动状态数据的步骤,包括:确认指节边缘在预设区域内的水平位移和竖直位移,并根据水平位移和竖直位移生成指节边缘的移动轨迹及速度轨迹。In a possible design, the step of confirming the movement state data of the phalangeal edge in the preset area includes: confirming the horizontal displacement and vertical displacement of the phalangeal edge in the preset area, and determining the horizontal displacement and vertical displacement according to the horizontal displacement and vertical displacement. Generate the movement trajectory and velocity trajectory of the knuckle edge.

在对戒毒人员的指节边缘进行检测时,可以对戒毒人员的指节边缘的竖直平面进行检测,也可以对戒毒人员的指节边缘的水平面进行检测;为了保证对指节边缘的检测更加精准,可以对指节边缘在预设区域内的水平位移和竖直位移进行检测,以得到指节边缘在预设区域内的三维移动轨迹和速度轨迹,再将移动状态数据与预设状态数据进行比对时,可以更精确的判断戒毒人员的指节或手部动作是否处于预设状态数据对应的阈值内。本实施例中,通过对指节边缘的识别及记录每一时刻对应的移动方向和移动速度,跟预设动态数据对应的移动速度和方向进行比对,更加精确的获取到了戒毒者指关节对应指节边缘的移动状态数据,提升复吸风险预测装置100对戒毒人员的复吸风险预测的精准度。When detecting the edge of the phalanx of the drug addicts, the vertical plane of the edge of the phalanx of the drug addict can be detected, and the horizontal plane of the edge of the knuckle of the drug addict can also be detected; Accurate, it can detect the horizontal displacement and vertical displacement of the knuckle edge in the preset area to obtain the three-dimensional movement trajectory and speed trajectory of the knuckle edge in the preset area, and then compare the movement state data with the preset state data. During the comparison, it can be more accurately judged whether the movements of the knuckles or hands of the drug addicts are within the threshold corresponding to the preset state data. In this embodiment, by identifying the edges of the knuckles and recording the moving direction and moving speed corresponding to each moment, and comparing with the moving speed and direction corresponding to the preset dynamic data, the corresponding knuckles of drug addicts are more accurately obtained. The movement state data of the knuckle edge improves the accuracy of the relapse risk prediction device 100 for drug addicts.

在一个可能的设计中,预设状态数据包括预设动作轨迹及预设速度轨迹,步骤通过移动状态数据与预设状态数据进行的比对生成比对结果,预设状态数据包括:In a possible design, the preset state data includes a preset motion track and a preset speed track, and the step generates a comparison result by comparing the movement state data with the preset state data, and the preset state data includes:

根据指节边缘的移动轨迹及移动数据分别与预设动作轨迹及预设速度轨迹的比对,获得移动轨迹与预设动作轨迹之间的移动关联度及移动数据与预设速度轨迹之间的速度关联度。According to the comparison of the movement trajectory and movement data of the knuckle edge with the preset motion trajectory and the preset speed trajectory, respectively, the degree of movement correlation between the movement trajectory and the preset motion trajectory and the correlation between the movement data and the preset speed trajectory are obtained. Speed correlation.

通过对指节边缘的移动轨迹及移动数据分别与预设动作及预设速度轨迹的比对,获得移动轨迹与预设轨迹之间的移动关联度可以获取戒毒人员的精神状态;同时,通过比对移动数据和预设速度之间的速度关联度,结合移动关联度可以预测戒毒人员对手指或手部控制的精准度,以此判断戒毒人员是否存在毒瘾或毒瘾发作,进而对戒毒人员的复吸进行风险预测,在检测到存在复吸风险时,提醒监管人员对戒毒人员采取措施。By comparing the movement trajectory and movement data of the knuckle edge with the preset action and the preset speed trajectory respectively, and obtaining the movement correlation between the movement trajectory and the preset trajectory, the mental state of the drug addicts can be obtained; at the same time, by comparing The speed correlation between the mobile data and the preset speed, combined with the mobile correlation, can predict the accuracy of the drug addicts' finger or hand control, so as to determine whether the drug addicts have drug addiction or drug addiction attacks, and then the drug addicts The risk of relapse is predicted, and when the risk of relapse is detected, supervisors are reminded to take measures against drug addicts.

在一个可能的设计中,步骤根据比对结果对戒毒人员进行复吸风险预测,包括:In one possible design, the steps to predict relapse risk for drug addicts based on the comparison results include:

判断移动关联度和速度关联度是否分别处于移动关联度阈值范围和速度关联度阈值范围内,在移动关联度处于移动关联度阈值范围和速度关联度处于速度关联度阈值范围内时,判断戒毒人员未处于复吸风险状态;Determine whether the mobility relatedness and speed relatedness are within the range of the mobile relatedness threshold and the speed relatedness threshold, respectively. When the mobile relatedness is within the mobile relatedness threshold and the speed relatedness is within the speed related threshold, judge the drug addicts. not at risk of relapse;

本实施例中,可以根据戒毒人员的吸毒史、年龄或性别设定关联度阈值范围,该关联度阈值范围可以是通过戒毒人员在戒毒所进行测试训练时获取的;也可以是通过该吸毒史、年龄或性别获取的平均关联度阈值范围,在移动关联度和速度关联度分别处于移动关联度阈值范围和速度关联度阈值范围内时,判断戒毒人员未处于复吸风险状态,无需对戒毒人员采取措施。In this embodiment, the correlation threshold range can be set according to the drug abuse history, age or gender of the drug addict, and the correlation threshold range can be obtained when the drug addict performs test training in a drug rehabilitation center; it can also be obtained through the drug addict history The average correlation threshold range obtained by age or gender, when the mobile correlation degree and the speed correlation degree are within the mobile correlation threshold range and speed correlation threshold range respectively, it is judged that the drug addict is not in a relapse risk state, and there is no need for the drug addict. Take measures.

在移动关联度不处于移动关联度阈值范围和/或速度关联度不处于速度关联度阈值范围内时,判断戒毒人员处于复吸风险状态。When the mobility correlation degree is not within the mobility correlation degree threshold range and/or the speed correlation degree is not within the speed correlation degree threshold value range, it is determined that the drug addict is in a state of relapse risk.

在移动关联度和速度关联度均不处于移动关联度阈值范围和速度关联度阈值范围内时,判断戒毒人员毒瘾发作,处于躁动不安、惊恐及无法精准控制自己的指关节的状态,需要监管人员对戒毒人员进行再次检测或监控,防止戒毒人员复吸。When both the mobility correlation degree and the speed correlation degree are not within the threshold range of the mobility correlation degree and the speed correlation degree threshold, it is judged that the drug addict has a drug addiction attack, is in a state of restlessness, panic, and cannot precisely control his knuckles, and needs to be monitored. Personnel re-test or monitor drug addicts to prevent drug addicts from relapse.

在一个可能的设计中,在识别戒毒人员的指关节在预设区域内的指节边缘步骤之前,还包括:获取吸毒人员的历史测试数据,根据历史测试数据获取预设状态数据,预设状态数据包括指关节参考点动态运行轨迹。In a possible design, before the step of identifying the knuckle edge of the drug addict's knuckles in the preset area, the method further includes: acquiring historical test data of the drug addict, acquiring preset state data according to the historical test data, and preset state data. The data includes dynamic running trajectories of knuckle reference points.

识别吸毒人员的指关节进入到预设区域后,调取该吸毒人员的吸毒史和历史测试数据,根据历史测试数据可以调整预设状态数据的难易程度,以根据不同戒毒人员的历史数据逐步增加难度或降低难度;其中,预设状态数据包括指关节的参考点动态运行轨迹,该参考点可以是一个或多个,可以是指尖或者关节处;同时,可以根据戒毒人员的历史测试数据选择一个或多个参考点的运动轨迹用于戒毒人员测试。After identifying the drug addict's knuckles entering the preset area, retrieve the drug addict's drug use history and historical test data. According to the historical test data, the difficulty level of the preset state data can be adjusted, so as to gradually adjust the difficulty of the preset state data according to the historical data of different drug addicts. Increase the difficulty or reduce the difficulty; wherein, the preset state data includes the dynamic running trajectory of the reference point of the knuckle, and the reference point can be one or more, which can be the fingertip or the joint; at the same time, it can be based on the historical test data of the drug addicts The motion trajectory of one or more reference points is selected for testing of drug addicts.

在一个可能的设计中,在识别戒毒人员的指关节在预设区域内的指节边缘步骤之前,还包括:在检测到戒毒人员的指关节处于预设区域时,展示指关节参考点动态运行轨迹,用于戒毒人员按照指关节参考点动态运行轨迹调节指节边缘的运动状态。In a possible design, before the step of identifying the knuckle edge of the drug addict's knuckles in the preset area, the method further includes: when it is detected that the drug addict's knuckles are in the preset area, displaying the dynamic operation of the knuckle reference point The track is used for drug addicts to adjust the motion state of the knuckle edge according to the dynamic running track of the knuckle reference point.

在对戒毒人员的指节边缘进行采集时,通过在提示视频展示的指节或手部动作视频上展示参考点的动态运行轨迹,及提示戒毒人员当前采集到的指节或手部的参考点的具体位置,提升戒毒人员对手部动作控制的精准度;同时,对戒毒人员的手部动作进行采集并将手部动作对应的参考点与该展示参考点的每一时刻的位置和速度进行比对,更加精准的对戒毒人员的复吸风险进行预测。当然,也可以将采集到的指节边缘运动轨迹在提示视频上标记,以便于吸毒人员了解指节边缘的具体位置以调整指节或手部的动作。When collecting the knuckle edges of drug addicts, the dynamic running track of the reference point is displayed on the knuckle or hand motion video displayed by the prompt video, and the reference point of the knuckle or hand currently collected by the drug addict is displayed. To improve the accuracy of drug addicts' control of hand movements; at the same time, collect the hand movements of drug addicts and compare the reference point corresponding to the hand motion with the position and speed of the display reference point at each moment. Yes, it is more accurate to predict the relapse risk of drug addicts. Of course, the collected movement trajectory of the knuckle edge can also be marked on the prompt video, so that the drug addict can know the specific position of the knuckle edge and adjust the movement of the knuckle or hand.

第二方面,本发明实施例提出了一种戒毒人员复吸风险预测装置100,包括:In the second aspect, an embodiment of the present invention provides a relapse risk prediction device 100 for drug addicts, including:

指节边缘数据获取模块110,用于识别戒毒人员的指关节在预设区域内的指节边缘,并获取指节边缘在预设区域内滑动的第一信息;其中,第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息;The knuckle edge data acquisition module 110 is used to identify the knuckle edge of the drug addict's knuckle in the preset area, and acquire the first information of the knuckle edge sliding in the preset area; wherein, the first information is the knuckle When the edge moves within the preset area, the first spatial information collected at the first moment of movement and the second spatial information collected at the second moment;

该复吸风险预测装置100用于在预设区域内识别指节边缘,并获取指节边缘在预设区域内滑动的第一信息;该第一信息为指节边缘在预设区域内时,移动的第一时刻采集到的第一空间信息和第二时刻采集到的第二空间信息。具体实施时,戒毒人员可以根据提示视频展示的指节或手部动作,在预设区域内进行模仿展示,复吸风险预测装置100检测到指关节在预设区域内时,通过图像处理识别或距离感应器检测戒毒人员指关节的指节边缘;其中,指节边缘可以是指尖或者是指节的关节处。戒毒人员根据提示视频展示的指节或手部动作改变手势,以便于复吸风险预测装置100采集不同时刻指节边缘对应的不同位置。The relapse risk prediction device 100 is used to identify the phalangeal margin in a preset area, and obtain first information of the phalangeal margin sliding within the preset area; the first information is that when the phalangeal margin is within the preset area, The first spatial information collected at the first moment of movement and the second spatial information collected at the second moment. During the specific implementation, the drug addict can imitate and display the knuckles or hand movements displayed in the prompt video in a preset area. When the relapse risk prediction device 100 detects that the knuckles are in the preset area, it can identify or display it through image processing. The distance sensor detects the knuckle edge of the drug addict's knuckle; wherein, the knuckle edge can be the fingertip or the joint of the knuckle. The drug addicts change their gestures according to the knuckles or hand movements shown in the prompt video, so that the relapse risk prediction device 100 can collect different positions corresponding to the knuckle edges at different times.

指节边缘状态模块120,用于根据第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据。The phalangeal edge state module 120 is configured to confirm the movement state data of the phalangeal edge within the preset area according to the comparison between the first spatial information collected at the first moment and the second spatial information collected at the second moment.

在采集到第一时刻的空间信息及第二时刻采集到的第二空间信息后,通过戒毒人员的指节边缘可以得到戒毒人员在预设区域内指节的移动方向和速度,以便于获取戒毒人员在预设区域内手指的动作状态,进而确定指节边缘在预设区域内的移动状态数据;该移动状态数据对应的是:通过每相邻的两时刻之间指节边缘的位置得到的每一时刻指节边缘的移动距离和移动方向。After collecting the spatial information at the first moment and the second spatial information collected at the second moment, the moving direction and speed of the phalanx of the drug addict in the preset area can be obtained through the edge of the drug addict's knuckle, so as to obtain the drug addict's knuckles. The movement state of the person's finger in the preset area, and then determine the movement state data of the knuckle edge in the preset area; the movement state data corresponds to: obtained by the position of the knuckle edge between each adjacent two moments The distance and direction of movement of the knuckle edge at each moment.

结果比对模块130,用于通过移动状态数据与预设状态数据进行的比对生成比对结果,根据比对结果对戒毒人员进行复吸风险预测。The result comparison module 130 is configured to generate a comparison result by comparing the movement state data with the preset state data, and predict the relapse risk of the drug addicts according to the comparison result.

预设状态数据为提示视频展示的指节或手部动作对应的指节边缘每一时刻匹配的移动距离和移动方向,将移动状态数据的指节或手部动作对应的指节边缘每一时刻匹配的指节边缘的移动距离和移动方向与预设状态数据的指节或手部动作对应的指节边缘的移动距离和移动方向进行比对,获取预设状态数据与移动状态数据的关联度,根据关联度对戒毒人员进行复吸风险预测。例如,在检测到移动状态数据与预设状态数据的关联度未处于预设阈值时,判断戒毒人员存在复吸风险;在检测到移动状态数据与预设状态数据的关联度处于预设阈值时,判断戒毒人员当前不存在复吸风险。通过对戒毒人员不定时的检测,以规范戒毒人员的行为,并且可以通过复吸风险预测装置100快速地对戒毒人员的状态进行检测,以此对进行戒毒人员进行复吸风险预测。The preset state data is the matching movement distance and movement direction of the knuckle edge corresponding to the knuckles or hand movements shown in the video display at each moment, and the knuckles or the knuckle edges corresponding to the hand movements of the movement status data are matched at each moment. The moving distance and moving direction of the matched knuckle edge are compared with the moving distance and moving direction of the knuckle edge corresponding to the knuckle or hand motion of the preset state data, and the correlation degree between the preset state data and the moving state data is obtained. , to predict the relapse risk of drug addicts according to the correlation degree. For example, when it is detected that the degree of association between the movement state data and the preset state data is not at the preset threshold, it is determined that the drug addict has a risk of relapse; when it is detected that the degree of association between the movement state data and the preset state data is at the preset threshold , it is judged that there is currently no risk of relapse in drug addicts. The behavior of the drug addicts can be regulated by irregular detection of the drug addicts, and the state of the drug addicts can be quickly detected by the relapse risk prediction device 100, so as to predict the relapse risk of the drug addicts.

在一个可能的设计中,装置还包括:In one possible design, the device also includes:

测试数据调用模块140,用于获取复吸人员的历史测试数据,根据历史测试数据获取预设状态数据,预设状态数据包括指关节参考点动态运行轨迹。The test data calling module 140 is used for acquiring historical test data of the relapsed person, and acquiring preset state data according to the historical test data, where the preset state data includes the dynamic running track of the reference point of the finger joint.

识别吸毒人员的指关节进入到预设区域后,调取该吸毒人员的吸毒史和历史测试数据,根据历史测试数据可以调整预设状态数据的难易程度,以根据不同戒毒人员的历史数据逐步增加难度或降低难度;其中,预设状态数据包括指关节的参考点动态运行轨迹,该参考点可以是一个或多个,可以是指尖或者关节处;同时,可以根据戒毒人员的历史测试数据选择一个或多个参考点的运动轨迹用于戒毒人员测试。After identifying the drug addict's knuckles entering the preset area, retrieve the drug addict's drug use history and historical test data. According to the historical test data, the difficulty level of the preset state data can be adjusted, so as to gradually adjust the difficulty of the preset state data according to the historical data of different drug addicts. Increase the difficulty or reduce the difficulty; wherein, the preset state data includes the dynamic running trajectory of the reference point of the knuckle, and the reference point can be one or more, which can be the fingertip or the joint; at the same time, it can be based on the historical test data of the drug addicts The motion trajectory of one or more reference points is selected for testing of drug addicts.

在一个可能的设计中,复吸风险预测装置100还包括:In a possible design, the relapse risk prediction device 100 further includes:

展示控制模块150,用于在检测到戒毒人员的指关节处于预设区域时,展示指关节参考点动态运行轨迹,用于戒毒人员按照指关节参考点动态运行轨迹调节指节边缘的运动状态。The display control module 150 is configured to display the dynamic running track of the reference point of the knuckle when the knuckle of the drug addict is detected to be in the preset area, so that the drug addict adjusts the motion state of the edge of the knuckle according to the dynamic running track of the knuckle reference point.

在对戒毒人员的指节边缘进行采集时,通过在提示视频展示的指节或手部动作视频上展示参考点的动态运行轨迹,及提示戒毒人员当前采集到的指节或手部的参考点的具体位置,提升戒毒人员对手部动作控制的精准度;同时,对戒毒人员的手部动作进行采集并将手部动作对应的参考点与该展示参考点的每一时刻的位置和速度进行比对,更加精准的对戒毒人员的复吸风险进行预测。当然,也可以将采集到的指节边缘运动轨迹在提示视频上标记,以便于吸毒人员了解指节边缘的具体位置以调整指节或手部的动作。When collecting the knuckle edges of drug addicts, the dynamic running track of the reference point is displayed on the knuckle or hand motion video displayed by the prompt video, and the reference point of the knuckle or hand currently collected by the drug addict is displayed. To improve the accuracy of drug addicts' control of hand movements; at the same time, collect the hand movements of drug addicts and compare the reference point corresponding to the hand motion with the position and speed of the display reference point at each moment. Yes, it is more accurate to predict the relapse risk of drug addicts. Of course, the collected movement trajectory of the knuckle edge can also be marked on the prompt video, so that the drug addict can know the specific position of the knuckle edge and adjust the movement of the knuckle or hand.

本申请实施例第三方面提供了一种戒毒人员复吸风险预测设备,包括依次通信相连的存储器、处理器,其中,所述存储器用于存储计算机程序,所述处理器用于读取所述计算机程序,执行如实施例第一方面所述的戒毒人员复吸风险预测方法。A third aspect of an embodiment of the present application provides a device for predicting relapse risk for drug addicts, including a memory and a processor that are sequentially connected in communication, wherein the memory is used to store a computer program, and the processor is used to read the computer program A program for executing the relapse risk prediction method for drug addicts as described in the first aspect of the embodiment.

具体举例的,所述存储器可以但不限于包括随机存取存储器(RAM)、只读存储器(ROM)、闪存(Flash Memory)、先进先出存储器(FIFO)和/或先进后出存储器(FILO)等等;所述处理器可以不限于采用型号为STM32F105系列的微处理器、ARM(Advanced RISCMachines)、X86等架构处理器或集成NPU(neural-network processing units)的处理器。For example, the memory may include, but is not limited to, random access memory (RAM), read only memory (ROM), flash memory (Flash Memory), first-in, first-out (FIFO), and/or first-in, last-out (FILO) etc.; the processor may not be limited to adopting a microprocessor of the STM32F105 series, an ARM (Advanced RISCMachines), X86 and other architecture processors, or a processor integrating an NPU (neural-network processing units).

本实施例第三方面提供的装置的工作过程、工作细节和技术效果,可以参见实施例第一方面,于此不再赘述。For the working process, working details, and technical effects of the apparatus provided in the third aspect of this embodiment, reference may be made to the first aspect of the embodiment, and details are not described herein again.

本实施例第四方面提供了一种存储包含有实施例第一方面所述的戒毒人员复吸风险预测方法的指令的计算机可读存储介质,即所述计算机可读存储介质上存储有指令,当所述指令在计算机上运行时,执行如第一方面所述的戒毒人员复吸风险预测方法。其中,所述计算机可读存储介质是指存储数据的载体,可以但不限于包括软盘、光盘、硬盘、闪存、优盘和/或记忆棒(Memory Stick)等,所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。A fourth aspect of this embodiment provides a computer-readable storage medium that stores an instruction that includes the method for predicting relapse risk for drug addicts described in the first aspect of the embodiment, that is, the computer-readable storage medium stores an instruction, When the instructions are executed on the computer, the method for predicting the relapse risk of drug addicts as described in the first aspect is executed. Wherein, the computer-readable storage medium refers to a carrier for storing data, which may include, but is not limited to, a floppy disk, an optical disk, a hard disk, a flash memory, a USB flash drive and/or a Memory Stick, etc. The computer may be a general-purpose computer, a special-purpose computer, or a A computer, computer network, or other programmable device.

本实施例第四方面提供的计算机可读存储介质的工作过程、工作细节和技术效果,可以参见实施例第一方面,于此不再赘述。For the working process, working details, and technical effects of the computer-readable storage medium provided in the fourth aspect of this embodiment, reference may be made to the first aspect of the embodiment, and details are not repeated here.

本实施例第五方面提供了一种包含指令的计算机程序产品,当所述指令在计算机上运行时,使所述计算机执行如实施例第一方面所述的戒毒人员复吸风险预测方法,其中,所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。A fifth aspect of this embodiment provides a computer program product containing instructions, when the instructions are run on a computer, the computer is made to execute the method for predicting the relapse risk of drug addicts according to the first aspect of the embodiment, wherein , the computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable devices.

以上所描述的多个实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The multiple embodiments described above are only illustrative, wherein the units described 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, Located in one place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到各实施方式可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在计算机可读存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台仓库代码的合并装置执行各个实施例或者实施例的某些部分所述的方法。From the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and certainly can also be implemented by hardware. Based on this understanding, the above-mentioned technical solutions can be embodied in the form of software products in essence or the parts that make contributions to the prior art, and the computer software products can be stored in computer-readable storage media, such as ROM/RAM, magnetic A disc, optical disc, etc., including instructions for causing a warehouse code merging apparatus to perform the methods described in various embodiments or portions of embodiments.

最后应说明的是:以上所述仅为发明的优选实施例而已,并不用于限制发明的保护范围。凡在发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在发明的保护范围之内。Finally, it should be noted that the above descriptions are only preferred embodiments of the invention, and are not intended to limit the protection scope of the invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the invention shall be included in the protection scope of the invention.

Claims (10)

1.一种戒毒人员复吸风险预测方法,其特征在于,包括:1. a drug relapse risk prediction method for drug addicts is characterized in that, comprising: 识别戒毒人员的指关节在预设区域内的指节边缘,并获取所述指节边缘在预设区域内滑动的第一信息;其中,所述第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息;Identifying the knuckle edges of the drug addicts' knuckles within a preset area, and acquiring first information about the knuckle edges sliding within the preset area; wherein the first information is that the knuckle edges are within the preset area When moving, the first spatial information collected at the first moment of movement and the second spatial information collected at the second moment; 根据所述第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据;According to the comparison between the first spatial information collected at the first moment and the second spatial information collected at the second moment, confirm the movement state data of the phalangeal edge within the preset area; 通过所述移动状态数据与预设状态数据进行的比对生成比对结果,根据所述比对结果对戒毒人员进行复吸风险预测。A comparison result is generated by comparing the movement state data with the preset state data, and a relapse risk prediction is performed on the drug addicts according to the comparison result. 2.根据权利要求1所述的戒毒人员复吸风险预测方法,其特征在于,所述确认指节边缘在预设区域内的移动状态数据的步骤,包括:确认指节边缘在预设区域内的水平位移和竖直位移,并根据所述水平位移和竖直位移生成指节边缘的移动轨迹及速度轨迹。2. The method for predicting relapse risk for drug addicts according to claim 1, wherein the step of confirming the movement state data of the phalanx edge in the preset area comprises: confirming that the phalangeal edge is in the preset area The horizontal displacement and vertical displacement of the phalanx are generated according to the horizontal displacement and vertical displacement, and the movement trajectory and velocity trajectory of the knuckle edge are generated. 3.根据权利要求2所述的戒毒人员复吸风险预测方法,其特征在于,所述预设状态数据包括预设动作轨迹及预设速度轨迹,步骤通过所述移动状态数据与预设状态数据进行的比对生成比对结果,预设状态数据包括:3. The method for predicting the risk of relapse of drug addicts according to claim 2, wherein the preset state data comprises a preset movement track and a preset speed track, and the step passes through the movement state data and the preset state data. The comparison performed generates comparison results, and the preset state data includes: 根据指节边缘的移动轨迹及移动数据分别与预设动作轨迹及预设速度轨迹的比对,获得移动轨迹与预设动作轨迹之间的移动关联度及移动数据与预设速度轨迹之间的速度关联度。According to the comparison of the movement trajectory and movement data of the knuckle edge with the preset motion trajectory and the preset speed trajectory, respectively, the degree of movement correlation between the movement trajectory and the preset motion trajectory and the correlation between the movement data and the preset speed trajectory are obtained. Speed correlation. 4.根据权利要求3所述的戒毒人员复吸风险预测方法,其特征在于,步骤根据所述比对结果对戒毒人员进行复吸风险预测,包括:4. drug relapse risk prediction method for drug addicts according to claim 3, is characterized in that, step carries out relapse risk prediction to drug addicts according to described comparison result, comprising: 判断所述移动关联度和所述速度关联度是否分别处于移动关联度阈值范围和速度关联度阈值范围内,在所述移动关联度处于移动关联度阈值范围和所述速度关联度处于速度关联度阈值范围内时,判断戒毒人员未处于复吸风险状态;Judging whether the movement relevance degree and the speed relevance degree are within the movement relevance threshold range and the speed relevance threshold range respectively, when the movement relevance degree is within the movement relevance threshold range and the speed relevance degree is within the speed relevance degree When it is within the threshold range, it is judged that the drug addict is not at risk of relapse; 在所述移动关联度不处于移动关联度阈值范围和/或所述速度关联度不处于速度关联度阈值范围内时,判断戒毒人员处于复吸风险状态。When the movement correlation degree is not within the movement correlation degree threshold range and/or the speed correlation degree is not within the speed correlation degree threshold value range, it is determined that the drug addict is in a relapse risk state. 5.根据权利要求1所述的戒毒人员复吸风险预测方法,其特征在于,在识别戒毒人员的指关节在预设区域内的指节边缘步骤之前,还包括:5. drug relapse risk prediction method for drug addicts according to claim 1, is characterized in that, before identifying the knuckle edge step of drug addicts' knuckles in preset area, also comprises: 获取吸毒人员的历史测试数据,根据历史测试数据获取预设状态数据,所述预设状态数据包括指关节参考点动态运行轨迹。The historical test data of the drug addict is acquired, and preset state data is acquired according to the historical test data, and the preset state data includes the dynamic running track of the knuckle reference point. 6.根据权利要求5所述的戒毒人员复吸风险预测方法,其特征在于,在根据历史测试数据获取预设状态数据步骤之后,识别戒毒人员的指关节在预设区域内的指节边缘步骤之前,还包括:6. The relapse risk prediction method for drug addicts according to claim 5 is characterized in that, after the step of obtaining preset state data according to historical test data, the step of identifying the knuckle edge of the knuckles of drug addicts in a preset area Before, also included: 在检测到戒毒人员的指关节处于预设区域时,展示所述指关节参考点动态运行轨迹,用于戒毒人员按照指关节参考点动态运行轨迹调节指节边缘的运动状态。When it is detected that the knuckles of the drug addicts are in the preset area, the dynamic running track of the reference point of the knuckle is displayed, which is used for the drug addict to adjust the motion state of the edge of the knuckle according to the dynamic running track of the knuckle reference point. 7.一种戒毒人员复吸风险预测装置,其特征在于,所述装置包括:7. A device for predicting relapse risk for drug addicts, wherein the device comprises: 指节边缘数据获取模块,用于识别戒毒人员的指关节在预设区域内的指节边缘,并获取所述指节边缘在预设区域内滑动的第一信息;其中,所述第一信息为指节边缘在预设区域内移动时,移动的第一时刻所采集到的第一空间信息和第二时刻采集到的第二空间信息;A knuckle edge data acquisition module, used to identify the knuckle edge of a drug addict's knuckle in a preset area, and acquire first information about the knuckle edge sliding in the preset area; wherein the first information When the phalangeal edge moves within the preset area, the first spatial information collected at the first moment of movement and the second spatial information collected at the second moment; 指节边缘状态模块,用于根据所述第一时刻采集到的第一空间信息及第二时刻采集到的第二空间信息的比对,确认指节边缘在预设区域内的移动状态数据;The phalangeal edge state module is configured to confirm the movement state data of the phalangeal edge within the preset area according to the comparison between the first spatial information collected at the first moment and the second spatial information collected at the second moment; 结果比对模块,用于通过所述移动状态数据与预设状态数据进行的比对生成比对结果,根据所述比对结果对戒毒人员进行复吸风险预测。The result comparison module is configured to generate a comparison result by comparing the movement state data with the preset state data, and predict the relapse risk for the drug addicts according to the comparison result. 8.根据权利要求7所述的戒毒人员复吸风险预测装置,其特征在于,所述装置还包括:8. The device for predicting relapse risk for drug addicts according to claim 7, wherein the device further comprises: 测试数据调用模块,用于获取复吸人员的历史测试数据,根据历史测试数据获取预设状态数据,所述预设状态数据包括指关节参考点动态运行轨迹。The test data calling module is used for acquiring historical test data of the relapsed person, and acquiring preset state data according to the historical test data, where the preset state data includes the dynamic running track of the reference point of the finger joint. 9.根据权利要求8所述的戒毒人员复吸风险预测装置,其特征在于,所述装置还包括:9. The device for predicting relapse risk for drug addicts according to claim 8, wherein the device further comprises: 展示控制模块,用于在检测到戒毒人员的指关节处于预设区域时,展示所述指关节参考点动态运行轨迹,用于戒毒人员按照指关节参考点动态运行轨迹调节指节边缘的运动状态。The display control module is used to display the dynamic running track of the reference point of the knuckle when it is detected that the knuckles of the drug addict are in the preset area, so that the drug addict can adjust the motion state of the edge of the knuckle according to the dynamic running track of the knuckle reference point. . 10.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有指令,当所述指令在计算机上运行时,执行如权利要求1~6任一项中所述的戒毒人员复吸风险预测方法。10. A computer-readable storage medium, characterized in that, an instruction is stored on the computer-readable storage medium, and when the instruction is executed on a computer, the method described in any one of claims 1 to 6 is executed. Relapse risk prediction method for drug addicts.
CN202211036901.7A 2022-08-29 2022-08-29 Drug rehabilitation person relapse risk prediction method and device and readable storage medium Pending CN115116097A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211036901.7A CN115116097A (en) 2022-08-29 2022-08-29 Drug rehabilitation person relapse risk prediction method and device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211036901.7A CN115116097A (en) 2022-08-29 2022-08-29 Drug rehabilitation person relapse risk prediction method and device and readable storage medium

Publications (1)

Publication Number Publication Date
CN115116097A true CN115116097A (en) 2022-09-27

Family

ID=83335815

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211036901.7A Pending CN115116097A (en) 2022-08-29 2022-08-29 Drug rehabilitation person relapse risk prediction method and device and readable storage medium

Country Status (1)

Country Link
CN (1) CN115116097A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078749A (en) * 2019-11-28 2020-04-28 北京明略软件系统有限公司 Method and device for training model, and device for realizing information investigation

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160135751A1 (en) * 2013-06-21 2016-05-19 Arizona Board Of Regents For The University Of Arizona System and method for detecting neuromotor disorder
CN107945094A (en) * 2017-12-20 2018-04-20 中国科学院合肥物质科学研究院 One kind is directed to addict received treatment's numeral rehabilitation system
CN110111899A (en) * 2019-04-28 2019-08-09 湖南师范大学 A kind of drug rehabilitation exercise data model building method
CN111840747A (en) * 2020-06-22 2020-10-30 上海大学 A comprehensive intervention and rehabilitation method for drug addiction
CN111839482A (en) * 2020-07-30 2020-10-30 杭州艺兴科技有限公司 Non-contact drug addict monitoring method and system based on IPPG
WO2022047272A2 (en) * 2020-08-29 2022-03-03 Aerendir Mobile Inc. Electronic devices with a static artificial intelligence model for contextual situations, including age blocking for vaping and ignition start, using data analysis and operating methods thereof
CN114648079A (en) * 2020-12-17 2022-06-21 广东粤港澳大湾区国家纳米科技创新研究院 Method, device and system for screening drug addicts on site based on video identification

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160135751A1 (en) * 2013-06-21 2016-05-19 Arizona Board Of Regents For The University Of Arizona System and method for detecting neuromotor disorder
CN107945094A (en) * 2017-12-20 2018-04-20 中国科学院合肥物质科学研究院 One kind is directed to addict received treatment's numeral rehabilitation system
CN110111899A (en) * 2019-04-28 2019-08-09 湖南师范大学 A kind of drug rehabilitation exercise data model building method
CN111840747A (en) * 2020-06-22 2020-10-30 上海大学 A comprehensive intervention and rehabilitation method for drug addiction
CN111839482A (en) * 2020-07-30 2020-10-30 杭州艺兴科技有限公司 Non-contact drug addict monitoring method and system based on IPPG
WO2022047272A2 (en) * 2020-08-29 2022-03-03 Aerendir Mobile Inc. Electronic devices with a static artificial intelligence model for contextual situations, including age blocking for vaping and ignition start, using data analysis and operating methods thereof
CN114648079A (en) * 2020-12-17 2022-06-21 广东粤港澳大湾区国家纳米科技创新研究院 Method, device and system for screening drug addicts on site based on video identification

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
孙铭阳: "面向强戒所戒毒人员的多生理参数监测系统研究", 《中国优秀硕士学位论文全文数据库医药卫生科技辑》 *
游飞等: "人脸识别技术在智慧社区门禁系统中的建设与应用", 《自动化与仪器仪表》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078749A (en) * 2019-11-28 2020-04-28 北京明略软件系统有限公司 Method and device for training model, and device for realizing information investigation

Similar Documents

Publication Publication Date Title
Yu et al. A novel hybrid deep neural network to predict pre-impact fall for older people based on wearable inertial sensors
Lu et al. Towards unsupervised physical activity recognition using smartphone accelerometers
EP3913534B1 (en) System and method for real-time radar-based action recognition using spiking neural network(snn)
Reich et al. Novel AI driven approach to classify infant motor functions
Cao et al. Distributed analytics and edge intelligence: Pervasive health monitoring at the era of fog computing
Igual et al. A comparison of public datasets for acceleration-based fall detection
Cuzzolin et al. Metric learning for Parkinsonian identification from IMU gait measurements
Zhang et al. When generalized eating detection machine learning models fail in the field
Yu et al. A practical wearable fall detection system based on tiny convolutional neural networks
Rangari et al. Video based exercise recognition and correct pose detection
Shan et al. Deep analysis for smartphone-based human activity recognition
Jahanjoo et al. Detection and multi-class classification of falling in elderly people by deep belief network algorithms
Kang et al. Real-time elderly activity monitoring system based on a tri-axial accelerometer
Ghosh et al. Integrated image and sensor-based food intake detection in free-living
Ji et al. Assessing nocturnal scratch with actigraphy in atopic dermatitis patients
Kyritsis et al. End-to-end learning for measuring in-meal eating behavior from a smartwatch
US20220248980A1 (en) Systems and methods for monitoring movements
Wong et al. Artificial intelligence analysis of videos to augment clinical assessment: an overview
CN117393109B (en) Scene-adaptive diet monitoring method, device, equipment and storage medium
Tan et al. Recognition technology of athlete’s limb movement combined based on the integrated learning algorithm
CN115116097A (en) Drug rehabilitation person relapse risk prediction method and device and readable storage medium
Wang et al. Detection of Eating Gestures in Older Persons Using IMU Sensors with Multi-Stage Temporal Convolutional Network
Tang et al. A new video dataset for recognizing intake gestures in a cafeteria setting
Leng et al. On the utility of virtual on-body acceleration data for fine-grained human activity recognition
Mathew et al. Measuring functional hand use in children with unilateral cerebral palsy using accelerometry and machine learning

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination